Setting an Element's Value : Array Index : Array Flash / Flex / ActionScript examples


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

 

Setting an Element's Value


 


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

        var cities:Array = ["Toronto""Montreal""Vancouver""Waterloo"];
        cities[0"London";
        cities[3"Hamburg";
        cities[2293.3;  // Notice that the datatype change is not a problem
        
        trace(cities);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Array Index