catching FULL_SCREEN events

kevin.dowd's Avatar


07 Jul, 2010 03:43 AM

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);


  1. 1 Posted by Jason Dias on 07 Jul, 2010 03:52 AM

    Jason Dias's Avatar

    Can you post your mediator code?

    It sounds like your not passing the event along to the event bus.

  2. 2 Posted by kevin.dowd on 07 Jul, 2010 04:22 AM

    kevin.dowd's Avatar

    It sounds like your not passing the event along to the event bus.

    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.


  3. 3 Posted by Samuel Asher Ri... on 28 Jul, 2010 09:14 PM

    Samuel Asher Rivello's Avatar


    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]

  4. Stray closed this discussion on 10 Feb, 2011 05:31 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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