[flexcoders] Re: Bindable Error

2006-05-18 Thread Tim Hoff



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



  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.



  












RE: [flexcoders] Re: Bindable Error

2006-05-18 Thread Darren Houle
Man, I picked the wrong week to stop sniffing glue

Thanks :-)




From: Tim Hoff [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Bindable Error
Date: Thu, 18 May 2006 21:41:38 -

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
Yahoo! Groups Links











 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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/