I need to get URL of my SWF from ActionScript 3 in order to parse it (cannot use loaderInfo.parameters).
I've tried to use root.loaderInfo.url but it returns null. FlexGlobals.topLevelApplication.url throws an error, because topLevelApplication doesn't exist. Am I missing something?
FlexGlobals.topLevelApplication.urlafter Application initialized? ex) This doesn't work because this code try to get before Application initialized event.public var url:String = FlexGlobals.topLevelApplication.url;