Skip to main content
Inspiring
August 18, 2006
Question

postion an attached movie clip.

  • August 18, 2006
  • 2 replies
  • 222 views
I am attaching a m.c. when a button in another m.c. is pressed. However The mc with the button is dragable. Therefore when you attach the new m.c. it attachs in diff places, as it is realtive to the position of the dragable m.c.
I don't have the option to attach the m.c. to root, which would therefore result in the fixed position, however I want to achieve the same result of it being attached to a fixed position. (0,0)

I apreciate this is a bit of a brain teaser to understand, but if anyone understands and has any ideas then please respond. Many thanks. j
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
August 19, 2006
you're welcome.
kglad
Community Expert
Community Expert
August 19, 2006
you want the movieclip attached to the draggable movieclip? but you don't want the attached movieclip to move when the draggable movieclip is dragged??
Inspiring
August 19, 2006
clip1- is a draggable clip. Within Clip 1 is Clip2.
clip1 actions: Clip2.onRelease attaches clip 3.

I have to later get info sent from clip3 to clip1, which can be simply done using _parent.

Becuase clip1 is draggable, and clip3 is being attached to clip1 it is being attached in relation to where clip1 is on the stage and is also draggable. I however want it to be attached and aligned to the TL of the stage, but I don't want to have to attach clip3 to root. If you don't understand, as it is hard to explain what I am trying to do, not to worry, as I think I am just going to change the design, so that the attached clip is okay to be draggable.

Thanks anyway Jonny.