ModularityExtension and EventCommandMap typed events problem
Hi,
I'm creating an AIR application, that will load modules at runtime, and share services with them. The problem occurs, when I want to map events to commands in modules.
This code works properly:
eventCommandMap
.map(SignOutEvent.SIGN_OUT)
.toCommand(SignOutCommand);
while this one fails to call the command:
eventCommandMap
.map(SignOutEvent.SIGN_OUT, SignOutEvent)
.toCommand(SignOutCommand);
I suspect that there is a problem in indentifying classes - SignOutEvent in my app is not the same as SignOutEvent in loaded module.
Is it possible to make it work or should i give up on typed events?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Joel Hooks on 24 Jul, 2013 07:06 PM
Your intuition is spot on. You won't be able to use typed events across modules. The is PROBABLY a clever way to get this to work, but likely not worth the effort unless the lack of typed events is a real problem.
On Jul 24, 2013, at 12:50, "jakub.gondek" <[email blocked]> wrote:
Ondina D.F. closed this discussion on 30 Aug, 2013 07:55 AM.