Re: [flexcoders] Conversion from Array to XML

2006-09-28 Thread DUANE NICKULL
Is what you are doing truly an array?  It actually seems like a collection of variables with names that are sequentially incremented.  A true array would use one variable to point at the array then reference each value in an iterative loop.example:var foo = new Array();foo[0] = "bar";foo[1] = "ba

RE: [flexcoders] Conversion from Array to XML

2006-09-28 Thread Tracy Spratt
No one else responded so I’ll take a shot.   For dynamic properties, like in an mx:object, the for..in loop should return a reference to each property.  So maybe something like:   Var sXML:String = “” For (var prop in myObject)  {     sXML += “<” + prop + “>” + myObject[pr