Trouble is with the appendFile in a loop, there's no return whether
it's successful or not, so I'm going on to the next append while the
previous one is still running.

Someone from the director list gave me this:

you could just save the xml as a couple of temporary files that are
all under 50 k, e.g. as chunk1.txt, chunk2.txt, ..., chunkn.txt, and
then in second step, use
  mdm.System.execStdOut("copy chunk1.txt +chunk3.txt ... +chunkn.txt new.xml")
to assemble the chunks to one large xml-file. mdm.System.execStdOut()
doesn't return before the command was really executed, so no problems
here. afterwards you can use
  mdm.System.execStdOut("del chunk*.txt")
to delete all temporary chunks at once.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to