Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adjusting an exe file based on the user's resolution

Status
Not open for further replies.

rusty27851

Technical User
Feb 11, 2005
29
US
How would I go about writing the actionscript for something like this?: I have a projector file and I want it to be full-screen for users at 1024x768 and below, but be a fixed size of 1024x768 if the user's resolution is higher than that. I know I can change the user's resolution, but I don't think I want to do that.

This is the basic concept, I'm just not sure how to code it:

if (Number(_level0.ssScreenWidth ) < = 1024)
{
// play full-screen if the screen width is < = 1024
}
else
{
// otherwise (width > 1024) make the size 1024x768
}
 
I'm not getting any errors with this, but I'm on a Mac right now and won't be able to test it on my PC until later. Goes to fullscreen on a Mac no matter what. If someone has time, please test on your PC and let me know if it works:

if (Number(_level0.ssScreenWidth) <=1024) {
fscommand("fullscreen", "true");
}
else {
fscommand("fullscreen", "false");
}


Thanks :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top