Rising Bubbles Flash MX 2004

I have made a movieClip of Rising Bubbles based off the falling snow 2.0 tutorial that works great with Flash Player 6 ActionScript 2.0 but I can’t get it to work for Flash Player 7 ActionScript 2.0.

Here is the ActionScript for the Actions layer:

var bubbles = 8;
do {
duplicateMovieClip(bubble, “bubble”+k, k);
k++;
} while (k != bubbles);

Here is the ActionScript attached to the bubble instance:

onClipEvent (load) {
//variables
var width = 35;
var height = 0;
//random x,y, and alpha
this._xscale = this._yscale=50+Math.random()100;
this._alpha = 20+Math.random()50;
//random x and y for flakes
this._x = -width+Math.random()
(3
width);
this._y = -10+Math.random()*height;
//speed and trigonometric value
i = 1+Math.random()*2;
k = -Math.PI+Math.random()Math.PI;
rad = 0;
}
onClipEvent (enterFrame) {
// horizontal movement
rad += (k/10)Math.PI;
//xmovement = _root._xmouse;
xmovement = _xmouse;
this._x -= Math.cos(rad)+(xmovement-(width/2))/100;
// vertical movement
this._y -= i;
// remove clips when they misbehave (overstep boundaries)
if (this._x>(width+50)) {
this._x = -45;
this._y = Math.random()height2;
}
if (this._x<-50) {
this._x = width+45;
this._y = Math.random()height2;
}
if (this._y<=height) {
this._y = 17;
this._x = -width+Math.random()
(3
width);
}
}

Thanks,

KK