PDA

View Full Version : Save Progress


Volvo2010
01-21-2010, 10:17 PM
Hi, Im new to AS and hoping someone can help me out.
Im doing a movie with X number of chapters, but the viewer has to view the movie in order. However the movie is quite large so I want the users to save their progress.

My idea is to have a "continue" menu where the previusly seen chapters will be available. I think I can pull it off by making buttons apear with variables, but the problem is I don't know how to save the variable value, so the user does'nt have to start from the begining when he leaves the application.

Any help is apreaciated

gangstareef
01-22-2010, 10:03 AM
What you need is the SharedObject Class, aka a flash cookie.

Here's an article (http://www.republicofcode.com/tutorials/flash/as3sharedobject/) to get you started. You can find more help via google if you need it.