Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
var _onpepere = false;
if (_url.indexOf("http://www.pepere.org/") != -1) {
_onpepere = true;
}
if (!_onpepere) {
MochiAd.showPreloaderAd({id:"c3d54af5ab74cd77", res:"550x450"});
}
_quality = "MEDIUM";
__com_mochibot__("5754e331", this, 10301, true);
Stage.showMenu = false;
_root.tabEnabled = false;
Frame 2
var _tutuoshown = false;
var _tutuoshown2 = false;
var _lastadvertshown = getTimer();
var MINADVERT = 5;
var TIMEADVERT = ((MINADVERT * 60) * 1000);
var VERSION = 1.02;
var GAMEURL = "http://www.pepere.org/flash-development_1_3x/flash-game-crazy-mammoths_u_113.html";
var peperemember = false;
if ((puid + "") != "undefined") {
puid = Number(puid);
if (((puid + "") != "NaN") && (puid > 0)) {
peperemember = true;
}
}
if ((gid + "") == "undefined") {
var gid = "3_1169839884";
}
var _nbMamo = 4;
if ((chscores + "") == "undefined") {
var chscores = new Array();
}
if ((rcscores + "") == "undefined") {
var rcscores = new Array();
}
var tn = 0;
while (tn < 3) {
if ((chscores[tn] + "") == "undefined") {
chscores[tn] = new Array();
var i = (_nbMamo - 1);
while (i >= 0) {
chscores[tn][i] = {cs:0, rs:0};
i--;
}
}
if ((rcscores[tn] + "") == "undefined") {
rcscores[tn] = new Array();
var i = (_nbMamo - 1);
while (i >= 0) {
rcscores[tn][i] = {win:false, cs:0, rs:0};
i--;
}
}
tn++;
}
Frame 3
function initMenu() {
clearInterval(doOnce0);
enduranceBtn.setText("CHALLENGE", true);
enduranceBtn.action = function () {
_root.endurancePlay();
};
multiplayerBtn.setText("4 PLAYERS", true);
multiplayerBtn.action = function () {
_root.multiplayerPlay();
};
raceBtn.setText("CHAMPIONSHIP", true);
raceBtn.action = function () {
_root.racePlay();
};
if (!_onpepere) {
highBtn.setText("HIGHSCORES", 2);
highBtn.action = function () {
getURL (GAMEURL, "_blank");
};
moreBtn.setText("PLAY MORE GAMES", 2);
moreBtn.action = function () {
getURL ("http://www.pepere.org/", "_blank");
};
} else {
highBtn._visible = false;
moreBtn._visible = false;
}
creditBtn.setText("CREDITS", 2);
creditBtn.action = function () {
_root.creditPlay();
};
windSound.stop();
}
function endurancePlay() {
if (!fading) {
fading = true;
transit.gotoFrame("chmenu");
}
}
function multiplayerPlay() {
if (levelUnlock() <= 0) {
multiplayerStart();
} else if (!fading) {
fading = true;
transit.gotoFrame("multikeys");
}
}
function multiplayerStart() {
if (!fading) {
fading = true;
tracknb = 0;
transit.gotoFrame("multiplayer");
}
}
function racePlay() {
if (!fading) {
fading = true;
transit.gotoFrame("track");
}
}
function creditPlay() {
if (!fading) {
fading = true;
transit.gotoFrame("credits");
}
}
function levelUnlock() {
var _local2 = 0;
if ((rcscores + "") != "undefined") {
var _local1 = 0;
while (_local1 < 3) {
if ((rcscores[_local1] + "") != "undefined") {
if (rcscores[_local1][0].win == true) {
_local2 = _local1 + 1;
}
}
_local1++;
}
}
return(_local2);
}
function cleanTips() {
tip0._visible = (tip1._visible = (tip2._visible = (tip3._visible = (curs._visible = (bests._visible = false)))));
}
function scoreTips() {
bests._y = (curs._y = 375);
bests.help.text = "BEST";
bests.setYbase();
bests._visible = true;
curs.help.text = "SCORE";
curs.setYbase();
curs._visible = true;
}
function mainMenu() {
if (!fading) {
fading = true;
transit.gotoFrame("menu");
}
}
function hidePanel() {
panel.hidePanel();
}
function cleanMamos() {
var _local2 = _nbMamosTotal - 1;
while (_local2 >= 0) {
rotator["m" + _local2]._visible = false;
rotator["def" + _local2]._visible = false;
rotator["hair" + _local2]._visible = false;
_root["num" + _local2]._visible = false;
_root["sc" + _local2]._visible = false;
_root["sc" + _local2].neon._visible = false;
_root["sc" + _local2].neon2._visible = false;
_local2--;
}
}
function initMultiSounds() {
var _local1 = 0;
while (_local1 < 4) {
pchitSounds[_local1].f = -100;
chocSounds[_local1].f = -100;
_local1++;
}
}
function pchit(d, frc) {
var _local1 = 0;
while (_local1 < 4) {
if ((pchitSounds[_local1].f + 100) < _frame) {
if (d > 300) {
d = 300;
}
if (frc > 10) {
frc = 10;
}
var _local2 = ((300 - d) * frc) / 30;
if (_local2 < 10) {
_local2 = 10;
}
pchitSounds[_local1].f = _frame;
pchitSounds[_local1].s.setVolume(_local2 / 2);
pchitSounds[_local1].s.start(0, 1);
break;
}
_local1++;
}
}
function choc(d, frc) {
var _local1 = 0;
while (_local1 < 4) {
if ((chocSounds[_local1].f + 100) < _frame) {
if (d > 300) {
d = 300;
}
frc = frc * 2;
if (frc > 10) {
frc = 10;
}
var _local2 = ((300 - d) * frc) / 30;
if (_local2 < 10) {
_local2 = 10;
}
chocSounds[_local1].f = _frame;
chocSounds[_local1].s.setVolume(_local2);
chocSounds[_local1].s.start(0, 1);
break;
}
_local1++;
}
}
function getTotalScore() {
var _local2 = 0;
var _local1 = 0;
while (_local1 < 3) {
_local2 = _local2 + chscores[_local1][0].rs;
if (rcscores[_local1][0].win) {
_local2 = _local2 + rcscores[_local1][0].rs;
}
_local1++;
}
yourscore.myscores.text = (((((((((((("YOUR SCORE : " + _local2) + " CHAMPIONSHIP : ") + rcscores[0][0].rs) + " + ") + rcscores[1][0].rs) + " + ") + rcscores[2][0].rs) + " CHALLENGE : ") + chscores[0][0].rs) + " + ") + chscores[1][0].rs) + " + ") + chscores[2][0].rs;
return(_local2);
}
function save() {
var _local4 = "1";
var _local3 = 0;
while (_local3 < 3) {
_local4 = _local4 + ("_" + chscores[_local3][0].rs);
_local3++;
}
_local3 = 0;
while (_local3 < 3) {
if (rcscores[_local3][0].win) {
_local4 = _local4 + ("_" + rcscores[_local3][0].rs);
} else {
_local4 = _local4 + "_0";
}
_local3++;
}
_local4 = _local4 + "_";
if (!peperemember) {
local_data.data.scores0 = _local4;
local_data.flush();
return(undefined);
}
srecord = new LoadVars();
srecord.params = _root.gid;
srecord.data = _local4;
srecord.score = getTotalScore();
if (srecord.score <= bestscore) {
return(undefined);
}
bestscore = srecord.score;
srecord.sendAndLoad("record.php", srecord, "POST");
srecord.onLoad = function () {
if (((this.result + "") != "undefined") && (this.result > 0)) {
}
var _local2 = Number(this.recordid);
if ((_local2 + "") != "NaN") {
}
};
}
function parseData(s) {
var _local3 = 0;
var _local2 = -1;
_local3 = _local2 + 1;
_local2 = s.indexOf("_", _local3);
if (_local2 == -1) {
return(false);
}
var _local5 = Number(s.substring(_local3, _local2));
if ((_local5 == "1") && (_local3 != -1)) {
_local3 = _local2 + 1;
_local2 = s.indexOf("_", _local3);
if (_local2 == -1) {
return(false);
}
chscores[0][0].rs = Number(s.substring(_local3, _local2));
_local3 = _local2 + 1;
_local2 = s.indexOf("_", _local3);
if (_local2 == -1) {
return(false);
}
chscores[1][0].rs = Number(s.substring(_local3, _local2));
_local3 = _local2 + 1;
_local2 = s.indexOf("_", _local3);
if (_local2 == -1) {
return(false);
}
chscores[2][0].rs = Number(s.substring(_local3, _local2));
_local3 = _local2 + 1;
_local2 = s.indexOf("_", _local3);
if (_local2 == -1) {
return(false);
}
rcscores[0][0].rs = Number(s.substring(_local3, _local2));
if (rcscores[0][0].rs > 0) {
rcscores[0][0].win = true;
}
_local3 = _local2 + 1;
_local2 = s.indexOf("_", _local3);
if (_local2 == -1) {
return(false);
}
rcscores[1][0].rs = Number(s.substring(_local3, _local2));
if (rcscores[1][0].rs > 0) {
rcscores[1][0].win = true;
}
_local3 = _local2 + 1;
_local2 = s.indexOf("_", _local3);
if (_local2 == -1) {
return(false);
}
rcscores[2][0].rs = Number(s.substring(_local3, _local2));
if (rcscores[2][0].rs > 0) {
rcscores[2][0].win = true;
}
_root.bestscore = _root.getTotalScore();
if (_root._frame < 80) {
_root._startscoreframe = 80;
} else {
_root._startscoreframe = _root._frame;
}
}
}
function loadMyscore() {
if (!peperemember) {
var _local3 = local_data.data.scores0;
if (_local3) {
parseData(_local3);
}
return(undefined);
}
demandeParcours = new LoadVars();
demandeParcours.params = _root.gid;
demandeParcours.sendAndLoad("get_mydata.php", demandeParcours, "POST");
demandeParcours.onLoad = function () {
var _local2 = this.data;
parseData(_local2);
};
}
stop();
var mamorot = 0;
var tracknb;
var doOnce0 = setInterval(initMenu, 1);
var fading = false;
cleanTips();
var _frame = 0;
var BTNY = 180;
var _btns = [raceBtn, enduranceBtn, multiplayerBtn, highBtn, moreBtn, creditBtn];
var i = 0;
while (i < _btns.length) {
_btns[i]._y = 500;
i++;
}
mammoths._y = -200;
crazy._y = -200;
var _startscoreframe = -100;
onEnterFrame = function () {
mamorot = mamorot + 5;
hairmenu.gotoAndStop(Math.round(19 + ((13 * Math.cos(mamorot * 0.05)) * Math.cos(mamorot * 0.001))));
if (bodjump) {
tail._rotation = Math.cos(mamorot * 0.3) * 15;
} else {
tail._rotation = Math.cos(mamorot * 0.03) * 5;
}
_frame++;
if (_frame < 200) {
var _local1 = 0;
while (_local1 < _btns.length) {
if ((_frame > (_local1 * 10)) && (_frame < ((_local1 * 10) + 100))) {
_btns[_local1]._y = _btns[_local1]._y + (((BTNY + (36 * _local1)) - _btns[_local1]._y) * 0.1);
}
_local1++;
}
if ((_frame > 50) && (_frame < 85)) {
mammoths._y = mammoths._y + ((55 - mammoths._y) * 0.3);
}
if ((_frame > 70) && (_frame < 78)) {
crazy._y = crazy._y + ((-crazy._y) * 0.3);
if (_frame == 71) {
tip0.help.text = "V " + VERSION;
tip0._x = 500;
tip0._y = 50;
tip0.setYbase();
tip0._visible = true;
tip0._alpha = 0;
}
tip0._alpha = tip0._alpha + 20;
if (tip0._alpha > 100) {
tip0._alpha = 100;
}
}
}
if (((_frame - _startscoreframe) < 100) && ((_frame - _startscoreframe) >= 0)) {
yourscore._x = yourscore._x + ((275 - yourscore._x) * 0.1);
}
if (pingjump) {
ping.w0._rotation = -60 - (Math.cos(_frame * 0.6) * 30);
ping.w1._rotation = 60 + (Math.cos(_frame * 0.6) * 30);
} else {
ping.w0._rotation = -40 + (Math.cos(_frame * 0.03) * 10);
ping.w1._rotation = 40 + (Math.cos(_frame * 0.03) * 10);
}
ping.eyes.gotoAndStop(Math.round(25 + (Math.cos(_frame * 0.03) * 24)));
if (bodjump) {
var _local3 = (_frame - bodjump) * 0.2;
if (_local3 > Math.PI) {
bodjump = false;
}
var _local2 = 80 * Math.sin(_local3);
bod._y = bodbasey - _local2;
tail._y = tailbasey - _local2;
hairmenu._y = hairbasey - _local2;
def._y = defbasey - _local2;
eye._y = eyebasey - _local2;
bodshad._x = bodshadbasex + (1 * _local2);
bodshad._y = bodshadbasey + (1 * _local2);
}
if (pingjump) {
var _local3 = (_frame - pingjump) * 0.2;
if (_local3 > Math.PI) {
pingjump = false;
}
var _local2 = 40 * Math.sin(_local3);
ping._y = pingbasey - _local2;
pingshad._x = pingshadbasex + (1 * _local2);
pingshad._y = pingshadbasey + (1 * _local2);
}
};
var bodjump = false;
var bodbasey = bod._y;
var tailbasey = tail._y;
var hairbasey = hairmenu._y;
var defbasey = def._y;
var eyebasey = eye._y;
var bodshadbasex = bodshad._x;
var bodshadbasey = bodshad._y;
bod.onPress = function () {
bariSound.start(0, 1);
eye.gotoAndPlay("blink");
bodjump = _frame;
};
var pingjump = false;
var pingbasey = ping._y;
var pingshadbasex = pingshad._x;
var pingshadbasey = pingshad._y;
ping.onPress = function () {
flySound.start(0, 1);
pingjump = _frame;
};
var _nbMamosTotal = 10;
var mamosParams = new Array();
mamosParams[0] = {num:23, wh:50, tl:0.2, ail:0, aip:1, jf:15, sf:0};
mamosParams[1] = {num:69, wh:60, tl:0.1, ail:2, aip:10, jf:15, sf:0};
mamosParams[2] = {num:6, wh:40, tl:0.2, ail:1, aip:6, jf:17, sf:0};
mamosParams[3] = {num:10, wh:50, tl:0.3, ail:0, aip:5, jf:15, sf:0};
mamosParams[4] = {num:73, wh:70, tl:0.1, ail:2, aip:4, jf:15, sf:0.0005};
mamosParams[5] = {num:3, wh:55, tl:0.2, ail:1, aip:7, jf:20, sf:0.0002};
mamosParams[6] = {num:13, wh:50, tl:0.05, ail:2, aip:10, jf:25, sf:0.0002};
mamosParams[7] = {num:66, wh:92, tl:0.05, ail:2, aip:9, jf:20, sf:0.0006};
mamosParams[8] = {num:9, wh:60, tl:0.3, ail:2, aip:9, jf:22, sf:0.0005};
mamosParams[9] = {num:33, wh:70, tl:0.1, ail:2, aip:9, jf:12, sf:0.0009};
keyListener.onKeyDown = null;
keyListener.onKeyUp = null;
if ((varinited + "") == "undefined") {
var varinited = true;
var bariSound = new Sound();
bariSound.attachSound("BariSound");
var lineSound = new Sound();
lineSound.attachSound("LineSound");
var menuSound = new Sound();
menuSound.attachSound("MenuSound");
var winSound = new Sound();
winSound.attachSound("WinSound");
var looseSound = new Sound();
looseSound.attachSound("LooseSound");
var flySound = new Sound();
flySound.attachSound("FlySound");
createEmptyMovieClip("WindSoundMC", 10000000);
var windSound = new Sound(WindSoundMC);
windSound.attachSound("WindSound");
var pchitSounds = [{s:null, f:-100}, {s:null, f:-100}, {s:null, f:-100}, {s:null, f:-100}];
createEmptyMovieClip("PchitSoundMC0", 10000001);
pchitSounds[0].s = new Sound(PchitSoundMC0);
pchitSounds[0].s.attachSound("PchitSound");
createEmptyMovieClip("PchitSoundMC1", 10000002);
pchitSounds[1].s = new Sound(PchitSoundMC1);
pchitSounds[1].s.attachSound("PchitSound");
createEmptyMovieClip("PchitSoundMC2", 10000003);
pchitSounds[2].s = new Sound(PchitSoundMC2);
pchitSounds[2].s.attachSound("PchitSound");
createEmptyMovieClip("PchitSoundMC3", 10000004);
pchitSounds[3].s = new Sound(PchitSoundMC3);
pchitSounds[3].s.attachSound("PchitSound");
var chocSounds = [{s:null, f:-100}, {s:null, f:-100}, {s:null, f:-100}, {s:null, f:-100}];
createEmptyMovieClip("ChocSoundMC0", 10000005);
chocSounds[0].s = new Sound(ChocSoundMC0);
chocSounds[0].s.attachSound("ChocSound");
createEmptyMovieClip("ChocSoundMC1", 10000006);
chocSounds[1].s = new Sound(ChocSoundMC1);
chocSounds[1].s.attachSound("ChocSound");
createEmptyMovieClip("ChocSoundMC2", 10000007);
chocSounds[2].s = new Sound(ChocSoundMC2);
chocSounds[2].s.attachSound("ChocSound");
createEmptyMovieClip("ChocSoundMC3", 10000008);
chocSounds[3].s = new Sound(ChocSoundMC3);
chocSounds[3].s.attachSound("ChocSound");
var local_data = SharedObject.getLocal("user_data");
var players = [0, 1, 2, 3];
loadMyscore();
var bestscore = 0;
} else {
bestscore = getTotalScore();
if (_frame < 80) {
_startscoreframe = 80;
} else {
_startscoreframe = _frame;
}
}
bariSound.start(0, 1);
TUTO1 = "THE HIGHER POSITION YOU TAKE DURING THE RACE, THE MORE YOU ARE SLOWED DOWN BY THE FRICTION WITH THE AIR!";
var TUTO2 = "WHEN A CRAZY MAMMOTH JUMPS OVER YOU, HIT THE LOWER RIGHT CORNER OF HIS ICE BLOCK TO STOP IT!";
Frame 4
function initTracks() {
clearInterval(doOnce0);
menuBtn.setText("MENU", false);
menuBtn.action = mainMenu;
l2Btn.setText("LEAGUE 1", true);
l2Btn.action = function () {
tracknb = 2;
if (!fading) {
fading = true;
transit.gotoFrame("race");
}
};
l1Btn.setText("LEAGUE 2", true);
l1Btn.action = function () {
tracknb = 1;
if (!fading) {
fading = true;
transit.gotoFrame("race");
}
};
l0Btn.setText("LEAGUE 3", true);
l0Btn.action = function () {
tracknb = 0;
if (!fading) {
fading = true;
transit.gotoFrame("race");
}
};
var _local3 = levelUnlock();
var _local2 = _local3;
while (_local2 >= 0) {
_root[("l" + _local2) + "Btn"].enable(true);
_local2--;
}
_local2 = _local3 + 1;
while (_local2 < 3) {
_root[("l" + _local2) + "Btn"].enable(false);
_local2++;
}
}
var doOnce0 = setInterval(initTracks, 1);
stop();
onEnterFrame = function () {
mamorot = mamorot + 5;
hair1.gotoAndStop(Math.round(19 + ((13 * Math.cos(mamorot * 0.06)) * Math.cos(mamorot * 0.001))));
hair4.gotoAndStop(Math.round(19 + ((12 * Math.cos(mamorot * 0.05)) * Math.cos(mamorot * 0.0009))));
hair7.gotoAndStop(Math.round(19 + ((16 * Math.cos(mamorot * 0.04)) * Math.cos(mamorot * 0.0011))));
_frame++;
if (random(1000) < 4) {
m1.ice.light.gotoAndPlay(2);
}
if (random(1000) < 4) {
m4.ice.light.gotoAndPlay(2);
}
if (random(1000) < 4) {
m7.ice.light.gotoAndPlay(2);
}
};
keyListener.onKeyDown = null;
keyListener.onKeyUp = null;
cleanTips();
windSound.stop();
Frame 5
function initCredits() {
clearInterval(doOnce0);
menuBtn.setText("MENU", false);
menuBtn.action = mainMenu;
}
var doOnce0 = setInterval(initCredits, 1);
stop();
onEnterFrame = function () {
mamorot = mamorot + 5;
};
keyListener.onKeyDown = null;
keyListener.onKeyUp = null;
cleanTips();
windSound.stop();
Frame 6
function initTracks() {
clearInterval(doOnce0);
menuBtn.setText("MENU", false);
menuBtn.action = mainMenu;
l2Btn.setText("HARD", true);
l2Btn.action = function () {
tracknb = 2;
if (!fading) {
fading = true;
transit.gotoFrame("challenge");
}
};
l1Btn.setText("MEDIUM", true);
l1Btn.action = function () {
tracknb = 1;
if (!fading) {
fading = true;
transit.gotoFrame("challenge");
}
};
l0Btn.setText("EASY", true);
l0Btn.action = function () {
tracknb = 0;
if (!fading) {
fading = true;
transit.gotoFrame("challenge");
}
};
var _local3 = levelUnlock();
var _local2 = _local3;
while (_local2 >= 0) {
_root[("l" + _local2) + "Btn"].enable(true);
_local2--;
}
_local2 = _local3 + 1;
while (_local2 < 3) {
_root[("l" + _local2) + "Btn"].enable(false);
_local2++;
}
}
var doOnce0 = setInterval(initTracks, 1);
stop();
onEnterFrame = function () {
mamorot = mamorot + 5;
hair1.gotoAndStop(Math.round(19 + ((13 * Math.cos(mamorot * 0.06)) * Math.cos(mamorot * 0.001))));
hair4.gotoAndStop(Math.round(19 + ((12 * Math.cos(mamorot * 0.05)) * Math.cos(mamorot * 0.0009))));
hair7.gotoAndStop(Math.round(19 + ((16 * Math.cos(mamorot * 0.04)) * Math.cos(mamorot * 0.0011))));
_frame++;
if (random(1000) < 4) {
m1.ice.light.gotoAndPlay(2);
}
if (random(1000) < 4) {
m4.ice.light.gotoAndPlay(2);
}
if (random(1000) < 4) {
m7.ice.light.gotoAndPlay(2);
}
};
keyListener.onKeyDown = null;
keyListener.onKeyUp = null;
cleanTips();
windSound.stop();
Frame 7
function initPLayers() {
clearInterval(doOnce0);
menuBtn.setText("MENU", false);
menuBtn.action = mainMenu;
goBtn.setText("PLAY", false);
goBtn.action = multiplayerStart;
var _local5 = levelUnlock();
var _local4 = 0;
if (_local5 <= 0) {
_local4 = 4;
} else if (_local5 == 1) {
_local4 = 7;
} else if (_local5 >= 2) {
_local4 = 10;
}
var _local3 = _local4 - 1;
while (_local3 >= 0) {
_root["m" + _local3].ice.hid._visible = false;
_root["m" + _local3].myId = _local3;
_root["m" + _local3].onPress = function () {
_root.mamoPressed(this.myId);
};
_local3--;
}
_local3 = mamosParams.length - 1;
while (_local3 >= _local4) {
_root["m" + _local3].ice.hid._visible = true;
_root["m" + _local3].onPress = null;
_local3--;
}
_local3 = players.length - 1;
while (_local3 >= 0) {
_root["m" + players[_local3]].ice.sur._visible = true;
_local3--;
}
}
function mamoPressed(id) {
if (_root["m" + id].ice.sur._visible == false) {
players[0] = players[1];
players[1] = players[2];
players[2] = players[3];
players[3] = id;
var _local2 = mamosParams.length - 1;
while (_local2 >= 0) {
_root["m" + _local2].ice.sur._visible = false;
_local2--;
}
_local2 = players.length - 1;
while (_local2 >= 0) {
_root["m" + players[_local2]].ice.sur._visible = true;
_local2--;
}
}
}
var doOnce0 = setInterval(initPLayers, 1);
stop();
onEnterFrame = function () {
mamorot = mamorot + 5;
var _local2 = mamosParams.length - 1;
while (_local2 >= 0) {
_root["hair" + _local2].gotoAndStop(Math.round(19 + ((13 * Math.cos((mamorot * 0.04) + (_local2 * 0.002))) * Math.cos((mamorot * 0.001) * _local2))));
_local2--;
}
_frame++;
};
keyListener.onKeyDown = null;
keyListener.onKeyUp = null;
cleanTips();
windSound.stop();
Frame 8
function initPlay() {
if (!_paused) {
clearInterval(doOnce1);
mamoPause(true);
var _local1 = _nbMamo - 1;
while (_local1 >= 0) {
_mamos[_local1].init2();
_local1--;
}
}
}
function dispScores() {
var _local2 = _nbMamo - 1;
while (_local2 >= 0) {
_root["sc" + _local2].cs.text = chscores[tracknb][_local2].cs;
_root["sc" + _local2].rs.text = chscores[tracknb][_local2].rs;
_local2--;
}
}
function mamoScore(i, p) {
chscores[tracknb][i].cs = chscores[tracknb][i].cs + p;
if (chscores[tracknb][i].cs > chscores[tracknb][i].rs) {
chscores[tracknb][i].rs = chscores[tracknb][i].cs;
if (i == 0) {
message.showPanel("NEW\nRECORD");
winSound.start(0, 1);
save();
}
}
_root["sc" + i].neon2._visible = true;
var _local2 = _nbMamo - 1;
while (_local2 >= 0) {
if (_local2 != i) {
chscores[tracknb][_local2].cs = 0;
_root["sc" + _local2].neon2._visible = false;
}
_local2--;
}
dispScores();
}
function order() {
var _local2 = _nbMamo - 1;
while (_local2 >= 1) {
var _local1 = _local2 - 1;
while (_local1 >= 0) {
if (_mamos[_ranks[_local2]]._x > _mamos[_ranks[_local1]]._x) {
var _local3 = _ranks[_local1];
_ranks[_local1] = _ranks[_local2];
_ranks[_local2] = _local3;
}
_local1--;
}
_local2--;
}
var _local4 = 0;
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
if (_mamos[_ranks[_local2]]._canjump) {
_local4++;
}
_mamos[_ranks[_local2]].setPos(_local2);
_mamos[_ranks[_local2]].setSustain(_local2, _nbMamo);
_local2--;
}
_local4 = (_nbMamo - _local4) + 1;
winvolgoal = Math.abs(_mamos[_ranks[0]]._vx) / _local4;
}
function deadCp() {
_cpDying = false;
order();
var _local1 = _mamos[_ranks[0]];
_nextcp = _nextcp + DCP;
while ((_local1._x + _local1._wd2) > nextcp) {
_nextcp = _nextcp + DCP;
}
rotator.checkpoint._x = _nextcp + _xtrans;
rotator.checkpoint.gotoAndStop(1);
rotator.w0._x = rotator.checkpoint._x - warnsl;
}
function catchCp() {
_cpDying = true;
rotator.checkpoint.gotoAndPlay("disappear");
}
function mamoPlay() {
if (_jumpask) {
if (_mamos[0]._canjump) {
_mamos[0].jump();
} else {
_mamos[0].burst(true);
}
} else {
_mamos[0].burst(false);
}
curve();
if ((_frame % 10) == 0) {
order();
var _local2 = _nbMamo - 1;
while (_local2 >= 1) {
_mamos[_local2].quickLoop();
_mamos[_local2].quickAI();
_local2--;
}
_mamos[0].quickLoop();
if ((_frame % 30) == 0) {
if ((_frame % 180) == 0) {
if (!_onpepere) {
if (((getTimer() - _lastadvertshown) > TIMEADVERT) && (_frame > 100)) {
_lastadvertshown = getTimer() + 600000;
mamoPause(true);
panel.showPanel(("\n\nYOU HAVE BEEN PLAYING FOR MORE THAN " + MINADVERT) + " MINUTES\n\nWE SUGGEST YOU TO FIGHT AGAINST THE HIGH SCORERS ON THE OFFICIAL PAGE OF THIS GAME!", "TAKE ME THERE", function () {
getURL (GAMEURL, "_blank");
}, "LEAVE ME HERE", hidePanel);
}
}
}
}
}
var _local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].memo();
_mamos[_local2].moveMamo();
_local2--;
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].ground();
_local2--;
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
var _local1 = _local2 - 1;
while (_local1 >= 0) {
_mamos[_local2].hitMamo(_mamos[_local1]);
_local1--;
}
_local2--;
}
if (!_cpDying) {
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
if ((_mamos[_local2]._x + _mamos[_local2]._wd2) > _nextcp) {
catchCp();
lineSound.start(0, 1);
_mamos[_local2].catchCp();
mamoScore(_local2, 1);
break;
}
_local2--;
}
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].showMamo();
_local2--;
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].speed();
_local2--;
}
groundTrans();
winvol = winvol + ((winvolgoal - winvol) * 0.1);
windSound.setVolume(winvol);
_frame++;
}
function curve() {
if (_frame >= nextangframe) {
if ((_curve > 0) && (random(100) < 10)) {
nextang = -10 - random(50);
nextangframe = (_frame + 10) + random(30);
} else {
if (_curve > 45) {
nextang = 20 + random(40);
} else {
nextang = 20 + random(60);
}
nextangframe = (_frame + 10) + random(120);
}
wangadd = (nextang - _curve) / (nextangframe - _frame);
if (nextang < 10) {
if (random(100) < 50) {
var _local1 = random(3);
if ((_local1 == 0) || (_local1 == 2)) {
if (!_backgd[0].e) {
_backgd[0].e = true;
_backgd[0].mc._visible = true;
_backgd[0].x = ((-_xtrans) * _backgd[0].r) + 600;
}
}
if ((_local1 == 1) || (_local1 == 2)) {
if (!_backgd[1].e) {
_backgd[1].e = true;
_backgd[1].mc._visible = true;
_backgd[1].x = ((-_xtrans) * _backgd[1].r) + 640;
}
}
}
}
} else {
_angadd = _angadd + ((wangadd - _angadd) * 0.1);
_curve = _curve + _angadd;
}
rotator._rotation = _curve;
_fx = GRAVITY * Math.sin((_curve * Math.PI) / 180);
_fy = GRAVITY * Math.cos((_curve * Math.PI) / 180);
}
function groundTrans() {
_xtrans = _xtrans + ((((-_mamos[0]._x) - (_mamos[0]._vx * 4)) - _xtrans) * 0.3);
rotator.b0._x = ((_xtrans + 4000000000) % 700) - 400;
rotator.b1._x = ((_xtrans + 4000000000) % 1500) - 400;
rotator.b2._x = (((_xtrans * 0.7) + 4000000000) % 2000) - 400;
rotator.b3._x = (((_xtrans * 0.5) + 4000000000) % 5000) - 600;
rotator.checkpoint._x = _nextcp + _xtrans;
rotator.w0._x = rotator.checkpoint._x - warnsl;
var _local1 = _nbBackgd - 1;
while (_local1 >= 0) {
if (_backgd[_local1].e) {
_backgd[_local1].mc._x = _backgd[_local1].x + (_xtrans * _backgd[_local1].r);
if (_backgd[_local1].mc._x < -500) {
_backgd[_local1].mc._visible = false;
_backgd[_local1].e = false;
}
_backgd[_local1].mc.mainloop();
}
_local1--;
}
}
function mamoPause(b) {
_paused = b;
if (_paused) {
windSound.stop();
onEnterFrame = null;
scoreTips();
tip0.help.text = "SPACE";
var _local1 = {x:0, y:0};
_mamos[0]._mc.localToGlobal(_local1);
tip0._x = _local1.x;
tip0._y = (_local1.y - Math.sqrt(_mamos[0]._wd2 * _mamos[0]._wd2)) - 5;
tip0.setYbase();
tip0._visible = true;
if (!_tutuoshown) {
_tutuoshown = true;
panel.showPanel(TUTO1, "GO", function () {
mamoPause(true);
}, false, null);
panel.tuto1._visible = true;
} else if (!_tutuoshown2) {
_tutuoshown2 = true;
panel.showPanel(TUTO2, "GO", function () {
mamoPause(true);
}, false, null);
panel.tuto0._visible = true;
} else {
panel.showPanel("\n\nTRY TO LEAD THE RACE AS LONG AS POSSIBLE!\n\nUNLIMITED CHALLENGE!", "GO", hidePanel, "MENU", mainMenu);
}
} else {
windSound.start(0, 1000000000);
panel.hidePanel();
onEnterFrame = mamoPlay;
cleanTips();
}
}
stop();
var GRAVITY = 0.9;
var _curve = 0;
var _fx = 0;
var _fy = GRAVITY;
var _xtrans = 0;
var _frame = 0;
var _paused;
windSound.setVolume(0);
rotator.bonus0._visible = false;
rotator.bonus1._visible = false;
rotator.bonus2._visible = false;
rotator.bonus3._visible = false;
initMultiSounds();
var doOnce1 = setInterval(initPlay, 100);
progressb._visible = false;
progressf._visible = false;
var _mamoids = new Array();
_mamoids[0] = 0;
if (tracknb == 0) {
_mamoids[1] = 1;
_mamoids[2] = 2;
_mamoids[3] = 3;
} else if (tracknb == 1) {
_mamoids[1] = 4;
_mamoids[2] = 5;
_mamoids[3] = 6;
} else if (tracknb == 2) {
_mamoids[1] = 7;
_mamoids[2] = 8;
_mamoids[3] = 9;
}
var _nbMamo = _mamoids.length;
var _mamos = new Array();
_mamos[0] = new MammothPlayer(rotator["m" + _mamoids[0]], rotator["def" + _mamoids[0]], rotator["hair" + _mamoids[0]], -150, 0, mamosParams[_mamoids[0]].wh, mamosParams[_mamoids[0]].wh, mamosParams[_mamoids[0]].tl, mamosParams[_mamoids[0]].ail, mamosParams[_mamoids[0]].aip, mamosParams[_mamoids[0]].jf, 0.0005);
var i = (_nbMamo - 1);
while (i >= 1) {
_mamos[i] = new Mammoth(rotator["m" + _mamoids[i]], rotator["def" + _mamoids[i]], rotator["hair" + _mamoids[i]], -150 + (100 * i), 0, mamosParams[_mamoids[i]].wh, mamosParams[_mamoids[i]].wh, mamosParams[_mamoids[i]].tl, mamosParams[_mamoids[i]].ail, mamosParams[_mamoids[i]].aip, mamosParams[_mamoids[i]].jf, mamosParams[_mamoids[i]].sf);
i--;
}
cleanMamos();
var i = (_nbMamo - 1);
while (i >= 0) {
rotator["m" + _mamoids[i]]._visible = true;
rotator["def" + _mamoids[i]]._visible = true;
rotator["hair" + _mamoids[i]]._visible = true;
_root["sc" + i]._visible = true;
_root["num" + _mamoids[i]]._visible = true;
_root["num" + _mamoids[i]]._y = _root["sc" + i]._y - 5;
_root["num" + _mamoids[i]]._x = _root["sc" + i]._x - 25;
i--;
}
mamoPause(false);
var i = (_nbMamo - 1);
while (i >= 0) {
chscores[tracknb][i].cs = 0;
i--;
}
dispScores();
var winvol = 0;
var winvolgoal = 0;
var _ranks = [0, 1, 2, 3];
var warnsl = 3000;
var DCP = 10000;
var _nextcp = (DCP * 2);
var _cpDying = false;
var _backgd = new Array();
_backgd[0] = {e:false, mc:rotator.b4, x:0, r:0.7};
rotator.b4._visible = false;
_backgd[1] = {e:false, mc:rotator.b5, x:0, r:0.7};
rotator.b5._visible = false;
var _nbBackgd = _backgd.length;
var nextang = 0;
var nextangframe = 0;
var _angadd = 0;
var wangadd = 0;
var _jumpask = false;
keyListener.onKeyDown = null;
keyListener.onKeyUp = null;
keyListener = new Object();
keyListener.onKeyDown = function () {
x = Key.getAscii();
if (x == 32) {
if (_paused) {
mamoPause(false);
} else {
_jumpask = true;
}
} else if (!_paused) {
mamoPause(true);
}
};
keyListener.onKeyUp = function () {
x = Key.getAscii();
if (x == 32) {
_jumpask = false;
}
};
Key.addListener(keyListener);
Frame 9
function initPlay() {
if (!_paused) {
clearInterval(doOnce1);
mamoPause(true);
var _local1 = _nbMamo - 1;
while (_local1 >= 0) {
_mamos[_local1].init2();
_local1--;
}
}
}
function dispScores() {
var _local2 = _nbMamo - 1;
while (_local2 >= 0) {
_root["sc" + _local2].cs.text = mpscores[tracknb][_local2].cs;
_root["sc" + _local2].rs.text = mpscores[tracknb][_local2].rs;
_local2--;
}
}
function mamoScore(i, p) {
mpscores[tracknb][i].cs = mpscores[tracknb][i].cs + p;
_root["sc" + i].neon2._visible = true;
var _local2 = _nbMamo - 1;
while (_local2 >= 0) {
if (_local2 != i) {
_root["sc" + _local2].neon2._visible = false;
}
_local2--;
}
if ((currentwinner == -1) || (mpscores[tracknb][i].cs > mpscores[tracknb][currentwinner].cs)) {
_root["sc" + currentwinner].neon._visible = false;
_root["sc" + i].neon._visible = true;
currentwinner = i;
}
dispScores();
}
function order() {
var _local2 = _nbMamo - 1;
while (_local2 >= 1) {
var _local1 = _local2 - 1;
while (_local1 >= 0) {
if (_mamos[_ranks[_local2]]._x > _mamos[_ranks[_local1]]._x) {
var _local3 = _ranks[_local1];
_ranks[_local1] = _ranks[_local2];
_ranks[_local2] = _local3;
}
_local1--;
}
_local2--;
}
var _local4 = 0;
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
if (_mamos[_ranks[_local2]]._canjump) {
_local4++;
}
_mamos[_ranks[_local2]].setPos(_local2);
_mamos[_ranks[_local2]].setSustain(_local2, _nbMamo);
_local2--;
}
_local4 = (_nbMamo - _local4) + 1;
winvolgoal = Math.abs(_mamos[_ranks[0]]._vx) / _local4;
}
function deadCp() {
_cpDying = false;
order();
var _local1 = _mamos[_ranks[0]];
_nextcp = _nextcp + DCP;
while ((_local1._x + _local1._wd2) > nextcp) {
_nextcp = _nextcp + DCP;
}
rotator.checkpoint._x = _nextcp + _xtrans;
rotator.checkpoint.gotoAndStop(1);
}
function catchCp() {
_cpDying = true;
rotator.checkpoint.gotoAndPlay("disappear");
}
function mamoPlay() {
var _local2 = _nbMamo - 1;
while (_local2 >= 0) {
if (Key.isDown(mamoRKeys[_local2])) {
if (_mamos[_local2]._canjump) {
_mamos[_local2].jump();
} else {
_mamos[_local2].burst(true);
}
} else {
_mamos[_local2].burst(false);
}
_local2--;
}
curve();
if ((_frame % 10) == 0) {
order();
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].quickLoop();
_local2--;
}
if ((_frame % 30) == 0) {
if ((_frame % 180) == 0) {
if (!_onpepere) {
if (((getTimer() - _lastadvertshown) > TIMEADVERT) && (_frame > 100)) {
_lastadvertshown = getTimer() + 600000;
mamoPause(true);
panel.showPanel(("\n\nYOU HAVE BEEN PLAYING FOR MORE THAN " + MINADVERT) + " MINUTES\n\nWE SUGGEST YOU TO FIGHT AGAINST THE HIGH SCORERS ON THE OFFICIAL PAGE OF THIS GAME!", "TAKE ME THERE", function () {
getURL (GAMEURL, "_blank");
}, "LEAVE ME HERE", hidePanel);
}
}
}
}
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].memo();
_mamos[_local2].moveMamo();
_local2--;
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].ground();
_local2--;
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
var _local1 = _local2 - 1;
while (_local1 >= 0) {
_mamos[_local2].hitMamo(_mamos[_local1]);
_local1--;
}
_local2--;
}
if (!_cpDying) {
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
if ((_mamos[_local2]._x + _mamos[_local2]._wd2) > _nextcp) {
catchCp();
_mamos[_local2].catchCp();
lineSound.start(0, 1);
if (!raceEnd) {
brokenwalls++;
progressf._width = (100 * brokenwalls) / nbwalls;
if (brokenwalls >= nbwalls) {
mamoScore(_local2, 3);
} else {
mamoScore(_local2, 1);
}
if (brokenwalls == (nbwalls - 1)) {
message.showPanel("FINAL\nLINE");
} else if (brokenwalls == (nbwalls - 20)) {
message.showPanel("20 LINES\nTO GO");
} else if (brokenwalls == (nbwalls - 10)) {
message.showPanel("10 LINES\nTO GO");
} else if (brokenwalls == (nbwalls - 5)) {
message.showPanel("5 LINES\nTO GO");
} else if (brokenwalls == (nbwalls - 3)) {
message.showPanel("3 LINES\nTO GO");
} else if (brokenwalls == (nbwalls - 2)) {
message.showPanel("2 LINES\nTO GO");
} else if (brokenwalls >= nbwalls) {
if (rcscores[tracknb][currentwinner].cs > rcscores[tracknb][currentwinner].rs) {
rcscores[tracknb][currentwinner].rs = rcscores[tracknb][currentwinner].cs;
}
dispScores();
raceEnd = true;
winSound.start(0, 1);
panel.showPanel(("\n\n\nPLAYER " + mamosParams[_mamoids[currentwinner]].num) + " WINS!", false, null, "MENU", mainMenu);
_mamos[currentwinner]._mc.ice.win._visible = true;
}
}
break;
}
_local2--;
}
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].showMamo();
_local2--;
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].speed();
_local2--;
}
groundTrans();
winvol = winvol + ((winvolgoal - winvol) * 0.1);
windSound.setVolume(winvol);
_frame++;
}
function curve() {
if (_frame >= nextangframe) {
if ((_curve > 0) && (random(100) < 10)) {
nextang = -10 - random(50);
nextangframe = (_frame + 10) + random(30);
} else {
if (_curve > 45) {
nextang = 20 + random(40);
} else {
nextang = 20 + random(60);
}
nextangframe = (_frame + 10) + random(120);
}
wangadd = (nextang - _curve) / (nextangframe - _frame);
if (nextang < 10) {
if (random(100) < 50) {
var _local1 = random(3);
if ((_local1 == 0) || (_local1 == 2)) {
if (!_backgd[0].e) {
_backgd[0].e = true;
_backgd[0].mc._visible = true;
_backgd[0].x = ((-_xtrans) * _backgd[0].r) + 600;
}
}
if ((_local1 == 1) || (_local1 == 2)) {
if (!_backgd[1].e) {
_backgd[1].e = true;
_backgd[1].mc._visible = true;
_backgd[1].x = ((-_xtrans) * _backgd[1].r) + 640;
}
}
}
}
} else {
_angadd = _angadd + ((wangadd - _angadd) * 0.1);
_curve = _curve + _angadd;
}
rotator._rotation = _curve;
_fx = GRAVITY * Math.sin((_curve * Math.PI) / 180);
_fy = GRAVITY * Math.cos((_curve * Math.PI) / 180);
}
function groundTrans() {
_xtrans = _xtrans + ((((-(_mamos[_ranks[0]]._x + _mamos[_ranks[1]]._x)) / 2) - _xtrans) * 0.3);
rotator.b0._x = ((_xtrans + 4000000000) % 700) - 400;
rotator.b1._x = ((_xtrans + 4000000000) % 1500) - 400;
rotator.b2._x = (((_xtrans * 0.7) + 4000000000) % 2000) - 400;
rotator.b3._x = (((_xtrans * 0.5) + 4000000000) % 5000) - 600;
rotator.checkpoint._x = _nextcp + _xtrans;
var _local1 = _nbBackgd - 1;
while (_local1 >= 0) {
if (_backgd[_local1].e) {
_backgd[_local1].mc._x = _backgd[_local1].x + (_xtrans * _backgd[_local1].r);
if (_backgd[_local1].mc._x < -500) {
_backgd[_local1].mc._visible = false;
_backgd[_local1].e = false;
}
_backgd[_local1].mc.mainloop();
}
_local1--;
}
}
function mamoPause(b) {
_paused = b;
if (_paused) {
windSound.stop();
onEnterFrame = null;
scoreTips();
var _local2 = _nbMamo - 1;
while (_local2 >= 0) {
var _local3 = _root["tip" + _local2];
_local3.help.text = mamoTKeys[_local2];
var _local4 = {x:0, y:0};
_mamos[_local2]._mc.localToGlobal(_local4);
_local3._x = _local4.x;
_local3._y = (_local4.y - Math.sqrt(_mamos[_local2]._wd2 * _mamos[_local2]._wd2)) - 5;
_local3.setYbase();
_local3._visible = true;
_local2--;
}
if (!_tutuoshown) {
_tutuoshown = true;
panel.showPanel(TUTO1, "GO", function () {
mamoPause(true);
}, false, null);
panel.tuto1._visible = true;
} else if (!_tutuoshown2) {
_tutuoshown2 = true;
panel.showPanel(TUTO2, "GO", function () {
mamoPause(true);
}, false, null);
panel.tuto0._visible = true;
} else if (levelUnlock() <= 0) {
panel.showPanel("\n\n4 PLAYERS ON THE SAME KEYBOARD. ONE KEY FOR EACH MAMMOTH.\nMAY THE BEST PLAYER WIN!\n\n1 POINT FOR EACH LINE YOU BREAK THROUGH\n\n3 POINTS FOR THE FINAL LINE", "GO", hidePanel, "MENU", mainMenu);
} else {
panel.showPanel("\n\n4 PLAYERS ON THE SAME KEYBOARD. ONE KEY FOR EACH MAMMOTH.\nMAY THE BEST PLAYER WIN!\n\n1 POINT FOR EACH LINE YOU BREAK THROUGH\n\n3 POINTS FOR THE FINAL LINE", "GO", hidePanel, "BACK", multiplayerPlay);
}
} else {
windSound.start(0, 1000000000);
panel.hidePanel();
cleanTips();
onEnterFrame = mamoPlay;
if (_frame != 0) {
message.showPanel((nbwalls - brokenwalls) + " LINES\nTO GO");
}
}
}
stop();
var GRAVITY = 0.9;
var _curve = 0;
var _fx = 0;
var _fy = GRAVITY;
var _xtrans = 0;
var _frame = 0;
windSound.setVolume(0);
rotator.bonus0._visible = false;
rotator.bonus1._visible = false;
rotator.bonus2._visible = false;
rotator.bonus3._visible = false;
initMultiSounds();
var doOnce1 = setInterval(initPlay, 100);
progressf._width = 0;
var nbwalls = 10;
var _mamoids = new Array();
var i = (players.length - 1);
while (i >= 0) {
_mamoids[i] = players[i];
i--;
}
var _nbMamo = _mamoids.length;
var brokenwalls = 0;
var raceEnd = false;
var _mamos = new Array();
var i = (_nbMamo - 1);
while (i >= 0) {
_mamos[i] = new MammothPlayer(rotator["m" + _mamoids[i]], rotator["def" + _mamoids[i]], rotator["hair" + _mamoids[i]], -150 + (100 * i), 0, mamosParams[_mamoids[i]].wh, mamosParams[_mamoids[i]].wh, mamosParams[_mamoids[i]].tl, mamosParams[_mamoids[i]].ail, mamosParams[_mamoids[i]].aip, mamosParams[_mamoids[i]].jf, 0.0003);
i--;
}
cleanMamos();
var i = (_nbMamo - 1);
while (i >= 0) {
rotator["m" + _mamoids[i]]._visible = true;
rotator["def" + _mamoids[i]]._visible = true;
rotator["hair" + _mamoids[i]]._visible = true;
_root["sc" + i]._visible = true;
_root["num" + _mamoids[i]]._visible = true;
_root["num" + _mamoids[i]]._y = _root["sc" + i]._y - 5;
_root["num" + _mamoids[i]]._x = _root["sc" + i]._x - 25;
i--;
}
var _paused;
mamoPause(false);
if ((mpscores + "") == "undefined") {
var mpscores = new Array();
}
if ((mpscores[tracknb] + "") == "undefined") {
mpscores[tracknb] = new Array();
var i = (_nbMamo - 1);
while (i >= 0) {
mpscores[tracknb][i] = {cs:0, rs:0};
i--;
}
} else {
var i = (_nbMamo - 1);
while (i >= 0) {
mpscores[tracknb][i].cs = 0;
i--;
}
}
dispScores();
var currentwinner = -1;
var winvol = 0;
var winvolgoal = 0;
var _ranks = [0, 1, 2, 3];
var DCP = 10000;
var _nextcp = (DCP * 2);
var _cpDying = false;
var _backgd = new Array();
_backgd[0] = {e:false, mc:rotator.b4, x:0, r:0.7};
rotator.b4._visible = false;
_backgd[1] = {e:false, mc:rotator.b5, x:0, r:0.7};
rotator.b5._visible = false;
var _nbBackgd = _backgd.length;
var nextang = 0;
var nextangframe = 0;
var _angadd = 0;
var wangadd = 0;
var mamoRKeys = [32, 17, 13, 38];
var mamoTKeys = ["SPACE", "CTRL", "ENTER", "UP"];
var mamoKeys = [32, 0, 13];
keyListener.onKeyDown = null;
keyListener.onKeyUp = null;
keyListener = new Object();
keyListener.onKeyDown = function () {
x = Key.getAscii();
var _local2 = false;
var _local1 = mamoKeys.length - 1;
while (_local1 >= 0) {
if (x == mamoKeys[_local1]) {
_local2 = true;
if (_paused) {
mamoPause(false);
}
}
_local1--;
}
if (!_local2) {
if (!_paused) {
mamoPause(true);
}
}
};
keyListener.onKeyUp = function () {
x = Key.getAscii();
var _local2 = false;
var _local1 = _nbMamo - 1;
while (_local1 >= 0) {
if (x == mamoKeys[_local1]) {
_local2 = true;
}
_local1--;
}
};
Key.addListener(keyListener);
Frame 10
function initPlay() {
if (!_paused) {
clearInterval(doOnce1);
mamoPause(true);
var _local1 = _nbMamo - 1;
while (_local1 >= 0) {
_mamos[_local1].init2();
_local1--;
}
}
}
function dispScores() {
var _local2 = _nbMamo - 1;
while (_local2 >= 0) {
_root["sc" + _local2].cs.text = rcscores[tracknb][_local2].cs;
_root["sc" + _local2].rs.text = rcscores[tracknb][_local2].rs;
_local2--;
}
}
function mamoScore(i, p) {
rcscores[tracknb][i].cs = rcscores[tracknb][i].cs + p;
_root["sc" + i].neon2._visible = true;
var _local2 = _nbMamo - 1;
while (_local2 >= 0) {
if (_local2 != i) {
_root["sc" + _local2].neon2._visible = false;
}
_local2--;
}
if ((currentwinner == -1) || (rcscores[tracknb][i].cs > rcscores[tracknb][currentwinner].cs)) {
_root["sc" + currentwinner].neon._visible = false;
_root["sc" + i].neon._visible = true;
currentwinner = i;
}
dispScores();
}
function order() {
var _local2 = _nbMamo - 1;
while (_local2 >= 1) {
var _local1 = _local2 - 1;
while (_local1 >= 0) {
if (_mamos[_ranks[_local2]]._x > _mamos[_ranks[_local1]]._x) {
var _local3 = _ranks[_local1];
_ranks[_local1] = _ranks[_local2];
_ranks[_local2] = _local3;
}
_local1--;
}
_local2--;
}
var _local4 = 0;
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
if (_mamos[_ranks[_local2]]._canjump) {
_local4++;
}
_mamos[_ranks[_local2]].setPos(_local2);
_mamos[_ranks[_local2]].setSustain(_local2, _nbMamo);
_local2--;
}
_local4 = (_nbMamo - _local4) + 1;
winvolgoal = Math.abs(_mamos[_ranks[0]]._vx) / _local4;
}
function deadCp() {
_cpDying = false;
order();
var _local1 = _mamos[_ranks[0]];
_nextcp = _nextcp + DCP;
while ((_local1._x + _local1._wd2) > nextcp) {
_nextcp = _nextcp + DCP;
}
rotator.checkpoint._x = _nextcp + _xtrans;
rotator.checkpoint.gotoAndStop(1);
}
function catchCp() {
_cpDying = true;
rotator.checkpoint.gotoAndPlay("disappear");
}
function mamoPlay() {
if (_jumpask) {
if (_mamos[0]._canjump) {
_mamos[0].jump();
} else {
_mamos[0].burst(true);
}
} else {
_mamos[0].burst(false);
}
curve();
if ((_frame % 10) == 0) {
order();
var _local2 = _nbMamo - 1;
while (_local2 >= 1) {
_mamos[_local2].quickLoop();
_mamos[_local2].quickAI();
_local2--;
}
_mamos[0].quickLoop();
if ((_frame % 30) == 0) {
if ((_frame % 180) == 0) {
if (!_onpepere) {
if (((getTimer() - _lastadvertshown) > TIMEADVERT) && (_frame > 100)) {
_lastadvertshown = getTimer() + 600000;
mamoPause(true);
panel.showPanel(("\n\nYOU HAVE BEEN PLAYING FOR MORE THAN " + MINADVERT) + " MINUTES\n\nWE SUGGEST YOU TO FIGHT AGAINST THE HIGH SCORERS ON THE OFFICIAL PAGE OF THIS GAME!", "TAKE ME THERE", function () {
getURL (GAMEURL, "_blank");
}, "LEAVE ME HERE", hidePanel);
}
}
}
}
}
var _local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].memo();
_mamos[_local2].moveMamo();
_local2--;
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].ground();
_local2--;
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
var _local1 = _local2 - 1;
while (_local1 >= 0) {
_mamos[_local2].hitMamo(_mamos[_local1]);
_local1--;
}
_local2--;
}
if (!_cpDying) {
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
if ((_mamos[_local2]._x + _mamos[_local2]._wd2) > _nextcp) {
lineSound.start(0, 1);
catchCp();
_mamos[_local2].catchCp();
if (!raceEnd) {
brokenwalls++;
progressf._width = (100 * brokenwalls) / nbwalls;
if (brokenwalls >= nbwalls) {
mamoScore(_local2, 3);
} else {
mamoScore(_local2, 1);
}
if (brokenwalls == (nbwalls - 1)) {
message.showPanel("FINAL\nLINE");
} else if (brokenwalls == (nbwalls - 20)) {
message.showPanel("20 LINES\nTO GO");
} else if (brokenwalls == (nbwalls - 10)) {
message.showPanel("10 LINES\nTO GO");
} else if (brokenwalls == (nbwalls - 5)) {
message.showPanel("5 LINES\nTO GO");
} else if (brokenwalls == (nbwalls - 3)) {
message.showPanel("3 LINES\nTO GO");
} else if (brokenwalls == (nbwalls - 2)) {
message.showPanel("2 LINES\nTO GO");
} else if (brokenwalls >= nbwalls) {
raceEnd = true;
if (rcscores[tracknb][currentwinner].cs > rcscores[tracknb][currentwinner].rs) {
rcscores[tracknb][currentwinner].rs = rcscores[tracknb][currentwinner].cs;
}
dispScores();
if (currentwinner == 0) {
rcscores[tracknb][0].win = true;
panel.showPanel("\n\n\nYOU WIN!", "NEXT", racePlay, "MENU", mainMenu);
winSound.start(0, 1);
save();
} else {
panel.showPanel("\n\n\nYOU LOOSE!", "BACK", racePlay, "MENU", mainMenu);
looseSound.start(0, 1);
}
_mamos[currentwinner]._mc.ice.win._visible = true;
}
}
break;
}
_local2--;
}
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].showMamo();
_local2--;
}
_local2 = _nbMamo - 1;
while (_local2 >= 0) {
_mamos[_local2].speed();
_local2--;
}
groundTrans();
winvol = winvol + ((winvolgoal - winvol) * 0.1);
windSound.setVolume(winvol);
_frame++;
}
function curve() {
if (_frame >= nextangframe) {
if ((_curve > 0) && (random(100) < 10)) {
nextang = -10 - random(50);
nextangframe = (_frame + 10) + random(30);
} else {
if (_curve > 45) {
nextang = 20 + random(40);
} else {
nextang = 20 + random(60);
}
nextangframe = (_frame + 10) + random(120);
}
wangadd = (nextang - _curve) / (nextangframe - _frame);
if (nextang < 10) {
if (random(100) < 50) {
var _local1 = random(3);
if ((_local1 == 0) || (_local1 == 2)) {
if (!_backgd[0].e) {
_backgd[0].e = true;
_backgd[0].mc._visible = true;
_backgd[0].x = ((-_xtrans) * _backgd[0].r) + 600;
}
}
if ((_local1 == 1) || (_local1 == 2)) {
if (!_backgd[1].e) {
_backgd[1].e = true;
_backgd[1].mc._visible = true;
_backgd[1].x = ((-_xtrans) * _backgd[1].r) + 640;
}
}
}
}
} else {
_angadd = _angadd + ((wangadd - _angadd) * 0.1);
_curve = _curve + _angadd;
}
rotator._rotation = _curve;
_fx = GRAVITY * Math.sin((_curve * Math.PI) / 180);
_fy = GRAVITY * Math.cos((_curve * Math.PI) / 180);
}
function groundTrans() {
_xtrans = _xtrans + ((((-_mamos[0]._x) - (_mamos[0]._vx * 4)) - _xtrans) * 0.3);
rotator.b0._x = ((_xtrans + 4000000000) % 700) - 400;
rotator.b1._x = ((_xtrans + 4000000000) % 1500) - 400;
rotator.b2._x = (((_xtrans * 0.7) + 4000000000) % 2000) - 400;
rotator.b3._x = (((_xtrans * 0.5) + 4000000000) % 5000) - 600;
rotator.checkpoint._x = _nextcp + _xtrans;
var _local1 = _nbBackgd - 1;
while (_local1 >= 0) {
if (_backgd[_local1].e) {
_backgd[_local1].mc._x = _backgd[_local1].x + (_xtrans * _backgd[_local1].r);
if (_backgd[_local1].mc._x < -500) {
_backgd[_local1].mc._visible = false;
_backgd[_local1].e = false;
}
_backgd[_local1].mc.mainloop();
}
_local1--;
}
}
function mamoPause(b) {
_paused = b;
if (_paused) {
windSound.stop();
onEnterFrame = null;
scoreTips();
tip0.help.text = "SPACE";
var _local1 = {x:0, y:0};
_mamos[0]._mc.localToGlobal(_local1);
tip0._x = _local1.x;
tip0._y = (_local1.y - Math.sqrt(_mamos[0]._wd2 * _mamos[0]._wd2)) - 5;
tip0.setYbase();
tip0._visible = true;
if (!_tutuoshown) {
_tutuoshown = true;
panel.showPanel(TUTO1, "GO", function () {
mamoPause(true);
}, false, null);
panel.tuto1._visible = true;
} else if (!_tutuoshown2) {
_tutuoshown2 = true;
panel.showPanel(TUTO2, "GO", function () {
mamoPause(true);
}, false, null);
panel.tuto0._visible = true;
} else if (tracknb == 2) {
panel.showPanel("\n\nYOU ARE IN LEAGUE 1\n\nTHIS IS THE FINAL RACE!", "GO", hidePanel, "BACK", racePlay);
} else if (tracknb == 1) {
panel.showPanel("\n\nYOU ARE IN LEAGUE 2\nWIN THE RACE\nTO REACH THE LEAGUE 1!", "GO", hidePanel, "BACK", racePlay);
} else if (tracknb == 0) {
panel.showPanel("\n\nYOU ARE IN LEAGUE 3\nWIN THE RACE\nTO REACH THE LEAGUE 2!\n\n1 POINT FOR EACH LINE YOU BREAK THROUGH\n\n3 POINTS FOR THE FINAL LINE", "GO", hidePanel, "BACK", racePlay);
}
} else {
windSound.start(0, 1000000000);
panel.hidePanel();
onEnterFrame = mamoPlay;
cleanTips();
if (_frame != 0) {
message.showPanel((nbwalls - brokenwalls) + " LINES\nTO GO");
}
}
}
stop();
var GRAVITY = 0.9;
var _curve = 0;
var _fx = 0;
var _fy = GRAVITY;
var _xtrans = 0;
var _frame = 0;
windSound.setVolume(0);
rotator.bonus0._visible = false;
rotator.bonus1._visible = false;
rotator.bonus2._visible = false;
rotator.bonus3._visible = false;
initMultiSounds();
var doOnce1 = setInterval(initPlay, 100);
progressf._width = 0;
var nbwalls = 10;
var _mamoids = new Array();
_mamoids[0] = 0;
if (tracknb == 0) {
_mamoids[1] = 1;
_mamoids[2] = 2;
_mamoids[3] = 3;
nbwalls = 15;
} else if (tracknb == 1) {
_mamoids[1] = 4;
_mamoids[2] = 5;
_mamoids[3] = 6;
nbwalls = 20;
} else if (tracknb == 2) {
_mamoids[1] = 7;
_mamoids[2] = 8;
_mamoids[3] = 9;
nbwalls = 25;
}
var _nbMamo = _mamoids.length;
var brokenwalls = 0;
var raceEnd = false;
var _mamos = new Array();
_mamos[0] = new MammothPlayer(rotator["m" + _mamoids[0]], rotator["def" + _mamoids[0]], rotator["hair" + _mamoids[0]], -150, 0, mamosParams[_mamoids[0]].wh, mamosParams[_mamoids[0]].wh, mamosParams[_mamoids[0]].tl, mamosParams[_mamoids[0]].ail, mamosParams[_mamoids[0]].aip, mamosParams[_mamoids[0]].jf, 0.0005);
var i = (_nbMamo - 1);
while (i >= 1) {
_mamos[i] = new Mammoth(rotator["m" + _mamoids[i]], rotator["def" + _mamoids[i]], rotator["hair" + _mamoids[i]], -150 + (100 * i), 0, mamosParams[_mamoids[i]].wh, mamosParams[_mamoids[i]].wh, mamosParams[_mamoids[i]].tl, mamosParams[_mamoids[i]].ail, mamosParams[_mamoids[i]].aip, mamosParams[_mamoids[i]].jf, mamosParams[_mamoids[i]].sf);
i--;
}
cleanMamos();
var i = (_nbMamo - 1);
while (i >= 0) {
rotator["m" + _mamoids[i]]._visible = true;
rotator["def" + _mamoids[i]]._visible = true;
rotator["hair" + _mamoids[i]]._visible = true;
_root["sc" + i]._visible = true;
_root["num" + _mamoids[i]]._visible = true;
_root["num" + _mamoids[i]]._y = _root["sc" + i]._y - 5;
_root["num" + _mamoids[i]]._x = _root["sc" + i]._x - 25;
i--;
}
var _paused;
mamoPause(false);
var i = (_nbMamo - 1);
while (i >= 0) {
rcscores[tracknb][i].cs = 0;
i--;
}
dispScores();
var currentwinner = -1;
var winvol = 0;
var winvolgoal = 0;
var _ranks = [0, 1, 2, 3];
var DCP = 10000;
var _nextcp = (DCP * 2);
var _cpDying = false;
var _backgd = new Array();
_backgd[0] = {e:false, mc:rotator.b4, x:0, r:0.7};
rotator.b4._visible = false;
_backgd[1] = {e:false, mc:rotator.b5, x:0, r:0.7};
rotator.b5._visible = false;
var _nbBackgd = _backgd.length;
var nextang = 0;
var nextangframe = 0;
var _angadd = 0;
var wangadd = 0;
var _jumpask = false;
keyListener = new Object();
keyListener.onKeyDown = function () {
x = Key.getAscii();
var _local2 = false;
var _local1 = mamoKeys.length - 1;
while (_local1 >= 0) {
if (x == mamoKeys[_local1]) {
_local2 = true;
if (_paused) {
mamoPause(false);
}
}
_local1--;
}
if (!_local2) {
if (!_paused) {
mamoPause(true);
}
}
};
var _jumpask = false;
keyListener.onKeyDown = null;
keyListener.onKeyUp = null;
keyListener = new Object();
keyListener.onKeyDown = function () {
x = Key.getAscii();
if (x == 32) {
if (_paused) {
mamoPause(false);
} else {
_jumpask = true;
}
} else if (!_paused) {
mamoPause(true);
}
};
keyListener.onKeyUp = function () {
x = Key.getAscii();
if (x == 32) {
_jumpask = false;
}
};
Key.addListener(keyListener);
Symbol 16 MovieClip Frame 1
function setYbase() {
_basey = this._y;
}
var inc = 0;
var _basey = 0;
onEnterFrame = function () {
inc++;
this._y = _basey - Math.abs(Math.cos(inc * 0.2) * 10);
};
Symbol 22 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
hid._visible = false;
sur._visible = false;
win._visible = false;
nrj._visible = false;
wind._visible = false;
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 4
gotoAndStop (1);
Symbol 63 MovieClip Frame 30
gotoAndPlay((random(4) * 30) + 1);
Symbol 63 MovieClip Frame 60
gotoAndPlay((random(4) * 30) + 1);
Symbol 63 MovieClip Frame 90
gotoAndPlay((random(4) * 30) + 1);
Symbol 63 MovieClip Frame 120
gotoAndPlay((random(4) * 30) + 1);
Symbol 63 MovieClip Frame 150
gotoAndPlay((random(4) * 30) + 1);
Symbol 67 MovieClip Frame 25
var rd = random(100);
if (rd < 90) {
gotoAndPlay (1);
}
Symbol 67 MovieClip Frame 29
gotoAndPlay (1);
Symbol 71 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 1
onEnterFrame = function () {
_rotation = _root.mamorot;
};
Symbol 84 MovieClip Frame 1
onEnterFrame = function () {
_rotation = _root.mamorot;
};
Symbol 85 MovieClip Frame 1
function setText(ptxt, rm) {
btntxt = ptxt;
txt.text = btntxt;
rotmamo = rm;
if (!active) {
gotoAndStop("enabled" + active);
} else {
gotoAndStop (1);
if (hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop (4);
}
}
}
function enable(b) {
active = b;
if (!active) {
onRollOver = null;
onRollOut = null;
onPress == null;
}
if (!isdown) {
gotoAndStop("enabled" + b);
}
}
function down() {
isdown = true;
gotoAndStop ("down");
}
function up() {
isdown = false;
gotoAndStop("enabled" + active);
}
function activated() {
return(active);
}
if ((loaded + "") == "undefined") {
var loaded = true;
var active = true;
var isdown = false;
var btntxt = "";
var rotmamo = false;
}
txt.text = btntxt;
stop();
onPress = function () {
if (active) {
flashe.gotoAndPlay(2);
action();
_root.menuSound.start(0, 1);
}
};
onRollOver = function () {
if (active) {
gotoAndStop (4);
}
};
onRollOut = function () {
if (active) {
gotoAndStop (1);
}
};
Symbol 85 MovieClip Frame 2
txt.text = btntxt;
stop();
Symbol 85 MovieClip Frame 3
txt.text = btntxt;
stop();
Symbol 85 MovieClip Frame 4
function initRotMamo() {
clearInterval(doOnce0);
mamo.m0.ice.sur._visible = true;
}
var doOnce0 = setInterval(initRotMamo, 1);
if (rotmamo === true) {
mamo._visible = true;
} else {
mamo._visible = false;
}
if (rotmamo === 2) {
logo._visible = true;
} else {
logo._visible = false;
}
mamo._rotation = _root.mamorot;
logo._rotation = _root.mamorot;
txt.text = btntxt;
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 16
mamo1.m2.ice.braker.gotoAndPlay(2);
Symbol 102 MovieClip Frame 1
mamo1.m2.ice.wind._visible = false;
mamo.m0.ice.wind._visible = true;
if ((windposx + "") == "undefined") {
windposx = mamo.m0.ice.wind._x;
windposy = mamo.m0.ice.wind._y;
windpos1x = mamo1.m2.ice.wind._x;
windpos1y = mamo1.m2.ice.wind._y;
}
onEnterFrame = function () {
var _local1 = 1;
mamo.m0.ice.wind._alpha = 10 + (40 * _local1);
mamo.m0.ice.wind._x = windposx + ((((random(21) - 10) * 0.03) * 20) * _local1);
mamo.m0.ice.wind._y = windposy + ((((random(21) - 10) * 0.03) * 20) * _local1);
mamo1.m2.ice.wind._alpha = 10 + (40 * _local1);
mamo1.m2.ice.wind._x = windpos1x + ((((random(21) - 10) * 0.03) * 20) * _local1);
mamo1.m2.ice.wind._y = windpos1y + ((((random(21) - 10) * 0.03) * 20) * _local1);
};
Symbol 102 MovieClip Frame 38
mamo1.m2.ice.wind._visible = true;
mamo.m0.ice.wind._visible = false;
Symbol 102 MovieClip Frame 109
mamo1.m2.ice.wind._visible = false;
mamo.m0.ice.wind._visible = true;
Symbol 103 MovieClip Frame 1
function showPanel(ptxt, b1, b1act, b2, b2act) {
tuto0._visible = false;
tuto1._visible = false;
_visible = true;
if (b1 != false) {
goBtn._visible = true;
gofunction = b1act;
goBtn.setText(b1, false);
goBtn.action = function () {
hidePanel();
gofunction();
};
} else {
goBtn._visible = false;
}
if (b2 != false) {
quitBtn._visible = true;
quitfunction = b2act;
quitBtn.setText(b2, false);
quitBtn.action = function () {
hidePanel();
quitfunction();
};
} else {
quitBtn._visible = false;
}
showit = true;
info.text = ptxt;
onEnterFrame = loop;
}
function hidePanel() {
showit = false;
}
function loop() {
if (showit) {
if (_y < 165) {
_y = (_y + ((170 - _y) * 0.2));
}
} else if (_y > -170) {
_y = (_y + ((-200 - _y) * 0.3));
} else {
onEnterFrame = null;
_visible = false;
tuto0._visible = false;
tuto1._visible = false;
}
}
_visible = false;
var showit = false;
tuto0._visible = false;
tuto1._visible = false;
Symbol 127 MovieClip Frame 1
function gotoFrame(f) {
_visible = true;
theGoFrame = f;
gotoAndPlay (2);
}
stop();
_visible = false;
var theGoFrame = "menu";
Symbol 127 MovieClip Frame 11
_root.gotoAndStop(theGoFrame);
Symbol 127 MovieClip Frame 45
stop();
_visible = false;
_root.fading = false;
Symbol 129 MovieClip Frame 1
function showPanel(ptxt) {
_visible = true;
showit = true;
info.text = ptxt;
onEnterFrame = loop;
ice.light.gotoAndPlay(2);
}
function hidePanel() {
showit = false;
}
function loop() {
if (showit) {
if (_y < 165) {
_y = (_y + ((170 - _y) * 0.1));
} else {
hidePanel();
ice.light.gotoAndPlay(2);
}
} else if (_y > -170) {
_y = (_y + ((-200 - _y) * 0.2));
} else {
onEnterFrame = null;
_visible = false;
}
}
_visible = false;
var showit = false;
Symbol 268 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = 11000;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(undefined);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = _getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local15 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = 11000;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(undefined);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = _getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.4";
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.4";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 269 MovieClip [__Packages.Mammoth] Frame 0
class Mammoth
{
static var _choclimit;
var _mc, _mc2, _mc2dx, _mc2dy, _mc3, _mc3dx, _mc3dy, windposx, windposy;
function Mammoth (mc, mc2, mc3, x, y, w, h, tl, ail, aip, jf, sf) {
_mc = mc;
_mc2 = mc2;
_mc2dx = _mc2._x - _mc._x;
_mc2dy = _mc2._y - _mc._y;
_mc3 = mc3;
_mc3dx = _mc3._x - _mc._x;
_mc3dy = _mc3._y - _mc._y;
_x = x;
_y = y;
_w = w;
_h = h;
_wd2 = w / 2;
_hd2 = h / 2;
_tl = tl;
_jf = jf;
_sf = sf;
setPos(0, 1);
_mc.mamo.tl.createEmptyMovieClip("tail", 1);
_mc.mamo.tl.pompom.swapDepth(1);
_choclimit = 8 * _root.GRAVITY;
_AIlevel = ail;
_AIPower = aip;
_randomjumplimit = 2 - (_AIPower / 5);
windposx = _mc.ice.wind._x;
windposy = _mc.ice.wind._y;
}
function init2() {
_mc.ice.wind._visible = true;
}
function memo() {
_mx = _x;
_my = _y;
_touchbloc = false;
}
function moveMamo() {
_vx = _vx + _root._fx;
_vy = _vy + _root._fy;
_vx = _vx * (_sustain * _blocsustain);
_vy = _vy * (_sustain * _blocsustain);
_x = _x + _vx;
_y = _y + _vy;
_blocsustain = 1;
}
function ground() {
if ((_y + _hd2) > 115) {
_touchground = true;
_y = 115 - _hd2;
} else {
_touchground = false;
}
}
function hitMamo(mamo) {
var _local9 = Math.abs(mamo._x - _x);
var _local8 = Math.abs(mamo._y - _y);
if ((_local9 < (mamo._wd2 + _wd2)) && (_local8 < (mamo._hd2 + _hd2))) {
if (_local9 >= _local8) {
var _local4 = Math.abs(_vx - mamo._vx);
if (_local4 > 3) {
_root.choc(Math.abs((_mc._x + mamo._mc._x) / 2), _local4 - 3);
}
var _local5 = ((mamo._wd2 + _wd2) - _local9) / 2;
if (mamo._x > _x) {
if (mamo._vx < _vx) {
mamo._mx = mamo._mx + ((mamo._vx - _vx) * _rebond);
_mx = _mx + ((_vx - mamo._vx) * _rebond);
} else {
mamo._x = mamo._x + _local5;
_x = _x - _local5;
mamo._mx = mamo._mx + _local5;
_mx = _mx - _local5;
}
} else if (mamo._vx > _vx) {
mamo._mx = mamo._mx + ((mamo._vx - _vx) * _rebond);
_mx = _mx + ((_vx - mamo._vx) * _rebond);
} else {
mamo._x = mamo._x - _local5;
_x = _x + _local5;
mamo._mx = mamo._mx - _local5;
_mx = _mx + _local5;
}
} else {
var _local7 = ((mamo._hd2 + _hd2) - _local8) / 2;
var _local6 = 0.9;
var _local4 = Math.abs(_vy - mamo._vy);
if (_local4 > 3) {
_root.choc(Math.abs((_mc._x + mamo._mc._x) / 2), _local4 - 3);
}
if (mamo._y > _y) {
mamo._y = mamo._y + _local7;
_y = _y - _local7;
_touchbloc = true;
if (_local4 > _choclimit) {
var _local10 = mamo._vx + _vx;
if (_local10 > 0) {
if ((_x + _wd2) < (mamo._x + mamo._wd2)) {
_blocsustain = _local6 - ((_local4 - _choclimit) / 100);
_mc.ice.braker.gotoAndPlay(2);
_root.pchit(Math.abs(_mc._x), _local4 - _choclimit);
}
} else if ((_x - _wd2) > (mamo._x - mamo._wd2)) {
_blocsustain = _local6 - ((_local4 - _choclimit) / 100);
_mc.ice.brakel.gotoAndPlay(2);
_root.pchit(Math.abs(_mc._x), _local4 - _choclimit);
}
}
} else {
mamo._y = mamo._y - _local7;
_y = _y + _local7;
mamo._touchbloc = true;
if (_local4 > _choclimit) {
var _local10 = mamo._vx + _vx;
if (_local10 > 0) {
if ((_x + _wd2) > (mamo._x + mamo._wd2)) {
mamo._blocsustain = _local6 - ((_local4 - _choclimit) / 100);
mamo._mc.ice.braker.gotoAndPlay(2);
_root.pchit(Math.abs(mamo._mc._x), _local4 - _choclimit);
}
} else if ((_x - _wd2) < (mamo._x - mamo._wd2)) {
mamo._blocsustain = _local6 - ((_local4 - _choclimit) / 100);
mamo._mc.ice.brakel.gotoAndPlay(2);
_root.pchit(Math.abs(mamo._mc._x), _local4 - _choclimit);
}
}
}
}
}
}
function showMamo() {
_ta = _ta + (_vx * 0.05);
_mc3.gotoAndStop(Math.round(20 + (Math.cos(_ta * 0.4) * 20)));
_tx = _tx + ((((-_vx) * 2) - _tx) * _tl);
_ty = _ty + ((((((-_vy) * 15) + 30) - _ty) * _tl) + (Math.cos(_ta) * 13));
_mc.mamo.tl.pompom._x = _tx;
_mc.mamo.tl.pompom._y = _ty;
_mc.mamo.tl.tail.clear();
_mc.mamo.tl.tail.lineStyle(2, 5588019, 100);
_mc.mamo.tl.tail.moveTo(0, 0);
_mc.mamo.tl.tail.curveTo(-20, 0, _tx, _ty);
_mc._x = _x + _root._xtrans;
_mc._y = _y;
_mc2._x = _mc._x + _mc2dx;
_mc2._y = _mc._y + _mc2dy;
_mc3._x = _mc._x + _mc3dx;
_mc3._y = _mc._y + _mc3dy;
if (_vx > 0) {
var _local4 = Math.pow((3 - _rank) / 3, 4);
if (_vx < 2) {
_local4 = _local4 * (_vx / 2);
}
var _local3 = Math.pow((3 - _rank) / 3, 2);
_mc.ice.wind._alpha = (_vx * 0.65) + (40 * _local4);
_mc.ice.wind._x = windposx + ((((random(21) - 10) * 0.03) * _vx) * _local3);
_mc.ice.wind._y = windposy + ((((random(21) - 10) * 0.03) * _vx) * _local3);
} else {
_mc.ice.wind._alpha = 0;
}
}
function speed() {
_vx = _x - _mx;
_vy = _y - _my;
if (_touchground || (_touchbloc)) {
_tgf++;
if (_tgf > 1) {
_canjump = true;
}
} else {
_tgf = 0;
_canjump = false;
}
}
function quickLoop() {
if (!_burst) {
if (_burstcount < 100) {
_burstcount = _burstcount + 1;
}
}
}
function setPos(pos) {
_rank = pos;
}
function setSustain(pos, posmax) {
_sustain = _sustain + ((((0.98 + _sf) + ((pos * _diffpos) / posmax)) - _sustain) * 0.05);
}
function jump() {
_vy = _vy - _jf;
_tgf = 0;
_canjump = false;
_lastjump = _root._frame;
}
function burst(b) {
}
function catchCp() {
_mc.ice.catchcp.gotoAndPlay(2);
_mc.ice.light.gotoAndPlay(2);
}
function quickAI() {
if (_canjump) {
if (_AIlevel == 0) {
if (random(10) < (_randomjumplimit + 2)) {
jump();
}
} else if (_AIlevel >= 1) {
if (random(50) < _randomjumplimit) {
jump();
} else {
if (_rank > 0) {
if (_vx > 0) {
var _local3 = _root._mamos[_root._ranks[_rank - 1]];
var _local5 = (_local3._x - _local3._wd2) - (_x + _wd2);
if (_local5 > 0) {
var _local4 = _vx - _local3._vx;
if (_local5 < ((_local4 * 14) + (10 - random(20)))) {
jump();
}
}
}
}
if ((_AIlevel >= 2) || (_rank == 0)) {
var _local3 = _root._mamos[_root._ranks[_rank + 1]];
var _local4 = _local3._vx - _vx;
var _local5 = (_x - _wd2) - (_local3._x + _local3._wd2);
if (_local3._y < (_y - _hd2)) {
if ((_local4 > 0) && (_local5 < (_local4 * 5))) {
jump();
}
} else if ((_local4 > 0) && (_local5 < _local4)) {
jump();
}
}
}
}
}
}
var _x = 0;
var _y = 0;
var _mx = 0;
var _my = 0;
var _vx = 0;
var _vy = 0;
var _w = 50;
var _h = 50;
var _wd2 = 25;
var _hd2 = 25;
var _tgf = 0;
var _touchground = false;
var _touchbloc = false;
var _canjump = false;
var _tx = 0;
var _ty = 0;
var _ta = 0;
var _tl = 0.2;
var _sustain = 0.98;
var _blocsustain = 1;
var _AIlevel = 1;
var _AIPower = 10;
var _randomjumplimit = 0;
var _jf = 15;
var _sf = 0;
var _rank = 0;
static var _rebond = 1.35;
var _burstcount = 100;
var _burst = false;
var _lastjump = 0;
var _diffpos = 0.005;
}
Symbol 270 MovieClip [__Packages.MammothPlayer] Frame 0
class MammothPlayer extends Mammoth
{
var _diffpos, _sustain, _sf, _lastjump, _burst;
function MammothPlayer (mc, mc2, mc3, x, y, w, h, tl, ail, aip, jf, sf) {
super(mc, mc2, mc3, x, y, w, h, tl, ail, aip, jf, sf);
_diffpos = 0.008;
}
function setSustain(pos, posmax) {
_sustain = _sustain + ((((0.98 + _sf) + ((pos * _diffpos) / posmax)) - _sustain) * 0.8);
}
function burst(b) {
if (b) {
if ((_root._frame - _lastjump) > 5) {
super.burst(b);
}
} else {
super.burst(b);
}
}
function jump() {
if (!_burst) {
super.jump();
}
}
}
Symbol 141 MovieClip Frame 1
_visible = true;
Symbol 141 MovieClip Frame 10
gotoAndPlay (1);
Symbol 141 MovieClip Frame 21
_visible = false;
stop();
_root.deadCp();
Symbol 183 MovieClip Frame 1
function mainloop() {
_frame++;
w0._rotation = -150 + (Math.cos(_frame * _speed) * 40);
w1._rotation = 160 + (Math.cos(_frame * _speed) * 42);
}
var _frame = 0;
var _speed = (0.28 + (random(10) / 100));
Symbol 191 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 14
gotoAndPlay (1);