Center the stage in Flash CS4/AS3 on a standalone player
Posted
by Technoh
on Stack Overflow
See other posts from Stack Overflow
or by Technoh
Published on 2010-05-07T13:42:03Z
Indexed on
2010/05/07
16:48 UTC
Read the original article
Hit count: 359
I have a Flash presentation (made in Flash CS4 with AS3) I am working on and running in a standalone Flash player. When I start the presentation the stage is centered in the Flash player, even if I resize it. The presentation contains an FLVPlayback component which, at different frames, plays different content. A navigation menu (made of buttons) is used to move through the different frames.
My problem is that if the player is resized so that it is bigger than the stage, sometimes after going into and exiting from fullScreen mode, the stage is moved to the left and I cannot find a way to move it back to the center. I cannot stage the scale as the content becomes distorted and I do not want to force fullScreen all the time. I would just like to center the stage in the Flash player.
Is such a thing possible? Any help is greatly appreciated.
© Stack Overflow or respective owner