Friday, March 26, 2010

Dynamic Layout

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?



thanksDynamic Layout
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)



''jak9942'' %26lt;webforumsuser@macromedia.com%26gt; wrote in
message

news:f2281e$66j$1@forums.macromedia.com...

%26gt;I am creating an AS3 application with a dynamic layout. i
am having trouble

%26gt; with making an mc stay in the center of the flash
document even when the

%26gt; stage

%26gt; is resized. does anybody know how to do this?

%26gt;

%26gt; thanks

%26gt;





No comments:

Post a Comment