Re: [Flashcoders] vardump an object in ActionScript?
Similar to that last solution... import mx.utils.ObjectUtil; trace(ObjectUtil.toString(obj)); Van De Velde Hans wrote: Yes, there is, do this : import mx.data.binding.ObjectDumper; // usage of static function toString like this trace(ObjectDumper.toString(theObjectYouWantToDump)); Regards, Hans Van de Velde Senior Multimedia Developer e-mail: [EMAIL PROTECTED] direct: +32 2 745 58 51 Digital Age Design SA/NV Rue Colonel Bourg 105A B-1140 Brussels Tel. +32 2 706 05 40 Fax: +32 2 706 05 69 www.dad.be member of LB Iconlogo DAD -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of judah Sent: woensdag 15 februari 2006 5:16 To: Flashcoders mailing list Subject: Re: [Flashcoders] vardump an object in ActionScript? Hi Josh, You can check out this Enumerator class at this dudes website www.judahfrangipane.com. Heard he's a weirdo tho. Josh McDonald wrote: Hi, I'm wondering if there's any way to just dump out all there is to know about an object in ActionScript similar to PHP's vardump()? It's easily done with for(foo in bar) in JS, but that doesn't seem to work. Any pointers much appreciated :) Cheers, -Josh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vardump an object in ActionScript?
That is for sure... But the kid knows how to knock out some code. -- wade On 2/14/06 10:16 PM, "judah" <[EMAIL PROTECTED]> wrote: > www.judahfrangipane.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] vardump an object in ActionScript?
Yes, there is, do this : import mx.data.binding.ObjectDumper; // usage of static function toString like this trace(ObjectDumper.toString(theObjectYouWantToDump)); Regards, Hans Van de Velde Senior Multimedia Developer e-mail: [EMAIL PROTECTED] direct: +32 2 745 58 51 Digital Age Design SA/NV Rue Colonel Bourg 105A B-1140 Brussels Tel. +32 2 706 05 40 Fax: +32 2 706 05 69 www.dad.be member of LB Iconlogo DAD -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of judah Sent: woensdag 15 februari 2006 5:16 To: Flashcoders mailing list Subject: Re: [Flashcoders] vardump an object in ActionScript? Hi Josh, You can check out this Enumerator class at this dudes website www.judahfrangipane.com. Heard he's a weirdo tho. Josh McDonald wrote: >Hi, I'm wondering if there's any way to just dump out all there is to >know about an object in ActionScript similar to PHP's vardump()? It's >easily done with for(foo in bar) in JS, but that doesn't seem to work. > >Any pointers much appreciated :) > >Cheers, >-Josh > > > -- "Always bear in mind that your own resolution to succeed is more important than any one thing." "You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose." - Abraham Lincoln ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vardump an object in ActionScript?
Hi Josh, You can check out this Enumerator class at this dudes website www.judahfrangipane.com. Heard he's a weirdo tho. Josh McDonald wrote: Hi, I'm wondering if there's any way to just dump out all there is to know about an object in ActionScript similar to PHP's vardump()? It's easily done with for(foo in bar) in JS, but that doesn't seem to work. Any pointers much appreciated :) Cheers, -Josh -- "Always bear in mind that your own resolution to succeed is more important than any one thing." "You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose." - Abraham Lincoln ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vardump an object in ActionScript?
Yeah I shouldn't diss it.. it's a cool tool, i'll give them that!. I guess I never have problems with depths or placement so it's just to much for me. So use what's comfortable. XRay is a nice tool. I'm not trying to diss it. Aaron Smith On Feb 13, 2006, at 2:50 PM, Chris Allen wrote: On 2/13/06, Aaron Smith <[EMAIL PROTECTED]> wrote: xRay is bloaded. I use flashinspector for something like this http://luminicbox.com/dev/flash/log/example.htm http://www.luminicbox.com/blog/default.aspx?page=post&id=2 http://www.luminicbox.com/dev/flash/log/luminicbox.log.zip those are some useful links for it.. Aaron Smith Bloaded means full featured I suppose. ;-) I suppose you are right in that if all you want is a decent logging tool then Xray is overkill, but come on. Simply dissing it because you don't use all of its features is uncalled for. I can't count how many times it has been useful to be able to execute code in real time, check what depth and level my supposedly created MovieClip is on, being able to arrange my MovieClips with drag and drop and then know the coordinates for use later in my code. I can go on and on about the benefits. As for Lumixbox, it is really great too. In fact John Grden is planning on having a way to include it in Xray so that your logging can be done through this more robust logging tool. Anyway, if you don't like it don't use it, but don't spread misinformation. -Chris ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vardump an object in ActionScript?
On 2/13/06, Aaron Smith <[EMAIL PROTECTED]> wrote: > > xRay is bloaded. I use flashinspector for something like this > > http://luminicbox.com/dev/flash/log/example.htm > > http://www.luminicbox.com/blog/default.aspx?page=post&id=2 > > http://www.luminicbox.com/dev/flash/log/luminicbox.log.zip > > those are some useful links for it.. > > Aaron Smith Bloaded means full featured I suppose. ;-) I suppose you are right in that if all you want is a decent logging tool then Xray is overkill, but come on. Simply dissing it because you don't use all of its features is uncalled for. I can't count how many times it has been useful to be able to execute code in real time, check what depth and level my supposedly created MovieClip is on, being able to arrange my MovieClips with drag and drop and then know the coordinates for use later in my code. I can go on and on about the benefits. As for Lumixbox, it is really great too. In fact John Grden is planning on having a way to include it in Xray so that your logging can be done through this more robust logging tool. Anyway, if you don't like it don't use it, but don't spread misinformation. -Chris ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vardump an object in ActionScript?
Also check out this link for object dumnping in the trace window.: http://www.rocketboots.com/blog/index.cfm?mode=entry&entry=EA74F7C8- E081-51EF-A7E3B2C1EF0D306D Aaron Smith On Feb 13, 2006, at 2:16 PM, Josh McDonald wrote: I suppose a marriage proposal would be out of order? Super useful - Cheers dude :) -Josh -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland was the best." Josh McDonald Analyst Programmer Information Technology Ph: 61 7 3006 6460 Email: [EMAIL PROTECTED] [EMAIL PROTECTED] 14/02/2006 1:52:11 am >>> Man, I feel like a broken record. :-) Didn't this just come up recently. Anyway, I suggest that you try Xray: http://osflash.org/xray as it has this ability (Xray.trace(myObject);) and tons more. It will indeed save you time in debugging your Flash application. -Chris On 2/13/06, Josh McDonald <[EMAIL PROTECTED]> wrote: Hi, I'm wondering if there's any way to just dump out all there is to know about an object in ActionScript similar to PHP's vardump()? It's easily done with for(foo in bar) in JS, but that doesn't seem to work. Any pointers much appreciated :) Cheers, -Josh -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland was the best." Josh McDonald Analyst Programmer Information Technology Ph: 61 7 3006 6460 Email: [EMAIL PROTECTED] ** * Messages included in this e-mail and any of its attachments are those of the author unless specifically stated to represent WorkCover Queensland. The contents of this message are to be used for the intended purpose only and are to be kept confidential at all times. This message may contain privileged information directed only to the intended addressee/s. Accidental receipt of this information should be deleted promptly and the sender notified. This e-mail has been scanned by Sophos for known viruses. However, no warranty nor liability is implied in this respect. ** ** ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ** * Messages included in this e-mail and any of its attachments are those of the author unless specifically stated to represent WorkCover Queensland. The contents of this message are to be used for the intended purpose only and are to be kept confidential at all times. This message may contain privileged information directed only to the intended addressee/s. Accidental receipt of this information should be deleted promptly and the sender notified. This e-mail has been scanned by Sophos for known viruses. However, no warranty nor liability is implied in this respect. ** ** ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vardump an object in ActionScript?
xRay is bloaded. I use flashinspector for something like this http://luminicbox.com/dev/flash/log/example.htm http://www.luminicbox.com/blog/default.aspx?page=post&id=2 http://www.luminicbox.com/dev/flash/log/luminicbox.log.zip those are some useful links for it.. Aaron Smith On Feb 13, 2006, at 2:16 PM, Josh McDonald wrote: I suppose a marriage proposal would be out of order? Super useful - Cheers dude :) -Josh -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland was the best." Josh McDonald Analyst Programmer Information Technology Ph: 61 7 3006 6460 Email: [EMAIL PROTECTED] [EMAIL PROTECTED] 14/02/2006 1:52:11 am >>> Man, I feel like a broken record. :-) Didn't this just come up recently. Anyway, I suggest that you try Xray: http://osflash.org/xray as it has this ability (Xray.trace(myObject);) and tons more. It will indeed save you time in debugging your Flash application. -Chris On 2/13/06, Josh McDonald <[EMAIL PROTECTED]> wrote: Hi, I'm wondering if there's any way to just dump out all there is to know about an object in ActionScript similar to PHP's vardump()? It's easily done with for(foo in bar) in JS, but that doesn't seem to work. Any pointers much appreciated :) Cheers, -Josh -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland was the best." Josh McDonald Analyst Programmer Information Technology Ph: 61 7 3006 6460 Email: [EMAIL PROTECTED] ** * Messages included in this e-mail and any of its attachments are those of the author unless specifically stated to represent WorkCover Queensland. The contents of this message are to be used for the intended purpose only and are to be kept confidential at all times. This message may contain privileged information directed only to the intended addressee/s. Accidental receipt of this information should be deleted promptly and the sender notified. This e-mail has been scanned by Sophos for known viruses. However, no warranty nor liability is implied in this respect. ** ** ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ** * Messages included in this e-mail and any of its attachments are those of the author unless specifically stated to represent WorkCover Queensland. The contents of this message are to be used for the intended purpose only and are to be kept confidential at all times. This message may contain privileged information directed only to the intended addressee/s. Accidental receipt of this information should be deleted promptly and the sender notified. This e-mail has been scanned by Sophos for known viruses. However, no warranty nor liability is implied in this respect. ** ** ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vardump an object in ActionScript?
On 2/13/06, Josh McDonald <[EMAIL PROTECTED]> wrote: > > I suppose a marriage proposal would be out of order? > > Super useful - Cheers dude :) > > -Josh > Hahaha! Don't ask for my hand in marriage. It should be John Grden, he created the thing. Keep in mind he's already taken, so it might take some work. ;-) Have fun with Xray and Happy Valentines Day! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vardump an object in ActionScript?
I suppose a marriage proposal would be out of order? Super useful - Cheers dude :) -Josh -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland was the best." Josh McDonald Analyst Programmer Information Technology Ph: 61 7 3006 6460 Email: [EMAIL PROTECTED] >>> [EMAIL PROTECTED] 14/02/2006 1:52:11 am >>> Man, I feel like a broken record. :-) Didn't this just come up recently. Anyway, I suggest that you try Xray: http://osflash.org/xray as it has this ability (Xray.trace(myObject);) and tons more. It will indeed save you time in debugging your Flash application. -Chris On 2/13/06, Josh McDonald <[EMAIL PROTECTED]> wrote: > > Hi, I'm wondering if there's any way to just dump out all there is to > know about an object in ActionScript similar to PHP's vardump()? It's > easily done with for(foo in bar) in JS, but that doesn't seem to work. > > Any pointers much appreciated :) > > Cheers, > -Josh > > -- > > "His comrades fought beside him, Van Owen and the rest... >But of all the thompson gunners- Roland was the best." > > Josh McDonald > Analyst Programmer > Information Technology > Ph: 61 7 3006 6460 > Email: [EMAIL PROTECTED] > > > > > > *** > Messages included in this e-mail and any of its attachments are those > of the author unless specifically stated to represent WorkCover > Queensland. The contents of this message are to be used for the intended > purpose only and are to be kept confidential at all times. > This message may contain privileged information directed only to the > intended addressee/s. Accidental receipt of this information should be > deleted promptly and the sender notified. > This e-mail has been scanned by Sophos for known viruses. > However, no warranty nor liability is implied in this respect. > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com *** Messages included in this e-mail and any of its attachments are those of the author unless specifically stated to represent WorkCover Queensland. The contents of this message are to be used for the intended purpose only and are to be kept confidential at all times. This message may contain privileged information directed only to the intended addressee/s. Accidental receipt of this information should be deleted promptly and the sender notified. This e-mail has been scanned by Sophos for known viruses. However, no warranty nor liability is implied in this respect. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vardump an object in ActionScript?
Man, I feel like a broken record. :-) Didn't this just come up recently. Anyway, I suggest that you try Xray: http://osflash.org/xray as it has this ability (Xray.trace(myObject);) and tons more. It will indeed save you time in debugging your Flash application. -Chris On 2/13/06, Josh McDonald <[EMAIL PROTECTED]> wrote: > > Hi, I'm wondering if there's any way to just dump out all there is to > know about an object in ActionScript similar to PHP's vardump()? It's > easily done with for(foo in bar) in JS, but that doesn't seem to work. > > Any pointers much appreciated :) > > Cheers, > -Josh > > -- > > "His comrades fought beside him, Van Owen and the rest... >But of all the thompson gunners- Roland was the best." > > Josh McDonald > Analyst Programmer > Information Technology > Ph: 61 7 3006 6460 > Email: [EMAIL PROTECTED] > > > > > > *** > Messages included in this e-mail and any of its attachments are those > of the author unless specifically stated to represent WorkCover > Queensland. The contents of this message are to be used for the intended > purpose only and are to be kept confidential at all times. > This message may contain privileged information directed only to the > intended addressee/s. Accidental receipt of this information should be > deleted promptly and the sender notified. > This e-mail has been scanned by Sophos for known viruses. > However, no warranty nor liability is implied in this respect. > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vardump an object in ActionScript?
Yeah, a for...in loop is what you want in Actionscript too. However, to save you a few minutes, below is the function I use. static function printr( object, depth ){ if ( depth == undefined ) depth = 3; var depth_spacing:String = ""; var string_rep:String = ""; for ( var attrib in object ){ var attrib_value:String = ""; if ( depth > 0 && ( typeof( object[attrib] ) == "object" || typeof( object[attrib] ) == "movieclip") ){ attrib_value = printr( object[attrib], depth-1 ); if ( attrib_value == "" ){ attrib_value = "[]"; if (object[attrib] instanceof Array){ attrib_value = "[empty Array]"; } } } else { attrib_value = "" + object[attrib]; } string_rep += "\n" + depth_spacing.substr(depth*2) + "[ " + attrib + " ]:" + typeof(object[attrib]) + " = " + attrib_value; } return string_rep; } Josh McDonald wrote: Hi, I'm wondering if there's any way to just dump out all there is to know about an object in ActionScript similar to PHP's vardump()? It's easily done with for(foo in bar) in JS, but that doesn't seem to work. Any pointers much appreciated :) Cheers, -Josh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] vardump an object in ActionScript?
Hi, I'm wondering if there's any way to just dump out all there is to know about an object in ActionScript similar to PHP's vardump()? It's easily done with for(foo in bar) in JS, but that doesn't seem to work. Any pointers much appreciated :) Cheers, -Josh -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland was the best." Josh McDonald Analyst Programmer Information Technology Ph: 61 7 3006 6460 Email: [EMAIL PROTECTED] *** Messages included in this e-mail and any of its attachments are those of the author unless specifically stated to represent WorkCover Queensland. The contents of this message are to be used for the intended purpose only and are to be kept confidential at all times. This message may contain privileged information directed only to the intended addressee/s. Accidental receipt of this information should be deleted promptly and the sender notified. This e-mail has been scanned by Sophos for known viruses. However, no warranty nor liability is implied in this respect. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com