Creating New Arrays from Existing Arrays : Concat : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Concat »

 

Creating New Arrays from Existing Arrays


 

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

        var aEmployeesExec:Array = ["A""P""C""H"];
        var aEmployeesNew:Array = ["G""M"];
        var aEmployeesStaff:Array = ["A""R"];
        var aEmployeesAll:Array = aEmployeesExec.concat(aEmployeesNew, aEmployeesStaff);
        trace(aEmployeesAll.toString());

    }
  }
}
//A,P,C,H,G,M,A,R

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Concat