Event from view can not handled

Erdi Yerli's Avatar

Erdi Yerli

10 Oct, 2011 03:51 PM


sometimes I can not handle the event from view which is injected by mediator like,

public var view      :ViewClass;

override public function onRegister():void
        eventMap.mapListener(view ,Event.SOME_EVENT , blahblah); 

any idea?

  1. Support Staff 1 Posted by Stray on 10 Oct, 2011 04:26 PM

    Stray's Avatar

    Hi Erdi,

    can you add a trace to your onRegister() function? It may be that the mediator is not being created.

    The usual reason for this is race conditions - that your view is already on the stage before your mediator is mapped.

    If the onRegister function is running then we can help you dig a little further,


  2. Ondina D.F. closed this discussion on 08 Dec, 2011 12:25 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