2 Replies Latest reply on Nov 14, 2006 11:00 AM by ntsiii

    mx:XML source binding at runtime

      I'm trying to bind data to mx:XML components source attribute at runtime, how should i do it. I need to read data to xml source tag from text input or from script . I tried it like this with poor results..

      <mx:XML format="e4x" id="myXML" source="{myXmlfile}"/>

      public var myXmlfile:String ="databaseFile.xml";

      So, How to read data to source tag at runtime ??