Items added to the list can be any expression. : Push : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Push »

 

Items added to the list can be any expression.


 


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

        var temperature:int 22;
        var sky:String = "sunny";
        var weatherListing:Array = new Array(  );
        
        weatherListing.push(temperature, sky);
        
        trace(weatherListing)// 22,sunny
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Push