Recent News

very useful flash / Air / as3 trace and debug tool

Posted by sortofme on November 19th, 2008


A new tool I love using, first it is in AIR, secondly immensely useful, is from Arthropod this little AIR application that let's you trace debug messages even from an embedded swf.

I never was a fan of Adobe's debug flash player, as it sometimes did cause weird behavior, especially after upgrading to FF3. So this little Air app gives you a wide range of functions to organise your debug traces well, including coloring, clearing, even snapshots of current Application, as I said even for in HTML embedded swfs or Air apps.
give it a go:

simply add the class to your source, import and use it:

Actionscript:
  1. import com.carlcalderon.arthropod.Debug;
  2.  
  3. //later:
  4. Debug.log(this+" my debug message" )

there are many other ways to trace, read the documentation for more info

Timer

Posted by sortofme on October 16th, 2008
Actionscript:
  1. // We need to import the utils package
  2. import flash.utils.*;
  3.  
  4. // Create a new Timer object with a delay of 500 ms
  5. var myTimer:Timer = new Timer(500);
  6. myTimer.addEventListener( TimerEvent.TIMER, timedFunction);
  7.  
  8. // Start the timer
  9. myTimer.start();
  10.  
  11. // Function will be called every 500 milliseconds
  12. function timedFunction(eventArgs:TimerEvent){
  13. trace(”Timer fired ” + myTimer.currentCount + ” times.”);
  14. }

Recent Comments | Recent Posts


designed and coded by: noesi
bottom