Mega Code Archive

 
Categories / Flash ActionScript / Array
 

You are not limited to adding a single element at a time with push method

package{   import flash.display.Sprite;      public class Main extends Sprite{     public function Main(){         var aEmployees:Array = ["A", "P", "C", "H"];         aEmployees.push("R", "H", "L");         trace(aEmployees.toString());     }   } }