I want to use this animation but stage should be of same browser size?

Hi,

How can I use this animating clouds on my flash movie? When I am keeping the stage size same as browser size by auto resizing, my flash movie get shrink and expand continuously.

http://www.amarasoftware.com/flash-animations/clouds-animation.html
The following is the code I used to resize the stage width & height to fit the browser window.

var myStage:Stage=this.stage;
myStage.scaleMode=StageScaleMode.NO_SCALE;
myStage.align=StageAlign.TOP_LEFT;


function initialDisplay(event:Event):void{
    var swfWidth:int=myStage.stageWidth;
    var swfHeight:int=myStage.stageHeight;
    
    MainContainer.width=swfWidth;
    MainContainer.height=swfHeight;
}


addEventListener(Event.ENTER_FRAME,initialDisplay);

Any help please.

PS: When the clouds move out of the flash stage, the browser window starts shrink & expand unexpectedly.