Okay so basically i made a chat room and i want to add commands to it. I would like to know how can i get the words of the string for example... if someone types /kick user, i would like for it to recognize "/kick" and then run a function to pass the string "user"
Example
private function kickUser(user:String):void{
kick(user); //got the user from the /kick user
}
If anyone can help me with this please let me know :( thanks in advance