Positiong loaded object based on root stage instead of MC that is loaded from root.

Posted by Hwang on Stack Overflow See other posts from Stack Overflow or by Hwang
Published on 2010-03-22T05:21:33Z Indexed on 2010/03/22 5:31 UTC
Read the original article Hit count: 456

Filed under:
|
|
|

I have a root stage, and a MC that is called from the root stage.Now from that MC, i will called in another MC2, and I wanted to placed the MC in the center of the stage. The reason I could not use normal ADDED_TO_STAGE at MC and define the center is because MC is not place in the exact position of the root stage (as in x, y=0). So if I would target MC2 at MC stage center, it would not be the exact center of the root stage/screen.

How can I called the root stage properties rather than adding MC2 into the stage?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about root