4 Replies Latest reply on Nov 14, 2006 11:20 AM by ntsiii

    XML Binding to UI components

    __Voodoo__Child__ Level 1
      Can I bind UI component properties to XML data that is read from an HTTPService? For example, I'd like to bind the text property of a TextInput to the Node tag of myXML.

      (not actual source)
      [Bindable]
      private var myXML:XML = the event.result from a e4x formatted HTTPService call;

      // This does not work
      BindingUtils.bindProperty(myXML, "Node", myTextInput, "text");

      <mx:TextInput id="myTextInput">


      I know this possible to do with <mx:XML> and <mx:Model>, but this wont suffice because these tags must know the XML source at compile time (right?).

      Thanks for any help.

      EDIT:

      Nevermind :) this works fine!