Use concat to combine two arrays : Concat : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Concat »

 

Use concat to combine two arrays


 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var guests:Array = ["P""D"];
        var registeredPlayers:Array = ["G""D""T"];
        var allUsers:Array = registeredPlayers.concat(guests);
        
        trace(allUsers)// G,D,T,P,D

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Concat