Hi. i wrote an swf application using action script 2, i want to be able to know the file name of the current running swf file.
i know that in php i have __FILE__ to get current running php file, is there something like that in flash?
Hi. i wrote an swf application using action script 2, i want to be able to know the file name of the current running swf file.
i know that in php i have __FILE__ to get current running php file, is there something like that in flash?
Have a look at the stage.loaderInfo.url variable for AS3 and this._url or _root._url (if you're not in root already) for AS2