i was looking over this tutorial , under the movie protection section, and it explains how to make your movie only viewable on newgrounds. it says the actionscript for it is:
checkurl=(new String( _root._url ).slice( 0, 25 ));
if (checkurl=="http://uploads.ungrounded"){
block.gotoAndStop(1);
}else{
block.gotoAndStop(2);
}
but lets say i want to put my animation on my site, brocolli.com (i just made it up, so dont try it). then the tutorial suggests that the AS should be:
checkurl=(new String( _root._url ).slice( 0, 23 ));
if (checkurl=="http://www.brocolli.com"){
block.gotoAndStop(1);
}else{
block.gotoAndStop(2);
}
would it really be that simple? just 'if (checkurl=="http://www.brocolli.com"){' ? what if when you click on the link to open the animation, it opens a different link, lets says i opens brocolli.com/anim2. then would i have to change the part in the AS to 'if (checkurl=="http://www.brocolli.com/anim2"
){' ? if i kept it as just 'if (checkurl=="http://www.brocolli.com"){', would it still work because it just check the first 23 characters becasue i set the number on 'slice' as 23?