Frame 1
this._lockroot = true;
Stage.showMenu = false;
currentDomain = _root._url.split("/");
currentDomain = currentDomain[2];
currentDomain = "www.robotjamgames.com";
if (currentDomain == "www.robotjamgames.com") {
MochiAd.showPreGameAd({id:"c9239688580bd9bf", res:"550x470", background:7868946, color:16711680, outline:16777215, no_bg:true});
} else {
stop();
}
_global.UniteScores = new CUniteScores();
Frame 2
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 soundMute = true;
muteSound = new Sound();
muteBut.onRelease = function () {
if (soundMute == false) {
soundMute = true;
muteBut.gotoAndStop("on");
muteSound.setVolume(30);
} else {
soundMute = false;
muteBut.gotoAndStop("off");
muteSound.setVolume(0);
}
};
__com_mochibot__("84e8069b", this, 10301, true);
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);
}
__com_mochibot__("be94bfa4", this, 10301, true);
Frame 23
var PATH = "http://www.robotjamgames.com/scoreSystem/";
var GAMENAME = "platypus";
var soundPress = true;
this.createEmptyMovieClip("jumpholder", 10001);
jump = new Sound(jumpholder);
jump.attachSound("jump");
jump.setVolume(90);
this.createEmptyMovieClip("windholder", 10002);
wind = new Sound(windholder);
wind.attachSound("wind");
wind.setVolume(0);
wind.start(0, 999);
this.createEmptyMovieClip("soundholder1", 10003);
loop1 = new Sound(soundholder1);
loop1.attachSound("loop1");
loop1.setVolume(0);
this.createEmptyMovieClip("soundholder2", 10004);
loop2 = new Sound(soundholder2);
loop2.attachSound("loop2");
loop2.setVolume(30);
this.createEmptyMovieClip("soundholder3", 10005);
loop3 = new Sound(soundholder3);
loop3.attachSound("loop3");
loop3.setVolume(30);
this.createEmptyMovieClip("chuteHolder", 10006);
chute = new Sound(chuteHolder);
chute.attachSound("chute");
chute.setVolume(0);
this.createEmptyMovieClip("chompHolder", 10007);
chomp = new Sound(chompHolder);
chomp.attachSound("chomp");
chomp.setVolume(20);
i = 1;
while (i <= 4) {
this.createEmptyMovieClip("parpHolder" + i, 10008 + i);
this["parp" + i] = new Sound(this["parpHolder" + i]);
this["parp" + i].attachSound("parp" + i);
this["parp" + i].setVolume(30);
i++;
}
this.createEmptyMovieClip("ouchHolder", 10020);
ouch = new Sound(ouchHolder);
ouch.attachSound("ouch");
ouch.setVolume(30);
this.createEmptyMovieClip("uhohHolder", 10021);
uhoh = new Sound(uhohHolder);
uhoh.attachSound("uhoh");
uhoh.setVolume(30);
this.createEmptyMovieClip("spaceshipHolder", 10022);
spaceship = new Sound(spaceshipHolder);
spaceship.attachSound("spaceship");
spaceship.setVolume(50);
loop1.start(0, 2);
gs.TweenFilterLite.to(soundholder1, 3, {volume:30});
loop1.onSoundComplete = function () {
loop2.start(0, 2);
};
loop2.onSoundComplete = function () {
loop3.start(0, 2);
};
loop3.onSoundComplete = function () {
loop1.start(0, 2);
};
soundtoggle.hotspot.onPress = function () {
if (_root.soundPress == true) {
_root.soundPress = false;
soundtoggle.gotoAndStop("off");
_root.loop1.setVolume(0);
_root.loop2.setVolume(0);
_root.loop3.setVolume(0);
} else {
_root.soundPress = true;
soundtoggle.gotoAndStop("on");
_root.loop1.setVolume(50);
_root.loop2.setVolume(50);
_root.loop3.setVolume(50);
_root.ouch.setVolume(30);
_root.uhoh.setVolume(30);
_root.spaceship.setVolume(50);
_root.chomp.setVolume(20);
}
};
Frame 25
if (false) {
}
Frame 26
if (false) {
}
Frame 27
if (false) {
}
Frame 28
if (false) {
}
Frame 30
stop();
highScoreBox._visible = false;
var score = 0;
playGame.onRelease = function () {
gotoAndPlay ("fade");
};
freeGames.onRelease = function () {
getURL ("http://www.robotjamgames.com/freegames.php", "_blank");
};
moreGames.onRelease = function () {
getURL ("http://www.robotjamgames.com/", "_blank");
};
highScores.onRelease = function () {
getURL ("http://www.robotjamgames.com/scorepage.php?gamename=platypus", "_blank");
};
Frame 33
if (false) {
}
Frame 43
if (false) {
}
Frame 44
if (false) {
}
Frame 46
if (false) {
}
Frame 50
highScoreBox.sorry._visible = false;
highScoreBox._visible = true;
highScoreBox.loading.gotoAndPlay(1);
highScoreBox.loading._visible = true;
highScoreBox.yourBest = so.data.bestScore;
myVars = new LoadVars();
myVars.onLoad = function (success) {
if (success) {
highScoreBox.loading._visible = false;
LoadHighScores();
} else {
highScoreBox.sorry._visible = true;
}
};
rn = Math.round(Math.random() * 1000000);
myVars.load((PATH + "get_score_today.php?flash=1?rn=") + rn, 0);
back.onPress = function () {
highScoreBox._visible = false;
gotoAndPlay ("options");
};
var scorePos = 0;
highScoreBox.scoreUp.onRelease = function () {
if (this._parent._parent.scorePos != 0) {
this._parent._parent.scorePos--;
this._parent._parent.LoadHighScores();
}
};
highScoreBox.scoreDown.onRelease = function () {
if (this._parent._parent.scorePos != 4) {
this._parent._parent.scorePos++;
this._parent._parent.LoadHighScores();
}
};
initialScores = function () {
var _local1 = 1;
while (_local1 <= 50) {
myVars["name" + _local1] = "none";
myVars["score" + _local1] = 0;
_local1++;
}
};
LoadHighScores = function () {
var _local1 = 1;
while (_local1 <= 10) {
highScoreBox["num" + _local1] = _local1 + (scorePos * 10);
highScoreBox["name" + _local1] = myVars["name" + ((scorePos * 10) + _local1)];
highScoreBox["score" + _local1] = myVars["score" + ((scorePos * 10) + _local1)];
_local1++;
}
};
highScoreBox.today.onRelease = function () {
highScoreBox.hiScoresTitle.text = "TODAYS HISCORES";
highScoreBox.loading.gotoAndPlay(1);
highScoreBox.loading._visible = true;
initialScores();
myVars.load((PATH + "get_score_today.php?flash=1?rn=") + rn, 0);
};
highScoreBox.alltime.onRelease = function () {
highScoreBox.hiScoresTitle.text = "ALL TIME HISCORES";
highScoreBox.loading.gotoAndPlay(1);
highScoreBox.loading._visible = true;
initialScores();
myVars.load((PATH + "get_score.php?flash=1?rn=") + rn, 0);
};
initialScores();
stop();
Frame 51
if (false) {
}
Frame 52
if (false) {
}
Frame 53
if (false) {
}
Frame 75
if (false) {
}
Frame 76
if (false) {
}
Frame 78
if (false) {
}
Frame 82
stop();
back.onRelease = function () {
gotoAndPlay ("options");
};
Frame 87
if (false) {
}
Frame 94
if (false) {
}
Frame 95
Frame 96
if (false) {
}
Frame 97
if (false) {
}
Frame 98
if (false) {
}
Frame 99
if (false) {
}
Frame 100
if (false) {
}
Frame 101
if (false) {
}
Frame 102
if (false) {
}
Frame 107
stop();
Frame 113
if (false) {
}
Frame 114
if (false) {
}
Frame 115
if (false) {
}
Frame 116
stop();
_quality = "HIGH";
_global.UniteScores.send_scores(total_scores, "Total scores");
yourScore.scoreText.text = score;
yourScore.backMenu.onPress = function () {
play();
};
yourScore.highscores._visible = false;
yourScore.highscores.onRelease = function () {
getURL ("http://www.robotjamgames.com/scorepage.php?gamename=platypus", "_blank");
};
yourScore.submit._alpha = 50;
yourScore.submit.enabled = false;
this.createEmptyMovieClip("highSender", this.getNextHighestDepth());
yourScore.submit.onRelease = function () {
highSender.playerName = yourScore.nameText;
highSender.score = _root.score;
highSender.gamename = GAMENAME;
highSender.validator = _root.scoreSystem.processScore(_root.score);
highSender.loadVariables(PATH + "new_score.php", "POST");
yourScore.highscores._visible = true;
yourScore.submitted.play();
this._visible = false;
};
onEnterFrame = function () {
if (yourScore.nameText != eval("NULL")) {
yourScore.submit._alpha = 100;
yourScore.submit.enabled = true;
}
};
fadeOutSound(loop2, "id2");
fadeOutSound(loop3, "id3");
if (_root.soundPress == true) {
fadeInSound(loop1, "id1");
}
Frame 117
if (false) {
}
Frame 120
gotoAndPlay ("preload");
Frame 121
if (false) {
}
Symbol 9 MovieClip Frame 1
randstart = random(30) + 1;
gotoAndPlay(randstart);
Symbol 9 MovieClip Frame 31
gotoAndPlay ("start");
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 30
gotoAndStop ("start");
Symbol 36 MovieClip Frame 3
stop();
Symbol 37 MovieClip Frame 1
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 81 MovieClip Frame 2
stop();
Symbol 81 MovieClip Frame 23
_root.chomp.start(0, 1);
Symbol 81 MovieClip Frame 45
randParp = 1 + random(4);
_root["parp" + randParp].start(0, 1);
Symbol 81 MovieClip Frame 65
gotoAndStop ("hungry");
Symbol 81 MovieClip Frame 96
_root.ouch.start(0, 1);
Symbol 81 MovieClip Frame 119
gotoAndStop ("hungry");
Symbol 81 MovieClip Frame 122
_root.uhoh.start(0, 1);
Symbol 81 MovieClip Frame 145
gotoAndStop ("hungry");
Symbol 83 MovieClip Frame 3
stop();
Symbol 84 MovieClip Frame 1
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 90 MovieClip [duckBillClip] Frame 1
radius._visible = false;
barrel._visible = false;
Symbol 90 MovieClip [duckBillClip] Frame 12
this.head.mouth.gotoAndPlay("ouch");
Symbol 90 MovieClip [duckBillClip] Frame 22
gotoAndPlay ("walk");
Symbol 90 MovieClip [duckBillClip] Frame 49
if (!this.explode) {
gotoAndPlay ("walk");
}
Symbol 90 MovieClip [duckBillClip] Frame 56
head.eyes.gotoAndPlay("down");
Symbol 90 MovieClip [duckBillClip] Frame 60
head.eyes.gotoAndPlay("up");
Symbol 90 MovieClip [duckBillClip] Frame 120
if (!this.flap) {
gotoAndPlay ("fly");
}
Symbol 90 MovieClip [duckBillClip] Frame 129
if (!this.flap) {
gotoAndPlay ("fly");
} else {
gotoAndPlay ("flap");
}
Symbol 90 MovieClip [duckBillClip] Frame 154
stop();
Symbol 90 MovieClip [duckBillClip] Frame 158
head.eyes.gotoAndPlay("down");
Symbol 90 MovieClip [duckBillClip] Frame 213
gotoAndPlay ("walk");
Symbol 98 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.robotjamgames.com", "_blank");
};
Symbol 249 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 200;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 400, 0);
_local5.lineTo(_local4 - 400, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 400, 0);
_local3.lineTo(_local4 - 400, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 400, 0);
_local6.lineTo(_local4 - 400, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
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.adLoaded = function (width, height) {
};
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 showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
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.adLoaded = function (width, height) {
};
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 showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
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 _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
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 _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
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_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
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 = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
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 _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_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 250 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var _e;
var _twa, _d, _colorParts, _ts, _dead, _oc, _oca, _act, _dl, _ti, _os, _osa, _snd, _color, __get__colorProxy;
function TweenLite (t, d, v, dl, oc, oca, ao) {
var _local2 = this;
var _local13 = false;
if (((v.overwrite != false) && (ao != false)) && (t != undefined)) {
var _local4 = _all.slice();
var _local3 = _local4.length - 1;
while (_local3 >= 0) {
if ((_local4[_local3]._etg == t) && (!_local4[_local3]._dead)) {
if (!_local13) {
this=_local4[_local3];//parameter overwritten
_local2 = _local4[_local3];
_local13 = true;
} else {
removeTween(_local4[_local3]);
}
}
_local3--;
}
}
_local2._dead = false;
_local2._tg = (_local2._etg = t);
_local2._d = d;
_local2._v = v;
_local2._oc = v.onComplete || (oc);
_local2._oca = v.onCompleteParams || (oca);
_local2._os = v.onStart;
_local2._osa = v.onStartParams;
_local2._dl = (v.delay || (dl)) || 0;
if (_local2._dl == 0) {
_local2._ts = getTimer();
if (_local2._os != undefined) {
_local2._os.apply(null, _local2._osa);
}
}
if (_local2._v.ease == undefined) {
_local2._v.ease = easeOut;
} else if (typeof(_local2._v.ease) != "function") {
trace(("ERROR: You cannot use '" + _local2._v.ease) + "' for the TweenLite ease property. Only functions are accepted.");
}
_local2._twa = [];
if (_local2._tg instanceof Array) {
var _local5 = [];
for (var _local29 in _local2._v) {
if (_local2._v[_local29] instanceof Array) {
_local5 = _local2._v[_local29];
break;
}
}
var _local27 = _local5.length;
var _local3 = 0;
while (_local3 < _local27) {
if ((_local2._tg[_local3] != _local5[_local3]) && (_local2._tg[_local3] != undefined)) {
_local2._twa.push({o:_local2._tg, p:_local3.toString(), s:_local2._tg[_local3], c:_local5[_local3] - _local2._tg[_local3], e:_local2._v.ease});
}
_local3++;
}
} else {
for (var _local29 in _local2._v) {
if ((_local29 == "volume") && (typeof(_local2._tg) == "movieclip")) {
_local2._snd = new Sound(_local2._tg);
var _local9 = new gs.TweenLite(_local2, d, {volumeProxy:_local2._v[_local29], ease:easeNone}, dl, null, null, false);
_local9._etg = _local2._tg;
} else if ((_local29.toLowerCase() == "mccolor") && (typeof(_local2._tg) == "movieclip")) {
_local2._color = new Color(_local2._tg);
_local2._colorParts = _local2._color.getTransform();
var _local15 = _local2._colorParts;
if ((_local2._v[_local29] == null) || (_local2._v[_local29] == "")) {
var _local10 = {rb:0, gb:0, bb:0, ra:100, ga:100, ba:100, ease:_local2._v.ease};
} else {
var _local10 = {rb:_local2._v[_local29] >> 16, gb:(_local2._v[_local29] >> 8) & 255, bb:_local2._v[_local29] & 255, ra:0, ga:0, ba:0, ease:_local2._v.ease};
}
var _local11 = new gs.TweenLite(_local15, d, _local10, dl, null, null, false);
var _local12 = new gs.TweenLite(_local2, d, {colorProxy:1}, dl, null, null, false);
_local11._etg = (_local12._etg = _local2._tg);
} else if ((!isNaN(_local2._v[_local29])) && (_local29 != "delay")) {
_local2._twa.push({o:_local2._tg, p:_local29, s:t[_local29], c:_local2._v[_local29] - t[_local29], e:_local2._v.ease});
}
}
}
_local2._ti = getTimer();
if (!_local13) {
_all.push(_local2);
if (_e._visible != false) {
initEmptyMC();
}
_e.onEnterFrame = executeAll;
}
}
static function to(t, d, v, dl, oc, oca, ao) {
return(new gs.TweenLite(t, d, v, dl, oc, oca, ao));
}
static function from(t, d, v, dl, oc, oca, ao) {
var _local1 = new gs.TweenLite(t, d, v, dl, oc, oca, ao);
_local1.flipStartAndEnd();
return(_local1);
}
function flipStartAndEnd(b) {
var _local4 = act;
var _local3 = 0;
while (_local3 < _twa.length) {
var _local2 = _twa[_local3];
_local2.s = _local2.s + _local2.c;
_local2.c = _local2.c * -1;
if (!_local4) {
_local2.o[_local2.p] = _local2.e(0, _local2.s, _local2.c, _d);
}
_local3++;
}
if (b != true) {
_local3 = _all.length - 1;
while (_local3 >= 0) {
if ((_all[_local3]._tg == this) || ((_colorParts != undefined) && (_all[_local3]._tg == _colorParts))) {
_all[_local3].flipStartAndEnd(true);
if (_all[_local3]._tg == _colorParts) {
colorProxy = (1);
}
}
_local3--;
}
}
if (_local4) {
render();
}
}
static function delayedCall(dl, oc, oca) {
return(new gs.TweenLite(null, null, null, dl, oc, oca));
}
function render() {
var _local4 = (getTimer() - _ts) / 1000;
if (_local4 > _d) {
_local4 = _d;
}
var _local3 = 0;
while (_local3 < _twa.length) {
var _local2 = _twa[_local3];
_local2.o[_local2.p] = _local2.e(_local4, _local2.s, _local2.c, _d);
_local3++;
}
if (_local4 >= _d) {
_dead = true;
if (_oc) {
_oc.apply(null, _oca);
}
removeTween(this);
}
}
static function removeTween(t) {
var _local1 = _all.length - 1;
while (_local1 >= 0) {
if (_all[_local1] == t) {
killTweenAt(_local1);
break;
}
_local1--;
}
}
static function killDelayedCallsTo(f) {
var _local1 = _all.length - 1;
while (_local1 >= 0) {
if (((_all[_local1]._oc == f) && (_all[_local1]._tg == null)) || (_all[_local1]._tg == f)) {
killTweenAt(_local1);
}
_local1--;
}
}
static function killTweensOf(tg) {
if (typeof(tg) == "function") {
killDelayedCallsTo(tg);
} else {
var _local1 = _all.length - 1;
while (_local1 >= 0) {
if (_all[_local1]._etg == tg) {
killTweenAt(_local1);
}
_local1--;
}
}
}
static function killTweenAt(i) {
delete _all[i];
_all.splice(i, 1);
if (_all.length == 0) {
_e.onEnterFrame = null;
}
}
static function executeAll() {
var _local2 = _all.slice();
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2[_local1].act) {
_local2[_local1].render();
}
_local1++;
}
}
static function initEmptyMC() {
if (!_root.tweenLite_mc) {
var _local2 = _root.getNextHighestDepth();
if (!_local2) {
_local2 = 9999;
}
_e = _root.createEmptyMovieClip("tweenLite_mc", _local2);
_e.swapDepths(-1);
} else {
_e = _root.tweenLite_mc;
}
_e._visible = false;
return(_e);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
function get act() {
if (_act) {
return(true);
}
if (((getTimer() - _ti) / 1000) > _dl) {
_act = true;
_ts = getTimer();
if (_os != undefined) {
_os.apply(null, _osa);
}
return(true);
}
return(false);
}
function set volumeProxy(n) {
_snd.setVolume(n);
//return(volumeProxy);
}
function get volumeProxy() {
return(_snd.getVolume());
}
function set colorProxy(n) {
_color.setTransform(_colorParts);
//return(__get__colorProxy());
}
static var _all = new Array();
static var deleteFor = killTweensOf;
}
Symbol 251 MovieClip [__Packages.gs.TweenFilterLite] Frame 0
class gs.TweenFilterLite extends gs.TweenLite
{
var _colorParts, _etg, _mc, _clrsa, _matrix, _filters, _f, _endMatrix, _v, _clrMtxTw, _d, _dl, _oc, _oca, _twa, __get__act, _ts, _dead;
function TweenFilterLite (mc, d, v, dl, oc, oca, ao) {
super(mc, d, v, dl, oc, oca, false);
if (((ao != false) && (v.overwrite != false)) && (mc != undefined)) {
var _local4 = gs.TweenLite._all.slice();
var _local3 = _local4.length - 1;
while (_local3 >= 0) {
if (((((_local4[_local3]._etg == mc) && (_local4[_local3] != this)) && (_local4[_local3]._tg != this)) && (_local4[_local3]._tg != _colorParts)) && (!_local4[_local3]._dead)) {
gs.TweenLite.removeTween(_local4[_local3]);
}
_local3--;
}
}
_etg = mc;
_mc = mc;
_clrsa = [];
_matrix = _idMatrix.slice();
_filters = mc.filters;
if ((v.quality == undefined) || (isNaN(v.quality))) {
v.quality = 2;
}
switch (v.type.toLowerCase()) {
case "blur" :
setFilter(flash.filters.BlurFilter, ["blurX", "blurY", "quality"], new flash.filters.BlurFilter(0, 0, v.quality));
break;
case "glow" :
setFilter(flash.filters.GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength"], new flash.filters.GlowFilter(16777215, 0, 0, 0, 1, v.quality));
break;
case "colormatrix" :
case "color" :
case "colormatrixfilter" :
case "colorize" :
setFilter(flash.filters.ColorMatrixFilter, [], new flash.filters.ColorMatrixFilter(_matrix));
_matrix = _f.matrix;
if (v.relative == true) {
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
}
_endMatrix = setBrightness(_endMatrix, _v.brightness);
_endMatrix = setContrast(_endMatrix, _v.contrast);
_endMatrix = setHue(_endMatrix, _v.hue);
_endMatrix = setSaturation(_endMatrix, _v.saturation);
_endMatrix = setThreshold(_endMatrix, _v.threshold);
if (!isNaN(_v.colorize)) {
_endMatrix = colorize(_endMatrix, _v.colorize, _v.amount);
} else if (!isNaN(_v.color)) {
_endMatrix = colorize(_endMatrix, _v.color, _v.amount);
}
_clrMtxTw = new gs.TweenLite(_matrix, _d, {endMatrix:_endMatrix, ease:v.ease}, _dl, _oc, _oca, false);
_clrMtxTw._etg = _mc;
break;
case "shadow" :
case "dropshadow" :
setFilter(flash.filters.DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength"], new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, v.quality));
break;
case "bevel" :
setFilter(flash.filters.BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, v.quality));
}
}
function setFilter(filterType_obj, properties_array, default_obj) {
var _local19 = false;
var _local4 = 0;
while (_local4 < _filters.length) {
if (_filters[_local4] instanceof filterType_obj) {
_f = _filters[_local4];
_local19 = true;
break;
}
_local4++;
}
if (!_local19) {
_filters.push(default_obj);
_f = _filters[_filters.length - 1];
}
var _local21 = _twa.length;
_local4 = _twa.length - 1;
while (_local4 >= 0) {
var _local9 = _twa[_local4].p.toLowerCase();
var _local11 = 0;
while (_local11 < properties_array.length) {
if (_local9 == properties_array[_local11].toLowerCase()) {
var _local2 = properties_array[_local11];
if (((_local2 == "color") || (_local2 == "highlightColor")) || (_local2 == "shadowColor")) {
var _local3 = HEXtoRGB(_f[_local2]);
var _local5 = HEXtoRGB(_v[_twa[_local4].p]);
_clrsa.push({p:_local2, e:_v.ease, sr:_local3.rb, cr:_local5.rb - _local3.rb, sg:_local3.gb, cg:_local5.gb - _local3.gb, sb:_local3.bb, cb:_local5.bb - _local3.bb});
_twa.splice(_local4, 1);
} else if (_local2 == "quality") {
_f.quality = _v[_twa[_local4].p];
} else {
_twa[_local4] = {o:_f, p:_local2, s:_f[_local2], c:_v[_twa[_local4].p] - _f[_local2], e:_v.ease};
}
break;
}
_local11++;
}
_local4--;
}
}
static function to(mc, d, v, dl, oc, oca, ao) {
return(new gs.TweenFilterLite(mc, d, v, dl, oc, oca, ao));
}
static function from(mc, d, v, dl, oc, oca, ao) {
var _local1 = new gs.TweenFilterLite(mc, d, v, dl, oc, oca, ao);
_local1.flipStartAndEnd();
return(_local1);
}
function flipStartAndEnd() {
var _local7 = __get__act();
var _local3 = 0;
while (_local3 < _twa.length) {
var _local2 = _twa[_local3];
_local2.s = _local2.s + _local2.c;
_local2.c = _local2.c * -1;
if (!_local7) {
_local2.o[_local2.p] = _local2.e(0, _local2.s, _local2.c, _d);
}
_local3++;
}
_local3 = 0;
while (_local3 < _clrsa.length) {
var _local2 = _clrsa[_local3];
_local2.sr = _local2.sr + _local2.cr;
_local2.cr = _local2.cr * -1;
_local2.sg = _local2.sg + _local2.cg;
_local2.cg = _local2.cg * -1;
_local2.sb = _local2.sb + _local2.cb;
_local2.cb = _local2.cb * -1;
if (!_local7) {
var _local5 = _local2.e(0, _local2.sr, _local2.cr, _d);
var _local6 = _local2.e(0, _local2.sg, _local2.cg, _d);
var _local4 = _local2.e(0, _local2.sb, _local2.cb, _d);
_f[_local2.p] = ((_local5 << 16) | (_local6 << 8)) | _local4;
}
_local3++;
}
_clrMtxTw.flipStartAndEnd();
if (_local7) {
render();
} else {
if (_endMatrix) {
_f.matrix = _matrix;
}
_mc.filters = _filters;
}
}
function render() {
var _local4 = (getTimer() - _ts) / 1000;
if (_local4 > _d) {
_local4 = _d;
}
var _local3 = 0;
while (_local3 < _twa.length) {
var _local2 = _twa[_local3];
_local2.o[_local2.p] = _local2.e(_local4, _local2.s, _local2.c, _d);
_local3++;
}
_local3 = 0;
while (_local3 < _clrsa.length) {
var _local2 = _clrsa[_local3];
var _local6 = _local2.e(_local4, _local2.sr, _local2.cr, _d);
var _local7 = _local2.e(_local4, _local2.sg, _local2.cg, _d);
var _local5 = _local2.e(_local4, _local2.sb, _local2.cb, _d);
_f[_local2.p] = ((_local6 << 16) | (_local7 << 8)) | _local5;
_local3++;
}
if (_endMatrix) {
_f.matrix = _matrix;
}
_mc.filters = _filters;
if (_local4 >= _d) {
_dead = true;
if (_oc != undefined) {
_oc.apply(null, _oca);
}
if (_clrMtxTw) {
gs.TweenLite.removeTween(_clrMtxTw);
}
gs.TweenLite.removeTween(this);
}
}
function HEXtoRGB(n) {
return({rb:n >> 16, gb:(n >> 8) & 255, bb:n & 255});
}
static function colorize(m, color, amount) {
if ((color == undefined) || (isNaN(color))) {
return(m);
}
if (amount == undefined) {
amount = 1;
}
var _local3 = ((color >> 16) & 255) / 255;
var _local6 = ((color >> 8) & 255) / 255;
var _local2 = (color & 255) / 255;
var _local5 = 1 - amount;
var _local7 = [_local5 + ((amount * _local3) * _lumR), (amount * _local3) * _lumG, (amount * _local3) * _lumB, 0, 0, (amount * _local6) * _lumR, _local5 + ((amount * _local6) * _lumG), (amount * _local6) * _lumB, 0, 0, (amount * _local2) * _lumR, (amount * _local2) * _lumG, _local5 + ((amount * _local2) * _lumB), 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local7, m));
}
static function setThreshold(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
var _local2 = [_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, 0, 0, 0, 1, 0];
return(applyMatrix(_local2, m));
}
static function setHue(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
n = n * (Math.PI/180);
var _local1 = Math.cos(n);
var _local2 = Math.sin(n);
var _local4 = [(_lumR + (_local1 * (1 - _lumR))) + (_local2 * (-_lumR)), (_lumG + (_local1 * (-_lumG))) + (_local2 * (-_lumG)), (_lumB + (_local1 * (-_lumB))) + (_local2 * (1 - _lumB)), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * 0.143), (_lumG + (_local1 * (1 - _lumG))) + (_local2 * 0.14), (_lumB + (_local1 * (-_lumB))) + (_local2 * -0.283), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * (-(1 - _lumR))), (_lumG + (_local1 * (-_lumG))) + (_local2 * _lumG), (_lumB + (_local1 * (1 - _lumB))) + (_local2 * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return(applyMatrix(_local4, m));
}
static function setBrightness(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
n = (n * 100) - 100;
return(applyMatrix([1, 0, 0, 0, n, 0, 1, 0, 0, n, 0, 0, 1, 0, n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m));
}
static function setSaturation(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
var _local4 = 1 - n;
var _local3 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local2 = _local4 * _lumB;
var _local6 = [_local3 + n, _local5, _local2, 0, 0, _local3, _local5 + n, _local2, 0, 0, _local3, _local5, _local2 + n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, m));
}
static function setContrast(m, n) {
if ((n == undefined) || (isNaN(n))) {
return(m);
}
n = n + 0.01;
var _local2 = [n, 0, 0, 0, 128 * (1 - n), 0, n, 0, 0, 128 * (1 - n), 0, 0, n, 0, 128 * (1 - n), 0, 0, 0, 1, 0];
return(applyMatrix(_local2, m));
}
static function applyMatrix(m, m2) {
if ((((m == undefined) || (!(m instanceof Array))) || (m2 == undefined)) || (!(m2 instanceof Array))) {
return(m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6 = 0;
while (_local6 < 4) {
var _local1 = 0;
while (_local1 < 5) {
if (_local1 == 4) {
_local5 = m[_local2 + 4];
} else {
_local5 = 0;
}
_local7[_local2 + _local1] = ((((m[_local2] * m2[_local1]) + (m[_local2 + 1] * m2[_local1 + 5])) + (m[_local2 + 2] * m2[_local1 + 10])) + (m[_local2 + 3] * m2[_local1 + 15])) + _local5;
_local1++;
}
_local2 = _local2 + 5;
_local6++;
}
return(_local7);
}
static var _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
static var _lumR = 0.212671;
static var _lumG = 0.71516;
static var _lumB = 0.072169;
}
Symbol 118 MovieClip Frame 1
radius._visible = false;
barrel._visible = false;
Symbol 118 MovieClip Frame 12
this.head.mouth.gotoAndPlay("ouch");
Symbol 118 MovieClip Frame 22
gotoAndPlay ("walk");
Symbol 118 MovieClip Frame 49
var randJump = (1 + random(25));
if (randJump != 25) {
gotoAndPlay ("walk");
}
Symbol 118 MovieClip Frame 63
head.eyes.gotoAndPlay("down");
Symbol 118 MovieClip Frame 67
head.eyes.gotoAndPlay("up");
Symbol 118 MovieClip Frame 134
head.eyes.gotoAndPlay("down");
Symbol 118 MovieClip Frame 138
head.eyes.gotoAndPlay("up");
head.mouth.gotoAndPlay("rasp");
Symbol 118 MovieClip Frame 189
gotoAndPlay ("walk");
Symbol 119 MovieClip Frame 1
i = 1;
while (i <= 5) {
this["panda" + i].gotoAndPlay(33 + random(12));
this["panda" + i].head.eyes.gotoAndPlay(1 + random(20));
i++;
}
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 5
stop();
Symbol 126 MovieClip Frame 1
loadMovie ("http://www.robotjamgames.com/scoreSystem/encrypted.swf", this);
this._visible = false;
Symbol 164 Button
on (release) {
getURL ("http://www.robotjam.com/games/", "_blank");
}
Symbol 221 MovieClip Frame 1
function tracer() {
if ((jumpCounter % 400) == 0) {
trace("pandaSpeed=" + speed);
trace("initalSpeed" + jumpPower);
trace("floory" + floor._y);
}
}
function startAlien() {
_root.spaceship.start(0, 1);
trace(" start Alien");
alien._y = 100 + random(200);
gs.TweenFilterLite.to(alien, 10, {_x:650, ease:Linear.easeInOut, onComplete:resetAlien});
}
function resetAlien() {
alien._x = -200;
alienPlaying = false;
}
function createCloud(clip) {
cCount++;
var _local2 = "cloud" + cCount;
if (gameScore < 20000) {
var _local3 = 1 + random(3);
} else if ((gamescore >= 20000) && (gameScore < 40000)) {
var _local3 = 4 + random(3);
} else if (gamescore >= 40000) {
var _local3 = 7 + random(3);
}
this.attachMovie("clouds" + _local3, _local2, cCount);
this[_local2]._x = 0;
this[_local2]._y = clip._y - clip._height;
this[_local2].created = false;
this[_local2].onEnterFrame = function () {
if (!gameOver) {
this._y = this._y + speed;
if ((this._y >= 0) && (!this.created)) {
this.created = true;
createCloud(this);
}
if (this._y > 5000) {
delete this.onEnterFrame;
this.removeMovieClip();
}
}
if (cloudDelete) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
function createPowerUp() {
pCount++;
var _local2 = "powers" + pCount;
this.attachMovie("powerUp", _local2, pCount);
this[_local2]._x = 100 + Math.round(Math.random() * 300);
this[_local2]._y = -20;
this[_local2].dy = 2;
this[_local2].gotoAndStop(1 + random(4));
this[_local2].onEnterFrame = function () {
this._y = this._y + this.dy;
this.dy = this.dy + 0.5;
if (this._y > STAGEHEIGHT) {
delete this.onEnterFrame;
this.removeMovieClip();
}
if (this._parent.parachute) {
this._alpha = this._alpha - 10;
}
if (this._alpha == 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
if (this.hitTest(panda.collision)) {
panda.head.mouth.gotoAndPlay("fed");
pandaPower = pandaPower + 50;
pandaSpeed = pandaSpeed + 20;
if (pandaSpeed > MAXSPEED) {
pandaSpeed = MAXSPEED;
}
if (pandaPower > 100) {
pandaPower = 100;
}
thrustbar.power._yscale = pandaPower;
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
function numberToString(n) {
var _local4 = n.toString();
var _local3 = _local4.split(".");
var _local1 = "";
var _local2 = _local3[0].length;
while (_local2--) {
if ((_local2 < (_local3[0].length - 1)) && ((((_local3[0].length - _local2) - 1) % 3) == 0)) {
_local1 = "," + _local1;
}
_local1 = _local3[0].substr(_local2, 1) + _local1;
}
if (_local3.length > 1) {
_local1 = _local1 + ("." + _local3[1]);
}
return(_local1);
}
function stringToNumber(s) {
return(Number(s.split(",").join("")));
}
stop();
floor.swapDepths(4000);
powerbar.swapDepths(4001);
launcher.swapDepths(4002);
scoreBox.swapDepths(4003);
thrustbar.swapDepths(4004);
boostInstructions.swapDepths(4005);
instructions.swapDepths(4006);
alien.swapDepths(4007);
panda.swapDepths(4008);
newBest.swapDepths(4009);
meterLabels.swapDepths(4010);
var MAXSPEED = 70;
var jumped = false;
var POWERINTERVAL = 60;
var STAGEWIDTH = 550;
var STAGEHEIGHT = 450;
var jumpPower = 0;
var jumpCounter = 0;
var gravity = 0.05;
var pCount = 30000;
var cCount = 0;
var gameOver = false;
var parachute = false;
var gameScore = 0;
var bestScore = 0;
var speed = 5;
var pandaSpeed = 0.1;
var pandaPower = 100;
var cloudDelete = true;
var alienPlaying = false;
var pandaOh = false;
var skyBright = false;
var skyDark = 1;
var skyDarkCounter = 1000;
newBest.submitScore.onPress = function () {
_root.play();
trace("gameScore=" + this._parent._parent.bestScore);
_root.score = this._parent._parent.bestScore;
trace("root" + _root.score);
};
panda.head.mouth.gotoAndStop("hungry");
panda.startX = panda._x;
panda.startY = panda._y;
panda.destx = STAGEWIDTH / 2;
panda.desty = panda._y;
panda.moveRate = 0.2;
panda.flap = false;
myVars = new LoadVars();
myVars.onLoad = function (success) {
if (success) {
trace(myVars.rank);
newBest.ranking.text = numberToString(Number(myVars.rank) + 1);
}
};
resetVars = function () {
if (gameScore > bestScore) {
trace("new best");
bestScore = gameScore;
newBest.bestScoreNumber.text = numberToString(bestScore) + "m";
rn = Math.round(Math.random() * 1000000);
myVars.load((("http://www.robotjamgames.com/scoreSystem/get_rank.php?gamename=platypus&yourScore=" + gameScore) + "&") + rn);
}
pandaOh = false;
gs.TweenFilterLite.to(_root.windholder, 3, {volume:0});
gs.TweenFilterLite.to(newBest, 2, {_alpha:100});
gs.TweenFilterLite.to(sky, 1, {type:"Color", brightness:1});
gs.TweenFilterLite.to(instructions, 2, {_alpha:100});
gs.TweenFilterLite.to(boostInstructions, 5, {_alpha:100});
trace("new level");
panda.desty = panda.startY;
trace(panda.desty);
jumped = false;
jumpPower = 0;
jumpCounter = 0;
gravity = 0.05;
gameOver = false;
parachute = false;
gameScore = 0;
speed = 5;
pandaSpeed = 0.1;
pandaPower = 100;
gs.TweenFilterLite.to(launcher, 2, {_alpha:100});
thrustbar.power._yscale = 100;
powerbar.play();
panda._x = panda.startX;
panda._y = panda.startY;
panda.moveRate = 0.2;
panda.gotoAndPlay("end");
cloudDelete = true;
skyDark = 1;
skyDarkCounter = 1000;
skyBright = false;
};
if (gameScore == 0) {
newBest._alpha = 0;
}
onEnterFrame = function () {
if (Key.isDown(32) && (!jumped)) {
_root.jump.start(0, 1);
_root.jump.setVolume(50);
gs.TweenFilterLite.to(_root.windholder, 3, {volume:50});
gs.TweenFilterLite.to(instructions, 3, {_alpha:0});
gs.TweenFilterLite.to(boostInstructions, 5, {_alpha:0});
jumpCounter = 0;
cloudDelete = false;
createCloud(floor);
powerbar.stop();
jumpPower = 30 + powerbar.power._yscale;
panda.gotoAndPlay("jump");
jumped = true;
gs.TweenFilterLite.to(launcher, 2, {_alpha:0});
gs.TweenFilterLite.to(newBest, 2, {_alpha:0});
}
if (jumped) {
jumpCounter++;
if (gameScore >= skyDarkCounter) {
skyDarkCounter = skyDarkCounter + 1000;
if (skyDark > -1) {
skyDark = skyDark - 0.1;
gs.TweenFilterLite.to(sky, 0.5, {type:"Color", brightness:skyDark});
}
}
tracer();
if (jumpPower >= 0) {
jumpPower = jumpPower - 0.5;
}
speed = pandaSpeed + jumpPower;
if (!gameOver) {
pandaUpdate();
}
if (speed > 0) {
gameScore = gameScore + speed;
gameScore = Math.round(gameScore);
scoreBox.scoreText.text = numberToString(gameScore) + "m";
}
if (((jumpCounter > 20) && ((jumpCounter % POWERINTERVAL) == 0)) && (!parachute)) {
createPowerUp();
}
if ((jumpCounter % 200) == 0) {
POWERINTERVAL = POWERINTERVAL + 2;
}
if (((gameScore > 20000) && (!alienPlaying)) && ((jumpCounter % 400) == 0)) {
alienPlaying = true;
startAlien();
}
if (!gameOver) {
floor._y = floor._y + speed;
if (floor._y > 3000) {
floor._y = 3000;
}
if (floor._y < 0) {
floor._y = 0;
}
}
if ((floor._y == 0) && (!gameOver)) {
gameOver = true;
resetVars();
}
}
};
pandaUpdate = function () {
pandaSpeed = pandaSpeed - gravity;
panda.desty = panda.desty + 5;
pandaPower = pandaPower - 0.1;
thrustbar.power._yscale = pandaPower;
if (!parachute) {
if (Key.isDown(37) && (panda._x > 50)) {
panda.destx = panda.destx - 5;
}
if (Key.isDown(39) && (panda._x < 510)) {
panda.destx = panda.destx + 5;
}
}
if (Key.isDown(38)) {
if (pandaPower > 0) {
panda.flap = true;
panda.desty = panda.desty - 10;
pandaSpeed = pandaSpeed + 0.05;
if (pandaSpeed > MAXSPEED) {
pandaSpeed = MAXSPEED;
}
pandaPower = pandaPower - 1;
}
} else {
panda.flap = false;
}
if ((pandaPower <= 0) && (!parachute)) {
trace("run out of power");
panda.desty = panda.desty + 50;
pandaSpeed = pandaSpeed - 25;
}
if ((pandaPower <= 5) && (!pandaOh)) {
pandaOh = true;
panda.head.mouth.gotoAndPlay("uhoh");
}
if (panda._y >= 600) {
pandaPower = 0;
trace("parachute");
panda.gotoAndPlay("release");
parachute = true;
panda.desty = 400;
pandaSpeed = -100;
}
if (parachute && (!gameOver)) {
panda.desty = panda.desty - 40;
}
if (pandaPower <= 0) {
panda.destx = panda.startX;
panda.moveRate = 0.05;
}
var _local2 = panda.destx - panda._x;
panda._x = panda._x + (_local2 * panda.moveRate);
if (pandaPower > 0) {
if (panda.desty < 100) {
panda.desty = 100;
}
var _local1 = panda.desty - panda._y;
panda._y = panda._y + (_local1 * panda.moveRate);
} else {
var _local1 = panda.desty - panda._y;
panda._y = panda._y + (_local1 * panda.moveRate);
}
};
Symbol 235 MovieClip Frame 1
stop();
this._visible = false;
Symbol 235 MovieClip Frame 2
this._visible = true;
Symbol 235 MovieClip Frame 15
stop();
Symbol 248 MovieClip Frame 1
pogo.onRelease = function () {
getURL ("http://www.robotjamgames.com/games.php?game=robopogo", "_blank");
};
kebab.onRelease = function () {
getURL ("http://www.kebabvan.com/", "_blank");
};
bob.onRelease = function () {
getURL ("http://www.robotjamgames.com/games.php?game=bob", "_blank");
};