Groups | Blog | Home
all groups > flash actionscript > may 2007 >

flash actionscript : Dynamic Layout


Trevor McCauley - Adobe
5/11/2007 11:53:40 AM
You would use the resize event of the stage.
http://livedocs.adobe.com/flex/201/langref/flash/display/Stage.html#event:resize

Make sure the scaleMode has been set to StageScaleMode.NO_SCALE. Then in the
resize handler you would move your mc based on stage.stageWidth and
stage.stageHeight. (probably setting the mc's position to those values
halfed for x and y respectively)

[quoted text, click to view]

jak9942
5/11/2007 5:10:06 PM
I am creating an AS3 application with a dynamic layout. i am having trouble
with making an mc stay in the center of the flash document even when the stage
is resized. does anybody know how to do this?

thanks
AddThis Social Bookmark Button