views:

14

answers:

1

I have multiple nested movieclip in its own different movieclip, and i would like to arrange them accordingly. My idea was to use the localToGlobal function. I can get the position of the MC on stage, but how do I use the function and place the MC based on stage?

cAPos = new Point(objectA.y);
newcAPos = objectA.localToGlobal(cAPos);

cBPos = new Point(objectB.y);
newcBPos = objectB.localToGlobal(cBPos);

objectB.y=objectA.y+objectA.height <-- based on stage
+1  A: 

If you want to position nested mc using global coordinates, try globalToLocal() instead.

alxx