# Adjusting an exe file based on the user's resolution

**URL:** <https://forum.kirupa.com/t/adjusting-an-exe-file-based-on-the-users-resolution/147758>\
**Category:** Uncategorized\
**Created:** [May 13, 2005, 12:25pm UTC](https://forum.kirupa.com/t/adjusting-an-exe-file-based-on-the-users-resolution/147758 "2005-05-13T12:25:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rusty27851](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@rusty27851](https://forum.kirupa.com/u/rusty27851)\
**Post date:** [May 13, 2005, 12:25pm UTC](https://forum.kirupa.com/t/adjusting-an-exe-file-based-on-the-users-resolution/147758/1 "2005-05-13T12:25:48Z")

</div>

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  
}
