Working with multiple sets of data : Array Dimension : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Array Dimension »

 

Working with multiple sets of data


 

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

        var cars:Array = new Array();
        cars.push(["maroon"1997"H"]);
        cars.push(["beige"2000"Chrysler"]);
        cars.push(["blue"1985"Mercedes"]);
        cars.push(["gray"1983"Fiat"]);
             
        for (var i:int 0; i < cars.length; i++) {
            trace("A " + cars[i][0" " 
                         cars[i][1" " 
                         cars[i][2]);
        }

    }
  }
}
A maroon 1997 H
A beige 2000 Chrysler
A blue 1985 Mercedes
A gray 1983 Fiat

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Array Dimension