4 Replies Latest reply on Aug 11, 2010 10:46 AM by Balakrishnan V

    how to bind to local xml file?

    Mark Embrey Level 1

      I have a local XML file referenced in my Declarations tag:

      <fx:Declarations>
      <fx:XML id="myXMLdata" source="assets/names.xml" />
      </fx:Declarations>

       

      I previously had a proof of concept version working with the XML defined in my MXML with a bindable tag:

       

      [Bindable]
      public var names : XML= <root>
      etc., etc.

       

      I need to place the xml in a separate local file so that changes to the file will persist.


      How do I do this and bind to it?

      thanks

       

      MCE