That warning is confusing.  It occurs because the "selectedItem"
property(or whatever property you are accessing) is an Object, and
Object does not support binding.  The confusion is because it implies
that XML does not support binding, while it definitely does.

 The fix is to cast/convert selectedItem to XML:

<mx:Label text="{XML(cmbCategories.selectedItem).categoryid}" />

The warning will go away.

 Tracy

 

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of ammu nath
Sent: Monday, August 18, 2008 11:19 AM
To: [email protected]
Subject: [flexcoders] warning: unable to bind to property 'XXX' on class
'XML' (class is not an IEventDispatcher)

 

Hello All,
              can some body help me with this warning please.
Thanks 
Amar





________________________________

Unlimited freedom, unlimited storage. Get it now
<http://in.rd.yahoo.com/tagline_mail_2/*http:/help.yahoo.com/l/in/yahoo/
mail/yahoomail/tools/tools-08.html/> 

 

Reply via email to