Grazie!!

xò non riesco a farlo andare: ho applicato questa azione al movie clip. Invece come devo fare?

codice:
onClipEvent (enterFrame) {
	bg.fadeIn(100, 5);
	MovieClip.prototype.fadeIn = function(limit, speed){
	   this.onEnterFrame = function(){
		  if(this._alpha < limit) this._alpha += speed;
		  else delete this.onEnterFrame;
	   };
	};
}