Referencing Array Elements : Array Index : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Array Index »

 

Referencing Array Elements


 


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

        var trees:Array = ["b""m""o""c"];
        
        var firstTree:String = trees[0];
        var favoriteTree:String = trees[2];
        
        trace(firstTree);
        trace(favoriteTree);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Array Index