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

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!