Hey dudes
I've got a big fat parent full off children, with lots of gaps between the children.
I apply an event listener to the parent which adds a tween. Once the parent starts moving I add a listener to stop the tween if the mouse moves off THE PARENT.
But my children steal the listener! So the animation stops if the mouse moves off one of the children. Even If a put one of the children as a large background BEHIND everything.
Now,
would normally also fix my problem, and does in this instance, to a point. But I still want the children to be able to interact with the mouse while the parent is animating.Code:parentContainer.mouseChildren = false;
How can I stop the children from stealing one particular event listener?




Reply With Quote