|
|
Summary Trying to locate url of swf file. Originally I found references for flash 6 or 8 which used this method below _root._url or _url However for actionscript 3 that no longer works Instead use loaderInfo.loaderURL or loaderInfo.url I am not sure what the difference is between those 2 method calls, even looking up the reference in livedocs did not help. loaderinfo reference Code (Cut and paste the code below into your 'actions' window, Window -> Actions. To execute, Control -> Test Movie) Retrieving the domain name of the swf file is a popular method as a security check. Confirming that this swf file is residing on your website. i.e. if ((this.loaderInfo.url).indexOf("flashscript.ca") == -1) trace("SWF file NOT located in domain flashscript.ca"); else trace("SWF file IS located in domain flashscript.ca"); |
||
| |||||||||||||||||||||