SKITSANOS FOR RIA

Skitsanos

Thursday, November 22, 2007

User Firebug for your ActionScript tracing

If you develop you webware application with ActionScript for sure you using trace() command time to time. In my case trace() wasn't good enough, plus i want to see my SWF communications in more advanced level. I use Firebug to to debug my webware, and accessing Firebug functionality from ActionScript is simple enough:

package com.skitsanos.utils {
import flash.external.ExternalInterface;

public class FirebugConsole {

public function FirebugConsole() {

}

public function write(msg:String):void
{
ExternalInterface.call("eval","console.info('"+msg+"')");
}
}
}

0 comments:

Webware development dedicated blog by Skitsanos R&D Labs. ASP.NET, XML, RIA, Adobe Flex, ActionScript 3, AIR, AJAX, Web 2.0, Backbase, CGI development with RealBasic and other web development issues.
News
Downloads