|
to prevent somebody to play your swf on some other domain, place this code in _root:
onFrame (2) { thisURL=this._url.toLowerCase(); if (thisURL.substr(0,4)=="http") { if (thisURL.indexOf("YourDomain.com")<0) { prevFrameAndPlay(); } } }
"YourDomain".com replace with your domain name.
so, how it works ?
simply, movie will trace url from which is started and if it is http or https it will check if it is not your domain, it will constantly goes to previous frame. but it will play locally in computer.
if you want to play movie only on internet and only on your domain, do this:
onFrame (2) { thisURL=this._url.toLowerCase(); if (thisURL.indexOf("YourDomain.com")<0) { prevFrameAndPlay(); } }
|