Posted By

FlashJunior on 08/06/08


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

eorwoll
tatuajefalso
damarev


Are you testing local or online?


 / Published in: ActionScript
 

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

  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  

You need to login to post a comment.