[Flash] dynamic var/proeprty names
[Flash] dynamic var/proeprty names
- Started
- Last post
- 1 Response
- Fariska
I have this object i'm using to store some external swfs urls.
Well, since the xml node where i'm parsing the data may have 2 or 3 items, i'd like to set dinamically the names of the variables into the object.
I.E: the xml node has 3 items: swf1,swf2,swf2
I want that my object has the properties: myObj.movie1, myObj.movie2,
myObj.movie3,
in which are stored respectively the swf's urls.How can I set dinamycally the property myObj.movieN
(where N is the index of the for loop i'm using to retrieve data).
- Fariska0
don't mind. Problem Solved