Very strange indeed

i have a full page website using the noscale and onresize function to scale and position my website dynamically. im having a weird problem however. once it reaches the end of the animation… if it is resized it will totally get distorted. where as if you resize at the start or even during the animation it scales and positions just fine. only when it reached the end of the animation will it go crazy like that.

ive uploaded my current project to freewebs…
http://www.freewebs.com/ushhome/tooltip.swf

otherwise if you want to look at how it works i have uploaded that too.
http://www.freewebs.com/ushhome/proj%5F2.rar

and also if it helps i have pasted the following code…

// ***Stage aligned top left
Stage.align = "TL";
// *** Stop the stage from scaling with the browser window.
Stage.scaleMode = "noScale";
// initiate postitions and scaling values for objects
    if (Stage.width>=841) {
        bgGradient_mc._width = Stage.width+5;
        bundle._width = Stage.width+5
        bundle._height = ((0.69*Stage.width)+5);
    } else {
        bgGradient_mc._width = 855;
        bundle._width = 845;
        bundle._height = 590;
    }
    if (Stage.height>=501) {
        bgGradient_mc._height = Stage.height+5;
        bundle._y = Stage.height/2;
    } else {
        bgGradient_mc._height = 515;
        bundle._y = 292
    };    
// end initial position setting


//create a listner that checks to see if the browser window is resized
sizeListener = new Object();
sizeListener.onResize = function() {
    // change movieclip properties when the window is resized.
    if (Stage.width>=841) {
        bgGradient_mc._width = Stage.width+5;
        bundle._width = Stage.width+5
        bundle._height = ((0.69*Stage.width)+5);
    } else {
        bgGradient_mc._width = 855;
        bundle._width = 845;
        bundle._height = 590;
    }
    if (Stage.height>=501) {
        bgGradient_mc._height = Stage.height+5;
        bundle._y = Stage.height/2;
    } else {
        bgGradient_mc._height = 515;
        bundle._y = 292
    };    
};
Stage.addListener(sizeListener);

im just wondering what ive done wrong… logically it all should work, but its just going crazy. can someone tell me what idiotic error i have made somewhere?

EDIT: I realise now after messing around a bit it always happens after the first frame. is it because the size of the movie changes as it animates? it really shouldnt since i have that mc nested inside another that masks everything so that the parent mc will always remain the same size even tho theres animation going on two levels inside it.

Is this the correct way to do this?