Posted on 2005-04-28
I have built a flash based content editor and am having an issue with loading the saved files back in.
Here are the steps my application goes through before encountering the problem:
1. I Type text into text fields and add formatting.
2. I then Save the text by sending it as a variable through LoadVars to a .NET script which reads the variables and saves the text as a file.
3. I Generate a tree structure from saved files through another .NET script and then display that tree back in Flash.
This all works fine. The problem I am haveing is after I save over a file and try and load it a second time. If I change the text content and resave the file, I can see the tree refresh and if I look at the file itself, it has updated. But, if I try and save the file a second time, everything works fine up until I try and reload that file. The loadVars variable that that should contain the UPDATED text file, somehow still has the original information inside of it. Once again, I have checked the actual text file, and everything is being saved properly. The problem is when I am loading the file a second time. It will not display the newest version.
Any help would be appreciated.