User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: Sitelock (get object)

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Evilized79's Avatar
    Join Date
    Nov 2009
    Location
    Netherlands
    Posts
    890
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Sitelock (get object)

    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

  2. #2
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Re: Sitelock (get object)

    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"

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Evilized79's Avatar
    Join Date
    Nov 2009
    Location
    Netherlands
    Posts
    890
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Sitelock (get object)

    Thanks for the post

    your the best

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jul 2010
    Location
    Belgium
    Posts
    246
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Sitelock (get object)

    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?

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sitelock (get object)

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=184788

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jul 2010
    Location
    Belgium
    Posts
    246
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Sitelock (get object)

    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 .

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sitelock (get object)

    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?

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Sitelock (get object)

    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.

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sitelock (get object)

    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

  10. #10
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Sitelock (get object)

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

Page 1 of 2 1 2 LastLast

Similar Threads

  1. [Beta] Flash SiteLock
    By Pharanygitis in forum Beta Flash Extensions
    Replies: 5
    Last Post: 9th July 2013, 06:00 PM
  2. Sitelock
    By bourroune in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th May 2013, 05:34 PM
  3. contourner un sitelock
    By volgot in forum SWF/Flash Export Module Version 2.0
    Replies: 9
    Last Post: 6th January 2013, 08:13 AM
  4. Can't add sitelock to non-Mochi games
    By JoKa in forum SWF/Flash Export Module Version 2.0
    Replies: 9
    Last Post: 27th May 2011, 01:31 PM
  5. Help with sitelock!
    By Evilized79 in forum SWF/Flash Export Module Version 2.0
    Replies: 21
    Last Post: 13th October 2010, 06:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •