Just as an FYI, I am using that binding syntax in many places without any warnings.
Oh, and in case it has not been said you cannot bind to an XMLList. This will not work: [Bindable] private var _areas:XMLList; Make it an XMLListCollection. Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Monday, December 15, 2008 1:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Disable Runtime Binding Warnings So uncomment that line or change it to return a known bindable variable and see if the warning goes away. I would have thought the error would have "@title" instead of "title" in it. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stoff0 Sent: Monday, December 15, 2008 2:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Disable Runtime Binding Warnings ar1 is a repeater. sorry, should have been more thorough with my example: [Bindable] private var _areas:XMLList; <mx:Repeater id="ar1" dataProvider="{_areas}"> <spr:SubsectionText text="{XML(ar1.currentItem)....@title}" /> </mx:Repeater> nope, i don't care if any changes ever get picked up in this case. although, the crazy thing is changes do get picked up (i've tried this before). i am positive the warning is coming from this line (and many other lines like it). i also want to mention that i have definitely thought of putting this an arraylist and/or making custom data model out of the xml, but it seems kind of ridiculous when all of the data is right there. yeah, i'll get introspection, but i'll also end up with a ton more code and a bigger hassle to maintain. --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , Alex Harui <aha...@...> wrote: > > What is ar1? What is currentItem? Are you sure that line is the one kicking the warning? Do you care that if @title does change that your code may not pick it up? > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On Behalf Of stoff0 > Sent: Sunday, December 14, 2008 9:22 PM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Re: Disable Runtime Binding Warnings > > > this doesn't seem to take away the warnings. for instance, the warning > i'm getting is this: > > warning: unable to bind to property 'title' on class 'XML' (class is > not an IEventDispatcher) > > doing this: > > <spr:SubsectionText text="{XML(ar1.currentItem)....@title}" width="100%" /> > > makes no difference as compared to this: > > <spr:SubsectionText text="{ar1.currentit...@title}" width="100%" /> > > (spr is a custom component i made) > > either way, there should be away to just disable these warnings. the > code is performing fine otherwise. > > anyone have any ideas? > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com>, "Tracy Spratt" <tspratt@> wrote: > > > > Those warnings are correctable. > > > > > > > > Wrap the node expression, which is probably currentItem or data, or > > selectedItem which are objects, in the XML() function. > > > > > > > > text="{XML(myDG.selectedItem).myNode.text()}" > > > > > > > > Tracy > > > > > > > > ________________________________ > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com>] On > > Behalf Of stoff0 > > Sent: Tuesday, December 09, 2008 7:58 PM > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] Disable Runtime Binding Warnings > > > > > > > > Is there anyway to stop binding warnings (or all warnings from being > > logged to the console)? I've tried to turn off warnings with compiler > > arguments like: > > > > -compiler.show-binding-warnings=false > > -warnings=false > > > > I also tried unchecking "enable warnings" checkbox in flex builder. > > > > It looks like none of these have an effect on "runtime warnings" > > (warnings that get logged to the console) > > > > For some background the reason I'm attempting this is because I'm > > getting about 200 warnings on some xml binding and it's really slowing > > things down for me and probably everyone with the debug player. > > > > Thanks! > > >