PDA

View Full Version : changing movieclip hierarchy



iceblueflame
April 12th, 2007, 06:27 AM
there are a few mc's already on stage that ive attached dynamically to _root.
now i want to take one of them and attach it into some other mc on stage, also attached dynamically. i want to retain the position, width and height of the former mc.

is this possible? some way to manipulate the pointers or addresses?
can i manipulate the ._parent property?

Krilnon
April 14th, 2007, 01:23 PM
Not really. You said the the original MovieClip was attached, so you could attach it to the other MovieClip and duplicate whichever properties you want to be the same. (That would let you keep the position, width, and height of the clip the same, but other parts of the state of the clip couldn't easily be duplicated.)

If you were using AS3, you could just use addChild to change the hierarchy.

iceblueflame
April 14th, 2007, 02:00 PM
oh.. hmm. okie. well i've already written a function to copy properties. i'll try to use it for this as well. though i dont really want to do it. its too complicated.