[MX] Movieclips With the Same Function

I have 3 movieclips on my main timeline - 1 MC for each frame.

The movie clips are named image1_mc, image2_mc, image3_mc .

I want to have all 3 mcs have this code on them:


image1_mc.onEnterFrame = function() {
if (this._alpha < 99) {
this._alpha += 5;
}
}

Is there a way to dynamically create this code for all 3 MCs if they aren’t all on the starting frame?

:p: