A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: XML Output to File

  1. #1
    Junior Member
    Join Date
    Jul 2003
    Location
    Australia
    Posts
    5

    XML Output to File

    Can anyone help me with appending childnodes to an xml file? I have a basic login kinda thing working by authenticating to an XML file but I'm now faced with the task of being able to add new users. I need to append a childnode with attributes, to the loaded XML file. This is not for a web-application, the XML file is local.

    Thanks,

    Mercury.
    -=Mercury082=-

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Flash out of the box cannot save files locally.

    However the flash XML has an appendChild routine which will allow you to add nodes to an XML file.

    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  3. #3
    Junior Member
    Join Date
    Jul 2003
    Location
    Australia
    Posts
    5

    Save XML!!!

    Yeah, I have had a look at the appendChild routine however it doesnt seem to save it to the actual file, which is what I really need. Is there anyway of getting around this problem? This is not for a web based application so it's not practical to use cgi or php etc. Also cross platform compatability is important for this project.

    Thanks

    Mercury
    Last edited by Mercury082; 07-21-2003 at 10:33 PM.
    -=Mercury082=-

  4. #4
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Flash can't save to the local machine, especially as a standalone app. The only workaround is using external flash tools.

    One options is to used the storedObjects in flashMX. This is an amount of space (i think around 100k) which can be used by flash applications to save to the local machine.
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  5. #5
    poet and narcisist argonauta's Avatar
    Join Date
    Nov 2001
    Location
    Under the bed
    Posts
    2,080
    i think swfstudio might let ou save files to disc
    my blog: blog.innocuo
    Sponsored by your mom.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center