Can someone help me with a small tutorial on how to fill in the event editor when I want to make a sitelock for www.evilized.nl (I know there's a a get domein object in the flash ext.)
can someone give some sort of example of this.
thanks
Can someone help me with a small tutorial on how to fill in the event editor when I want to make a sitelock for www.evilized.nl (I know there's a a get domein object in the flash ext.)
can someone give some sort of example of this.
thanks
You do it with the Flash Player object, not the Get Object. There are several ways to do it, as it depends on the result you wish to achieve. Here are some commented examples to get you started.
Code:// If the domain is "authorized-domain.com" goto Title Screen // Compare the right part of the string to cover all cases: missing www or subdomains • Right$(GetWindowDomain$( "Flash® Player" ), Len( "authorized-domain.com" )) = "authorized-domain.com" - Jump to Frame "Title_Screen" // Otherwise we display an Ad_Screen • Timer is greater than 01"-00 - Jump to Frame "Ad_Screen"Code:// If the domain is different from "authorized-domain.com" we display a warning message // Compare the right part of the string to cover all cases: missing www or subdomains • Right$(GetWindowDomain$( "Flash® Player" ), Len( "authorized-domain.com" )) <> "authorized-domain.com" - "String" : Set alterable string to "This domain is not authorized. Head to authorized-domain.com to play!" // Otherwise goto Title_Screen • Timer is greater than 01"-00 - Jump to Frame "Title_Screen"
Thanks for the post
your the best



Do you mean the Flash Haxx object? I've tried The Flash Player Object, but it only has 3 conditions ('on javascript error', 'is preloader' and 'local connection').
Do you have a working mmf example lying around that I can take a peek at?
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=184788![]()



Thank you for the link. I ended up not using that widget, but it learned me a lot about the examples shown above. I got my first swf sitelocked.


In these sitelocks examples that use Flash Player object, the expression Len is string length right? but wouldn't that mean if another site that wanted to host your SWF was the same string length it would work ok?





No...
Right$(GetWindowDomain$( "Flash® Player" ), Len( "authorized-domain.com" ))
Right("Hello",3) is "llo", the 3 last characters of "Hello".
It checks if the last part of the domian is equal to the domian in the string.




No, you cut out the ending part of the url and compare it with your string. LEN is used to get only the xyz.com part at the end of the url. This way you don't have to care about subdomains like abc.xyz.com
Edit: Looki was faster![]()


Although if your domain was xyz.com and someone registered abcxyz.com, they could use it on that domain!