I needed to recreate my previous post about finding the filename for a swf’s main timeline for AS3. The problem stemmed from the removal of the “_root” and “_url” properties in Actionscript 3.
Here’s the revised code:’
var myFileNameArray:Array = new Array();
// get this SWF's filename
myFileName = this.loaderInfo.url;
myFileNameArray = myFileName.split("/");
num = myFileNameArray.length;
thisSWF = myFileNameArray[num-1];