Gannesh
Gannesh

Reputation: 183

How to dynamically add attributes to an object and convert that object to xml

How to dynamically add attributes to an object and convert that object into xml in Flex/Actionscript?

Upvotes: 0

Views: 257

Answers (1)

Black Dynamite
Black Dynamite

Reputation: 4147

You must denote the object as dynamic, then you can add any properties you want. Then you can fall back on the

for (var i:String in myArray) 
{ 
   trace(myArray[i]); 
} 

to help create your xml.

Upvotes: 1

Related Questions