To avoid unneccesary onEnterFrame checks I wonder if i can delete it after '} else {'. I dont want to removeMovieClip.

PHP Code:
onClipEvent(load) {
    function 
expand(endSize) {
        
this.onEnterFrame = function  () {
            var 
myHeight _height;
            if(
_height endSize) {
                
myHeight myHeight*1.2 1;
                if(
myHeight endSize) {
                    
myheight =endSize;
                }
            } else {
                
myheight =endSize;
            }
            
_height _parent.mask._height myheight;
            
_parent.videoplayerbg._y _parent.player._y myheight 7;
// delete the onEnterframe function?
        
}
    }

Any thougts or cool tricks out there?
//pod