On 7/10/06, JesterXL <[EMAIL PROTECTED]> wrote:
<mx:Label text="{foo}" />[Bindable]public var foo:String = "sup";foo = "cheese";public function get moo():String{return __moo;}public function set moo(val:String):void{__moo = val;runUpdateFunc();}<mx:Binding source="{foo}" destination="moo" />A few ways.----- Original Message -----From: hank williamsSent: Monday, July 10, 2006 9:49 PMSubject: [flexcoders] can you set a function to trigger when a variable changes?I have a variable, lets call it foo, that may change from time to time. When it changes I want certain of what one might call subscribing objects to be notified that the variable has changed. This gives these objects the ability to update themselves or take necessary actions.
I am thinking this could be tied into the binding mechanism since this is a subset of what binding does.
Any insight greatly appreciated.
Hank
__._,_.___
--
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.

