You are currently browsing the Jacksmack Flash Games blog archives for August, 2010.

  • Pages

    • Contact Us
    • Sign up for the Jacksmack.com Newsletter
  • Archives

  • June 2011
  • February 2011
  • August 2010
  • July 2010
  • June 2010
  • March 2010
  • January 2010
  • September 2009
  • Categories

    • AS3 (1)
    • Flash (3)
    • Flash Development (1)
    • Flash Game Reviews (2)
    • Flash Games (4)
    • General (2)
    • Jacksmack News (1)
    • Web Design (1)
  • Archive for August, 2010

    Simple Flash Trace Debug Mode

    Friday, August 13th, 2010

    I thought I would share a little snippet I use from time to time to allow me to turn on and off the trace function in my Flash work.

    Basically instead of typing “trace(‘hello world’);” you type “debug(‘hello world’);”.

    Then once you are done developing the swf you just change the debugMode variable to false and turn off all your trace functions to save a good bit of processing in the final product. It’s quite handy.

    Here is the code I use:

    var debugMode:Boolean = true;

    function debug(STRING:String){
         if(debugMode){
              trace(STRING);
         }
    }

    Posted in AS3 | Comments Off

    Action | Adventure | Board | Casino | Dress Up | Fighting | Customize | Puzzle | Shooting | Sports | Other
    Developers: Submit a Game

    © 2012 - Jacksmack.com