Hi,

 

We’re using the riawave pattern (lightweight version of cairngorm), and I’m 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

 

__._,_.___

--
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

__,_._,___

Reply via email to