push() method always appends new elements, even if all the existing elements have undefined values. : Push : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Push »

 

push() method always appends new elements, even if all the existing elements have undefined values.


 

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

        var aEmployees:Array = new Array(2);
        aEmployees.push("R""H""L");
        trace(aEmployees.toString());//,,R,H,L
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Push