Decision:
- Install Firebug Add-on in Firefox
- Create a log function in AS3.
The code:
import flash.external.ExternalInterface;
function log(msg:String):void {
ExternalInterface.call("console.log", msg);
}
The above function calls the javascript console.log function. When you execute the following command from your movie clip:
log("I'm testing my movieclip");
You will see this message in the Firebug console.
source
share