Setting an Element's Value
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var cities:Array = ["Toronto", "Montreal", "Vancouver", "Waterloo"];
cities[0] = "London";
cities[3] = "Hamburg";
cities[2] = 293.3; // Notice that the datatype change is not a problem
trace(cities);
}
}
}
Related examples in the same category