PDA

View Full Version : stage - fixed size, no resize


mrpuzzled
04-12-2010, 03:02 PM
Hi,

in Flash CS3 or actionscript, how to prevent from resizing the stage?

Thanks in advance

M

scorpion9
04-12-2010, 03:40 PM
try this

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

mrpuzzled
04-12-2010, 04:02 PM
try this

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
Thank you for post. Your code isn't working.

M

scorpion9
04-12-2010, 05:17 PM
dunno, i asked the same question about a month ago and got these 2 lines as an answer , and it worked for me.

dont know anything else

TomMalufe
04-12-2010, 05:27 PM
His 2 lines are correct though. The user can always resize the window (you can't stop that) but you can prevent the content of your flash app from scaling or moving.

If you are not getting an error from those 2 lines given, then it should be working.

henke37
04-12-2010, 08:04 PM
You can not prevent the stage from being resized. You can prevent the content from being resized, but the stage will be resizeable in all cases. It is the embedding application that decides where the stage should be and at what size. You can't do squat about that unless you can somehow convince the embedding application to listen to you.