User Tag List

Results 1 to 8 of 8

Thread: Problem with Site-Lock

  1. #1
    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)

    Problem with Site-Lock

    Just uploaded a game to Kongregate. I want to lock it to their site, so I have a string "www.kongregate.com".

    If string <> GetDomain$( "Flash® Player" )
    --> end app

    Now the game is in the preview section and ends immediately. I could swear the same code worked for another game which I uploaded without a lock first and updated with a locked version after it was published.

    I just don't understand what's the problem, is there a difference between their preview section and a published game?

    In both cases it seems to be hosted on their website.

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

    Re: Problem with Site-Lock

    The problem might come from the "www". I can't remember exactly what the problem was, but I have set it up that way and it seems to work (pseudo-code):

    If GetDomain$( "Flash® Player" ) == authorized-domain.com
    Jump to frame Title

    If GetDomain$( "Flash® Player" ) == www.authorized-domain.com
    Jump to frame Title

    If timer is greater than 00"10
    End Application

  3. #3
    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: Problem with Site-Lock

    Interesting approach, I modified my code and tested for www.kongregate.com as well as kongregate.com - unfortunately it makes no difference.

    Instead of ending the app I retrieved GetDomain$. It says chat.kongregate.com

    Shouldn't this be ok? Is the subdomain a problem?

    I use "Compare two general values", guess there's no other way? (I remember in the past, some objects didn't like this, but I see no other way to compare)

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

    Re: Problem with Site-Lock

    Try authorizing chat.kongregate.com too. I fear that the Flash Player object is sensitive to subdomains.

  5. #5
    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: Problem with Site-Lock

    You're right. Now I changed the url string to kongregate.com and compare with Right$(GetDomain$,Len(Url String)).

    One line to check them all

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

    Re: Problem with Site-Lock

    Hey, very clever!

  7. #7
    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: Problem with Site-Lock

    Try this widget http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=184788#Post1847 88

  8. #8
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with Site-Lock

    This problem could have been solved by setting an alterable string to the domain to see what it was..
    Working as fast as I can on Fusion 3

Similar Threads

  1. Site-lock?
    By EdibleWare in forum SWF/Flash Export Module Version 2.0
    Replies: 5
    Last Post: 14th January 2013, 08:12 PM
  2. how switch on the led (caps lock, scroll lock, num lock) in the keyboard??
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 24th April 2012, 12:09 AM
  3. site-lock
    By jer in forum SWF/Flash Export Module Version 2.0
    Replies: 8
    Last Post: 19th June 2010, 03:27 PM
  4. Site Lock
    By Crls in forum SWF/Flash Export Module Version 2.0
    Replies: 6
    Last Post: 3rd May 2010, 07:46 AM
  5. Key and Lock Example
    By Stephen in forum File Archive
    Replies: 0
    Last Post: 10th May 2009, 10:33 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
  •