How do i "listen" to a value change in a var ?
 
Let's say i have a component CompA.
In this component is a function FunctionA which needs to be triggered when an event is dispatched from a component CompB.
Using Cairngorm, i dispatch an event from CompB, running a Command.
For now, i trigger FunctionA from the Command (ie Application.application.CompA.FunctionA(myObject) ).
But that is not how Cairngorm is supposed to work, right ?
The way i should do it, i guess, is by updating a var myVar to myObject in my ModelLocator from my Command.
Then, via bindings, in CompA, listen to myVar, and when changing to myObject, trigger FunctionA.
 
Am i right ?
But how would i do this ?
 
Help is welcome.
 
-Jean-Luc


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




Reply via email to