StickAvalancheman
01-10-2006, 09:39 PM
Just in case...
Well here's what I've been using. Just stick the code on the first frame of your game or movie. It might come in handy if you dont want your work to be stolen by ebaumsworld dot com.
stop();
//Block Right Clicking
Stage.showMenu= false;
this_url = _root._url;
// list of blocked urls.
bad_urls = new Array("www.ebaumsworld.com", "ebaumsworld.com");
// Take out the http:// (http:///), and get the domain
this_url = this_url.substr(7, this_url.length);
this_url = this_url.substr(0, this_url.indexOf("/"));
var found_bad_url = false;
//Check to see if the URL is one of the bad ones
for (var i = 0; i<bad_urls.length; i++) {
if (this_url == bad_urls[i]) {
found_bad_url = true;
break;
}
}
//Change the frame if the url is the bad url
if (found_bad_url == true) {
gotoAndStop("bad");
}
Then make a frame with what you want it to show if its hosted on ebaums world (maybe goatse?) and call the frame "bad". That's it!
Well here's what I've been using. Just stick the code on the first frame of your game or movie. It might come in handy if you dont want your work to be stolen by ebaumsworld dot com.
stop();
//Block Right Clicking
Stage.showMenu= false;
this_url = _root._url;
// list of blocked urls.
bad_urls = new Array("www.ebaumsworld.com", "ebaumsworld.com");
// Take out the http:// (http:///), and get the domain
this_url = this_url.substr(7, this_url.length);
this_url = this_url.substr(0, this_url.indexOf("/"));
var found_bad_url = false;
//Check to see if the URL is one of the bad ones
for (var i = 0; i<bad_urls.length; i++) {
if (this_url == bad_urls[i]) {
found_bad_url = true;
break;
}
}
//Change the frame if the url is the bad url
if (found_bad_url == true) {
gotoAndStop("bad");
}
Then make a frame with what you want it to show if its hosted on ebaums world (maybe goatse?) and call the frame "bad". That's it!