RE: [flexcoders] Re: Modules Communication
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 [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: Wednesday, March 11, 2009 4:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tspr...@... wrote: Which part do you not understand? Have you looked at changeWatcher in the docs? Tracy Spratt, Lariat Services, development services available _ 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 10, 2009 11:29 AM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tspratt@ 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. http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes 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 i see the changewatcher docs but i can't understand
RE: [flexcoders] Re: Modules Communication
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
Re: [flexcoders] Re: Modules Communication
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 lore...@katamail.com To: flexcoders@yahoogroups.com Sent: Tuesday, March 3, 2009 10:53:49 AM Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro ups.com, Guy Morton g...@... 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
Re: [flexcoders] Re: Modules Communication
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 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 lore...@katamail.com To: flexcoders@yahoogroups.com Sent: Tuesday, March 3, 2009 10:53:49 AM Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro ups.com, Guy Morton g...@... 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
RE: [flexcoders] Re: Modules Communication
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 4) In your target module, set a listener on Application.application.addEventListener However, setting up a singleton data model would be almost as simple. Tracy _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: Tuesday, March 03, 2009 10:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Simon Bailey si...@... 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.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 lore...@... 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
RE: [flexcoders] Re: Modules Communication
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: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: Tuesday, March 03, 2009 12:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, thelordsince1984 lore...@... 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.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?