checking your actionscript version

//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);
}

By | 2009-11-07T05:29:40+00:00 November 7th, 2009|Actionscript 3.0|0 Comments

About the Author:

Leave A Comment