Dirk Eismann wrote:
Also note that Arrays in Flex are not typed (there's no concept of String[] or 
Number[]) so you can store any kind of data into an Array and mix it, too:

var arr:Array = new Array();
arr.push(123);
arr.push("foo");
arr.push(new Date());

They should be compared with Java's ArrayList class rather than String[] or int[]. The ArrayList class also stores only Object references, and they need to be cast back.


I haven't seen much of this in AS2 though:

array.push(new Date());

...
var myData:Date = Date(array.pop());

Is casting back a best practice? I think so.

Manish




Reply via email to