Event from view can not handled
Hi,
sometimes I can not handle the event from view which is injected by mediator like,
[Inject]
public var view :ViewClass;
override public function onRegister():void
{
eventMap.mapListener(view ,Event.SOME_EVENT , blahblah);
}
any idea?
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Stray on 10 Oct, 2011 04:26 PM
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
onRegisterfunction is running then we can help you dig a little further,Stray
Ondina D.F. closed this discussion on 08 Dec, 2011 12:25 PM.