A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: [MX04] Not exactly a newbie... but I'm still stumped

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Posts
    9

    [MX04] Not exactly a newbie... but I'm still stumped

    I am interested in having a Flash program on a website that multiple people can use... and the variables in it won't change if you leave or refresh the page. In other words, when you or another person comes back to that program, everything will be the same as when you left it. Is there a way to do this?

  2. #2
    Developing For Dunkets mneil's Avatar
    Join Date
    Mar 2007
    Location
    Lincoln City
    Posts
    2,156
    well, if you need users to have settings that will be safe or you need to save a lot of data like here at FK then you'll need a database like mySQL and some php or asp to write to and read from the database. You'll also most likely require that users logon so that they can get to those settings from any computer.
    http://code.mneilsworld.com/
    Text Effects | Bubbles | Dynamic Resize
    4 weeks , 20 papers ... thats 2 dollars .....Caassshhh!

  3. #3
    Junior Member
    Join Date
    Apr 2007
    Posts
    9
    The only thing I need to stay the same is the flash program - nothing else on the website. the flash program will be the only thing on the website, so nothing outside the flash program matters. I just need you to be able to come back to that program and have everything be the same. Like saving your game.

    And forget I said anything about multiple users. Pretend it was just one person who needed to come back to the saved "game".

  4. #4
    Developing For Dunkets mneil's Avatar
    Join Date
    Mar 2007
    Location
    Lincoln City
    Posts
    2,156
    You've really only got two choices for doing this.

    1) You use sharedObjects and save variables to a users local machine.
    Positives: Easy to use, only requires flash, is secure from other users,doesn't require a login/password type setup
    Negatives: can only be saved to a users machine. Anything saved on one computer cannot be accessed on another computer.

    2)MySQL and another language like PHP or ASP.
    Positives:Access to saved info from any computer, can save large amounts of data, as secure as you make it, use of login/password
    Negativesnly as safe as you make it, will need to make a login/password, takes much more time to setup than sharedObjects
    http://code.mneilsworld.com/
    Text Effects | Bubbles | Dynamic Resize
    4 weeks , 20 papers ... thats 2 dollars .....Caassshhh!

  5. #5
    Junior Member
    Join Date
    Apr 2007
    Posts
    9
    Okay... How exactly o you use the sharedObjects?

  6. #6
    Developing For Dunkets mneil's Avatar
    Join Date
    Mar 2007
    Location
    Lincoln City
    Posts
    2,156
    there's many tutorials. Just look up shared object in the help files. It gives way more info than I could here.
    http://code.mneilsworld.com/
    Text Effects | Bubbles | Dynamic Resize
    4 weeks , 20 papers ... thats 2 dollars .....Caassshhh!

  7. #7
    Junior Member
    Join Date
    Apr 2007
    Posts
    9
    Ok, thanks for you help. It's appreciated.

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