-
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" ...
-
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
-
Client Software Programmer
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]
-
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
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|