RE: [flexcoders] Re: Modules Communication

2009-03-11 Thread Tracy Spratt
Ok, it behaves kinda like a binding, but instead of just putting some value into a property, it calls a specified function. In that function, you can do whatever you need. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com

RE: [flexcoders] Re: Modules Communication

2009-03-10 Thread Tracy Spratt
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

Re: [flexcoders] Re: Modules Communication

2009-03-03 Thread claudiu ursica
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

Re: [flexcoders] Re: Modules Communication

2009-03-03 Thread Simon Bailey
On the tip for communicating between modules using a framework, PureMVC has a utility called Pipes which helps you accomplish this: http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes ;S On 3 Mar 2009, at 10:10, claudiu ursica wrote: You should probably have ca comunication manager

RE: [flexcoders] Re: Modules Communication

2009-03-03 Thread Tracy Spratt
If you don't want to set up a full blown communication manager, you could do this: 1) dispatch a *bubbling* event from your source module 2) Set up a listener at the main application on this (this.addEventListener.) 3) Have the handler for that listener re-dispatch the event

RE: [flexcoders] Re: Modules Communication

2009-03-03 Thread Tracy Spratt
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={