A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Two Question on Altering File Content

  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    79

    Post Two Question on Altering File Content

    Hi all ,
    I wanted to know how to change a node value of an .xml file using actionscript. Thats my first question.

    My second Question: how can I write to a text file using AS 3.0?

    Thanks

    Q

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Here is an example. use replace().
    var myXML:XML=new XML("<text><item>item 1</item></text>");
    myXML.replace(0,<item>item 2</item>);
    trace(myXML.item);
    - The right of the People to create Flash movies shall not be infringed. -

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