Combined Code
frame 1 {
if (_root.getBytesLoaded() / _root.getBytesTotal() == 1) {
_root.gotoAndPlay(2);
}
_root.Diagnostics._visible = '0';
stop();
}
movieClip 2 {
}
movieClip 4 {
}
movieClip 6 {
}
movieClip 10 {
instance greenbar of movieClip 4 {
onClipEvent (load) {
this._xscale = 0;
}
}
}
movieClip 13 {
}
movieClip 15 {
}
movieClip 17 {
}
movieClip 19 {
}
movieClip 20 {
}
movieClip 21 {
instance loadingbar of movieClip 10 {
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);
}
}
}
}
instance pre of movieClip 21 {
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();
}
movieClip 28 {
}
movieClip 31 {
}
movieClip 32 {
}
movieClip 34 {
}
movieClip 38 {
}
movieClip 40 {
}
movieClip 42 {
}
movieClip 44 {
}
movieClip 47 {
}
movieClip 49 {
}
movieClip 50 {
}
movieClip 51 {
frame 5 {
stop();
}
}
button 52 {
on (release) {
tellTarget ('_root') {
gotoAndPlay(2);
}
}
}
movieClip 54 {
}
movieClip 55 {
}
movieClip 56 {
frame 5 {
stop();
}
}
button 57 {
on (release) {
getURL('http://www.mfhughes.com/hiscores.php', '_blank');
}
}
movieClip 61 {
}
button 62 {
on (release) {
getURL('http://www.mfhughes.com', '_blank');
}
}
movieClip 65 {
}
movieClip 72 {
}
movieClip 73 {
}
movieClip 76 {
}
movieClip 78 {
}
movieClip 80 {
}
movieClip 82 {
}
movieClip 83 {
}
instance sam of movieClip 83 {
onClipEvent (load) {
samMoveSpeed = 20;
this._y = _root.car._y - 20;
this._x = _root.car._x;
}
onClipEvent (enterFrame) {
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();
}
}
}
movieClip 85 {
frame 1 {
stop();
}
}
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();
}
movieClip 87 {
}
movieClip 89 {
}
movieClip 91 {
}
movieClip 92 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
instance ambient1 of movieClip 92 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
pigsspeed = _root.speed;
pigsspeed -= 8;
actualpigsspeed = pigsspeed;
this._y += actualpigsspeed;
if (800 < this._y) {
randy = Math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
eval(this)._y = setting;
colselect = Math.round(Math.random() * 10);
tellTarget ('this') {
gotoAndStop(colselect);
}
}
if (this._y < -300) {
eval(this)._y = 660;
tellTarget ('this') {
gotoAndStop(3);
}
}
}
}
movieClip 93 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
instance ambient2 of movieClip 93 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
pigsspeed = _root.speed;
pigsspeed -= 13;
actualpigsspeed = pigsspeed;
this._y += actualpigsspeed;
if (800 < this._y) {
randy = math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
eval(this)._y = setting;
colselect = Math.round(Math.random() * 10);
tellTarget ('this') {
gotoAndStop(colselect);
}
}
if (this._y < -300) {
eval(this)._y = 660;
}
}
}
movieClip 94 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
instance ambient3 of movieClip 94 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
pigsspeed = _root.speed;
pigsspeed -= 17;
actualpigsspeed = pigsspeed;
this._y += actualpigsspeed;
if (800 < this._y) {
randy = math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
eval(this)._y = setting;
colselect = Math.round(Math.random() * 10);
tellTarget ('this') {
gotoAndStop(colselect);
}
}
if (this._y < -300) {
eval(this)._y = 660;
}
}
}
movieClip 106 {
}
movieClip 107 {
frame 1 {
stop();
}
}
movieClip 108 {
}
instance of movieClip 108 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y += camspeed2;
if (1050 < this._y) {
eval(this)._y = -50;
}
}
}
movieClip 109 {
}
instance of movieClip 109 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y += camspeed2;
if (650 < this._y) {
eval(this)._y = -450;
}
}
}
movieClip 111 {
}
movieClip 112 {
}
instance bushes1 of movieClip 112 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y += camspeed2;
if (650 < this._y) {
randy = Math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
eval(this)._y = setting;
treerot = Math.random() * 360;
eval(this)._rotation = treerot;
}
}
}
instance of movieClip 112 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y += camspeed2;
if (650 < this._y) {
randy = Math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
eval(this)._y = setting;
treerot = Math.random() * 360;
eval(this)._rotation = treerot;
}
}
}
movieClip 114 {
}
movieClip 116 {
}
movieClip 119 {
}
movieClip 120 {
frame 21 {
stop();
}
}
movieClip 124 {
}
movieClip 125 {
frame 8 {
stop();
}
}
movieClip 126 {
frame 1 {
stop();
}
instance mathcam of movieClip 114 {
}
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);
}
}
frame 4 {
stop();
}
frame 5 {
++_root.totcams;
++_level0.pts;
}
}
instance camleft of movieClip 126 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y += camspeed2;
if (700 < this._y) {
randy = Math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
eval(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');
}
}
}
}
movieClip 127 {
frame 1 {
stop();
}
instance mathcam of movieClip 114 {
}
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);
}
}
frame 4 {
stop();
}
frame 5 {
++_root.totcams;
++_level0.pts;
}
}
instance camright of movieClip 127 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y += camspeed2;
if (700 < this._y) {
randy = Math.random();
result = randy * 1000;
if (500 < result) {
result = 500;
}
setting = result * -1;
eval(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');
}
}
}
}
movieClip 129 {
}
movieClip 131 {
}
movieClip 133 {
frame 1 {
stop();
}
frame 8 {
++_root.pts;
++_root.pts;
++_root.pts;
gotoAndStop(1);
}
}
instance car of movieClip 133 {
onClipEvent (load) {
turnspeed = 11;
/car._x = _root.carx;
/car._y = _root.cary;
_root.sam._visible = false;
samCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT) && 0 < _root.speed) {
this._x += turnspeed;
if (425 < this._x) {
this._x = 425;
}
eval(this)._rotation = '10';
} else {
if (Key.isDown(Key.LEFT) && 0 < _root.speed) {
this._x -= turnspeed;
if (this._x < 115) {
this._x = 115;
}
eval(this)._rotation = '-10';
} else {
eval(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;
}
}
movieClip 136 {
}
movieClip 138 {
}
instance tree2 of movieClip 138 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y += camspeed2;
if (650 < this._y) {
randy = Math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
eval(this)._y = setting;
treerot = Math.random() * 360;
eval(this)._rotation = treerot;
}
}
}
instance tree1 of movieClip 138 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y += camspeed2;
if (650 < this._y) {
randy = Math.random();
result = randy * 1000;
if (300 < result) {
result = 300;
}
setting = result * -1;
eval(this)._y = setting;
treerot = Math.random() * 360;
eval(this)._rotation = treerot;
}
}
}
movieClip 139 {
}
instance tree3 of movieClip 139 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y += camspeed2;
if (750 < this._y) {
randy = math.random();
result = randy * 1000;
if (500 < result) {
result = 500;
}
setting = result * -1;
eval(this)._y = setting;
treerot = Math.random() * 360;
eval(this)._rotation = treerot;
}
}
}
movieClip 140 {
}
instance tree4 of movieClip 140 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y += camspeed2;
if (750 < this._y) {
randy = math.random();
result = randy * 1000;
if (800 < result) {
result = 800;
}
setting = result * -1;
eval(this)._y = setting;
treerot = Math.random() * 360;
eval(this)._rotation = treerot;
}
}
}
instance tree5 of movieClip 140 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
camspeed2 = _root.speed;
this._y += camspeed2;
if (750 < this._y) {
randy = math.random();
result = randy * 1000;
if (800 < result) {
result = 800;
}
setting = result * -1;
eval(this)._y = setting;
treerot = Math.random() * 360;
eval(this)._rotation = treerot;
}
}
}
movieClip 142 {
}
movieClip 144 {
}
movieClip 146 {
}
movieClip 148 {
}
movieClip 150 {
}
movieClip 152 {
}
movieClip 154 {
}
movieClip 156 {
}
movieClip 158 {
}
movieClip 160 {
}
movieClip 162 {
}
movieClip 164 {
}
movieClip 166 {
}
movieClip 167 {
frame 16 {
stop();
}
frame 31 {
stop();
}
frame 46 {
stop();
}
frame 63 {
stop();
}
frame 80 {
stop();
}
frame 97 {
stop();
}
frame 113 {
stop();
}
frame 130 {
stop();
}
frame 146 {
stop();
}
frame 163 {
stop();
}
frame 179 {
stop();
}
frame 195 {
stop();
}
frame 211 {
stop();
}
}
instance level of movieClip 167 {
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;
}
}
}
}
movieClip 170 {
}
movieClip 171 {
frame 1 {
stop();
}
}
frame 35 {
gotoAndPlay(11);
}
frame 36 {
_root.speed = 0;
_root.car._x = '290';
++_root.sum;
Mouse.show();
}
movieClip 172 {
frame 1 {
stop();
}
frame 8 {
++_root.pts;
++_root.pts;
++_root.pts;
gotoAndStop(1);
}
}
instance car of movieClip 172 {
}
movieClip 179 {
}
movieClip 181 {
}
movieClip 183 {
}
movieClip 185 {
}
movieClip 186 {
}
movieClip 189 {
}
movieClip 191 {
}
movieClip 193 {
}
movieClip 194 {
}
movieClip 195 {
frame 5 {
stop();
}
}
button 198 {
on (release) {
tellTarget ('_root') {
gotoAndPlay(2);
}
}
}
movieClip 200 {
}
movieClip 201 {
}
movieClip 202 {
frame 5 {
stop();
}
}
button 203 {
on (release) {
subname = name;
subnum = _root.score;
subcams = _root.cams;
checksum = _root.sum;
loadVariablesNum('http://www.mfhughes.com/scsubmit2.php?RegName=' + subname + '&score=' + subnum + '&cams=' + subcams + '&checksum=' + checksum, 0);
tellTarget ('_root') {
gotoAndStop(2);
}
}
}
movieClip 208 {
frame 18 {
stop();
}
}
movieClip 210 {
frame 34 {
stop();
}
}
frame 55 {
stop();
}