Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

save and load game

Participant ,
Jan 15, 2013 Jan 15, 2013

hi , how are you  guys ? i hope you all fine ..

i have just a question about the swf file ..         

i mean that , i.ve done game in flash but there is a little problem which is the (load game) and (save game)

commands  , because when the player close the swf file the game will restart

this my question only and i hope you guys can help in this problem

thank you

TOPICS
ActionScript
732
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 15, 2013 Jan 15, 2013

If you want a game to be able to be saved so that opening it later can resume play, then you need to store the data relevant to the game somewhere so that it can be retrieved when called for.  If you are creating an online game, then your options are to either save the game data to a server-side file usng server-side script to write the data file, or save it to a server-side database, or save it as a SharedObject (the Flash version of a cookie).

If you are making an AIR application, then you can

...
Translate
LEGEND ,
Jan 15, 2013 Jan 15, 2013

If you want a game to be able to be saved so that opening it later can resume play, then you need to store the data relevant to the game somewhere so that it can be retrieved when called for.  If you are creating an online game, then your options are to either save the game data to a server-side file usng server-side script to write the data file, or save it to a server-side database, or save it as a SharedObject (the Flash version of a cookie).

If you are making an AIR application, then you can have data stored in the ApplicationStorageDirectory or some other designated locale other than the ApplicationDirectory.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 15, 2013 Jan 15, 2013
LATEST

thank you a lot dr.murphy  , can you give me any refrence or book to do that with

flash , because i,ve never done that before , i mean linking flash with data base ..

ohh , only this "AIR" is it exe file ?  

thank you for your replay

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines