I dont know much about creating cookies and retrieving inforation and var's from cookies. So i was just wondering if its possible to set an entire array to a cookie.
And how do i retrieve the array and place the array in my actionscript.
Im trying to create a save functoin that saves certian arrays and varibles to one cookie and then when the user starts the swf agian it reconises that the user has been on before and loads the array and the other var's to the swf.
If i cant do this i dont know what i can do
I think i saw a tut somewhere a while back but i forgot where.
You are right about seeing a tutorial about saving and reloading at a later date. But if I remember correctly it is not through cookies... I think it is by saving a .swf file with the varibles to the users computer. I will try and find were this tut was...
Sorry this didn't help much I'll try to be quick with a search...
Christopher Michael
now there are a couple of caveats to this;
1. you strings cannot contain a comma (i think)
2. when the loaded string is split it will split it into a one dimensional array not a two dimensional array so you might have to add some code to convert it.
------------------------------------------------------------
of course if your using mx then you could do it much easier using shared objects; http://www.koyote.dk/index.php?sid=36
courtesy of the learned edmack
hope this helps
BlinkOk
Last edited by BlinkOk; 04-25-2003 at 01:58 AM.
Graphics Attract, Motion Engages, Gameplay Addicts
XP Pro | P4 2.8Ghz | 2Gb | 80Gb,40Gb | 128Mb DDR ATI Radeon 9800 Pro
i would say that's the way to go; however you should know that unless you assign each indivual element of the array then you are assigning pointers and when you change a value in the new array you will be changing a value in the old arrays as well.
Graphics Attract, Motion Engages, Gameplay Addicts
XP Pro | P4 2.8Ghz | 2Gb | 80Gb,40Gb | 128Mb DDR ATI Radeon 9800 Pro
There's no need to do that. The attached fla will store a 2D array and retrieve it as a 2D array using sharedObjects.
The prototype code is by flashguru (as far as I can remember).