Which part do you not understand?  Have you looked at "changeWatcher" in the
docs?

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of thelordsince1984
Sent: Tuesday, March 10, 2009 11:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Modules Communication

 

--- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
"Tracy Spratt" <tspr...@...> wrote:
>
> I'm not sure, maybe since modules are independent swf's, but that is way
> more complicated than necessary.
> 
> 
> 
> Look into the singleton data model. In such a case, you would do:
> 
> 1. in the source module, MyModel.getInstance().id = myTextInput.text;
> 2. In the target module, text={ MyModel.getInstance().id }
> 3. Or use a changeWatcher if you need to take programmatic action when
> "id" changes
> 
> 
> 
> Tracy
> 
> 
> 
> _____ 
> 
> From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com]
On
> Behalf Of thelordsince1984
> Sent: Tuesday, March 03, 2009 12:30 PM
> To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
> Subject: [flexcoders] Re: Modules Communication
> 
> 
> 
> --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
> "thelordsince1984" <loreboa@> wrote:
> >
> > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com>
ups.com,
> Simon Bailey <simon@> wrote:
> > >
> > > On the tip for communicating between modules using a framework, 
> > > PureMVC has a utility called Pipes which helps you accomplish this:
> > > 
> > > http://trac. <http://trac.
<http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes>
puremvc.org/Utility_AS3_MultiCore_Pipes>
> puremvc.org/Utility_AS3_MultiCore_Pipes
> > > 
> > > ;S
> > > 
> > > On 3 Mar 2009, at 10:10, claudiu ursica wrote:
> > > 
> > > >
> > > > You should probably have ca comunication manager something like a 
> > > > central event dispatcher (I believe the Mate framework already
> does 
> > > > this but i might be mistaking) and register panels within that 
> > > > scope. so when a panel fires an event the other listening panels 
> > > > check if the event is adressed to them and actually consume catch 
> > > > that event...
> > > >
> > > > there was some guy doing a prof of concept for this google for
> ALON 
> > > > desing pattern ...
> > > >
> > > > HTH,
> > > > Claudiu
> > > >
> > > > From: thelordsince1984 <loreboa@>
> > > > To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com>
ups.com
> > > > Sent: Tuesday, March 3, 2009 10:53:49 AM
> > > > Subject: [flexcoders] Re: Modules Communication
> > > >
> > > > --- In flexcod...@yahoogro ups.com, Guy Morton <guy@> wrote:
> > > > >
> > > > > Have you read the section "Using interfaces for module 
> > > > communication"
> > > > > in the docs? That's been working for me.
> > > > >
> > > >
> > > > thanks for the reply..
> > > >
> > > > For Guy Morton...
> > > >
> > > > i've read it but modules are created at runtime so i would have a
> > > > maneger that controls communication over modules.is it true?
> > > >
> > > > For Alex Harui
> > > >
> > > > how can i achieve the commuication between modules..for example a
> > > > module dispatch an event...the event is catch by a manager and then
> > > > fires to the rigth destination. ..rember that i have an
> > > > application. ..it contains panels and each panel could contain a 
> > > > module...
> > > >
> > > > thanks again
> > > >
> > > > Regards Lorenzo
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > thanks all,
> > 
> > but is there a simple manner to achieve module to module communication?
> > 
> > suppose this scenario:
> > 
> > i've a module within a panel. it contains a textinput...it fires a
> > custom event when the user clicks a button..the event contains an id
> > number..an other modules is listen for this event, catchs it at then
> > update itself depending on passed id...
> > 
> > thanks again 
> > Regards Lorenzo
> >
> is it possible to use localconnection among modules or is a bad way to
> achieve module to module communication?
>

hi Tracy,

i've read your last response...

can you explain me the third option:

Use a changeWatcher if you need to take programmatic action when
"id" changes.

thanks in advance 
Regards 
Lorenzo



Reply via email to