Groups | Blog | Home
all groups > flash actionscript > january 2005 >

flash actionscript : "Persistent Data"



ufitzi
1/25/2005 10:24:53 PM
Hello and thanks in advance!!

Here's the sit'ation..
- I have a MC that is placed on the stage via _root.attachMovie()
- It is linked to a class, 'Notebook'
- Notebook has methods to get/set database entries
-Once the user is finished, they close the Notebook, and I use
'removeMovieClip(this)' to cleanup
-The user has access to the Notebook at all times, so when they open it again,
I use the same steps as above.
- The problem is that even after a SUCCESSFULL database update, the new
information is not displayed inthe new instance of the Notebook

???ANy ideas?
I will provide code as neccessary!
-Ben
ufitzi
1/26/2005 3:59:44 PM
It must have something to do with the way removeMovieCLip works.
What remains in memory, data specific to the previous instance?
ufitzi
1/26/2005 7:58:36 PM
Ok, so I did some digging and discovered a solution.
Of course, it was a caching issue.
What I didn't realize was that my browser was caching my processing CF page,
in its' output form.
That is to say, the variables I was returning as a URL string at the bottom of
my CF page were being cached.
THe solution (on this site) was to append a randomized url variable at the end
of the loadVariables page param.
WOW!

AddThis Social Bookmark Button