I think u can get by doing like this
temp["col+(i+1)"] = i+1;






On Mar 17, 10:23 pm, Shishir <[email protected]> wrote:
> Hi,
>
> I want to create objects with dynamic property names and insert it
> into an arrayCollection.
>
> For example , just yo illustrate:
>
> var mycoll:ArrayCollection;
> var temp:Object = new Object();
> for(var i:int =0 ; i < 20 ; i++)
>   {
>       temp.col(i+1) = i+1;
>   }
> mycoll.addItem(temp);
>
> Basically i want : temp.col1 = 1,temp.col2=2,temp.col3=3 etc..
>
> I would appreciate if someone could guide me on this.
>
> Regards,
> Shishir.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to