Saving XML in AS3.0
I´m doing a program in flash with as3.0 that loads a XML file in the begining and put it in to a var, edit some data in it and in the end i 开发者_开发百科need that the program overwrite the original file.
Saving Files on a local machine is only possible within an AIR Application.
Keywords:
File, FileStream, writeUTF()
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/filesystem/FileStream.html
If you write a Flash / Flex Application that should run within the browser you have to send your xml to a server that saves it. Probably you choose some PHP Server Script to do so.
Keywords:
fwrite, file_put_contents
http://www.php.net/manual/en/function.fwrite.php
http://php.net/manual/en/function.file-put-contents.php
精彩评论