Thanks man, that did the trick!
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dima Ulich
Sent: dinsdag 17 oktober 2006
14:54
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Listen
to changes of a bindable variable
Use Paul William's solution.
It helps me alot.
check it here http://weblogs.macromedia.com/paulw/
hope it helps
Street
- Original Message
From: Jonas Windey [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, October 17, 2006 4:39:01 PM
Subject: [flexcoders] Listen to changes of a bindable variable
Hi,
Were using the riawave pattern (lightweight version of
cairngorm), and Im trying to listen to changes to our ModelLocator.
When I use a textfield that contains a direct reference to
our model, everything is working fine:
mycomp text= {model.currentUser.name} / ..
Now I need to have a function that gets triggered when our
model changes
We tried something like
model.addEventListener(FlexEvent.DATA_CHANGE); but that gave no success.
Anyone know which event is being dispatched when a binded
variable changes? Or is it not accessible?
The only other solution I see is using a getter and setter
for every variable in our modellocator, and in the setter we could dispatch an
event, but I want a cleaner solution.
Thanks for the tips!
Jonas Windey
Web Developer
T. +32 3 216 86 47
Pixco Interactive Division
T. +32 3 216 86 40
F. +32 3 216 86 49
http://www.pixco.com
__ NOD32 1.1805 (20061016) Information __
This message was checked by NOD32 antivirus system.
http://www.eset.com
__._,_.___
--
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
Software development tool
Software development
Software development services
Home design software
Software development company
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group
|
Yahoo! Groups Terms of Use
|
Unsubscribe
__,_._,___