Hallo.. I am trying to loop in a new object instance but it does not work ..
I have create a new class named Class1.. Inside this class there are 3 property:
Then i just created a new istance:
var myClass1:Class1 = new Class1("myName", "mySurname", "myAge");
And then i tryied to loop in the istance :
for each(var myObj in myClass1)
I think i should enter in the for each 3 times (because of the 3 property) but it never enters...why?? what is wrong with my code??
use for ... in
Do you mean this? :
for(var myObj in myClass1)
I tried...It doesn't work...
sorry, when the object is dynamic, use for ... in.
in this case, try to use describeType
2012/7/16 Maximist <firstname.lastname@example.org>
Re: how to loop in object instance created by Maximist<http://forums.adobe.com/people/Maximist>in
Flex - View the full discussion<http://forums.adobe.com/message/4559740#4559740