Domain Redirection AS2 [tuff-studio]


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



Copy this code and paste it in your HTML
  1. var checkURL:String = (new LocalConnection()).domain();//stage.loaderInfo.url;
  2. if(checkURL=="tuff-studio.com" || checkURL=="localhost")
  3. {
  4. }
  5. else
  6. {
  7. _root.createTextField("err_txt", 1, 0, 0, Stage.width, Stage.height);
  8. err_txt.multiline = true;
  9. err_txt.textColor = 0xFF0000;
  10. err_txt.text = "This file is stolen from www.tuff-studio.com";
  11. getURL("http://www.tuff-studio.com","_self");
  12. };

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.