Delete onEnterFrame causes later code to not run

i have this code:

gallery_mc.thumbs_mc.onEnterFrame = function() {
    if (this._currentframe == 95) {
        loadThumbs(0);
        delete this.onEnterFrame;
    } else if (this._currentframe == 105) {
for (var i:Number = 0; i < 10; i++) {
            var target:String = "gallery_mc.thumbs_mc.thumb" + i + "_mc.container_mc";
            thumbs_mcl.unloadClip(target);
        }
    }
};

problem is when i get to 95, everything works well, but when i get to 105, the onEnterFrame had already been deleted so that code doesnt run anymore. how can i accomplish this so that the code on 105 runs?

thanks in advance.