PDA

View Full Version : ADDED_TO_STAGE execute twice???



Stratboy
March 24th, 2010, 01:47 PM
Hi!

I've got a strange issue: an ADDED_TO_STAGE event listener executes twice...

should I pay attention to some particular thing?

wvxvw
March 24th, 2010, 01:49 PM
Yes, it's a known bug - remove addedToStage handler right after it fires (it looks like you're adding more display objects to the display list while inside addedToStage handler - this is what causing it to run twice.

Stratboy
March 24th, 2010, 02:05 PM
Yes, it's a known bug - remove addedToStage handler right after it fires (it looks like you're adding more display objects to the display list while inside addedToStage handler - this is what causing it to run twice.

Well, no, my listener was empty (only a trace action) for test purposes.

Anyway, your solution worked, so thank you very much!