Archive for May, 2008

Console Logging for Flash (i.e. Tracing in a browser)

Monday, May 26th, 2008

If you want to trace something in flash but you want to load the flash in a browser, you can rework your trace statements to display them with the Firebug extensions.

Instead of using trace() you can use the following:

var flash_variable = ‘testing 123′;
getURL(“javascript: console.log(‘”+ flash_variable +”‘)”,”_self”);

These statements will appear in the Firebug console inside Firefox. For more options, you can view the full capabilities of the console: www.getfirebug.com/console.html

You could create a new function that automatically traces to both sources, but make sure it is not switched on by default, or it could cause problems and expose data to maliscious users. AP

Thanks Flash Gurus

Thursday, May 1st, 2008

Just a quick shoutout to say thanks to a few gun actionscript coders out there who are generously sharing their top-notch work…

JSON for Actionscript 2 update to fix ordering bug of object properties

Thursday, May 1st, 2008

We just made a quick update to the Actionscript 2 JSON class to fix ordering bug of object properties…it’s a small change, but it might save you pulling your hair out at 3am… plus we threw in a fix for crashing out on null properties at no extra charge!

Download the JSON.as class (Actionscript 2)
Download an FLA example implementation (Flash 8, Actionscript 2)

Top