MovieClip.prototype.scalein = function(n){ this._height = 0 this.onEnterFrame = function(){ this._height += (n-this._height)/9 } } a.scalein(100) b.scalein(45) c.scalein(60)