An even shorter code is here:
var o:Object={foo:"hello",bar:"world",cnt:2}; trace(o.cnt);
Remember to update the last argument in the list of objects if anything is added to it. I think that the main drawback of this approach. And now, of course, .cnt does not actually return the true length of the list, but rather, the length of the list is 1.
Neal davis
source share