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?

Recommended Answers

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.

Jump to Post

All 2 Replies

Member Avatar

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 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.