Frame 1
if ((_root.getBytesLoaded() / _root.getBytesTotal()) == 1) {
_root.gotoAndPlay(2);
}
setProperty("_root.Diagnostics", _visible , "0");
stop();
Instance of Symbol 23 MovieClip "pre" in Frame 1
onClipEvent (enterFrame) {
percent = _root.getBytesLoaded() / _root.getBytesTotal();
actual_percent = Math.round(percent * 100);
_root.loadingbar.greenbar._xscale = percent * 100;
if (percent == 1) {
_root.gotoandPlay(2);
}
}
onClipEvent (enterFrame) {
if ((_root.getBytesLoaded() / _root.getBytesTotal()) == 1) {
_root.gotoAndPlay(2);
}
}
Frame 2
_root.pts = 0;
_root.score = 0;
_root.speed = 0;
_root.cams = 0;
_root.totcams = 0;
_root.truescore = 0;
_root.Diagnostics.samangle = 0;
_root.samLimit = 0;
_root.camlefthit = 0;
_root.camrighthit = 0;
_root.carx = 275;
_root.cary = 480;
_root.sum = 835;
stop();
Instance of Symbol 82 MovieClip "sam" in Frame 7
onClipEvent (load) {
samMoveSpeed = 20;
this._y = _root.car._y - 20;
this._x = _root.car._x;
}
onClipEvent (enterFrame) {
this._y = this._y - samMoveSpeed;
if (this._y < -50) {
_root.Diagnostics.samLimit--;
if (_root.Diagnostics.samLimit < 0) {
_root.Diagnostics.samLimit = 0;
}
_root.Diagnostics.currentbullets--;
this.removeMovieClip();
this._y = 10000;
trace("Bullet removed from movie");
}
if (this.hitTest(_root.camleft.mathcam)) {
_level0.collisioncheck = "ivebeenshot";
_root.camlefthit = 1;
_root.Diagnostics.samLimit--;
if (_root.Diagnostics.samLimit < 0) {
_root.Diagnostics.samLimit = 0;
}
_root.Diagnostics.currentbullets--;
trace("Left cam says Camera has been shot!");
tellTarget (_root.camleft) {
gotoAndPlay (2);
};
this.removeMovieClip();
}
if (this.hitTest(_root.camright.mathcam)) {
_level0.collisioncheck = "ivebeenshot";
_root.camrighthit = 1;
_root.Diagnostics.samLimit--;
if (_root.Diagnostics.samLimit < 0) {
_root.Diagnostics.samLimit = 0;
}
_root.Diagnostics.currentbullets--;
trace("Left cam says Camera has been shot!");
tellTarget (_root.camright) {
gotoAndPlay (2);
};
this.removeMovieClip();
}
}
Frame 10
_root.speed = 15;
_root.totcams = 0;
tellTarget ("_root.ambient1") {
gotoAndStop (2);
};
tellTarget ("_root.ambient2") {
gotoAndStop (3);
};
tellTarget ("_root.ambient3") {
gotoAndStop (5);
};
_root.pts = 0;
Mouse.hide();
Instance of Symbol 91 MovieClip "ambient1" in Frame 10
onClipEvent (load) {
}
onClipEvent (enterFrame) {
pigsspeed = _root.speed;
actualpigsspeed = (pigsspeed = pigsspeed - 8);
this._y = this._y + actualpigsspeed;
if (800 < this._y) {
randy = Math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
setProperty(this, _y , setting);
colselect = Math.round(Math.random() * 10);
tellTarget (this) {
gotoAndStop(colselect);
};
}
if (this._y < -300) {
setProperty(this, _y , 660);
tellTarget (this) {
gotoAndStop (3);
};
}
}
Instance of Symbol 92 MovieClip "ambient2" in Frame 10
onClipEvent (load) {
}
onClipEvent (enterFrame) {
pigsspeed = _root.speed;
actualpigsspeed = (pigsspeed = pigsspeed - 13);
this._y = this._y + actualpigsspeed;
if (800 < this._y) {
randy = math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
setProperty(this, _y , setting);
colselect = Math.round(Math.random() * 10);
tellTarget (this) {
gotoAndStop(colselect);
};
}
if (this._y < -300) {
setProperty(this, _y , 660);
}
}
Instance of Symbol 93 MovieClip "ambient3" in Frame 10
onClipEvent (load) {
}
onClipEvent (enterFrame) {
pigsspeed = _root.speed;
actualpigsspeed = (pigsspeed = pigsspeed - 17);
this._y = this._y + actualpigsspeed;
if (800 < this._y) {
randy = math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
setProperty(this, _y , setting);
colselect = Math.round(Math.random() * 10);
tellTarget (this) {
gotoAndStop(colselect);
};
}
if (this._y < -300) {
setProperty(this, _y , 660);
}
}
Instance of Symbol 107 MovieClip in Frame 11
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y = this._y + camspeed2;
if (1050 < this._y) {
setProperty(this, _y , -50);
}
}
Instance of Symbol 108 MovieClip in Frame 11
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y = this._y + camspeed2;
if (650 < this._y) {
setProperty(this, _y , -450);
}
}
Instance of Symbol 111 MovieClip "bushes1" in Frame 11
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y = this._y + camspeed2;
if (650 < this._y) {
randy = Math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
setProperty(this, _y , setting);
treerot = Math.random() * 360;
setProperty(this, _rotation , treerot);
}
}
Instance of Symbol 111 MovieClip in Frame 11
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y = this._y + camspeed2;
if (650 < this._y) {
randy = Math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
setProperty(this, _y , setting);
treerot = Math.random() * 360;
setProperty(this, _rotation , treerot);
}
}
Instance of Symbol 125 MovieClip "camleft" in Frame 11
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y = this._y + camspeed2;
if (700 < this._y) {
randy = Math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
setProperty(this, _y , setting);
_root.camlefthit = 0;
_level0.collisioncheck = "ive been reset";
iamhit = 0;
tellTarget (this) {
gotoAndStop (1);
};
}
if ((_root.camlefthit == 0) && (490 < this._y)) {
tellTarget (this) {
gotoAndStop (5);
trace("camera flashes");
};
}
}
Instance of Symbol 126 MovieClip "camright" in Frame 11
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y = this._y + camspeed2;
if (700 < this._y) {
randy = Math.random();
result = randy * 1000;
if (500 < result) {
result = 500;
}
setting = result * -1;
setProperty(this, _y , setting);
_root.camrighthit = 0;
_level0.collisioncheck = "ive been reset";
iamhit = 0;
tellTarget (this) {
gotoAndStop (1);
};
}
if ((_root.camrighthit == 0) && (490 < this._y)) {
tellTarget (this) {
gotoAndStop (5);
trace("camera flashes");
};
}
}
Instance of Symbol 132 MovieClip "car" in Frame 11
onClipEvent (load) {
turnspeed = 11;
setProperty("/car", _x , _root.carx);
setProperty("/car", _y , _root.cary);
_root.sam._visible = false;
samCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT) && (0 < _root.speed)) {
this._x = this._x + turnspeed;
if (425 < this._x) {
this._x = 425;
}
setProperty(this, _rotation , "10");
} else if (Key.isDown(Key.LEFT) && (0 < _root.speed)) {
this._x = this._x - turnspeed;
if (this._x < 115) {
this._x = 115;
}
setProperty(this, _rotation , "-10");
} else {
setProperty(this, _rotation , "0");
}
if (Key.isDown(Key.DOWN)) {
_root.speed--;
} else if (Key.isDown(Key.UP)) {
_root.speed++;
}
if (Key.isDown(Key.SPACE) && (_root.Diagnostics.samLimit < 4)) {
samCounter++;
_root.Diagnostics.samLimit++;
_root.sam.duplicateMovieClip("sam" + samCounter, samCounter);
_root.Diagnostics.currentbullets++;
_root["sam" + samCounter]._visible = true;
tellTarget ("_root.gunshot") {
gotoAndPlay (2);
};
}
if (_root.speed < 0) {
_root.speed = 0;
}
if (_root.speed == 80) {
_root.speed = 79;
}
if (30 < _level0.pts) {
_root.speed = 0;
tellTarget ("_root") {
gotoAndPlay (36);
};
}
if (this.frontbump.hitTest(_root.tree1.trunk)) {
tellTarget (this) {
gotoAndPlay (2);
};
tellTarget ("_root.5pts") {
gotoAndPlay (2);
};
}
if (this.frontbump.hitTest(_root.tree2.trunk)) {
tellTarget (this) {
gotoAndPlay (2);
};
tellTarget ("_root.5pts") {
gotoAndPlay (2);
};
}
if (this.frontbump.hitTest(_root.tree3.trunk)) {
tellTarget (this) {
gotoAndPlay (2);
};
tellTarget ("_root.5pts") {
gotoAndPlay (2);
};
}
if (this.frontbump.hitTest(_root.ambient1)) {
tellTarget (this) {
gotoAndPlay (2);
};
tellTarget ("_root.5pts") {
gotoAndPlay (2);
};
_root.speed = 5;
}
if (this.frontbump.hitTest(_root.ambient2)) {
tellTarget (this) {
gotoAndPlay (2);
};
tellTarget ("_root.5pts") {
gotoAndPlay (2);
};
_root.speed = 5;
}
if (this.frontbump.hitTest(_root.ambient3)) {
tellTarget (this) {
gotoAndPlay (2);
};
tellTarget ("_root.5pts") {
gotoAndPlay (2);
};
_root.speed = 5;
}
if (this.rearbump.hitTest(_root.ambient1)) {
tellTarget (this) {
gotoAndPlay (2);
};
tellTarget ("_root.5pts") {
gotoAndPlay (2);
};
_root.speed = 13;
}
if (this.rearbump.hitTest(_root.ambient2)) {
tellTarget (this) {
gotoAndPlay (2);
};
tellTarget ("_root.5pts") {
gotoAndPlay (2);
};
_root.speed = 18;
}
if (this.rearbump.hitTest(_root.ambient3)) {
tellTarget (this) {
gotoAndPlay (2);
};
tellTarget ("_root.5pts") {
gotoAndPlay (2);
};
_root.speed = 22;
}
_root.carx = this._x;
_root.cary = this._y;
}
Instance of Symbol 137 MovieClip "tree2" in Frame 11
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y = this._y + camspeed2;
if (650 < this._y) {
randy = Math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
setProperty(this, _y , setting);
treerot = Math.random() * 360;
setProperty(this, _rotation , treerot);
}
}
Instance of Symbol 137 MovieClip "tree1" in Frame 11
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y = this._y + camspeed2;
if (650 < this._y) {
randy = Math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
setProperty(this, _y , setting);
treerot = Math.random() * 360;
setProperty(this, _rotation , treerot);
}
}
Instance of Symbol 138 MovieClip "tree3" in Frame 11
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y = this._y + camspeed2;
if (750 < this._y) {
randy = math.random();
result = randy * 1000;
if (500 < result) {
result = 500;
}
setting = result * -1;
setProperty(this, _y , setting);
treerot = Math.random() * 360;
setProperty(this, _rotation , treerot);
}
}
Instance of Symbol 139 MovieClip "tree4" in Frame 11
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y = this._y + camspeed2;
if (750 < this._y) {
randy = math.random();
result = randy * 1000;
if (800 < result) {
result = 800;
}
setting = result * -1;
setProperty(this, _y , setting);
treerot = Math.random() * 360;
setProperty(this, _rotation , treerot);
}
}
Instance of Symbol 139 MovieClip "tree5" in Frame 11
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y = this._y + camspeed2;
if (750 < this._y) {
randy = math.random();
result = randy * 1000;
if (800 < result) {
result = 800;
}
setting = result * -1;
setProperty(this, _y , setting);
treerot = Math.random() * 360;
setProperty(this, _rotation , treerot);
}
}
Instance of Symbol 166 MovieClip "level" in Frame 11
onClipEvent (load) {
lev = 0;
}
onClipEvent (enterFrame) {
if (_root.totcams == 15) {
tellTarget (this) {
gotoAndPlay ("lev1");
lev = 1;
};
}
if ((_root.totcams == 30) && (lev == 1)) {
tellTarget (this) {
gotoAndPlay ("lev2");
lev = 2;
};
}
if ((_root.totcams == 45) && (lev == 2)) {
tellTarget (this) {
gotoAndPlay ("lev3");
lev = 3;
};
}
if ((_root.totcams == 60) && (lev == 3)) {
tellTarget (this) {
gotoAndPlay ("lev4");
lev = 4;
};
}
if ((_root.totcams == 75) && (lev == 4)) {
tellTarget (this) {
gotoAndPlay ("lev5");
lev = 5;
};
}
if ((_root.totcams == 90) && (lev == 5)) {
tellTarget (this) {
gotoAndPlay ("lev6");
lev = 6;
};
}
if ((_root.totcams == 105) && (lev == 6)) {
tellTarget (this) {
gotoAndPlay ("lev7");
lev = 7;
};
}
if ((_root.totcams == 120) && (lev == 7)) {
tellTarget (this) {
gotoAndPlay ("lev8");
lev = 8;
};
}
if ((_root.totcams == 135) && (lev == 8)) {
tellTarget (this) {
gotoAndPlay ("lev9");
lev = 9;
};
}
if ((_root.totcams == 150) && (lev == 9)) {
tellTarget (this) {
gotoAndPlay ("lev10");
lev = 10;
};
}
if ((_root.totcams == 165) && (lev == 10)) {
tellTarget (this) {
gotoAndPlay ("lev11");
lev = 11;
};
}
if ((_root.totcams == 180) && (lev == 11)) {
tellTarget (this) {
gotoAndPlay ("lev12");
lev = 12;
};
}
}
Frame 35
gotoAndPlay (11);
Frame 36
_root.speed = 0;
setProperty("_root.car", _x , "290");
_root.sum++;
Mouse.show();
Instance of Symbol 171 MovieClip "car" in Frame 36
/* no clip actions */
Frame 55
stop();
Instance of Symbol 4 MovieClip "greenbar" in Symbol 10 MovieClip Frame 1
onClipEvent (load) {
this._xscale = 0;
}
Instance of Symbol 10 MovieClip "loadingbar" in Symbol 23 MovieClip Frame 1
onClipEvent (enterFrame) {
percent = _root.getBytesLoaded() / _root.getBytesTotal();
actual_percent = Math.round(percent * 100);
_root.pre.loadingbar.greenbar._xscale = percent * 100;
if (percent == 1) {
_root.gotoandPlay(2);
}
}
onClipEvent (enterFrame) {
if ((_root.getBytesLoaded() / _root.getBytesTotal()) == 1) {
_root.gotoAndPlay(2);
}
}
Symbol 54 MovieClip Frame 5
stop();
Symbol 55 Button
on (release) {
tellTarget ("_root") {
gotoAndPlay (2);
};
}
Symbol 60 Button
on (release) {
getURL ("http://www.mfhughes.com", "_blank");
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 91 MovieClip Frame 3
stop();
Symbol 91 MovieClip Frame 4
stop();
Symbol 91 MovieClip Frame 5
stop();
Symbol 91 MovieClip Frame 6
stop();
Symbol 91 MovieClip Frame 7
stop();
Symbol 91 MovieClip Frame 8
stop();
Symbol 91 MovieClip Frame 9
stop();
Symbol 91 MovieClip Frame 10
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
stop();
Symbol 92 MovieClip Frame 3
stop();
Symbol 92 MovieClip Frame 4
stop();
Symbol 92 MovieClip Frame 5
stop();
Symbol 92 MovieClip Frame 6
stop();
Symbol 92 MovieClip Frame 7
stop();
Symbol 92 MovieClip Frame 8
stop();
Symbol 92 MovieClip Frame 9
stop();
Symbol 92 MovieClip Frame 10
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 93 MovieClip Frame 3
stop();
Symbol 93 MovieClip Frame 4
stop();
Symbol 93 MovieClip Frame 5
stop();
Symbol 93 MovieClip Frame 6
stop();
Symbol 93 MovieClip Frame 7
stop();
Symbol 93 MovieClip Frame 8
stop();
Symbol 93 MovieClip Frame 9
stop();
Symbol 93 MovieClip Frame 10
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 21
stop();
Symbol 124 MovieClip Frame 8
stop();
Symbol 125 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip "mathcam" in Symbol 125 MovieClip Frame 1
/* no clip actions */
Symbol 125 MovieClip Frame 2
var currentscore;
var bonus;
var rtnscore;
_root.totcams++;
currentscore = _root.score;
bonus = Math.round(_root.speed / 3);
trace("Bonus = ");
trace(bonus);
rtnscore = bonus + currentscore;
trace("New Calculated score = ");
trace(rtnscore);
_level0.score = rtnscore;
_level0.cams++;
tellTarget ("_root.cartooncam") {
gotoAndPlay (2);
};
Symbol 125 MovieClip Frame 4
stop();
Symbol 125 MovieClip Frame 5
_root.totcams++;
_level0.pts++;
Symbol 126 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip "mathcam" in Symbol 126 MovieClip Frame 1
/* no clip actions */
Symbol 126 MovieClip Frame 2
var currentscore;
var bonus;
var rtnscore;
_root.totcams++;
currentscore = _root.score;
bonus = Math.round(_root.speed / 3);
trace("Bonus = ");
trace(bonus);
rtnscore = bonus + currentscore;
trace("New Calculated score = ");
trace(rtnscore);
_level0.score = rtnscore;
_level0.cams++;
tellTarget ("_root.cartooncam") {
gotoAndPlay (2);
};
Symbol 126 MovieClip Frame 4
stop();
Symbol 126 MovieClip Frame 5
_root.totcams++;
_level0.pts++;
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 8
_root.pts++;
_root.pts++;
_root.pts++;
gotoAndStop (1);
Symbol 166 MovieClip Frame 16
stop();
Symbol 166 MovieClip Frame 31
stop();
Symbol 166 MovieClip Frame 46
stop();
Symbol 166 MovieClip Frame 63
stop();
Symbol 166 MovieClip Frame 80
stop();
Symbol 166 MovieClip Frame 97
stop();
Symbol 166 MovieClip Frame 113
stop();
Symbol 166 MovieClip Frame 130
stop();
Symbol 166 MovieClip Frame 146
stop();
Symbol 166 MovieClip Frame 163
stop();
Symbol 166 MovieClip Frame 179
stop();
Symbol 166 MovieClip Frame 195
stop();
Symbol 166 MovieClip Frame 211
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 8
_root.pts++;
_root.pts++;
_root.pts++;
gotoAndStop (1);
Symbol 194 MovieClip Frame 5
stop();
Symbol 197 Button
on (release) {
tellTarget (_root) {
gotoAndPlay (2);
};
}
Symbol 198 MovieClip Frame 18
stop();
Symbol 200 MovieClip Frame 34
stop();