[flexcoders] Re: Expression for an array object name?

2006-09-28 Thread jnewport
How can I print out what obj contains?  I have tried
trace(obj.toString()), but I get [object object].


Thanks for your help you don't know how much I appreciate it.

J



--- In flexcoders@yahoogroups.com, EECOLOR [EMAIL PROTECTED] wrote:

 Hello,
 
 maybe something like this:
 
 monthlysVO = new Array()
 
 var children:XMLList = xmldpAddress.month;
 var child:XML;
 var obj:Object;
 var j:int;
 var length_int:int = chilren.length();
 
 for  (j = 0; j  length; j++)
 {
 child = children[j];
 
 obj = new Object();
 [EMAIL PROTECTED] = [EMAIL PROTECTED];
 monthlysVO.push(obj);
 }
 
 
 Greetz Erik








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Expression for an array object name?

2006-09-28 Thread Dave Carabetta
On 9/28/06, jnewport [EMAIL PROTECTED] wrote:
 How can I print out what obj contains?  I have tried
 trace(obj.toString()), but I get [object object].



I believe you can just do trace( ObjectUtil.toString(obj) ); to get that dump.

Regards,
Dave.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/