|
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
YAHOO! GROUPS LINKS
|
- [flexcoders] Newbie : How do i listen to a value ? Cairngor... Jean-Luc ESSER
- [flexcoders] Re: Newbie : How do i listen to a value ?... Tim Hoff
- Re: [flexcoders] Re: Newbie : How do i listen to a... Jean-Luc ESSER
- Re: [flexcoders] Re: Newbie : How do i listen ... Tom Chiverton
- Re: [flexcoders] Re: Newbie : How do i lis... Jean-Luc ESSER
- Re: [flexcoders] Re: Newbie : How do ... Tom Chiverton
- Re: [flexcoders] Re: Newbie : How... Jean-Luc ESSER
- Re: [flexcoders] Re: Newbie :... Tom Chiverton
- Re: [flexcoders] Re: Newbie :... Jean-Luc ESSER
- Re: [flexcoders] Re: Newbie :... Tom Chiverton
- RE: [flexcoders] Re: Newbie :... Alex Uhlmann

