package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var cars:Array = new Array();
cars.push({make: "H", year: 1997, color: "maroon"});
cars.push({make: "Chrysler", year: 2000, color: "beige"});
cars.push({make: "Mercedes", year: 1985, color: "blue"});
cars.push({make: "Fiat", year: 1983, color: "gray"});
for (var i:int = 0; i < cars.length; i++) {
trace("A " + cars[i].color + " " +
cars[i].year + " " +
cars[i].make);
}
}
}
}
A maroon 1997 H
A beige 2000 Chrysler
A blue 1985 Mercedes
A gray 1983 Fiat
|