Ravi,

Thanks for this.

I finally resolved the issue by deleting the compiler cache in
FlashDevelop. Full details of the possible issue and solution are
outlined on the StackOverflow page at
http://stackoverflow.com/questions/3212908/flex-changewatcher-doesnt-work/3221534#3221534.

.p


On Jul 13, 9:50 am, Ravi Mishra <[email protected]> wrote:
> I executed this code on my machine and it is returning 'true' :-)
>
> -Ravihttp://achieveravi.blogspot.com
>
> On Jul 10, 10:39 am, Pranav Negandhi <[email protected]> wrote:
>
>
>
> > Here's a bare-bones script I've written to understand how ChangeWatcher
> > works.
>
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> > creationComplete="this.m_init();">
> > <mx:Script>
> > <![CDATA[
> > import mx.binding.utils.ChangeWatcher;
> >  [Bindable] public var foo:Object = new Object();
> >  public function m_init():void
> > {
> > trace(ChangeWatcher.canWatch(this, "foo")); // Always returns false. Why?}
>
> >  private function m_update(e:Object):void
> > {
> > trace(e);}
>
> > ]]>
> > </mx:Script>
> > <mx:Text text="{this.foo}" />
> > </mx:Application>
>
> > Does anybody know what I could be doing wrong here? I have put up a more
> > extensive version of this problem up on StackOverflow in case somebody wants
> > to follow up there. The URL 
> > ishttp://stackoverflow.com/questions/3212908/flex-changewatcher-doesnt-....
>
> > .p

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to