/ Published in: ActionScript 3

In Flex the Application needs to be complete so run this code within your applicationComplete event handler and pass a Boolean into a Data model somewhere so you can use it elsewhere.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* In Flex the Application needs to be complete so run this code within your applicationComplete event handler and pass a Boolean into a Data model somewhere so you can use it elsewhere. */ var Flex3Application:String = URLUtil.getServerName(Application.application.loaderInfo.url); var Flex4Application:String = URLUtil.getServerName(FlexGlobals.topLevelApplication.loaderInfo.url);
Comments
