Combined Code
movieClip 3 {
}
movieClip 6 {
}
movieClip 7 {
}
movieClip 8 tentacle1a {
instance animate of movieClip 7 {
onClipEvent (load) {
xmin = -10;
yspeed = 0.5;
rtime = 0;
rtimemax = 100;
}
onClipEvent (enterFrame) {
_x = _x - _root.global_speed;
if (limit.hitTest(_root.p1.limit)) {
_root.p1.dead_numb = 3;
_root.p1.dead = true;
_root.remove_all = true;
_parent.removeMovieClip();
}
if (_root.remove_all) {
_parent.removeMovieClip();
}
if (_x <= xmin) {
_parent.removeMovieClip();
}
if (_root.game_reset) {
_parent.removeMovieClip();
}
}
}
}
movieClip 10 {
}
movieClip 11 smoke1a {
instance animate of movieClip 10 {
onClipEvent (load) {
xmin = -10;
yspeed = 0.5;
rtime = 0;
rtimemax = 100;
rot_sp = random(10);
fade_sp = 2;
}
onClipEvent (enterFrame) {
_rotation = _rotation + rot_sp;
_alpha = _alpha - fade_sp;
_x = _x - _root.global_speed;
if (_x <= xmin) {
_parent.removeMovieClip();
}
_y = _y - yspeed;
++rtime;
if (rtime >= rtimemax) {
_parent.removeMovieClip();
}
if (_root.game_reset) {
_parent.removeMovieClip();
}
}
}
}
movieClip 13 {
}
movieClip 14 reset_button1a {
instance animate of movieClip 13 {
onClipEvent (release) {
_root.game_reset = true;
_parent.removeMovieClip();
}
}
}
frame 1 {
function clean() {
for (i in _root) {
_root[i].removeMovieClip();
}
}
Stage.scaleMode = 'exactfit';
_root.clean();
stop();
}
movieClip 16 {
}
instance lower_limit of movieClip 16 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.p1.limit)) {
_root.remove_all = true;
_root.p1.dead_numb = 2;
_root.p1.dead = true;
}
}
}
instance upper_limit of movieClip 16 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.p1.limit)) {
_root.remove_all = true;
_root.p1.dead_numb = 1;
_root.p1.dead = true;
}
}
}
movieClip 18 {
}
movieClip 19 {
}
instance tent_scroll_bot1 of movieClip 19 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = _x - _root.global_speed;
if (_x <= -535) {
_x = 651;
}
}
}
instance tent_scroll_bot2 of movieClip 19 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = _x - _root.global_speed;
if (_x <= -535) {
_x = 651;
}
}
}
instance tent_scroll_top1 of movieClip 19 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = _x - _root.global_speed;
if (_x <= -535) {
_x = 651;
}
}
}
instance tent_scroll_top2 of movieClip 19 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = _x - _root.global_speed;
if (_x <= -535) {
_x = 651;
}
}
}
movieClip 24 {
}
movieClip 27 {
}
movieClip 28 {
}
movieClip 30 {
}
movieClip 32 {
}
movieClip 34 {
}
movieClip 36 {
}
movieClip 38 {
}
movieClip 41 {
}
movieClip 43 {
}
movieClip 48 {
}
movieClip 52 {
}
movieClip 56 {
}
movieClip 61 {
}
movieClip 64 {
}
movieClip 66 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 68 {
}
movieClip 70 {
}
movieClip 71 {
}
movieClip 73 {
}
movieClip 78 {
}
movieClip 80 {
}
movieClip 84 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 90 {
frame 1 {
mouth.gotoAndStop(2);
eyes.gotoAndStop(2);
}
}
movieClip 91 {
}
movieClip 94 {
}
movieClip 96 {
}
movieClip 98 {
}
movieClip 100 {
}
movieClip 102 {
}
movieClip 104 {
frame 1 {
eyes.gotoAndStop(3);
mouth.gotoAndStop(3);
}
frame 6 {
eyes.gotoAndStop(4);
mouth.gotoAndStop(4);
}
frame 36 {
eyes.gotoAndStop(3);
mouth.gotoAndStop(3);
}
}
movieClip 105 {
}
movieClip 110 {
}
movieClip 141 {
}
movieClip 145 {
}
movieClip 146 {
}
movieClip 147 {
frame 60 {
stop();
}
}
movieClip 148 {
frame 1 {
eyes.gotoAndStop(5);
mouth.gotoAndStop(2);
}
frame 48 {
eyes.gotoAndStop(6);
mouth.gotoAndStop(5);
}
frame 59 {
eyes.gotoAndStop(6);
mouth.gotoAndStop(3);
stop();
}
}
movieClip 149 {
}
movieClip 151 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
instance p1 of movieClip 151 {
onClipEvent (load) {
addt = 0;
addmax = 8;
gravity = 0.5;
rise_power = 1;
rpc = 0.2;
dpc = 0.2;
rise_power_main = 3;
dead = false;
accelerate = false;
size = 40;
_xscale = size;
_yscale = size;
yspot = 10;
xspot = -20;
dead_numb = 0;
}
onClipEvent (mouseDown) {
accelerate = true;
}
onClipEvent (mouseUp) {
accelerate = false;
}
onClipEvent (enterFrame) {
_root.acccel = accelerate;
_root.rspeed = rise_power;
if (_root.game_reset) {
addt = 0;
accelerate = false;
rpc = 0.2;
dpc = 0.2;
}
if (!dead) {
gotoAndStop('nd');
if (_root.controller1.game_start) {
if (accelerate) {
rise_power -= rpc;
} else {
rise_power += dpc;
}
_y = _y + rise_power;
++addt;
if (addt >= addmax) {
_root.attachMovie('smoke1a', 'smoke1a' + _root.debris, _root.debris++);
_root['smoke1a' + _root.debris].animate._x = _x + xspot;
_root['smoke1a' + _root.debris].animate._y = _y + yspot;
addt = 0;
}
}
}
if (dead) {
rise_power = 1;
_y = 200;
if (dead_numb == 1) {
gotoAndStop('dead1');
}
if (dead_numb == 2) {
gotoAndStop('dead2');
}
if (dead_numb == 3) {
gotoAndStop('dead3');
}
}
}
}
// unknown tag 88 length 69
movieClip 162 {
}
instance controller1 of movieClip 162 {
onClipEvent (load) {
stopAllSounds();
music_start = false;
stagemusic1a = new Sound();
stagemusic1a.attachSound('surfer');
stagemusic1a.onSoundComplete = function () {
stagemusic1a.start();
};
at_timer = 0;
at_timermax = 100;
at_timer2 = 0;
at_timermax2 = 105;
_root.global_speed = 2;
speed_timer = 0;
speed_timer_max = 500;
_root.score = 0;
_root.best_score = 10;
reset_game = false;
game_start = false;
_root.debris = 100;
_root.t_layer = 200;
_root.p1._x = 191;
_root.p1._y = 192;
_root.upper_limit._y = -12;
_root.lower_limit._y = 405;
_root.tent_scroll_bot1._y = 620;
_root.tent_scroll_bot2._y = 620;
_root.tent_scroll_top1._y = -210;
_root.tent_scroll_top2._y = -210;
}
onClipEvent (enterFrame) {
if (music_start) {
if (!a) {
stagemusic1a.start();
a = true;
}
}
_root.speedtimer = speed_timer;
if (_root.debris >= 120) {
_root.debris = 100;
}
if (_root.t_layer >= 320) {
_root.t_layer = 200;
}
if (game_start) {
if (!_root.p1.dead) {
_root.score += 1;
++at_timer;
if (at_timer >= at_timermax) {
yspot = random(100) + random(250);
_root.attachMovie('tentacle1a', 'tentacle1' + _root.t_layer, _root.t_layer++);
_root['tentacle1' + _root.t_layer].animate._x = 585;
_root['tentacle1' + _root.t_layer].animate._y = yspot;
at_timer = 0;
}
++at_timer2;
if (at_timer2 >= at_timermax2) {
ysel = random(2);
_root.attachMovie('tentacle1a', 'tentacle2' + _root.t_layer, _root.t_layer++);
_root['tentacle2' + _root.t_layer].animate._x = 585;
if (ysel == 0) {
_root['tentacle2' + _root.t_layer].animate._y = 43;
}
if (ysel == 1) {
_root['tentacle2' + _root.t_layer].animate._y = 350;
}
at_timer2 = 0;
}
++speed_timer;
if (speed_timer >= speed_timer_max) {
at_timermax -= 10;
at_timermax2 -= 10;
_root.upper_limit._y += 5;
_root.lower_limit._y -= 5;
_root.tent_scroll_bot1._y -= 10;
_root.tent_scroll_bot2._y -= 10;
_root.tent_scroll_top1._y += 10;
_root.tent_scroll_top2._y += 10;
_root.global_speed += 1;
speed_timer = 0;
}
}
if (_root.p1.dead) {
if (_root.score > _root.best_score) {
_root.best_score = _root.score;
}
_root.global_speed = 0;
if (!c) {
_root.attachMovie('reset_button1a', 'reset_button1a', 800);
_root.reset_button1a.animate._x = 400;
_root.reset_button1a.animate._y = 250;
c = true;
}
if (_root.game_reset) {
game_start = false;
reset_game = true;
}
}
}
if (reset_game) {
_root.remove_all = false;
c = false;
at_timermax = 100;
at_timermax2 = 105;
_root.debris = 100;
_root.p1._x = 191;
_root.p1._y = 192;
_root.upper_limit._y = -12;
_root.lower_limit._y = 405;
_root.tent_scroll_bot1._y = 620;
_root.tent_scroll_bot2._y = 620;
_root.tent_scroll_top1._y = -210;
_root.tent_scroll_top2._y = -210;
_root.p1.dead = false;
_root.global_speed = 2;
speed_timer = 0;
speed_timer_max = 500;
_root.score = 0;
_root.game_reset = false;
game_start = true;
reset_game = false;
}
}
}
movieClip 164 {
}
instance animate of movieClip 164 {
onClipEvent (load) {
this.swapDepths(1000);
}
onClipEvent (release) {
_root.controller1.music_start = true;
_root.controller1.game_start = true;
removeMovieClip(this);
}
}
movieClip 169 {
}
instance of movieClip 169 {
onClipEvent (rollOver) {
_root.intext = 'TOON PIMP';
}
onClipEvent (rollOut) {
_root.intext = '';
}
onClipEvent (release) {
getURL('http://toonpimp.net', 'gropesville');
}
onClipEvent (enterFrame) {
if (Key.isDown(9)) {
_root.gotoAndPlay('loader');
}
}
}
movieClip 172 {
}
movieClip 173 {
}