Are you testing local or online?


/ Published in: ActionScript
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. AS3
  2. if(stage.loaderInfo.url.indexOf("file:") != -1)
  3. {
  4. trace("Lokal");
  5. }else{
  6. trace("Server");
  7. }
  8.  
  9. AS2
  10. if(_url.indexOf("file") != -1){
  11. trace("Lokal");
  12. }else{
  13. trace("Server");
  14. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.