# Resize Problem

**URL:** <https://forum.kirupa.com/t/resize-problem/297720>\
**Category:** flash\
**Created:** [October 7, 2009, 3:39pm UTC](https://forum.kirupa.com/t/resize-problem/297720 "2009-10-07T15:39:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bearson](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@bearson](https://forum.kirupa.com/u/bearson)\
**Post date:** [October 7, 2009, 3:39pm UTC](https://forum.kirupa.com/t/resize-problem/297720/1 "2009-10-07T15:39:47Z")

</div>

I am trying to load a movie of a different size into a flash based website. The flash website is 766 x 810, and the movie is a standard 550 x 400px. The problem is I can not get the movie to load into the website at full screen. Here is the code to help you…

fscommand(“fullscreen”, “true” );  
var screen = {x:System.capabilities.screenResolutionX, y:System.capabilities.screenResolutionY};

var stage = {w:Stage.width, h:Stage.height};

movie.loadMovie(“main.swf”);

var a:Number = stage.w / screen.x \* 100;  
var b:Number = stage.h / screen.y \* 100;  
var dif:Number = Math.min(a, b);

movie.\_xscale = movie.\_yscale = dif;

thanks in advance for any help or insight with this.
