Skip to main content
Known Participant
April 22, 2009
Answered

Nested Movieclips and Mouse Events

  • April 22, 2009
  • 1 reply
  • 621 views

I have a movieclip that contains other movieclips, however the nested movieclips don't seem to detect mouse events.

Via searching, I found that only the parent can detect these events, but is there a way to pass the mouse click from the parent movie clip to the children?

I want to have a small movieclip. When you rollover it, it scales up, and then you should be able to click other various things on it. When you rollout, it scales back down.

If this is not practical, what's the best way to keep a movieclip "attached" to another and scale, without childing them?

This topic has been closed for replies.
Correct answer Ned Murphy

There should be no problem having nested movieclips with mouse coding assigned to them unless the containing movieclip also has mouse coding assigned to it.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
April 22, 2009

There should be no problem having nested movieclips with mouse coding assigned to them unless the containing movieclip also has mouse coding assigned to it.

Desprez10Author
Known Participant
April 22, 2009

Huh, I thought I tried that. I guess I still had different mouse handlers in there.

Well it works, thanks.

Ned Murphy
Legend
April 22, 2009

You're welcome