/ Published in: ActionScript
When i work local, i use other variables or call other functions.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
AS3 if(stage.loaderInfo.url.indexOf("file:") != -1) { trace("Lokal"); }else{ trace("Server"); } AS2 if(_url.indexOf("file") != -1){ trace("Lokal"); }else{ trace("Server"); }