PDA

View Full Version : Copyright Help



.:.:Lui:.:.
June 29th, 2005, 06:32 AM
i need a copyright script, where the swf checks the current URL if it is on the right site.

example,
Game-*checks URL*-*game is on C:/games/game.swf*-*URL is wrong*-*real URL is http://www.whateverwhatever.com/whateverwhatever/

signifer123
June 29th, 2005, 10:54 AM
I suppose you could use laod text vars and hacve a relitive loadVars ot that file and have it say something like start=safe in it and have flash check ot see if start is safe and if it isn't because they don't ahev that file it will terminate or whatever you want

unchew
June 29th, 2005, 11:04 AM
Yes, make your flash check if a txt file is on the original folder, and if it can't be checked because it isn't there, then tell flash not to start the game.

SeiferTim
June 29th, 2005, 01:57 PM
Smart. I never thought of doing something like that. :evil:

Marz
June 29th, 2005, 11:08 PM
It's smart, but the moment your script fails for some reason or that text file gets missplaced/deleted/ or for some reason can't be loaded correctly (we all know how servers can be) then your game won't play on the correct server then.

There really isn't a way you can uphold this unless you do it this way :

Each script will have it's own checker.. there are commands in php that will allow you to grab the address from the top bar... Something like $_SERVER_ and who knows... I haven't looked at the server variable lists in a while... Make each one of your distributions special for each site you give it out to.. and then include a script that checks and makes sure that the domain is correct with this information.

Templarian
June 29th, 2005, 11:14 PM
Marz dont make it complicated. A text file will be okay, as long as he has checking code, if the file isnt found it will just check again until it finds it.

.:.:Lui:.:.
June 29th, 2005, 11:31 PM
if (_root._url != "URL OF GAME") {
Gotoandplay(2);
}else{
gotoAndPlay("copyright");
}


I hope this one's correct

SeiferTim
June 30th, 2005, 12:40 AM
Marz dont make it complicated. A text file will be okay, as long as he has checking code, if the file isnt found it will just check again until it finds it.

Marz is thourough, not complicated... lol