PDA

View Full Version : 'allowscale' problem!


domino ed
07-28-2004, 12:05 PM
Hi There,

I'm am a very new user of Flash MX and been given a ball busting deadline for a simple cd rom project!

I have one problem:

I need the presentation to run full screen on various screen resolutions. I have to make the file 1024x768 due to image viewability issues, so i have included the script fscommand("fullscreen", "true").
I need the presentation to be viewable on a 800x600 monitor so i have also included the script fscommand("allowscale", "true"). The problem is that i do not want the presentation to scale up when viewed on larger monitors (such as 1280x1024).

Bascially, i only want the 'allowscale' command to scale DOWN and not UP. Any ideas?

Hope this makes sense!!

Will really appreciate any help/advice.

Cheers

Ed :confused:

speedlemon
07-28-2004, 04:12 PM
dont make it full screen then.

domino ed
07-28-2004, 04:45 PM
Thanks Speedlemon, but unfortunatly it needs to be full screen when its being viewed on a res bigger than 1024 x 768.

speedlemon
07-28-2004, 05:06 PM
so... if theres only 2 different resolutions you plan on using.. make the stage your working with 1024x768 and if its bigger than that, itll will stay the same(get rid of the fullscreen thing) but if its smaller, then allowscale will still be there. is that good?

domino ed
08-06-2004, 12:05 PM
Thanks Speedlemon for your help but it needed to work on any resolution, not just 2.

Managed to sort it out though.

Here's how i did it if anybodys interested:

fscommand("fullscreen", "true");
if (System.capabilities.screenResolutionX<=1024) {
fscommand("allowscale", "true");
} else {
fscommand("allowscale", "false");
}