sultan
sultan

Reputation: 6058

ActionScript 3 change working area size

How to change working area size? I've the following code but it doesn't work
stage.stageWidth = 200;
stage.stageHeight = 100;

Upvotes: 0

Views: 595

Answers (2)

Mattias
Mattias

Reputation: 3907

Why do you want to change the working area size? I don´t this you are supposed to change the stage width and height through those parameters. The SWF width and height are often set in the HTML file that contains the swf. If you want a scalable application/site I recommend you to use fullscreen flash and . Use scalemode to prevent scaleing graphics.

stage.scaleMode = StageScaleMode.NO_SCALE;

Or ... if you just want to set the default size of the SWF:

[SWF(frameRate="30", width="800", height="600")]

Upvotes: 2

Chunky Chunk
Chunky Chunk

Reputation: 17217

try assigning your stage properties with SWF metadata tag:

[SWF(width="200", height="100", frameRate="32", backgroundColor="#FFFFFF")]

Upvotes: 1

Related Questions