Skip to main content
Participant
May 23, 2012
Question

How can I export and import a score in flash?

  • May 23, 2012
  • 1 reply
  • 951 views

I run a "Classic Game Show" night at a bar, and have created scoreboards in flash for games like the Family Feud, Wheel of Fortune, and others. Each team gets to compete in a few different games. This is all computer based, not on the web (so no PHP assistance please).


All I want to know is how to export a total score to a .txt or sharedobject file, (I'll set it up so when a keycode is entered, it exports the score value), and then when I switch games, I can import that score value back without having to type it myself on the scoreboard


Please help!

This topic has been closed for replies.

1 reply

Inspiring
May 23, 2012

ShareObject will solve your problem.

Once check the below link.... I hope it will be useful for you...

http://www.flepstudio.org/forum/tutorials/418-sharedobject-actionscript-3-0-a.html

Participant
May 23, 2012

does it matter that the different games are separate swf files? I have them in the same folder.

And thanks for the help

esdebon
Inspiring
May 24, 2012

if is all computer based you can compile an AIR proyect

With air you can create .txt or .dat or any simple text file with this:

(say iPhone, but work in a PC, Mac, GNU/Linux)

http://www.adobe.com/devnet/flash/articles/saving_state_air_apps.html