Storing Complex or Multidimensional Data : Array Dimension : Array Flash / Flex / ActionScript examples


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

 

Storing Complex or Multidimensional Data


 

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


        var colors:Array = ["red""blue",    "blue",     "gray"];
        var years:Array  = [1997,     2000,       1985,       1983];
        var makes:Array  = ["H",  "C""M""F"];
             
        for (var i:int 0; i < makes.length; i++) {
            trace("A " + colors[i" " 
                         years[i" " 
                         makes[i]);
        }
    }
  }
}
A red 1997 H
A blue 2000 C
A blue 1985 M
A gray 1983 F

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Array Dimension