Return to Snippet

Revision: 7695
at August 6, 2008 14:24 by FlashJunior


Initial Code
AS3
if(stage.loaderInfo.url.indexOf("file:") != -1)
{
	trace("Lokal");
}else{
	trace("Server");
}

AS2
if(_url.indexOf("file") != -1){ 
	trace("Lokal");
}else{
	trace("Server");
}

Initial URL

                                

Initial Description
When i work local, i use other variables or call other functions.

Initial Title
Are you testing local or online?

Initial Tags

                                

Initial Language
ActionScript