Good Afternoon Everyone,

AM I correct in that it is ok to use event.target if the target movie is a stand alone object. But I need to use event.currentTarget if the movie clip has children inside?

Member Avatar for rajarajan2017

event.currentTarget to target the root of the movieclp, and if you want to target the clips inside the movieclip then use the event.target.

there is also DisplayObject.mouseChildren property which turns on and off mouse events for children inside the DisplayObject.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.