It may be working so far because the objects you set your XML as a dataProvider are wrapping it as an XMLListCollection or similar, which will provide notification mechanisms. The XML class as-is can't participate in binding as it doesn't dispatch events (which is required for binding).
Troy. On 3/7/07, Tracy Spratt <[EMAIL PROTECTED]> wrote:
That fix seems to apply to objects in a collection or array. How do I apply it to xml attributes? And again, is it a valid warning? Or can it be ignored. The bindings seem to work (so far) Tracy ------------------------------ *From:* [email protected] [mailto:[EMAIL PROTECTED] *On Behalf Of *coderjun *Sent:* Tuesday, March 06, 2007 9:28 PM *To:* [email protected] *Subject:* [flexcoders] Re: Another data binding question - "on class 'XML' (class is not an IEventDispa All, I was troubleshooting this binding warning the other day myself and ran across this blog - that at least in my case - addressed the issue, complete with a detailed explanation and code examples. The key is using an ObjectProxy. http://blog.wheelerstreet.com/?p=16 I hope that helps. -Jun --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Correction, the warnings do show up in FB after all. > > Tracy > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Tracy Spratt > Sent: Tuesday, March 06, 2007 1:11 PM > To: [email protected] > Subject: RE: [flexcoders] Another data binding question - "on class > 'XML' (class is not an IEventDispatcher)" > > > > Hey, Julien, did you figure this out yet? I just noticed it in my trace > log. And oddly, I do not get the warnings in FlexBuilder. > > > > Perhaps it is a spurious warning? The archives don't show any definitive > solution. I'm still looking. > > > > Tracy > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of julien castelain > Sent: Friday, March 02, 2007 1:20 AM > To: [email protected] > Subject: [flexcoders] Another data binding question > > > > Hi list, > > I have a DataGrid in my application that gets populated from an XML > file. Displaying the data in the grid 'as text' works fine, but I > wanted to use an item renderer, as soon as I do this I get this warning > : > > "warning: unable to bind to property 'icon' on class 'XML' (class is > not an IEventDispatcher)" > > How can I get rid of that warning? Do I have to cast the XML to some > other class, and how could I do this? > > Thanks for your help. > > Julien >

