How do i set the maximum width and height of a dynamicly created MC.
It is a mc holding an loaded image.

This is what i got sofar:
Code:
createEmptyMovieClip("imagecontainermedium", getNextHighestDepth());
    // set the alpha to not see the picture loading...
    imagecontainermedium._alpha = 0;
    imagecontainermedium.loadMovie("photo/images/1.jpg");
    onEnterFrame = function(){
        if(imagecontainermedium.getBytesLoaded() >= imagecontainermedium.getBytesTotal() && imagecontainermedium.getBytesLoaded() > 0){
            imagecontainermedium._x  = 320 - imagecontainermedium._width/2; 
            imagecontainermedium._y  = 67 - imagecontainermedium._height/2;
            delete onEnterFrame;
            imagecontainermedium._alpha = 100; 
        }
    };
Can someone help me with this.