Try changing [bindable] to [Bindable].

-TH

--- In flexcoders@yahoogroups.com, "Darren Houle" <[EMAIL PROTECTED]> wrote:
>
> I don't know if I'm tired, dumb, or just missing something obvious.
>
> Why does this...
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
>      <mx:Script><![CDATA[
>                [bindable]
>                public var myNum:uint = 0;
>      ]]></mx:Script>
> <mx:Label text="{myNum}" />
> <mx:Button
>      label="Push Me"
>      click="myNum=10; mx.controls.Alert.show('myNum
= '+myNum, 'myNum');" />
> </mx:Application>
>
> ...return this error?
>
>      Data binding will not be able to detect assignments
to "myNum".
>
> The Alert box shows the value is changed on click, but sure enough
the label
> does not change.  This seems like about the simplest example of
Bindable I
> could possibly think of.  Sorry to whine, but why is this so
hard?  And why
> can't I find the answer in the help files?  I think Flex is
amazingly cool,
> but dang it's hard to find the answers to some things that should
be really
> basic.
>
> Like I said, maybe I'm just over-tired :-)
>
> Thanks!
> Darren
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to