I've created a databinding in a component that works OK, but gives me a warning.

I have an xml file called sales.xml storing a value this way:

<plan>
<description id="DIRECT">
<element>
<name>Description</name>
<value>This is some descriptive text.</value>
</element>
</description>
........other nodes here
</plan>

in the main application file I create a model from this and pass it as a dataObject to a .mxml component called Description:

<mx:Model id="dp1" source="sales.xml"/>
<Description id="sDesc" dataObject="{dp1.description.element}"/>

In the component, I define the dataObject var in a script block and execute the databinding:

<mx:Text text="{dataObject.value}" width="100%" height="100%"/>

This all works fine, except that I get a warning, pointing to the databinding line: "changes in unknown property, value, will not be detected".

Is there a way to avoid this warning, or a more efficient way to do this?

- Tom








Reply via email to