Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //sitelock code if needed
- urlStart = _url.indexOf("://")+3;
- urlEnd = _url.indexOf("/", urlStart);
- domain = _url.substring(urlStart, urlEnd);
- LastDot = domain.lastIndexOf(".")-1;
- pfixEnd = domain.lastIndexOf(".", LastDot)+1;
- domain = domain.substring(pfixEnd, domain.length);
- if (domain == "armorgames.com" || domain == "someOtherDomain.com" || domain == "etc.com" ) {
- //domain is ok
- _root.play();
- } else {
- //domain NOT ok, stop game
- _root.stop();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement