Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Save/Load information using cookies
Author: fwe4life
Have you ever made a huge flash game and knew that there was no way a person could beat it in one day? Well, now you can save and load information via cookies to your hard drive. The files generated are .sol files, and it's block text, there is no way someone can alter it to change his score or etc. I'm going to show you how to do this...
Start up flash and make a button, let this be the "Save" button. Put this in it's actionscript panel:
on (release)
{
_root.pos = sharedobject.getLocal("COOKIE NAME");
_root.pos.data.guy = _root.guy._x;
_root.pos.data.guy = _root.guy._y;
_root.pos.data.NAME = _root.NAME;
}
| » Level Advanced |
|
|
Added: : 2004-06-04
Rating: 9.22 Votes: 48
Hits: 1212
|
| » Author |
|
fwe4life
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (42 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|