Pass string variables to a method : String : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » String »

 

Pass string variables to a method


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
       updateChatHistory("Hi""Joe");

    }
    private function updateChatHistorymessage:String, username:String ):void {
      _history += username + ":" + message + 'n';
    };
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo String
» String