# Detecting screen resolution + setting an if / else statement for an fscommand

**URL:** <https://forum.kirupa.com/t/detecting-screen-resolution-setting-an-if-else-statement-for-an-fscommand/250409>\
**Category:** Uncategorized\
**Created:** [January 29, 2008, 10:45am UTC](https://forum.kirupa.com/t/detecting-screen-resolution-setting-an-if-else-statement-for-an-fscommand/250409 "2008-01-29T10:45:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leth](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@Leth](https://forum.kirupa.com/u/Leth)\
**Post date:** [January 29, 2008, 10:45am UTC](https://forum.kirupa.com/t/detecting-screen-resolution-setting-an-if-else-statement-for-an-fscommand/250409/1 "2008-01-29T10:45:33Z")

</div>

Hi there, I’m not sure if this is possible but what I’m hoping to do is detect if a user’s display resolution is less than 1024 x 768 as a flash projector file is launched - then depending on the result I want to select one of the following commands to ensure that no cropping occurs of my final file:

fscommand(“allowscale”, “false”);  
fscommand(“allowscale”, “true”);

Hope that makes sense, any help would be much appreciated, thanks!
