Modify fullscreen bg video a bit

Hi there,

I would like to modify an AS2 file a bit. Netstream, FLV and the video is full screen. I find that too much of the video is being cut off with this nice placement code. So, I’d like to try having black bars on the top and bottom rather than having the right side of the video be cropped when the browser window is resized.

Here is the code for the placement (as far as I can determine) How do I get it to keep the width fill screen but not the height?


Stage.scaleMode = 'noScale';
Stage.align = 'TL';

function setBgSize(mc:MovieClip) {
    var imageRatio:Number = mc._width/mc._height;
    var stageRatio:Number = Stage.width/Stage.height;
    if (stageRatio>=imageRatio) {
        mc._width = Stage.width;
        mc._height = Stage.width/imageRatio;
    } else {
        mc._height = Stage.height;
        mc._width = Stage.height*imageRatio;
    }
}

-hroth