checking your actionscript version

Here is a script to check which version of actionscript your swf is


var request:URLRequest=new URLRequest("project.swf");
var loader:Loader=new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
loader.load(request);
function onComplete(evt:Event):void {
    evt.target.removeEventListener(Event.COMPLETE,onComplete);
    trace("actionscript version - "+evt.target.actionScriptVersion);
}

Leave a Reply