tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/245-adding-child-to-contextview-dispatches-eventadded_to_stage-twiceRobotlegs: Discussion 2013-04-28T09:57:12Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/47312452011-01-14T10:45:49Z2011-01-14T10:45:49Zadding child to contextView dispatches Event.ADDED_TO_STAGE twice?<div><p>Hi Rob,</p>
<p>that really shouldn't happen. What exactly are the symptoms
you're<br>
seeing that lead to that conclusion? Note that Robotlegs listens
to<br>
the ADDED_TO_STAGE event in the capture-phase, not in the<br>
targeting-phase like most "normal" listeners would. So if, in
your<br>
application, you have an additional listener to that event, it
would<br>
get the event after Robotlegs, but shouldn't get it twice.</p>
<p>If that doesn't explain anything at all - as it probably won't -
can<br>
you maybe give some example code that replicates what you're
seeing?</p></div>Till Schneidereittag:robotlegs.tenderapp.com,2009-10-18:Comment/47312452011-02-09T17:13:27Z2011-02-09T17:13:27Zadding child to contextView dispatches Event.ADDED_TO_STAGE twice?<div><p>I'm sorry for not replying sooner, I'm in the middle of a
project so I haven't been able to take apart my code. I believe I'm
screwing up my contextView mediation and that's causing the issue.
I'll post a very simple example after the 14th :]</p></div>robtag:robotlegs.tenderapp.com,2009-10-18:Comment/47312452011-02-09T17:26:31Z2011-02-09T17:26:31Zadding child to contextView dispatches Event.ADDED_TO_STAGE twice?<div><p>No worries, you'll get to it when you get to it. But for now:
Good<br>
luck with the project!</p></div>Till Schneidereit