Beneath this put the following code: thisBubble.yspeed = Math.random()*2+.2; thisBubble.onEnterFrame = function() { this._y -= this.yspeed; if (this._y<= 0) { this._y = 400; this._x = 10+Math.random()*mWidth; } if (this._x>=mWidth || this._x<=0) { this._y = 400; this._x = 10+Math.random()*mWidth; } }; } This code generates a random number for the _y speed of the bubble, followed by two 'if' statements. These check the bubble movie clips are on the stage, and if not will reset them to a random _x position, and a y position off the stage.