Combined Code
frame 1 {
stop();
}
movieClip 2 {
}
instance of movieClip 2 {
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
_xscale = _xscale + (Math.random() / 3) * (Math.random() * 2);
_root.percent.text = Math.floor((_xscale / 84) * 100 * 1000) / 1000 + '%';
if (_xscale > 113) {
_root.gotoAndStop(2);
}
}
}
frame 2 {
stop();
}
button 11 {
on (release) {
_root.gotoAndPlay(2);
}
}
frame 3 {
startTime = getTimer();
stop();
}
movieClip 21 {
}
instance of movieClip 21 {
onClipEvent (load) {
yMax = 20;
pushing = false;
flipped = false;
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse - 80;
if (yMax > 100) {
_xscale = -65;
flipped = true;
}
if (_y > yMax) {
_y = yMax;
if (pushing == false && yMax < 100) {
if (flipped) {
yMax += 0.5;
} else {
yMax += 1;
}
pushing = true;
}
} else {
pushing = false;
}
if (flipped) {
_root.textA.text = 'you got it rong numpnuts you got to FLIP, it TURN-WAYS';
} else {
_root.textA.text = '';
}
_root.timer.text = 53 - (getTimer() - _root.startTime) / 1000 + ' secnods left';
if ((getTimer() - _root.startTime) / 1000 > 55) {
_root.gotoAndStop(4);
}
}
onClipEvent (mouseMove) {
if (Math.random() > 0.997) {
if (_xscale == 65) {
_xscale = -65;
flipped = true;
} else {
_xscale = 65;
flipped = false;
}
}
}
}
frame 4 {
stop();
}