This content has been marked as final. Show 4 replies
your parent movieclip (_root.inhalt.motivcontainer) will intercept all mouse events assigned to the child movieclip (_root.inhalt.motivcontainer.buttonLinksUnten).
to resolve either create another movieclip on the parents timeline that is on a layer below all visible content of buttonLinksUnten and assign the above handlers to this "new" child or use a hitTest for the parent or the child instead of two sets of mouse handlers.
The problem is there is no part of buttonLinksUnten that isn't part of motivcontainer. So there is no way you will be able to do that with your current structure.1 person found this helpful
I'm not sure I understand exactly what you are trying to do, but a simple reorganization might have you putting both of these clips inside another clip. Then have the drag behavior drag the parent of both and whatever you are trying to do with the other clip do that as well.
PS: It is interesting to me that you use the global method startDrag, but that you use the MovieClip method for stopDrag(). To my eye your code would be prettier if you did:
this.startDrag(false, 135, 75, 198, 230);
Thanks for your hints. It is working now and I will try to get a better code.
I have an MovieClip with an small button on each corner now and I can move it. Now I have to make it scalable.
you're welcome.1 person found this helpful