Screen Resolution Object


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:

usersScreen = System.capabilities.screenResolution.x;
if(usersScreen < 1023){
	_root._xscale = _root._xscale*.6;
	_root._yscale = _root._yscale*.6;
	_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