|
|
#1 (permalink) |
|
Üyelik Tarihi: 02.08.2001
Yer: istanbul
Yaş: 38
Mesaj: 1,544
|
basit actionscript koruma
were-here.com'dan alıntı ufak bir script; bununla flash dosyanın sadece sizin tanımladığınız serverdan çalışmasını sağlayabilirsiniz. Kod:
/* acceptedURL is a string value that should point to the .SWF you wish to secure, not the .HTML file that it is embedded in Example function call: secure("http://myserver/myFile.SWF"); */ function secure(acceptedURL) { _root.stop(); currentURL = _root._url; if(currentURL != acceptedURL) { msg = "You are attempting to run this file from an unauthorized location. Please run from " + acceptedURL + " and try again."; getURL("JavaScript:alert('"+msg+"')") _root.unloadMovie(); } else { _root.play(); } } |
|
|
|
| Sponsorlu Bağlantılar | |
|
Zoque.Forum
Reklam
|
|
Zoque'a hoşgeldiniz!