tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/393-event-from-view-can-not-handledRobotlegs: Discussion 2011-12-08T12:25:09Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/105237332011-10-10T15:51:53Z2011-10-10T16:24:55ZEvent from view can not handled<div><p>Hi,</p>
<p>sometimes I can not handle the event from view which is injected
by mediator like,</p>
<pre>
<code>[Inject]
public var view :ViewClass;
override public function onRegister():void
{
eventMap.mapListener(view ,Event.SOME_EVENT , blahblah);
}</code>
</pre>
<p>any idea?</p></div>Erdi Yerlitag:robotlegs.tenderapp.com,2009-10-18:Comment/105237332011-10-10T16:26:16Z2011-10-10T16:26:16ZEvent from view can not handled<div><p>Hi Erdi,</p>
<p>can you add a trace to your <code>onRegister()</code> function?
It may be that the mediator is not being created.</p>
<p>The usual reason for this is race conditions - that your view is
already on the stage before your mediator is mapped.</p>
<p>If the <code>onRegister</code> function is running then we can
help you dig a little further,</p>
<p>Stray</p></div>Stray