Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: [1]
1  PureMVC Manifold / MultiCore Version / Re: Communicating between widgets on: May 03, 2008, 10:43:34
Hi, zilet

if there is no support for communicating between widgets and master.
i just suggest that you should add some interface methods to widget shell and widgets(or buttons that invoke widget).

in each interfaces, define like below.
public function sendApplicationNotificaction(key:String, noteBody:Object):void;
in each implements(ex:hoge.mxml),
public  sendApplicationNotificaction(key:String, noteBody:Object):void{
  dispatchEvent(new CustomNoticeEvent(CustomNoticeEvent.NOTICE, key, noteBody);

in each Mediator subclasses
hoge.addEventListener(CustomNoticeEvent.NOTICE, onApplicationNotice);
private function onApplicationNotice(event:CustomNoticeEvent):void{
  sendNotification(event.key, event.noteBody);

How about this?

2  PureMVC Manifold / MultiCore Version / Communicating between widgets on: May 01, 2008, 10:14:44

i 'm just making a widget application using AS3 MultiCore version
and was encounterd some problems for same reason.

it's just about communicating between widgets.
in one core, i can notify to other classes with sendNotification();
but i can't have any good idea about communicating between each widgets.

in Modularity Demo, platform and widgets communicate via IWidgetShell interface.
but in real application, we need more opportunities to liaise between widgets.
so i would like to use some notification architecture over widget cores.

is there any good practice?

Pages: [1]