This content has been marked as final. Show 4 replies
xx is only one object regardless of how many times you push it into the array so it can only have one age property at any time. Your all array contains two references to the same one object. You need to put different objects into the array that have an age property.
A simple way to do it is as follows:
thaaaaaaaaaaanx maaaan i'm working on this for 2 hours without any result !!!! it worked now !!!! i did the same way but i wrote:
var this["x" + i]:Object = new Object();
this["x" + i] = new Object();
anyway thaaaanx man u helped me alot ^_^
I prefer the first way, just pushing a generic object, but just wanted to
mention it's easier to access the object properties directly, you don't need
to use array notation:
Adobe Community Expert
Yes old habits die hard. I got that years ago while trying to do custom sorts on datagrids and I can't seem to kick it but you are right - the ".age" is cleaner.