Frame 1
oldQualtiy = _quality;
_quality = "HIGH";
score = 0;
timelimit = 60;
timeleft = 60;
finalcarframe = 5;
finalcarx = 0;
finalcary = 0;
stop();
stop();
Instance of Symbol 21 MovieClip "car" in Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 40 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (this._currentframe == 26) {
_root.gotoAndPlay(2);
}
}
Frame 2
inc = 0;
_quality = "MEDIUM";
snd = new Sound();
sndmusic = new Sound();
snd.attachSound("carloopin");
sndmusic.attachSound("music");
snd.start(0, 999);
snd.setVolume(30);
sndmusic.start(0, 999);
stop();
Instance of Symbol 59 MovieClip "div" in Frame 2
onClipEvent (load) {
yposi = 200;
yc = 760;
xc = 760;
j = 3;
pers = this._y / j;
oldt = Math.round(getTimer() / 1000);
acc = 0;
dcc = 0;
}
onClipEvent (enterFrame) {
if (acc == 1) {
_root.car._yscale = _root.car._yscale - 1;
_root.car._y = _root.car._y - 1;
_root.snd.setVolume(30 + (_root.inc * 2));
acc = 0;
}
if (dcc == 1) {
_root.car._yscale = _root.car._yscale + 1;
_root.car._y = _root.car._y + 1;
_root.snd.setVolume(30 + (_root.inc * 2));
dcc = 0;
}
if (Key.isDown(Key.UP)) {
_root.inc = _root.inc + j;
_root.car._yscale = _root.car._yscale + 1;
_root.car._y = _root.car._y + 1;
acc = 1;
}
if (Key.isDown(Key.DOWN)) {
_root.inc = _root.inc - j;
_root.car._yscale = _root.car._yscale - 1;
_root.car._y = _root.car._y - 1;
dcc = 1;
}
if (21 < _root.inc) {
_root.inc = 21;
}
if (0 >= _root.inc) {
_root.inc = 0;
} else {
pers = pers + 1;
this._y = this._y + (_root.inc + pers);
this._yscale = this._yscale + ((_root.inc + pers) * 3.75);
this._xscale = this._xscale + ((_root.inc + pers) * 3);
}
if (this._y >= yposi) {
this._y = 0;
pers = 0;
this._yscale = 100;
this._xscale = 100;
}
if (_root.timeleft == 0) {
_root.div.stop();
_root.zeb.stop();
_root.tree.stop();
_root.tree1.stop();
_root.peg.stop();
_root.car.stop();
_root.gotoAndStop(3);
}
_root.timeleft = _root.timelimit - (Math.round(getTimer() / 1000) - oldt);
}
Instance of Symbol 60 MovieClip "zeb" in Frame 2
onClipEvent (load) {
yposi = 200;
yc = 760;
xc = 760;
j = 3;
pers = this._y / j;
}
onClipEvent (enterFrame) {
if (0 >= _root.inc) {
_root.inc = 0;
} else {
pers = pers + 1;
this._y = this._y + (_root.inc + pers);
this._yscale = this._yscale + ((_root.inc + pers) * 3.75);
this._xscale = this._xscale + ((_root.inc + pers) * 4.25);
if (Key.isDown(Key.LEFT) and (1 < _root.car._currentframe)) {
_root.car.prevFrame();
_root.car._x = _root.car._x - 30;
}
if (Key.isDown(Key.RIGHT) and (_root.car._currentframe < 9)) {
_root.car.nextFrame();
_root.car._x = _root.car._x + 30;
}
}
if (this._y >= yposi) {
this._y = 0;
pers = 0;
this._yscale = 100;
this._xscale = 100;
_root.score = _root.score + 5;
}
_root.finalcarframe = _root.car._currentframe;
_root.finalcarx = _root.car._x;
_root.finalcary = _root.car._y;
}
Instance of Symbol 61 MovieClip "tree" in Frame 2
onClipEvent (load) {
yposi = 200;
yc = 760;
xc = 760;
j = 3;
pers = this._y / j;
}
onClipEvent (enterFrame) {
if (0 >= _root.inc) {
_root.inc = 0;
} else {
pers = pers + 1;
this._y = this._y + (_root.inc + pers);
this._yscale = this._yscale + ((_root.inc + pers) * 3.75);
this._xscale = this._xscale + ((_root.inc + pers) * 4.25);
}
if (this._y >= yposi) {
this._y = 0;
pers = 0;
this._yscale = 100;
this._xscale = 100;
}
}
Instance of Symbol 62 MovieClip "tree1" in Frame 2
onClipEvent (load) {
yposi = 200;
yc = 760;
xc = 760;
j = 3;
pers = this._y / j;
}
onClipEvent (enterFrame) {
if (0 >= _root.inc) {
_root.inc = 0;
} else {
pers = pers + 1;
this._y = this._y + (_root.inc + pers);
this._yscale = this._yscale + ((_root.inc + pers) * 3.75);
this._xscale = this._xscale + ((_root.inc + pers) * 4.25);
}
if (this._y >= yposi) {
this._y = 0;
pers = 0;
this._yscale = 100;
this._xscale = 100;
}
}
Instance of Symbol 68 MovieClip "peg" in Frame 2
onClipEvent (load) {
function reset() {
this.gotoAndStop(1);
this._xscale = 100;
this._yscale = 100;
this._y = 0;
this._x = random(50) + 250;
xinc = ((this._x - 275) * 5) / 100;
pers = 0;
sc = 0;
}
function hit() {
this.nextFrame();
}
inc = 0;
j = 3;
oldy = 0;
time = 30;
reset();
}
onClipEvent (enterFrame) {
if (0 >= _root.inc) {
_root.inc = 0;
} else {
pers = pers + 1;
oldy = this._y;
this._y = this._y + (_root.inc + pers);
this._yscale = this._yscale + ((_root.inc + pers) * 3.75);
this._xscale = this._xscale + ((_root.inc + pers) * 3.75);
this._x = this._x + (xinc * (this._y - oldy));
}
if (this.hitTest(_root.car)) {
hit();
sc = 1;
}
if (this._y >= 200) {
if (sc == 1) {
_root.score = _root.score - 5;
sc = 0;
}
reset();
}
}
Frame 3
_quality = "HIGH";
snd.stop("carloopin");
sndmusic.stop("music");
stop();
stop();
Instance of Symbol 75 MovieClip "div" in Frame 3
/* no clip actions */
Instance of Symbol 76 MovieClip "car" in Frame 3
onClipEvent (load) {
this._x = _root.finalcarx;
this._y = _root.finalcary;
gotoAndStop(_root.finalcarframe);
}
Instance of Symbol 87 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
_root.gotoAndPlay(1);
}
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 5
stop();
Symbol 87 MovieClip Frame 7
stop();