Skip to main content
January 13, 2010
Question

Fixing Stage Size Independent of Resolution

  • January 13, 2010
  • 2 replies
  • 582 views

Hi there, sorry about posting this one I'm sure it's been posted about a million times before but I've been trying various searches and seem to always be coming up with answers to do with the exact opposite of what I'm trying to achieve!

I'm creating a flash Movie that is 800 x 600 pixels in size and I'd like to fix that size so that it will always be 800 x 600 regardless of the screen resolution of the computer running it. At the moment it seems to scale by default and is winding up looking ugly on other people's computers... help!

This topic has been closed for replies.

2 replies

Inspiring
January 13, 2010

Try to include on the top of your application:

Stage.scaleMode = StageScaleMode.NO_SCALE

It will not preclude entire application from scaling but graphics will stay in their original dimensions.

Ned Murphy
Legend
January 13, 2010

Normally, the size of the Flash will default to the published size. Have you included any kind of stage coding in the file that would attempt to change that?  What settings have you made for the dimensional options in the HTML Publish Settings--those too, by default, should present the movie in its designed dimensions?

In what way does it seem to scale?  Different screen resolutions can impact how the movie looks.

January 13, 2010

To Ned Murphy - Ah I didn't realise I could change the dimension in the publish settings: I have now changed the publish dimension from 'Match Movie' to Pixels -> 800 x 600. Do you think this will work? I don't have any coding that I think could affect the overall size of the Movie, the only things I am using the stage variable for are to get stageWidth and stageHeight and occasionally add event listeners.

When I say it scales I simply mean that someone who tested it used a much higher resolution than I am currently using, and as a result the swf seemed to expand to be considerably more than 800 x 600. To test this we created a box which was exactly 800 x 600 pixels, this was much smaller than the swf. I have a screenshot of this which I can attach to make this clearer if you wish

To Andrei1 - I'll put that in as well, I don't think it'll hurt