top = 20;
bottom = 295;
speedY = -1;
MC.onEnterFrame = mcMove;
MC.onRollOver = function() {
this.onEnterFrame = null;
};
MC.onRollOut = function() {
this.onEnterFrame = mcMove;
};
function mcMove() {
if (this._y<=top || this._y>=bottom) {
speedY *= -1;
}
this._y += speedY;
updateAfterEvent();
}