Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
56
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 != "" && domain != "armorgames.com" && domain != "someOtherDomain.com" && domain != "etc.com" ) {
  12.     _root.stop();
  13. } else {
  14.     _root.play();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement