Something is amiss, still, in my application. Your example .fla works, in that it will create a 'div' from scratch- every time it is run, even if there is no dataFile.xml at first (or if it is empty)- and works perfectly.
As you can imagine, the app I'm making is more complex than the example. In theory I guess that shouldn't matter, but what happens when I move your example code into my app is really confounding me right now.
The code to write data will not work (because the div is never created)- unless I actually enter a text editor, and then save from there. Once I do that- a div like the one below is created within dataFile.xml- and all is well in the world.
| Code: : |
(Flashblocks)
(div id="myText")
(pre)TEXT2(/pre)
(/div)
(/Flashblocks)
|
The problem is, unless I use an editor to edit the text field first- that div never gets created. Once it's there though, I can edit to my heart's content with your code sample- and every update is saved. But basically, the app will not write an update unless the div already exists!
Why your example will successfully write the div to the file every time, but refuse to write anything in my app unless the div is created by an editor process (or manually entered) is driving me crazy.... aaaaaagghh! :O