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: [email protected] [mailto:[email protected]] On Behalf Of stoff0 Sent: Sunday, December 14, 2008 9:22 PM To: [email protected] 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 [email protected]<mailto:flexcoders%40yahoogroups.com>, "Tracy Spratt" <tspr...@...> 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: [email protected]<mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com>] On > Behalf Of stoff0 > Sent: Tuesday, December 09, 2008 7:58 PM > To: [email protected]<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! >

