A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Need help with flashcode for practical usage

  1. #1
    Junior Member
    Join Date
    Apr 2015
    Posts
    12

    Need help with flashcode for practical usage

    Hello, I don't know if this is really a newbie question, but I have no expierence with coding Flash
    I have a piece of code, which explains, in the application how you can send messages (in a chatbox) to users, or a whole "zone", support messages etc... Normally normal users can just chat in the box, but developers/moderators (which I have the permissions for) have extra functions, and there is a certain way of what you have to type, to create a certain message, and sent to who etc...
    I can find those things in the codes, but as I don't have expierence in Flash, I don't really get how I can use those functions, to write messages as a developper and to use these functions... I put the sourcecode of this in an archive, in attachment.
    http://www.filedropper.com/chat (attachment didn't work)

    So basically, I'd like to know what commands and syntax I need to use in the chatbox, to write these messages (as a developper/moderator). I have looked at the code but I don't really get it...

    Thanks.

    Here is also a piece of code already which contains some of this:

    Code:
    public function SendMessage(param1:String) : void
    {
    var _loc_2:* = null;
    var _loc_3:* = 0;
    var _loc_6:* = false;
    var _loc_7:* = false;
    var _loc_8:* = false;
    var _loc_9:* = null;
    var _loc_4:* = /~/g;
    var _loc_5:* = /\|/g;
    param1 = param1.replace(_loc_4, "").replace(_loc_5, "");
    if (param1.charAt(0) == "!")
    {
    }
    if (OWUser.GetUser().GetIsDeveloper())
    {
    _loc_2 = param1;
    _loc_6 = false;
    _loc_7 = false;
    _loc_8 = false;
    _loc_3 = _loc_2.indexOf("!!");
    if (_loc_3 == 0)
    {
    _loc_2 = _loc_2.slice(2, _loc_2.length);
    _loc_6 = true;
    }
    else
    {
    _loc_2 = _loc_2.slice(1, _loc_2.length);
    }
    if (_loc_2.charAt(0) == "*")
    {
    _loc_7 = true;
    _loc_2 = _loc_2.slice(1, _loc_2.length);
    }
    this.mNet.SendModeratorMessage(_loc_2 + "\n", _loc_6, _loc_7, _loc_8);
    }
    else
    {
    if (param1.charAt(0) == "[")
    {
    }
    if (param1.charAt(1) != "]")
    {
    }
    if (OWUser.GetUser().GetIsDeveloper())
    {
    _loc_2 = param1;
    _loc_3 = _loc_2.indexOf("]");
    if (_loc_3 != -1)
    {
    _loc_9 = _loc_2.slice(1, _loc_3);
    _loc_2 = _loc_2.slice((_loc_3 + 1), _loc_2.length);
    this.mNet.SendModeratorMessage(_loc_2 + "\n", false, false, _loc_8, _loc_9);
    }
    }
    else
    {
    this.mNet.SendPublicChat(param1);
    }
    }
    return;
    }// end function
    The codes regarding these functions are located in the main file owchat.swf, when you decompile it there are a few scripts in it that have to do with this as well, like "NetBase" and "Chat" ...

  2. #2
    Junior Member
    Join Date
    Apr 2015
    Posts
    12
    No one here can help me with this? I've found the basics already to use this, "!" being the token to send messages...
    I'm still trying to find though the use of the [ ] tokens which seem to be used to include names or maybe different data, also the * token I'm not fully aware of how to use that one...
    Maybe someone with a better understanding of this code can clear it out for me
    Kind
    Regards

  3. #3
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    anything in between the parenthesis can be a command try typing in those looks like brackets are set up to input like a user name or something ![username]

  4. #4
    Registered User
    Join Date
    Jun 2015
    Posts
    3
    As far as I know, when you have codes like that its encrypted. I suppose you were trying to decompile a swf file right? for more info check this link Protect Your Flash Files From Decompilers by Using Encryption

  5. #5
    Junior Member
    Join Date
    Apr 2015
    Posts
    12
    Quote Originally Posted by freshmints View Post
    As far as I know, when you have codes like that its encrypted. I suppose you were trying to decompile a swf file right? for more info check this link Protect Your Flash Files From Decompilers by Using Encryption
    Thanks, ye i use swf decompiler, but I dont know, but you can choose how to view your file... like raw or only the flash codes I think, I also have the fla file, but that said, i have found in this info what I needed "!" was the main character to use and those other mentioned in the code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center