A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Allow one try a day

  1. #1
    Junior Member
    Join Date
    Sep 2003

    Allow one try a day

    Hi there,

    Can anyone help me on this one here.

    Its a small simple game on website.
    I have a movie with 3 doors you can click.
    1 right and 2 wrongs. (click the right one and win a prize!)

    I wanna limit the user to only have one try a day.

    Can anyone help me how to, lets say have the flash movie jump to a certain scene in the movie if you already tried the game once during the day?

    Kind regards

  2. #2
    Senior Member firoz_dj's Avatar
    Join Date
    Oct 2001
    Mumbai(Bombay), India
    It cant be done only with flash. it requires back end programmin.
    it requires asp or php programming with flash action script communication. it provide communication setup between server and flash movie.
    try to do something, you can do anything

  3. #3
    Space Monkey daarboven's Avatar
    Join Date
    Sep 2001
    in the basement boiling soap...
    indeed can it be done with a localSharedObject and the date Object-both flash-standalone.
    first:check for your localSharedObject on the users computer. if none exists, prompt him with a form for new username( and passport, if you wish to have one). write this info to the localSharedObject, along with a variable containing the result of a button action on any of the doors(false, if the user registers, of course).
    second:if the user has identified with his given information, create a date object. write the date to the l.S.O. as soon as one door is tried. ever when your file is opened, check for your l.S.O. to exist.
    if it exists, prompt user/pass input,check for the saved date and compare with the current date. if the difference is > your desired pause, let him have another try and update your local shared object.
    drawback: if the user deletes the l.S.O. manually, he can create another account- and try with this one.
    Last edited by daarboven; 04-21-2005 at 05:19 PM.
    :::i am jacks complete lack of surprise:::

Posting Permissions

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

Click Here to Expand Forum to Full Width

HTML5 Development Center