A Flash Developer Resource Site

Results 1 to 13 of 13

Thread: Important! Please help me.

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    25

    Important! Please help me.

    Hi. I made a few games on flash mx and I want to sell them on the internet. I also want the costumers to be able to try the game before they play the game. I thought about it and I want to make a demo version for free. I want it to be for a period of time and them they have to purchase it to play it more. So what I'm saying is that I want to do that from the time they download the game they have 30 days until it will not let them enter to the game again. How can I do that? Does some body know a way to do that? Please tell me! You can also write to my email at dorkauf@gmail.com or supportdknh@gmail.com

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    use the Date object on frame#1 of the movie,
    compare todays date with the expiry date and
    send the user to the appropriate frame -
    Code:
    todayDate = new Date();
    expireDate = new Date(2007,2,17); // 17th March 2007
    
    if(expireDate < todayDate){
    trace("trial has expired");
    } else {
    trace("play the game");
    }
    hth

  3. #3
    Junior Member
    Join Date
    Jan 2007
    Posts
    25
    Thank you for you feedback.
    But..Doesn't the code you gave me say that the expire date is on a specific date? I want it to be exactly 30 days after they run it or download it..whatever.

    I also wanted to know how to save the data on the user's computer because I want it to expire in 30 days..

    Help will be appreciated!!
    Thanks in advance!!!!!

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    to store on the users HD you'll need a Flash "cookie", a sharedObject

    http://www.adobe.com/cfusion/knowled...fm?id=tn_16194

    the logic would be -
    check if it's the first visit
    if so store the expiry date
    if not, check the stored date against the current date
    if OK play the game
    if expired gotoAndStop("expired_frame");

    hth

  5. #5
    Junior Member
    Join Date
    Jan 2007
    Posts
    25
    Thanks for the prompt reply.
    Do you know the code I can use to do that?
    I am a noob at this stuff.
    THANK YOU!

  6. #6
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176

  7. #7
    Junior Member
    Join Date
    Jan 2007
    Posts
    25
    Yes, it did help.
    But I only noticed one thing.
    When the user downloads my demo, where will it save the shared object
    file because they don't play it on the website.
    Oh, and also, do you know what the script is for 10 days and then ir is the end of the demo, or is it the same script, just change the 30 to a 10.
    Thank you in advance!!

  8. #8
    in need of help for a game can anyone help?

    i need help with my library and how to drag and drop on to my timeline in position i want it but by acitonscript the delete movie clip create empty movie clip you know

    for example i wanna buy a t-shirt so i click my buy button now i want that item you just clicked to be placed on the main timeline in position i choose on layer "items" frame "7"

    anyone help??

    Hopies
    The one that smiles when things go wrong, Has thought of someone to blame it on

  9. #9
    Junior Member
    Join Date
    Jan 2007
    Posts
    25
    Nevermind, I figured it out!!!
    THANKS!!!!!!!!!!!!!!!!!!!!!!!!!
    YOU ARE THE BEST!

  10. #10
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    dorkauf ..

    hopies .. DON'T hijack threads..if you really need the attention, start a NEW thread

  11. #11
    Quote Originally Posted by a_modified_dog
    dorkauf ..

    hopies .. DON'T hijack threads..if you really need the attention, start a NEW thread
    i asked for help you gave i asked again all you gave was its BASIC stuff

    so i asked here also didnt wanna get a comment like stop posting multiple threads

    Hopies
    The one that smiles when things go wrong, Has thought of someone to blame it on

  12. #12
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    I might be able to help you in a NEW thread, but to be brutally
    honest, I can hardly understand what it is you are trying to do

    try opening a new fla file, and make a simple example of what
    you are trying to achieve, post it to the forum. It's Sunday and
    rather than put together a test file for you ( which you'll probably
    say is all wrong for what you need ) I'd rather chill and answer a
    few well constructed (no chat-speak rubbish) questions.

    ps..adding actions to a button is BASIC stuff
    you would find that answer a lot quicker by opening the Help files

  13. #13
    i make new thread then

    Hopies
    The one that smiles when things go wrong, Has thought of someone to blame it on

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