Access the last element of theArray : Length : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Length »

 

Access the last element of theArray


 


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


        var cities:Array = ["Toronto""Montreal""Vancouver""Waterloo"];
        
        trace(cities)// Toronto,Montreal,Vancouver,Waterloo
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Length