From: Jamaisme on
Hopefully i have a real easy question. I have a movie clip that i saved in a
library. I gave the movie clip an instance name so I can instantiate the movie
in my document class. The movie clip itself has 3 layers.

So i instantiate the movie clip, add a mouseevent to the movie clip instance
and then add it to my stage(addchild()). My problem is that the
MouseEvent.target could be any of the 3 layers of my movie clip, I was
expecting the MouseEvent.target would be the entire movie clip. So when i go
to change the x, y position of the MouseEvent.target, only the 1 layer moves
and my movieclip becomes disjoint.

Hopefully someone can give me an easy way to test to see which layer is
returned by the MouseEvent and then I can move the entire movie clip instead of
just the one layer.

Thanks in advance.

From: NedWebs on
It sounds like your movieclip is made up of movieclips and you're only
targeting one of them to move within the movieclip (as opposed to targeting the
entire movieclip).

The scenario you described is a bit hard to dissect.

Could you attach some of the code you use that surrounds the situation?


From: Jamaisme on
NedWebs, you hit it on the head. My movie clip is made up of movie clips(I
dont know what the proper terminology of the movieclip that contains the other
movie clips, parent movieclip?).

So is there a way to get back to the parent movieclip when one of the children
movie clips are targeted? In my action script i only instantiate the parent
movieclip, so i assume the children movie would have to be related to the
parent movieclip in some fashion.

So when my MouseEvent.Target is one of those child movieclips I need to
somehow reference the parent movieclip and move it..

I dont have the code here with me, but I can post it when i get home tonight.