Arrays in ActionScript can contain any type of object:
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var time:Date = new Date();
var currentTemp:Number = 56;
var currentConditions:String = "Light Showers";
var weatherReport:Array = new Array(time, currentTemp, currentConditions);
trace(weatherReport);
}
}
}
Related examples in the same category