[RESOLVED] AS3 centering 3D objects on stage
I am new to working with 3D in Flash CS4. My project has a center-registered movie clip with a z-axis setting of 850 that I need to keep centered on the stage at all times, including when the stage is re-sized.
Code like this for centering 2D objects doesn't seem to work:
Code:
mc.x = stage.stageWidth/2;
mc.y = stage.stageHeight/2;
My guess is that I need to convert the movie clip back into 2D space somehow, center it using the code above and then change the z-axis back to 850. Does this sound about right, or is there another way to do this? A simplified code example would be much appreciated.
Thanks.