I have a question regarding fullscreen mode in ActionScript 3.0. I already know how to activate fullscreen mode and I've successfully used it without problems in ActionScript 2.0.
So I have an application written in AS3 with a stage size of 640x480. In this application I add a few movieclips to the stage. Once these movieclips are added to the stage, I horizontally center them by doing this...
But this doesn't work in fullscreen mode... because my screen resolution is 1280x800 and when it switches to fullscreen mode in AS3, it actually changes the stage size. Therefore, when I center this object after its in fullscreen mode, the object actually goes too far to the right. This was not how it worked in AS2 so I'm quite confused.
I want my flash file to scale when it goes into fullscreen mode but I would like to always be able to center my objects on the screen regardless of the users screen resolution. Does anyone have any tips on how to fix this?
The only fix I've found so far is to explicity set the x and y positions of these objects. Since I know I want my stage to always be 640x480, I can explicitly set the x positions to 320 to put it in the center. But I'm not sure if this is a problem since I need this to work across any screen resolution.
One other thing to note is that I already know that using the fullScreenSourceRect property fixes my problem. BUT, it uses a bitmap scale to stretch everything, thus making everything look fuzzy and crappy which isn't acceptable.
So I have an application written in AS3 with a stage size of 640x480. In this application I add a few movieclips to the stage. Once these movieclips are added to the stage, I horizontally center them by doing this...
Code:
this.x = stage.stageWidth / 2;
But this doesn't work in fullscreen mode... because my screen resolution is 1280x800 and when it switches to fullscreen mode in AS3, it actually changes the stage size. Therefore, when I center this object after its in fullscreen mode, the object actually goes too far to the right. This was not how it worked in AS2 so I'm quite confused.
I want my flash file to scale when it goes into fullscreen mode but I would like to always be able to center my objects on the screen regardless of the users screen resolution. Does anyone have any tips on how to fix this?
The only fix I've found so far is to explicity set the x and y positions of these objects. Since I know I want my stage to always be 640x480, I can explicitly set the x positions to 320 to put it in the center. But I'm not sure if this is a problem since I need this to work across any screen resolution.
One other thing to note is that I already know that using the fullScreenSourceRect property fixes my problem. BUT, it uses a bitmap scale to stretch everything, thus making everything look fuzzy and crappy which isn't acceptable.