Frame 1
function preload_data(object_number, page, target_clip, destination) {
var _local1 = _root;
_local1.raw_percentage = 1;
delete object_ref;
delete eval (object_ref.getBytesLoaded());
delete eval (object_ref.getBytesTotal());
delete _local1.data_object_[object_number];
_local1["data_object_" + object_number] = new LoadVars();
object_ref = _local1["data_object_" + object_number];
_local1["data_object_" + object_number].load(page);
this.onEnterFrame = function () {
if (object_ref.getBytesLoaded() != 0) {
if (object_ref.getBytesLoaded() == object_ref.getBytesTotal()) {
target_clip.gotoAndStop(destination);
delete object_number;
delete page;
delete target_clip;
delete destination;
delete this.onEnterFrame;
} else {
_root.raw_percentage = Math.floor(100 / (object_ref.getBytesTotal() / object_ref.getBytesLoaded()));
}
}
};
}
stop();
wrongtext = new TextFormat();
wrongtext.color = 16711680 /* 0xFF0000 */;
correcttext = new TextFormat();
correcttext.color = 0;
if (_root.origin == null) {
_root.origin = "none";
}
_root.score = "";
Instance of Symbol 19 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.percentage = int(100 * (_root.getBytesLoaded() / _root.getBytesTotal()));
this.gotoAndStop(_root.percentage);
if (_root.percentage > 98) {
_root.gotoAndStop("intro");
}
}
Frame 2
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((("site_track_save.asp?referer=" + _root.origin) + "&page=Game Starting&no_cache=") + Math.random(100)) + "\"");
stop();
Frame 3
stop();
Frame 4
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((("site_track_save.asp?referer=" + _root.origin) + "&page=Game Character Selection&no_cache=") + Math.random(100)) + "\"");
_root.game_level = 0;
stop();
Frame 6
function playersnail() {
var _local1 = _root;
if ((Key.isDown(37) && (rightkey == false)) && (!Key.isDown(39))) {
if (_local1.speed < _local1.maxspeed) {
_local1.speed = _local1.speed + 0.2;
}
rightkey = true;
leftkey = false;
} else if ((Key.isDown(39) && (leftkey == false)) && (!Key.isDown(37))) {
if (_local1.speed < _local1.maxspeed) {
_local1.speed = _local1.speed + 0.2;
}
leftkey = true;
rightkey = false;
} else if ((!Key.isDown(39)) && (!Key.isDown(37))) {
if (_local1.speed > 0) {
_local1.speed = _local1.speed - 0.1;
}
}
if (Key.isDown(32)) {
_local1.snail._rotation = _local1.snail._rotation + _local1.rotation;
}
trailcheck++;
if (_local1.speed > _local1.maxspeed) {
_local1.speed = _local1.speed - 0.2;
}
angle = ((_local1.snail._rotation / 360) * 2) * Math.PI;
_local1.snail._x = _local1.snail._x + (_local1.speed * Math.sin(angle));
_local1.snail._y = _local1.snail._y + ((-_local1.speed) * Math.cos(angle));
i = 1;
while (i <= _local1.obstacles_water) {
if (_local1["water" + i].hitter.hitTest(_local1.snail._x, _local1.snail._y, true)) {
_local1.speed = _local1.speed + _local1.bonus;
if (_local1.water_sound.position == 0) {
_local1.water_sound.start();
}
}
i++;
}
i = 1;
while (i <= _local1.obstacles_salt) {
if (_local1["salt" + i].hitter.hitTest(_local1.snail._x, _local1.snail._y, true)) {
if (hissing.position == 0) {
_local1.hissing.start();
}
_local1.life = _local1.life - (_local1.slime + 1);
_local1.score = _local1.score - 10;
_local1.meter.meter.gotoAndStop(int(101 - _local1.life));
}
i++;
}
i = 1;
while (i <= _local1.obstacles_peanuts) {
if (_local1["peanuts" + i].hitter.hitTest(_local1.snail._x, _local1.snail._y, true)) {
if (hissing.position == 0) {
_local1.hissing.start();
}
_local1.life = _local1.life - _local1.slime;
_local1.score = _local1.score - 10;
_local1.meter.meter.gotoAndStop(int(101 - _local1.life));
}
i++;
}
if (_local1.holes.hitter_mc.hitTest(_local1.snail._x, _local1.snail._y, true)) {
trace("hit hole");
_local1.snail._visible = false;
_local1.hole_falling_anim._rotation = _local1.snail._rotation;
_local1.hole_falling_anim._x = _local1.snail._x;
_local1.hole_falling_anim._y = _local1.snail._y;
_local1.hole_falling_anim.play();
_local1.gameplay = false;
}
i = 1;
while (i <= _local1.obstacles_matt) {
if (_local1["matt" + i].hitter.hitTest(_local1.snail._x, _local1.snail._y, true) && (_local1["matt" + i].hitter.active)) {
poop = int(random(_local1.obstacles_matt) + 1);
if (poop == i) {
poop++;
}
if (poop > _local1.obstacles_matt) {
poop = poop - 2;
}
_local1["matt" + i].flash.play();
_local1.snail._y = _local1["matt" + poop]._y;
_local1.snail._x = _local1["matt" + poop]._x;
_local1["matt" + poop].hitter.active = false;
_local1["matt" + poop].flash.play();
} else if ((!_local1["matt" + i].hitter.hitTest(_local1.snail._x, _local1.snail._y, true)) && (!_local1["matt" + i].hitter.active)) {
_local1["matt" + poop].hitter.active = true;
delete poop;
}
i++;
}
if (_local1.life <= 0) {
_local1.die_anim._rotation = _local1.snail._rotation;
_local1.die_anim._x = _local1.snail._x;
_local1.die_anim._y = _local1.snail._y;
_local1.die_anim.play();
_local1.score = _local1.score - 100;
_local1.snail._visible = false;
_local1.gameplay = false;
}
}
function determinedistance(circle, targettomeasure) {
var _local1 = _root;
var _local2 = circle;
radius = _local1[_local2]._width / 2;
xdiff = _local1[_local2]._x - _local1[targettomeasure]._x;
ydiff = _local1[_local2]._y - _local1[targettomeasure]._y;
angle = Math.atan2(ydiff, xdiff);
angle = (angle * 180) / Math.PI;
distance = Math.sqrt(Math.pow(xdiff, 2) + Math.pow(ydiff, 2));
if (((((distance > (radius + 5)) && (!_local1.pocket1.hitTest(_local1.snail._x, _local1.snail._y, true))) && (!_local1.pocket2.hitTest(_local1.snail._x, _local1.snail._y, true))) && (!_local1.pocket3.hitTest(_local1.snail._x, _local1.snail._y, true))) && (!_local1.pocket4.hitTest(_local1.snail._x, _local1.snail._y, true))) {
_local1.snail._visible = false;
_local1.falling_anim._rotation = _local1.snail._rotation;
_local1.falling_anim._x = _local1.snail._x;
_local1.falling_anim._y = _local1.snail._y;
_local1.falling_anim.play();
_local1.score = _local1.score - 200;
_local1.gameplay = false;
} else if ((distance > (radius + 10)) && (_local1.pocket1.hitTest(_local1.snail._x, _local1.snail._y, true))) {
_local1.gameplay = false;
if (_local1.game_level < 3) {
_local1.popups.gotoAndStop("next");
} else {
_local1.popups.gotoAndStop("finish");
}
}
}
function makepath(origin, targetpoint, numberofpoints, randomness, speed, rotspeed) {
var _local1 = _root;
var _local2 = origin;
var _local3 = randomness;
if (_local1.holes.hitter_mc.hitTest(_local1[_local2]._x, _local1[_local2]._y, true)) {
_local1[_local2]._visible = false;
_local1["hole_falling_anim_" + _local2].snail = _local1[_local2]._rotation;
_local1["hole_falling_anim_" + _local2]._rotation = _local1[_local2]._rotation;
_local1["hole_falling_anim_" + _local2]._x = _local1[_local2]._x;
_local1["hole_falling_anim_" + _local2]._y = _local1[_local2]._y;
_local1["hole_falling_anim_" + _local2].play();
}
if (_local1[_local2].counter < 0.1) {
_local1[_local2].counter = 0;
_local1[_local2].currentpoint = 0;
_local1[_local2].npoints = numberofpoints;
_local1[_local2].home = false;
trace("start");
}
_local1[_local2].counter = _local1[_local2].counter + speed;
if (_local1[_local2].counter < 100) {
if (_local1[_local2].counter > (100 - (speed + 1))) {
tempname = ["startpos"];
_local1.attachMovie("pathpoint", tempname, 300);
_local1[tempname]._x = _local1[_local2]._x;
_local1[tempname]._y = _local1[_local2]._y;
depth++;
xdiff = _local1[tempname]._x - _local1[targetpoint]._x;
ydiff = _local1[tempname]._y - _local1[targetpoint]._y;
angle = Math.atan2(ydiff, xdiff);
angle = (angle * 180) / Math.PI;
distance = Math.sqrt(Math.pow(xdiff, 2) + Math.pow(ydiff, 2));
pointinterval = distance / (numberofpoints + 1);
intervalcount = pointinterval;
i = 0;
while (i < numberofpoints) {
name = [(_local2 + "pathpoint") + i];
_local1.attachMovie("pathpoint", name, depth);
depth++;
_local1[name]._x = _local1[tempname]._x + (intervalcount * Math.cos(angle));
_local1[name]._y = _local1[tempname]._y + (intervalcount * Math.sin(angle));
upordown = random(2);
if (upordown == 1) {
_local1[name]._y = _local1[name]._y + random(_local3);
} else {
_local1[name]._y = _local1[name]._y - random(_local3);
}
leftorright = random(2);
if (leftorright) {
_local1[name]._x = _local1[name]._x + random(_local3);
} else {
_local1[name]._x = _local1[name]._x - random(_local3);
}
intervalcount = intervalcount + pointinterval;
i++;
}
}
movesnail(_local2, targetpoint, speed, rotspeed);
} else {
if (_local1[_local2].currentpoint == 100) {
nextpointname = [_local2 + "target"];
} else {
nextpointname = [(_local2 + "pathpoint") + _local1[_local2].currentpoint];
}
movesnail(_local2, nextpointname, speed, rotspeed);
}
}
function movesnail(snailclip, targetclip, speed, rotationamount) {
var _local1 = _root;
var _local2 = snailclip;
if (_local1[_local2].home == false) {
xdiff = _local1[_local2]._x - _local1[targetclip]._x;
ydiff = _local1[_local2]._y - _local1[targetclip]._y;
space = 45;
nspace = -45;
if ((((xdiff < space) && (xdiff > nspace)) && (ydiff < space)) && (ydiff > nspace)) {
_local1[_local2].currentpoint++;
if (_local1[_local2].currentpoint == _local1[_local2].npoints) {
_local1[_local2].currentpoint = 100;
trace("im going home");
} else if (_local1[_local2].currentpoint == 101) {
trace("im home!");
_local1[_local2].home = true;
_local1.gameplay = false;
_local1.popups.gotoAndStop("fail");
}
}
angle = Math.atan2(ydiff, xdiff);
angle = (angle * 180) / Math.PI;
if ((_local1[_local2]._rotation > (angle - 5)) && (_local1[_local2]._rotation < (angle + 5))) {
_local1[_local2].xmov = speed * Math.cos(angle);
_local1[_local2].ymov = speed * Math.sin(angle);
_local1[_local2]._x = _local1[_local2]._x + _local1[_local2].xmov;
_local1[_local2]._y = _local1[_local2]._y + _local1[_local2].ymov;
} else {
_local1[_local2]._rotation = _local1[_local2]._rotation + rotationamount;
}
}
}
stop();
_quality = "MEDIUM";
if (_root.game_level == 0) {
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((((("site_track_save.asp?referer=" + _root.origin) + "&page=Game Level 1 ") + _root.snail_chosen) + "&no_cache=") + Math.random(100)) + "\"");
} else {
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((((("site_track_save.asp?referer=" + _root.origin) + "&page=Game Level 1 Replay ") + _root.snail_chosen) + "&no_cache=") + Math.random(100)) + "\"");
}
_root.snail2._visible = true;
_root.snail3._visible = true;
_root.snail4._visible = true;
_root.snail2go = true;
_root.snail3go = true;
_root.snail4go = true;
theme = new Sound();
theme.stop("theme_tune1");
theme.stop("theme_tune2");
theme.stop("theme_tune3");
water_sound = new Sound();
water_sound.attachSound("water");
hissing = new Sound();
hissing.attachSound("hiss");
_root.meter.meter.gotoAndStop(1);
_root.snail._visible = true;
_root.score = 5000;
_root.snail._visible = true;
_root.obstacles_water = 0;
_root.obstacles_salt = 0;
_root.obstacles_peanuts = 0;
_root.obstacles_hole = 0;
_root.obstacles_matt = 0;
_root.game_level = 1;
level_mc.gotoAndStop(_root.game_level);
_root.depth = 200;
trailcheck = 0;
trailcount = 0;
rightkey = false;
_root.speed = 0;
_root.how_random = 40;
_root.path_points = 5;
_root.life = 100;
_root.snail._rotation = _root.snail._rotation + random(360);
_root.onEnterFrame = function () {
var _local1 = _root;
if (_local1.mag_glass.hitter.hitTest(_local1.mag_glass.glass._x, _local1.mag_glass.glass._y, true)) {
_local1.mag_glass.glass.smoke._visible = true;
_local1.mag_glass.glass.beam._visible = true;
if (_local1.gameplay && (_local1.mag_glass.glass.smoke.hitter.hitTest(_local1.snail))) {
trace("SNAIL BURN BABY BURN");
_local1.snail._visible = false;
_local1.fry._rotation = _local1.snail._rotation;
_local1.fry._x = _local1.snail._x;
_local1.fry._y = _local1.snail._y;
_local1.fry.play();
_local1.gameplay = false;
if (_local1.hissing.position == 0) {
_local1.hissing.start();
}
}
} else {
_local1.mag_glass.glass.smoke._visible = false;
_local1.mag_glass.glass.beam._visible = false;
if (_local1.hissing.position != 0) {
_local1.hissing.stop("hiss");
}
}
if (_local1.gameplay) {
makepath("snail3", "snail3target", _local1.path_points, _local1.how_random, 0.5, 3);
makepath("snail2", "snail2target", _local1.path_points + 1, _local1.how_random, 0.5, 3);
makepath("snail4", "snail4target", _local1.path_points, _local1.how_random, 0.5, 3);
determinedistance("table", "snail3");
determinedistance("table", "snail2");
determinedistance("table", "snail4");
playersnail();
determinedistance("table", "snail");
_local1.score--;
}
};
Instance of Symbol 337 MovieClip "falling_anim" in Frame 6
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
this.chosen = _root.chosen_snail;
}
Instance of Symbol 343 MovieClip "fry" in Frame 6
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
}
Instance of Symbol 346 MovieClip "die_anim" in Frame 6
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
}
Instance of Symbol 334 MovieClip "snail4" in Frame 6
onClipEvent (load) {
_root.snail4_x_start = this._x;
_root.snail4_y_start = this._y;
if (_root.chosen_snail == 4) {
this.gotoAndStop(1);
this.snail._rotation = this.snail._rotation - 90;
} else {
this.gotoAndStop(4);
this.snail._rotation = this.snail._rotation - 90;
}
}
Instance of Symbol 334 MovieClip "snail3" in Frame 6
onClipEvent (load) {
_root.snail3_x_start = this._x;
_root.snail3_y_start = this._y;
if (_root.chosen_snail == 3) {
this.gotoAndStop(1);
this.snail._rotation = this.snail._rotation - 90;
} else {
this.gotoAndStop(3);
this.snail._rotation = this.snail._rotation - 90;
}
}
Instance of Symbol 334 MovieClip "snail2" in Frame 6
onClipEvent (load) {
_root.snail2_x_start = this._x;
_root.snail2_y_start = this._y;
if (_root.chosen_snail == 2) {
this.gotoAndStop(1);
this.snail._rotation = this.snail._rotation - 90;
} else {
this.gotoAndStop(2);
this.snail._rotation = this.snail._rotation - 90;
}
}
Instance of Symbol 334 MovieClip "snail" in Frame 6
onClipEvent (load) {
_root.snail_x_start = this._x;
_root.snail_y_start = this._y;
this.gotoAndStop(_root.chosen_snail);
}
Instance of Symbol 353 MovieClip "countdown" in Frame 6
onClipEvent (load) {
this.swapDepths(150000);
}
Frame 8
stop();
_quality = "MEDIUM";
if (_root.game_level == 1) {
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((((("site_track_save.asp?referer=" + _root.origin) + "&page=Game Level 2 ") + _root.snail_chosen) + "&no_cache=") + Math.random(100)) + "\"");
} else {
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((((("site_track_save.asp?referer=" + _root.origin) + "&page=Game Level 2 Replay ") + _root.snail_chosen) + "&no_cache=") + Math.random(100)) + "\"");
}
_root.snail2._visible = true;
_root.snail3._visible = true;
_root.snail4._visible = true;
theme = new Sound();
theme.stop("theme_tune1");
theme.stop("theme_tune2");
theme.stop("theme_tune3");
if (_root.life > 0) {
_root.level2life = _root.life;
} else {
_root.life = _root.level2life;
_root.meter.meter.gotoAndStop(int(101 - _root.level2life));
}
_root.snail._visible = true;
_root.game_level = 2;
_root.obstacles_water = 0;
_root.obstacles_salt = 0;
_root.obstacles_peanuts = 0;
_root.obstacles_hole = 0;
_root.obstacles_matt = 0;
level_mc.gotoAndStop(_root.game_level);
trailcheck = 0;
trailcount = 0;
rightkey = false;
_root.speed = 0;
_root.snail._rotation = _root.snail._rotation + random(360);
_root.snail._x = _root.snail_x_start;
_root.snail._y = _root.snail_y_start;
_root.snail2._x = _root.snail2_x_start;
_root.snail2._y = _root.snail2_y_start;
_root.snail3._x = _root.snail3_x_start;
_root.snail3._y = _root.snail3_y_start;
_root.snail4._x = _root.snail4_x_start;
_root.snail4._y = _root.snail4_y_start;
_root.how_random = 20;
_root.path_points = 4;
_root.countdown.gotoAndPlay(1);
Instance of Symbol 337 MovieClip "falling_anim" in Frame 8
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
this.chosen = _root.chosen_snail;
}
Instance of Symbol 337 MovieClip "hole_falling_anim" in Frame 8
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
this.chosen = _root.chosen_snail;
}
Instance of Symbol 337 MovieClip "hole_falling_anim_snail2" in Frame 8
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
if (_root.chosen_snail == 2) {
this.chosen = 1;
} else {
this.chosen = 2;
}
}
Instance of Symbol 337 MovieClip "hole_falling_anim_snail3" in Frame 8
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
if (_root.chosen_snail == 3) {
this.chosen = 1;
} else {
this.chosen = 3;
}
}
Instance of Symbol 337 MovieClip "hole_falling_anim_snail4" in Frame 8
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
if (_root.chosen_snail == 4) {
this.chosen = 1;
} else {
this.chosen = 4;
}
}
Instance of Symbol 343 MovieClip "fry" in Frame 8
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
}
Instance of Symbol 346 MovieClip "die_anim" in Frame 8
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
}
Instance of Symbol 334 MovieClip "snail4" in Frame 8
onClipEvent (load) {
_root.snail4_x_start = this._x;
_root.snail4_y_start = this._y;
if (_root.chosen_snail == 4) {
this.gotoAndStop(1);
this.snail._rotation = this.snail._rotation - 90;
} else {
this.gotoAndStop(4);
this.snail._rotation = this.snail._rotation - 90;
}
}
Instance of Symbol 334 MovieClip "snail3" in Frame 8
onClipEvent (load) {
_root.snail3_x_start = this._x;
_root.snail3_y_start = this._y;
if (_root.chosen_snail == 3) {
this.gotoAndStop(1);
this.snail._rotation = this.snail._rotation - 90;
} else {
this.gotoAndStop(3);
this.snail._rotation = this.snail._rotation - 90;
}
}
Instance of Symbol 334 MovieClip "snail2" in Frame 8
onClipEvent (load) {
_root.snail2_x_start = this._x;
_root.snail2_y_start = this._y;
if (_root.chosen_snail == 2) {
this.gotoAndStop(1);
this.snail._rotation = this.snail._rotation - 90;
} else {
this.gotoAndStop(2);
this.snail._rotation = this.snail._rotation - 90;
}
}
Instance of Symbol 334 MovieClip "snail" in Frame 8
onClipEvent (load) {
_root.snail_x_start = this._x;
_root.snail_y_start = this._y;
this.gotoAndStop(_root.chosen_snail);
}
Frame 10
stop();
_quality = "MEDIUM";
if (_root.game_level == 2) {
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((((("site_track_save.asp?referer=" + _root.origin) + "&page=Game Level 3 ") + _root.snail_chosen) + "&no_cache=") + Math.random(100)) + "\"");
} else {
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((((("site_track_save.asp?referer=" + _root.origin) + "&page=Game Level 3 Replay ") + _root.snail_chosen) + "&no_cache=") + Math.random(100)) + "\"");
}
if (_root.life > 0) {
_root.level3life = _root.life;
} else {
_root.life = _root.level3life;
_root.meter.meter.gotoAndStop(int(101 - _root.level3life));
}
_root.snail2._visible = true;
_root.snail3._visible = true;
_root.snail4._visible = true;
theme = new Sound();
theme.stop("theme_tune1");
theme.stop("theme_tune2");
theme.stop("theme_tune3");
_root.snail._visible = true;
_root.game_level = 3;
_root.obstacles_water = 0;
_root.obstacles_salt = 0;
_root.obstacles_peanuts = 0;
_root.obstacles_hole = 0;
_root.obstacles_matt = 0;
level_mc.gotoAndStop(_root.game_level);
trailcheck = 0;
trailcount = 0;
rightkey = false;
_root.speed = 0;
_root.snail._rotation = _root.snail._rotation + random(360);
_root.snail._x = _root.snail_x_start;
_root.snail._y = _root.snail_y_start;
_root.snail2._x = _root.snail2_x_start;
_root.snail2._y = _root.snail2_y_start;
_root.snail3._x = _root.snail3_x_start;
_root.snail3._y = _root.snail3_y_start;
_root.snail4._x = _root.snail4_x_start;
_root.snail4._y = _root.snail4_y_start;
_root.how_random = 5;
_root.path_points = 3;
_root.countdown.gotoAndPlay(1);
Instance of Symbol 337 MovieClip "falling_anim" in Frame 10
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
this.chosen = _root.chosen_snail;
}
Instance of Symbol 337 MovieClip "hole_falling_anim" in Frame 10
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
this.chosen = _root.chosen_snail;
}
Instance of Symbol 337 MovieClip "hole_falling_anim_snail2" in Frame 10
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
if (_root.chosen_snail == 2) {
this.chosen = 1;
} else {
this.chosen = 2;
}
}
Instance of Symbol 337 MovieClip "hole_falling_anim_snail3" in Frame 10
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
if (_root.chosen_snail == 3) {
this.chosen = 1;
} else {
this.chosen = 3;
}
}
Instance of Symbol 337 MovieClip "hole_falling_anim_snail4" in Frame 10
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
if (_root.chosen_snail == 4) {
this.chosen = 1;
} else {
this.chosen = 4;
}
}
Instance of Symbol 343 MovieClip "fry" in Frame 10
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
}
Instance of Symbol 346 MovieClip "die_anim" in Frame 10
onClipEvent (load) {
this.xpos = this._x;
this.ypos = this._y;
}
Instance of Symbol 334 MovieClip "snail4" in Frame 10
onClipEvent (load) {
_root.snail4_x_start = this._x;
_root.snail4_y_start = this._y;
if (_root.chosen_snail == 4) {
this.gotoAndStop(1);
this.snail._rotation = this.snail._rotation - 90;
} else {
this.gotoAndStop(4);
this.snail._rotation = this.snail._rotation - 90;
}
}
Instance of Symbol 334 MovieClip "snail3" in Frame 10
onClipEvent (load) {
_root.snail3_x_start = this._x;
_root.snail3_y_start = this._y;
if (_root.chosen_snail == 3) {
this.gotoAndStop(1);
this.snail._rotation = this.snail._rotation - 90;
} else {
this.gotoAndStop(3);
this.snail._rotation = this.snail._rotation - 90;
}
}
Instance of Symbol 334 MovieClip "snail2" in Frame 10
onClipEvent (load) {
_root.snail2_x_start = this._x;
_root.snail2_y_start = this._y;
if (_root.chosen_snail == 2) {
this.gotoAndStop(1);
this.snail._rotation = this.snail._rotation - 90;
} else {
this.gotoAndStop(2);
this.snail._rotation = this.snail._rotation - 90;
}
}
Instance of Symbol 334 MovieClip "snail" in Frame 10
onClipEvent (load) {
_root.snail_x_start = this._x;
_root.snail_y_start = this._y;
this.gotoAndStop(_root.chosen_snail);
}
Frame 11
_root.all_names = (((((((((((((((((((_root.data_object_save_score.top_name_1 + newline) + _root.data_object_save_score.top_name_2) + newline) + _root.data_object_save_score.top_name_3) + newline) + _root.data_object_save_score.top_name_4) + newline) + _root.data_object_save_score.top_name_5) + newline) + _root.data_object_save_score.top_name_6) + newline) + _root.data_object_save_score.top_name_7) + newline) + _root.data_object_save_score.top_name_8) + newline) + _root.data_object_save_score.top_name_9) + newline) + _root.data_object_save_score.top_name_10) + "\n\n") + _root.data_object_save_score.pos_name;
_root.all_scores = (((((((((((((((((((_root.data_object_save_score.top_result_1 + newline) + _root.data_object_save_score.top_result_2) + newline) + _root.data_object_save_score.top_result_3) + newline) + _root.data_object_save_score.top_result_4) + newline) + _root.data_object_save_score.top_result_5) + newline) + _root.data_object_save_score.top_result_6) + newline) + _root.data_object_save_score.top_result_7) + newline) + _root.data_object_save_score.top_result_8) + newline) + _root.data_object_save_score.top_result_9) + newline) + _root.data_object_save_score.top_result_10) + "\n\n") + _root.data_object_save_score.pos_result;
_root.all_rank = "01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n\n0" + _root.data_object_save_score.pos_rank;
_root.popups.gotoAndStop(1);
theme.stop("theme_tune1");
theme.stop("theme_tune2");
theme.stop("theme_tune3");
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((("site_track_save.asp?referer=" + _root.origin) + "&page=Game HighScores&no_cache=") + Math.random(100)) + "\"");
stop();
Symbol 24 Button
on (release) {
getURL ("http://www.liptonicetea.co.uk", self);
}
Symbol 42 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 45 Button
on (release) {
gotoAndPlay ("form");
}
Symbol 54 MovieClip Frame 10
stop();
Symbol 56 Button
on (release) {
popups.gotoAndStop("friend");
}
Symbol 59 MovieClip Frame 10
stop();
Symbol 61 Button
on (release) {
_root.gotoAndStop("instructions");
}
Symbol 62 Button
on (release) {
gotoAndPlay ("out");
}
Symbol 63 Button
on (release) {
_root.popups.gotoAndStop("friend");
}
Symbol 64 Button
on (release) {
getURL ("http://www.liptonicetea.co.uk", self);
}
Symbol 65 Button
on (release) {
_root.gotoAndStop("form");
}
Symbol 66 MovieClip Frame 55
stop();
Symbol 66 MovieClip Frame 70
_root.gotoAndStop("form");
Symbol 74 Button
on (release) {
_parent._parent.gotoAndPlay("level_" + (_root.game_level + 1));
_parent.gotoAndStop(1);
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 3
stop();
Symbol 85 MovieClip Frame 4
stop();
Symbol 85 MovieClip Frame 5
stop();
Symbol 85 MovieClip Frame 6
stop();
Symbol 85 MovieClip Frame 7
stop();
Symbol 85 MovieClip Frame 8
stop();
Symbol 86 MovieClip Frame 2
cheer = new Sound();
cheer.attachSound(("level_" + _root.game_Level) + "_cheer");
cheer.start();
Instance of Symbol 85 MovieClip in Symbol 86 MovieClip Frame 10
onClipEvent (load) {
if (_root.game_level == 1) {
this.gotoAndStop(_root.chosen_snail);
} else {
this.gotoAndStop(_root.chosen_snail + 4);
}
}
Symbol 86 MovieClip Frame 15
stop();
Symbol 91 Button
on (release) {
_parent._parent.gotoAndPlay("level_" + _root.game_level);
_parent.gotoAndStop(1);
}
Symbol 96 Button
on (release) {
_parent._parent.gotoAndPlay("intro");
_parent.gotoAndStop(1);
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
stop();
Symbol 103 MovieClip Frame 3
stop();
Symbol 103 MovieClip Frame 4
stop();
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.chosen_snail);
}
Symbol 104 MovieClip Frame 15
stop();
Symbol 107 MovieClip Frame 15
stop();
Symbol 113 MovieClip Frame 25
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 3
stop();
Symbol 122 MovieClip Frame 4
stop();
Symbol 127 Button
on (release) {
gotoAndPlay ("score");
}
Symbol 131 Button
on (release) {
this.gotoAndStop(2);
_root.comp_opt_in = 0;
}
Symbol 133 Button
on (release) {
this.gotoAndStop(1);
}
Symbol 134 MovieClip Frame 1
stop();
_root.comp_opt_in = 1;
Symbol 134 MovieClip Frame 2
stop();
Symbol 142 Button
on (release) {
if (((_root.playername == "") || (_root.playername == null)) || (_root.playername == "Please enter your name")) {
_root.playername = "Please enter your name";
tname.setTextFormat(_root.wrongtext);
_root.namevalidated = false;
} else {
tname.setTextFormat(_root.correcttext);
_root.namevalidated = true;
}
_level0.validate_you = _root.email.split("@");
if (_level0.validate_you[0].length == _root.email.length) {
_root.email = "Please enter a valid email address";
_root.email_validated = false;
temail.setTextFormat(_root.wrongtext);
} else if ((_level0.validate_you[0].length == 0) || (_level0.validate_you[1].length == 0)) {
_root.email = "Please enter a valid email address";
_root.email_validated = false;
temail.setTextFormat(_root.wrongtext);
} else {
_level0.validate_you = _level0.email.split(".");
if (_level0.validate_you[0].length == _level0.email.length) {
_root.email = "Please enter a valid email address";
_root.email_validated = false;
temail.setTextFormat(_root.wrongtext);
} else if (_level0.validate_you[_level0.validate_you.length - 1].length < 2) {
_root.email = "Please enter valid email address";
_root.email_validated = false;
temail.setTextFormat(_root.wrongtext);
} else {
_root.email_validated = true;
delete _level0.validate_you;
temail.setTextFormat(_root.correcttext);
}
}
if (_root.email_validated && (_root.namevalidated)) {
_root.preload_data("save_score", ((((((((((((("game_save_score.asp?name=" + _root.playername) + "&email=") + _root.email) + "&score=") + _root.score) + "&opt_in=") + _root.opt_in) + "&origin=") + _root.origin) + "&comp_opt_in=") + _root.comp_opt_in) + "&no_cache=") + Math.random(100)) + "\"", _root, "high");
delete _root.email_validated;
delete _root.namevalidated;
}
}
Instance of Symbol 122 MovieClip in Symbol 147 MovieClip Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.chosen_snail);
}
Symbol 147 MovieClip Frame 20
stop();
Instance of Symbol 134 MovieClip in Symbol 147 MovieClip Frame 21
onClipEvent (load) {
if (_root.opt_in == 0) {
gotoAndStop (2);
}
}
Instance of Symbol 134 MovieClip in Symbol 147 MovieClip Frame 21
onClipEvent (load) {
if (_root.comp_opt_in == 0) {
gotoAndStop (2);
}
}
Symbol 147 MovieClip Frame 25
stop();
Symbol 155 Button
on (release) {
if (((_root.playername == "") || (_root.playername == null)) || (_root.playername == "Please enter your name")) {
_root.playername = "Please enter your name";
tname.setTextFormat(_root.wrongtext);
_root.namevalidated = false;
} else {
tname.setTextFormat(_root.correcttext);
_root.namevalidated = true;
}
_level0.validate_you = _root.email.split("@");
if (_level0.validate_you[0].length == _root.email.length) {
_root.email = "Please enter a valid email address";
_root.email_validated = false;
temail.setTextFormat(_root.wrongtext);
} else if ((_level0.validate_you[0].length == 0) || (_level0.validate_you[1].length == 0)) {
_root.email = "Please enter a valid email address";
_root.email_validated = false;
temail.setTextFormat(_root.wrongtext);
} else {
_level0.validate_you = _level0.email.split(".");
if (_level0.validate_you[0].length == _level0.email.length) {
_root.email = "Please enter a valid email address";
_root.email_validated = false;
temail.setTextFormat(_root.wrongtext);
} else if (_level0.validate_you[_level0.validate_you.length - 1].length < 2) {
_root.email = "Please enter valid email address";
_root.email_validated = false;
temail.setTextFormat(_root.wrongtext);
} else {
_root.email_validated = true;
delete _level0.validate_you;
temail.setTextFormat(_root.correcttext);
}
}
if (((_root.fname == "") || (_root.fname == null)) || (_root.fname == "Please enter a name")) {
_root.fname = "Please enter a name";
tfname.setTextFormat(_root.wrongtext);
_root.fnamevalidated = false;
} else {
tfname.setTextFormat(_root.correcttext);
_root.fnamevalidated = true;
}
_level0.validate_you = _root.femail.split("@");
if (_level0.validate_you[0].length == _root.femail.length) {
_root.femail = "Please enter a valid email address";
_root.femail_validated = false;
tfemail.setTextFormat(_root.wrongtext);
} else if ((_level0.validate_you[0].length == 0) || (_level0.validate_you[1].length == 0)) {
_root.femail = "Please enter a valid email address";
_root.femail_validated = false;
tfemail.setTextFormat(_root.wrongtext);
} else {
_level0.validate_you = _level0.femail.split(".");
if (_level0.validate_you[0].length == _level0.femail.length) {
_root.femail = "Please enter a valid email address";
_root.femail_validated = false;
tfemail.setTextFormat(_root.wrongtext);
} else if (_level0.validate_you[_level0.validate_you.length - 1].length < 2) {
_root.femail = "Please enter valid email address";
_root.femail_validated = false;
tfemail.setTextFormat(_root.wrongtext);
} else {
_root.femail_validated = true;
delete _level0.validate_you;
tfemail.setTextFormat(_root.correcttext);
}
}
if (((_root.email_validated && (_root.namevalidated)) && (_root.femail_validated)) && (_root.fnamevalidated)) {
_root.preload_data("save_score", ((((((((((("game_send.asp?sender_name=" + _root.playername) + "&sender_email=") + _root.email) + "&score=") + _root.score) + "&recipient_name=") + _root.fname) + "&recipient_email=") + _root.femail) + "&no_cache=") + Math.random(100)) + "\"", _root.popups.challenge, "sent");
delete _root.email_validated;
delete _root.namevalidated;
delete _root.femail_validated;
delete _root.fnamevalidated;
}
}
Symbol 163 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 171 Button
on (release) {
gotoAndPlay (9);
}
Symbol 172 MovieClip Frame 10
_root.challenge_message = "COULD ONE OF YOUR FRIENDS BEAT YOUR SCORE OF " + _root.score;
_root.fname = "";
_root.femail = "";
stop();
Symbol 172 MovieClip Frame 11
_root.challenge_message = "YOUR CHALLENGE HAS BEEN SENT TO " + _root.fname;
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
_root.theme.setVolume(30);
stop();
_quality = "HIGH";
Symbol 173 MovieClip Frame 3
_root.theme.setVolume(30);
stop();
_quality = "HIGH";
Symbol 173 MovieClip Frame 4
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((("site_track_save.asp?referer=" + _root.origin) + "&page=Game Dead&no_cache=") + Math.random(100)) + "\"");
_root.theme.setVolume(30);
stop();
_quality = "HIGH";
Symbol 173 MovieClip Frame 5
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((("site_track_save.asp?referer=" + _root.origin) + "&page=Game Save Score&no_cache=") + Math.random(100)) + "\"");
_root.theme.setVolume(30);
stop();
_quality = "HIGH";
Symbol 173 MovieClip Frame 6
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((("site_track_save.asp?referer=" + _root.origin) + "&page=Game Send to Friend&no_cache=") + Math.random(100)) + "\"");
_root.theme.setVolume(30);
stop();
_quality = "HIGH";
Symbol 174 Button
on (release) {
gotoAndPlay ("out");
}
Symbol 196 Button
on (release) {
_root.gotoAndStop("form");
}
Symbol 199 Button
on (release) {
gotoAndPlay ("page2");
}
Symbol 209 MovieClip Frame 1
_root.obstacles_salt++;
this._name = "salt" + _root.obstacles_salt;
Symbol 214 MovieClip Frame 1
active = true;
Symbol 215 MovieClip Frame 1
_root.obstacles_peanuts++;
this._name = "peanuts" + _root.obstacles_peanuts;
Symbol 222 MovieClip Frame 45
gotoAndPlay ("loop");
Symbol 230 Button
on (release) {
gotoAndPlay ("page1");
}
Symbol 231 Button
on (release) {
gotoAndPlay ("page3");
}
Symbol 239 MovieClip Frame 1
active = true;
Symbol 240 MovieClip Frame 1
_root.obstacles_water++;
this._name = "water" + _root.obstacles_water;
Symbol 243 MovieClip Frame 1
active = true;
Symbol 247 MovieClip Frame 1
stop();
Symbol 256 Button
on (release) {
gotoAndPlay ("page2");
}
Symbol 257 MovieClip Frame 24
_root.data_object_tracking = new LoadVars();
_root.data_object_tracking.load(((("site_track_save.asp?referer=" + _root.origin) + "&page=Game Instructions&no_cache=") + Math.random(100)) + "\"");
stop();
Symbol 257 MovieClip Frame 29
stop();
Symbol 257 MovieClip Frame 34
stop();
Symbol 271 Button
on (release) {
popups.gotoAndStop("friend");
}
Symbol 278 Button
on (release) {
gotoAndPlay ("gee");
}
Symbol 279 Button
on (release) {
gotoAndPlay ("gary");
}
Symbol 280 Button
on (release) {
gotoAndPlay ("mcfly");
}
Symbol 283 MovieClip Frame 15
stop();
Symbol 284 Button
on (release) {
_parent.gotoAndStop("level_1");
}
Symbol 285 Button
on (release) {
_parent.gotoAndPlay("level_1");
}
Symbol 289 Button
on (release) {
gotoAndPlay ("vicky");
}
Symbol 296 MovieClip Frame 45
stop();
_root.rotation = -6;
_root.maxspeed = 1.5;
_root.slime = 6;
_root.bonus = 2;
_root.snail_chosen = "vicky";
_root.chosen_snail = 1;
Symbol 296 MovieClip Frame 53
stop();
_root.rotation = 15;
_root.maxspeed = 1.2;
_root.slime = 4;
_root.bonus = 1;
_root.snail_chosen = "gee";
_root.chosen_snail = 2;
Symbol 296 MovieClip Frame 61
stop();
_root.rotation = -10;
_root.maxspeed = 2;
_root.slime = 10;
_root.bonus = 2;
_root.snail_chosen = "gary";
_root.chosen_snail = 3;
Symbol 296 MovieClip Frame 70
stop();
_root.rotation = 15;
_root.maxspeed = 2.5;
_root.slime = 15;
_root.bonus = 3;
_root.snail_chosen = "mcfly";
_root.chosen_snail = 4;
Symbol 313 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
if (_parent.chosen == this._currentframe) {
stop();
}
Symbol 334 MovieClip Frame 2
if (_parent.chosen == this._currentframe) {
stop();
}
Symbol 334 MovieClip Frame 3
if (_parent.chosen == this._currentframe) {
stop();
}
Symbol 334 MovieClip Frame 4
if (_parent.chosen == this._currentframe) {
stop();
}
Symbol 337 MovieClip Frame 1
stop();
Instance of Symbol 334 MovieClip "snail" in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent.chosen);
}
Symbol 337 MovieClip Frame 70
if (chosen == _root.chosen_snail) {
_root.popups.gotoAndStop("dead");
}
stop();
Symbol 338 MovieClip Frame 1
_root.obstacles_matt++;
this._name = "matt" + _root.obstacles_matt;
Symbol 343 MovieClip Frame 1
stop();
Instance of Symbol 334 MovieClip "snail_fry" in Symbol 343 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.chosen_snail);
}
Symbol 343 MovieClip Frame 30
this._x = this.xpos;
this._y = this.ypos;
_root.popups.gotoAndPlay("dead");
gotoAndStop (1);
Symbol 346 MovieClip Frame 1
stop();
Instance of Symbol 334 MovieClip "snail4" in Symbol 346 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.chosen_snail);
}
Symbol 346 MovieClip Frame 60
_root.popups.gotoAndStop("dead");
stop();
Symbol 353 MovieClip Frame 55
_parent.theme.attachSound("theme_tune" + _root.game_level);
_parent.theme.start(0, 100);
_parent.theme.setVolume(100);
_root.gameplay = true;
_root.mag_glass.play();
stop();
Symbol 366 MovieClip Frame 1
stop();
Instance of Symbol 228 MovieClip "glass" in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
this.smoke._visible = false;
this.beam._visible = false;
}
Symbol 366 MovieClip Frame 120
if (!_root.gameplay) {
stop();
}
Instance of Symbol 228 MovieClip "glass" in Symbol 366 MovieClip Frame 120
onClipEvent (load) {
this.smoke._visible = false;
}
Instance of Symbol 228 MovieClip "glass" in Symbol 366 MovieClip Frame 199
onClipEvent (load) {
this.smoke._visible = false;
}
Symbol 366 MovieClip Frame 297
if (!_root.gameplay) {
stop();
}
Instance of Symbol 228 MovieClip "glass" in Symbol 366 MovieClip Frame 383
onClipEvent (load) {
this.smoke._visible = false;
}
Symbol 366 MovieClip Frame 508
if (!_root.gameplay) {
stop();
} else {
gotoAndPlay (2);
}
Symbol 383 MovieClip Frame 10
stop();
Symbol 384 Button
on (release) {
gotoAndStop ("intro");
}