Frame 2
function randRange(min, max) {
var _local1 = Math.round(Math.random() * (max - min)) + min;
return(_local1);
}
stop();
i = 0;
while (i < 15) {
mario.duplicateMovieClip(mario + i, i);
i++;
}
Instance of Symbol 3 MovieClip "bg1" in Frame 2
onClipEvent (enterFrame) {
_x = (_x - 2);
if (_x < -552) {
_x = 550;
}
}
Instance of Symbol 3 MovieClip "bg2" in Frame 2
onClipEvent (enterFrame) {
_x = (_x - 2);
if (_x < -552) {
_x = 550;
}
}
Instance of Symbol 10 MovieClip "mario" in Frame 2
onClipEvent (load) {
var speed = _root.randRange(5, 15);
var _y = _root.randRange(0, 400);
}
onClipEvent (enterFrame) {
_xscale = _y;
_yscale = _y;
_x = (_x + speed);
if (_x > 560) {
var speed = _root.randRange(5, 15);
var _y = _root.randRange(0, 400);
_x = -100;
}
}
Symbol 1 MovieClip Frame 625
gotoAndPlay (1);