This content has been marked as final. Show 4 replies
Hey, I'm having problems with this...
... when I bind a UI element to an XML object, the UI object displays the xml node content just fine, however, the XML object is not updated. Any ideas?
Originally posted by: __Voodoo__Child__
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?).
Did you find any way to bind this <mx:XML> at the runtime ? i would like to bind <mx:XML source= "" > at runtime but it seems to be impossible ?
Without seeing a little code, I'm not exactly sure what may be wrong, but one thing to consider is make sure the binding is 'both' ways. For example, bind the value of the XML node to the TextInput's "text" property and bind the TextInput's "text" property to the desired XML node. The quickstart mentioned below has an example of this.
@iquaaani, I think this quick start will answer your question. Instead of using mx:Model, as in the example, just use mx:XML. See the section about using AS to do your bindings.
"Instead of using mx:Model, as in the example, just use mx:XML. "
YES, YES, YES! (I am prejudiced against mx:Model! ;) ) e4xXML rocks!
Voodoo Child is correct regarding the binding as well. It is only one way.