# Screen Resolution Object

**URL:** <https://forum.kirupa.com/t/screen-resolution-object/36969>\
**Category:** flash\
**Created:** [December 4, 2003, 8:16am UTC](https://forum.kirupa.com/t/screen-resolution-object/36969 "2003-12-04T08:16:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carixpig](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/carixpig/32/304_2.png) [@Carixpig](https://forum.kirupa.com/u/Carixpig)\
**Post date:** [December 4, 2003, 8:16am UTC](https://forum.kirupa.com/t/screen-resolution-object/36969/1 "2003-12-04T08:16:42Z")

</div>

Hi,

Does anyone know how to use the Screen resolution object? I’ve worked out how to changed the movie size, but that’s only any good when combined with an “if” conditional.

In frame 1 I have:

```auto

stop();
usersScreen = System.capabilities.screenResolution.x;
if(usersScreen < 1023){
	_root._xscale = _root._xscale*.6;
	_root._yscale = _root._yscale*.6;
}else{
	_root._xscale = _root._xscale*.8;
	_root._yscale = _root._yscale*.8;
}

```

At the moment, the “if” statement is not working.

Basically, I want the movie to fit nicely in whatever size screen it is viewed on, eg [http://www.crashshop.com](http://www.crashshop.com)
