Revision: 13983
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 14, 2009 11:34 by pfeisinger
Initial Code
private function applicationIsOnline(stage : Object) : Boolean { var returnVal : Boolean = new Boolean(false); if(stage.loaderInfo.url.indexOf("file:") != -1) { trace("Computer works lokal"); contentURL= ""; returnVal = false; } else { trace("Computer works online"); if(stage.loaderInfo.parameters.contentURL != null) { contentURL = stage.loaderInfo.parameters.serverURL; } else { contentURL = ""; } returnVal = true; } return returnVal; }
Initial URL
Initial Description
Method finds out if application runs online or offline and fills the variable contentURL with a flashvars parameter.
Initial Title
Locate application and generate a string with a online sourcefolder url
Initial Tags
Initial Language
ActionScript 3