Ted Patrick - Demos & MAX @ Adobe Systems


Note: This is the personal blog of Ted Patrick. The opinions and statements voiced here are my own.



Remove _global from Debug > List Variables

DIGG IT!     2 Comments Published Friday, January 28, 2005 at 8:05 AM .

I use Debug > List Variables while debugging. If you use V2, there is a ton of _global objects and classes that get created. Here is how to hide them from Debug > List Variables.&

//Paste this line at the top of your v2 app
//No more _global in List Variables output
ASSetPropFlags( _global , null , 1 , 1 )

Another side effect is that Debug > List Variables takes far less time. Happy debugging.

Cheers,

ted ;)

2 Responses to “Remove _global from Debug > List Variables”

  1. # Blogger darron

    NOTE: If you want to use ASSetPropFlags in your AS2 classes, you'll have to prefix it with "_global" otherwise you'll get a compilation, since ASSetPropFlags doesn't exist as a method in your class.

    Of course, none of this would be necessary if we had a *really* good debugger.  

  2. # Anonymous voyance

    I like your website!  

Post a Comment

Where to find me:

Ted on Twitter - @AdobeTed
Ted on Adobe Groups
Ted on LinkedIn
Ted on Facebook
Ted at Adobe


Latest

Lists

Links

Jobs

Flex Jobs
city, state, zip

Archives