I may be a little late to the table on this one but, in my own defense, I’ve downloaded it two or three times in the past but have always been too busy to take a look at it. Well, I took a quick look today and all I can say is ‘Holy Crap, I wish I had made time to look into this earlier.’
According to its project page on OSFlash, Xray (previously known as The Admin Tool) by Blitz Labs, is “a snapshot viewer of the current state of your Flash application without impacting the performance or the file size of your application. Xrayâ€™s true nature is to look into the very guts of the Flash application and disolve the 2d myth you see on screen to a 3D tangible entity you can truly crawl through.”
Doesn’t sound too interesting? You can just use the debugger or trace output to troubleshoot? You’re a fool! This app is the be-all-end-all of debugging tools.
Continue reading “Xray by Blitz Labs: Why wasn't I using this sooner?!?”
The source of this fine nugget is g.wygonik’s flash experiments who found the info in Flex documentation. I’ve visited or pointed people to that page so often I decided to post it here in case anything ever happened to the original. This really is convenient.
- Right-click on the “My Computer” icon on the Windows XP desktop and select Properties to open the “System Properties” dialog
- Click the Advanced tab
- Click the Environment Variables button
- Add the following environment variables to the User Variables (not the System ones)
– HOMEDRIVE with a value of “C:” (no quotes)
– HOMEPATH with a value of “%USERPROFILE%” (again no quotes)
- Navigate to the C:\Documents and Settings\[i]username[/i] folder and create a new text file named “mm.cfg”
- Open the text file and add the following:
- Download and install the Flash program debug player from Adobe.
- Install the version of your choice (ActiveX for IE / Netscape-compatible for FF)
- Open a web page with a SWF in it. If there is now a “Debugger” option in the context-menu, you have the Debug player installed. if not, try again, or try the uninstaller as mentioned above.
- Open Flash and make a new FLA with the following AS in the Actions panel:
trace(“I am alive”); // or some other goofy test thing
- Publish your movie and open the HTML page
- Open Windows Explorer and look in the root of C:\ – there should be a flashlog.txt file (if not, check all the settings above and perhaps log-out and log back in, or reboot and try it again)
- Open the flashlog.txt file and you should see your trace output.