It's normal behavior for AS3. In fact, there is no "Associative Array"
in AS3 (that's a PHP term and convention).
You'd want to look into using a Dictionary object or iterating over a
dynamic object:
var foo:Object ={item1: "val", item2: "val"};
var count:int = 0;
for (var bar:* in foo) {
trace(bar);
count++;
}
trace(count);
Kevin N.
laurent wrote:
Hi,
I use an array to store object with their name like that:
views[ "viewName" ] = Object
then views.length return 0 ...
It's normal behaviour ?? length work only on numerical indexes ?
L
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders