-
The best stage size for swf file...
Hello!
I'm interested in Your opinions about this topic - what would be the best size for a swf file, so it suits for all computer monitor sizes? Maybe there is such possible option or feature that the swf size aligns automatically for each monitor size, when opened?
I'm making a flash project (will be opened in offline use, not on web browsers) and my concerns are that if I make the stage size too big, it wont be visible fully on monitors with smaller screens. So the automatic align would be a perfect option in this case.
I hope You understand me and I will be happy for Your replies and suggestions.
THANK YOU!
-
.
Hi,
Having created a few CD Roms for people before, where a standalone exe/swf file is used, it can be frustrating to try and capture every possible variation in monitor size and peoples preference visually.
What i did was to determine the monitor size from the start and then give them options there after to customise it to their own liking,
I started by ascertaining the monitor size
PHP Code:
Stage.align = "TL";// used for alignment, many variations here too
// *** Get screen width of user;
var userWidth:Number = System.capabilities.screenResolutionX;
trace(userWidth);
if(userWidth < 1024)
{
Stage.scaleMode = "exactFit";
}
else
{
Stage.scaleMode = "noScale";
}
Then offer them some choices from a drop menu allowing them to scale or non scale, like so
PHP Code:
// *** Buttons;
myButton1.onPress = function()
{
Stage.scaleMode = "exactFit";
}
myButton2.onPress = function()
{
Stage.scaleMode = "noScale";
}
Then you can go a little further by adding a listener for when the stage is resized, like so
PHP Code:
// *** resize function;
function stageResize()
{
// ** make background stretch when resized;
backGround._width = Stage.width;
backGround._height = Stage.height;
backGround._x = 0;
backGround._y = 0;
}
// *** resize listener;
sizeListener = new Object();
sizeListener.onResize = function()
{
stageResize();
};
Stage.addListener(sizeListener);
If you want full screen , then you can use
PHP Code:
// *** Full screen;
Stage.displayState = "fullScreen";//"normal"
and the accompanying button code,
PHP Code:
myButton3.onPress = function()
{
Stage.displayState = (Stage.displayState == 'fullScreen') ? 'normal' : 'fullScreen';
}
I personally think it's pretty near impossible to entertain every single variation in size etc etc.
As for which do I think is best, yet again that's personal preference, look around, what monitors do you see everywhere you go?
I think there is statistics out there somewhere as to which monitor sizes are used ost frequebtly, similar to statistics of which browsers are most frequently used.
-
.
Hi,
Here's a quickly found page on resolutions used, if it helps!! http://www.w3schools.com/browsers/browsers_display.asp
-
Originally Posted by fruitbeard
Thank You very much for Your help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|