Resizing picture along the stage

Hi there,

I’m little bit lost right now.

How I make picture resize along the stage, so that the aspect ratio doesen’t twist.

Picture size can be anything. The point is that you can see the whole picture everytime when you resize the stage.


stop();

Stage.align = "TL";

Stage.scaleMode = "noScale";

var container_mcl:MovieClipLoader = new MovieClipLoader();
container_mcl.addListener(mclListener);
container_mcl.loadClip("monkey.jpg", picture); 

sizeListener = new Object();
sizeListener.onResize = function() {
    McMaski._width = fullwidth;
    McMaski._height = fullheight;
    fullwidth = Stage.width;
    fullheight = Stage.height;
    trace("full height " +fullheight);
    trace("full width " +fullwidth);
    picture._height = fullheight;
    picture._width = fullwidth;
};

Stage.addListener(sizeListener);