mitch
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Darren Houle
Sent: Thursday, May 18, 2006 2:32 PM
To: [email protected]
Subject: [flexcoders] Bindable Error
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
------------------------ Yahoo! Groups Sponsor --------------------~--> Everything you need is one click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

