You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Shared EventDispatcher instance for plugins Created Dec 26, 2009

This thread is solved

Views: 1732     Replies: 2     Last reply Dec 27, 2009  
You must login first before you can use this feature

luc

Posts: 21

Registered:
Oct 9, 2009

Shared EventDispatcher instance for plugins

Posted: Dec 26, 2009

To facilitate communication between plugins, it would be great to provide a shared instance of an EventDispatcher (the Flash built-in version, not the Flowplayer one). Flash provides this kind of loose-coupled communication way in flash.display.LoaderInfo.sharedEvents when loading other SWF.

I think it should be provided at the PluginModel level so plugins can register event listeners early, i.e. during onConfig() phase.

One example of use could be to communicate with the control bar to hide/show, or disable/enable controls without calling methods directly on the plugin.

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» Shared EventDispatcher instance for plugins

Posted: Dec 26, 2009

Reply to: Shared EventDispatcher instance for plugins, from tripfilms
Sounds like this would make sense. I'll consider this.

luc

Posts: 21

Registered:
Oct 9, 2009

» » Shared EventDispatcher instance for plugins

Posted: Dec 27, 2009

Reply to: » Shared EventDispatcher instance for plugins, from Anssi
Thank you Anssi.
If there is anything I can do to help, don't hesitate.