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
Related examples in the same category