Return to Snippet

Revision: 25738
at April 7, 2010 13:32 by LeeProbert


Updated Code
/*
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);

Revision: 25737
at April 7, 2010 13:25 by LeeProbert


Initial Code
var Flex3Application:String = URLUtil.getServerName(Application.application.loaderInfo.url);

var Flex4Application:String = URLUtil.getServerName(FlexGlobals.topLevelApplication.loaderInfo.url);

Initial URL


Initial Description
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.

Initial Title
Get the server/domain name that your SWF is running on

Initial Tags


Initial Language
ActionScript 3