Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //sitelock code if needed
  2. urlStart = _url.indexOf("://")+3;
  3. urlEnd = _url.indexOf("/", urlStart);
  4. domain = _url.substring(urlStart, urlEnd);
  5.  
  6. LastDot = domain.lastIndexOf(".")-1;
  7. pfixEnd = domain.lastIndexOf(".", LastDot)+1;
  8. domain = domain.substring(pfixEnd, domain.length);
  9.  
  10.  
  11. if (domain == "armorgames.com" || domain == "someOtherDomain.com" || domain == "etc.com" ) {
  12. //domain is ok
  13.     _root.play();
  14. } else {
  15. //domain NOT ok, stop game
  16.     _root.stop();
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement