RE: [flexcoders] Dump any Data Structure
flash.utils.describeType From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephen More Sent: Friday, April 04, 2008 6:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dump any Data Structure Perl has Data::Dumper ( http://search.cpan.org/~ilyam/Data-Dumper-2.121/Dumper.pm http://search.cpan.org/~ilyam/Data-Dumper-2.121/Dumper.pm ) It will output any data structure structure to output. Is there any equivalent method/object in flex ? -Thanks Flex newbie
RE: [flexcoders] Dump?
nice one! Van: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Namens Jeremy LuVerzonden: maandag 7 augustus 2006 4:08Aan: flexcoders@yahoogroups.comOnderwerp: Re: [flexcoders] Dump? -import mx.utils.ObjectUtil;ObjectUtil.toString( loginVO );-This makes life a bit easier :-)Jeremy. On 8/7/06, Bjorn Schultheiss bjorn.schultheiss@qdc.net.au wrote: already answered by joost Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bjorn SchultheissSent: Monday, 7 August 2006 11:38 AMTo: [EMAIL PROTECTED]ups.comSubject: RE: [flexcoders] Dump? public function dump(obj:*):String { for (var i in obj) { trace('key: '+i+', value: '+obj[i] ); } } Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of malik_robinsonSent: Monday, 7 August 2006 10:18 AMTo: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Dump? Hi,How can I dump the following variable "loginVO" and see its output?public function loginUser() : void{var loginVO : LoginVO = new LoginVO();loginVO.username = username.text;loginVO.password = password.text;var event : LoginEvent = new LoginEvent( loginVO );CairngormEventDispatcher.getInstance().dispatchEvent( event );}I would like to dump similar to how you dump the output of a variable in ColdFusionThanks,-Malik __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Dump?
Hmm, I'm getting this error: Error: Error #2099: The loading object is not sufficiently loaded to provide this information.at flash.display::LoaderInfo/get actionScriptVersion()at mx.utils::ObjectUtil$/::internalToString()at mx.utils::ObjectUtil$/::internalToString()at mx.utils::ObjectUtil$/::internalToString()at mx.utils::ObjectUtil$/::internalToString()at mx.utils::ObjectUtil$/::internalToString()at mx.utils::ObjectUtil$/::internalToString()at mx.utils::ObjectUtil$/::internalToString() Van: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Namens Jeremy LuVerzonden: maandag 7 augustus 2006 4:08Aan: flexcoders@yahoogroups.comOnderwerp: Re: [flexcoders] Dump? -import mx.utils.ObjectUtil;ObjectUtil.toString( loginVO );-This makes life a bit easier :-)Jeremy. On 8/7/06, Bjorn Schultheiss bjorn.schultheiss@qdc.net.au wrote: already answered by joost Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bjorn SchultheissSent: Monday, 7 August 2006 11:38 AMTo: [EMAIL PROTECTED]ups.comSubject: RE: [flexcoders] Dump? public function dump(obj:*):String { for (var i in obj) { trace('key: '+i+', value: '+obj[i] ); } } Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of malik_robinsonSent: Monday, 7 August 2006 10:18 AMTo: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Dump? Hi,How can I dump the following variable "loginVO" and see its output?public function loginUser() : void{var loginVO : LoginVO = new LoginVO();loginVO.username = username.text;loginVO.password = password.text;var event : LoginEvent = new LoginEvent( loginVO );CairngormEventDispatcher.getInstance().dispatchEvent( event );}I would like to dump similar to how you dump the output of a variable in ColdFusionThanks,-Malik __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Dump?
On Monday 07 August 2006 03:32, Joost Nuijten wrote: Error: Error #2099: The loading object is not sufficiently loaded to provide this information. Try calling it a bit later on in the app. start up. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * 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] Dump?
Hi, The base dump function is this one: for (var x:String in object) trace(x + ": " + object[x]); What you can do is build your own class around it, so that it is recursive and you can dump every objectstructure (inc. arrays of arrays with objects). Van: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Namens malik_robinsonVerzonden: maandag 7 augustus 2006 2:18Aan: flexcoders@yahoogroups.comOnderwerp: [flexcoders] Dump? Hi,How can I dump the following variable "loginVO" and see its output?public function loginUser() : void{var loginVO : LoginVO = new LoginVO();loginVO.username = username.text;loginVO.password = password.text;var event : LoginEvent = new LoginEvent( loginVO );CairngormEventDispatcher.getInstance().dispatchEvent( event );}I would like to dump similar to how you dump the output of a variable in ColdFusionThanks,-Malik __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Dump?
public function dump(obj:*):String { for (var i in obj) { trace('key: '+i+', value: '+obj[i] ); } } Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of malik_robinsonSent: Monday, 7 August 2006 10:18 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Dump? Hi,How can I dump the following variable "loginVO" and see its output?public function loginUser() : void{var loginVO : LoginVO = new LoginVO();loginVO.username = username.text;loginVO.password = password.text;var event : LoginEvent = new LoginEvent( loginVO );CairngormEventDispatcher.getInstance().dispatchEvent( event );}I would like to dump similar to how you dump the output of a variable in ColdFusionThanks,-Malik __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Dump?
already answered by joost Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn SchultheissSent: Monday, 7 August 2006 11:38 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Dump? public function dump(obj:*):String { for (var i in obj) { trace('key: '+i+', value: '+obj[i] ); } } Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of malik_robinsonSent: Monday, 7 August 2006 10:18 AMTo: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Dump? Hi,How can I dump the following variable "loginVO" and see its output?public function loginUser() : void{var loginVO : LoginVO = new LoginVO();loginVO.username = username.text;loginVO.password = password.text;var event : LoginEvent = new LoginEvent( loginVO );CairngormEventDispatcher.getInstance().dispatchEvent( event );}I would like to dump similar to how you dump the output of a variable in ColdFusionThanks,-Malik __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Dump?
- import mx.utils.ObjectUtil; ObjectUtil.toString( loginVO ); - This makes life a bit easier :-) Jeremy. On 8/7/06, Bjorn Schultheiss [EMAIL PROTECTED] wrote: already answered by joost Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bjorn SchultheissSent: Monday, 7 August 2006 11:38 AMTo: [EMAIL PROTECTED]ups.comSubject: RE: [flexcoders] Dump? public function dump(obj:*):String { for (var i in obj) { trace('key: '+i+', value: '+obj[i] ); } } Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of malik_robinsonSent: Monday, 7 August 2006 10:18 AMTo: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Dump? Hi,How can I dump the following variable loginVO and see its output?public function loginUser() : void{var loginVO : LoginVO = new LoginVO();loginVO.username = username.text;loginVO.password = password.text;var event : LoginEvent = new LoginEvent( loginVO );CairngormEventDispatcher.getInstance().dispatchEvent( event );}I would like to dump similar to how you dump the output of a variable in ColdFusionThanks,-Malik __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Dump?
mm yes, the new utils package. I must admit there are a few cool utils in there. I am not fully up to speed yet as 9-5 im still on as2 Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy LuSent: Monday, 7 August 2006 12:08 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Dump? -import mx.utils.ObjectUtil;ObjectUtil.toString( loginVO );-This makes life a bit easier :-)Jeremy. On 8/7/06, Bjorn Schultheiss bjorn.schultheiss@qdc.net.au wrote: already answered by joost Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bjorn SchultheissSent: Monday, 7 August 2006 11:38 AMTo: [EMAIL PROTECTED]ups.comSubject: RE: [flexcoders] Dump? public function dump(obj:*):String { for (var i in obj) { trace('key: '+i+', value: '+obj[i] ); } } Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of malik_robinsonSent: Monday, 7 August 2006 10:18 AMTo: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Dump? Hi,How can I dump the following variable "loginVO" and see its output?public function loginUser() : void{var loginVO : LoginVO = new LoginVO();loginVO.username = username.text;loginVO.password = password.text;var event : LoginEvent = new LoginEvent( loginVO );CairngormEventDispatcher.getInstance().dispatchEvent( event );}I would like to dump similar to how you dump the output of a variable in ColdFusionThanks,-Malik __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Dump object to Console
For a shallow copy, use a for in / for each loop. var s:String = ; for ( var p:* in o) { s += p + : + o[p] + \n; } trace(s); For something more, like a tree, use mx.utils.ObjectUtils.toString. I have a DebugWindow I use here so you don't have to toggle to FlexBuilder to see your traces. Just drop the DebugWindow.mxml at the root of your project and go: DebugWindow.debugHeader(), DebugWindow.debug(stuff), or DebugWindow.debugProps(obj) in your code. http://www.jessewarden.com/archives/2006/07/flex_2_webservice.html - Original Message - From: Lisa Nelson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, July 17, 2006 12:12 PM Subject: [flexcoders] Dump object to Console Dear All, More debugging woes. I have some other cause of the debugger not working in subcomponents - just blows by the breakpoints. But I have a question that could maybe bypass 90% of the reason I tend to use the debugger anyway. Does anyone have a way of just dumping an object to the console, or external file or something like that? Something like trace, but that will handle an entire object with many fields, and you don't have to know at compile time what all the fields are. --L -- 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 -- 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/ * 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] Dump object to Console
Beautiful in it's simplicity. Thanks. --L -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, July 17, 2006 10:17 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Dump object to Console For a shallow copy, use a for in / for each loop. var s:String = ; for ( var p:* in o) { s += p + : + o[p] + \n; } trace(s); For something more, like a tree, use mx.utils.ObjectUtils.toString. I have a DebugWindow I use here so you don't have to toggle to FlexBuilder to see your traces. Just drop the DebugWindow.mxml at the root of your project and go: DebugWindow.debugHeader(), DebugWindow.debug(stuff), or DebugWindow.debugProps(obj) in your code. http://www.jessewarden.com/archives/2006/07/flex_2_webservice.html - Original Message - From: Lisa Nelson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, July 17, 2006 12:12 PM Subject: [flexcoders] Dump object to Console Dear All, More debugging woes. I have some other cause of the debugger not working in subcomponents - just blows by the breakpoints. But I have a question that could maybe bypass 90% of the reason I tend to use the debugger anyway. Does anyone have a way of just dumping an object to the console, or external file or something like that? Something like trace, but that will handle an entire object with many fields, and you don't have to know at compile time what all the fields are. --L -- 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 -- 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 -- 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/ * 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/