catching FULL_SCREEN events
I catch the fullScreenEvent in my application mediator class and
would like to
pump the fullScreenEvent into the framework with
dispatchEvent(evt).
What do I need to do to inject this single flash event into robotLegs?
I thought the following would work but it doesn't
commandMap.mapEvent(FullScreenEvent.FULL_SCREEN, ApplicationFullScreenEvent, FullScreenEvent, false);
regards
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
1 Posted by Jason Dias on 07 Jul, 2010 03:52 AM
Can you post your mediator code?
It sounds like your not passing the event along to the event bus.
2 Posted by kevin.dowd on 07 Jul, 2010 04:22 AM
Thanks Jason you are right - I was passing FullScreenEvent but injecting Event
into the command.
[Inject] public var event:Event;
I would have expected a compile-time error though - or even a run-time error but it just silently fails.
regards
3 Posted by Samuel Asher Ri... on 28 Jul, 2010 09:14 PM
@kevin.dowd,
You can cast any object in AS3 as one of its superclass (i.e. cast a FullScreenEvent as an Event). This is legit as it 'is' the type of its superclass in as3. That's the reason for no error.
[email blocked]
Stray closed this discussion on 10 Feb, 2011 05:31 PM.