Frame 1
stop();
Frame 2
MochiAd.showPreloaderAd({id:"b16a17e174d2233f", res:"500x470"});
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 29
function fadeInSound(sound, id) {
clearInterval(this[id]);
sound.start();
this[id] = setInterval(this, "fadeIn", 10, sound, id);
}
function fadeIn(sound, id) {
sound.setVolume(sound.getVolume() + 1);
if (sound.getVolume() >= soundVolume) {
clearInterval(this[id]);
}
}
function fadeOutSound(sound, id) {
clearInterval(this[id]);
this[id] = setInterval(this, "fadeOut", 20, sound, id);
}
function fadeOut(sound, id) {
sound.setVolume(sound.getVolume() - 1);
if (sound.getVolume() <= 0) {
clearInterval(this[id]);
sound.stop();
}
}
function playSoundLoop(sound, times) {
sound.setVolume(50);
sound.start(0, times);
}
function playSound(sound) {
sound.setVolume(100);
sound.start(0, 1);
}
var PATH = "http://www.robotjamgames.com/scoreSystem/";
var GAMENAME = "pogo";
var soundPress = true;
this.createEmptyMovieClip("soundholder1", 10000);
this.createEmptyMovieClip("soundholder2", 10001);
this.createEmptyMovieClip("soundholder3", 10002);
this.createEmptyMovieClip("cheerholder", 10005);
loop1 = new Sound(soundholder1);
loop1.attachSound("loop1");
loop1.setVolume(0);
loop2 = new Sound(soundholder2);
loop2.attachSound("loop2");
loop2.setVolume(0);
loop3 = new Sound(soundholder3);
loop3.attachSound("loop3");
loop3.setVolume(0);
cheer = new Sound(cheerholder);
cheer.attachSound("cheer");
cheer.setVolume(100);
var id1;
var id2;
var id3;
var id4;
var soundVolume = 50;
fadeInSound(loop1, "id1");
loop1.onSoundComplete = function () {
loop1.start(0, 999);
};
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);
}
};
Frame 30
stop();
highScoreBox._visible = false;
var score = 0;
playGame.onRelease = function () {
fadeOutSound(loop1, "id1");
tracking();
gotoAndPlay ("fade");
};
instructions.onRelease = function () {
gotoAndPlay ("instructs");
};
sendtofriend.onRelease = function () {
getURL ("http://www.gameserpent.com/", "_blank");
};
highScores.onRelease = function () {
getURL ("http://www.robotjamgames.com/scorepage.php?gamename=pogo", "_blank");
};
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 82
stop();
back.onRelease = function () {
gotoAndPlay ("options");
};
Frame 95
Frame 107
stop();
Frame 116
stop();
_quality = "HIGH";
yourScore.scoreText.text = _root.score;
yourScore.backMenu.onPress = function () {
play();
};
yourScore.highscores._visible = false;
yourScore.highscores.onRelease = function () {
getURL ("http://www.robotjamgames.com/scorepage.php?gamename=pogo", "_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 123
gotoAndStop ("options");
Symbol 84 Button
on (press, release) {
getURL ("http://gameserpent.com/");
}
on (rollOut) {
gotoAndPlay (1);
}
Symbol 86 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.gameserpent.com/", "_blank");
};
Symbol 86 MovieClip Frame 35
stop();
_parent.play();
Symbol 340 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = options.ad_msec;
delete options.ad_msec;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_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_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = options.ad_msec;
delete options.ad_msec;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_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 load(options) {
var _local14 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local14);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.3";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(false);
}
if (_local7._mochiad_loaded) {
return(false);
}
var _local13 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local13);
var _local12 = _getRes(options);
options.res = (_local12[0] + "x") + _local12[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 _local11 = _local4.server;
delete _local4.server;
var _local10 = _local11.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local10);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_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 = _local10;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local11 + ".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 96 MovieClip Frame 1
loadMovie ("http://www.robotjamgames.com/scoreSystem/encrypted.swf", this);
this._visible = false;
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 5
stop();
Symbol 130 Button
on (release) {
getURL ("http://www.robotjam.com/games/", "_blank");
}
Symbol 246 MovieClip Frame 1
marker._visible = false;
Symbol 257 MovieClip Frame 70
_parent.testCarCrash(_parent.carHit1);
Symbol 257 MovieClip Frame 71
_parent.testCarCrash(_parent.carHit1);
Symbol 257 MovieClip Frame 72
_parent.testCarCrash(_parent.carHit1);
Symbol 257 MovieClip Frame 73
_parent.testCarCrash(_parent.carHit1);
Symbol 257 MovieClip Frame 74
_parent.testCarCrash(_parent.carHit1);
Symbol 257 MovieClip Frame 86
this._visible = false;
stop();
Symbol 258 MovieClip Frame 70
_parent.testCarCrash(_parent.carHit2);
Symbol 258 MovieClip Frame 71
_parent.testCarCrash(_parent.carHit2);
Symbol 258 MovieClip Frame 72
_parent.testCarCrash(_parent.carHit2);
Symbol 258 MovieClip Frame 73
_parent.testCarCrash(_parent.carHit2);
Symbol 258 MovieClip Frame 74
_parent.testCarCrash(_parent.carHit2);
Symbol 258 MovieClip Frame 86
this._visible = false;
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 23
_parent.gotoAndStop("outro");
Symbol 301 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 30
stop();
Symbol 306 MovieClip Frame 50
this.removeMovieClip();
stop();
Symbol 309 MovieClip Frame 125
stop();
this._parent._parent.play();
Symbol 317 MovieClip Frame 104
stop();
this._parent._parent.play();
Symbol 318 MovieClip Frame 1
if (_root.soundPress == true) {
_parent.fadeInSound(_parent.loop2, "id2");
}
_parent.loop2.onSoundComplete = function () {
if (_root.soundPress == true) {
_parent.playSoundLoop(_parent.loop3, 3);
}
};
_parent.loop3.onSoundComplete = function () {
if (_root.soundPress == true) {
_parent.playSoundLoop(_parent.loop2, 1);
}
};
instructions.playGame.onRelease = function () {
gotoAndStop ("game");
};
stop();
Symbol 318 MovieClip Frame 19
_quality = "MEDIUM";
stop();
this.createEmptyMovieClip("parts", this.getNextHighestDepth());
this.createEmptyMovieClip("boingholder", 30000);
this.createEmptyMovieClip("crashholder", 40000);
this.createEmptyMovieClip("carholder", 40001);
this.createEmptyMovieClip("cheerholder", 50001);
var STAGEWIDTH = 500;
var STAGEHEIGHT = 450;
var XSpeed = 0.1;
var rotationAmount = 0.2;
var FrameCounter = 0;
var outside = false;
var checkInterval = 2;
var startFramesComplete = false;
var pogoLevel = 1;
var pCount = 0;
var firstFrame = false;
var theEnd = false;
var gameComplete = false;
var carHit = false;
roboPogo.dx = 0;
roboPogo.dy = 10;
boing = new Sound(boingholder);
boing.attachSound("boing");
boing.setVolume(5);
crash = new Sound(crashholder);
crash.attachSound("crash");
crash.setVolume(70);
carSound = new Sound(carholder);
carSound.attachSound("car");
carSound.setVolume(100);
cheerSound = new Sound(cheerholder);
cheerSound.attachSound("cheer");
cheerSound.setVolume(100);
car1.stop();
car1._visible = false;
car2.stop();
car2._visible = false;
gameOver._visible = false;
gameOver.stop();
level.stop();
level._visible = false;
updateRobo = function () {
if (roboPogo._x < (STAGEWIDTH / 2)) {
boing.setPan(this._x - (STAGEWIDTH / 2)) / 3;
}
if (roboPogo._x > (STAGEWIDTH / 2)) {
boing.setPan(this._x - (STAGEWIDTH / 2)) / 3;
}
pogoShadow._x = roboPogo._x;
pogoShadow._alpha = 100 - (300 - roboPogo._y);
roboPogo._x = roboPogo._x + roboPogo.dx;
roboPogo._y = roboPogo._y + roboPogo.dy;
if ((((roboPogo._x - (roboPogo._width / 2)) > STAGEWIDTH) && (!outside)) && (!gameComplete)) {
outside = true;
if (_root.soundPress == true) {
crash.start();
}
crashRobo("left");
}
if ((((roboPogo._x + (roboPogo._width / 2)) < 0) && (!outside)) && (!gameComplete)) {
outside = true;
if (_root.soundPress == true) {
crash.start();
}
crashRobo("right");
}
if (((roboPogo._y + (roboPogo._height / 2)) > STAGEHEIGHT) && (!outside)) {
roboPogo._y = STAGEHEIGHT - 175;
if (!firstFrame) {
roboPogo.dy = roboPogo.dy * -1;
boing.setVolume(5);
if (_root.soundPress == true) {
boing.start();
}
} else {
roboPogo.dy = roboPogo.dy * -1.03;
firstFrame = false;
boing.setVolume(10);
if (_root.soundPress == true) {
boing.start();
}
}
}
roboPogo.dy = roboPogo.dy + 3;
if (startFramesComplete && (!carHit)) {
if (!outside) {
if (_xmouse > roboPogo._x) {
roboPogo.dx = roboPogo.dx + XSpeed;
roboPogo._rotation = roboPogo._rotation + rotationAmount;
} else if (_xmouse < roboPogo._y) {
roboPogo.dx = roboPogo.dx - XSpeed;
roboPogo._rotation = roboPogo._rotation - rotationAmount;
}
}
}
if (carHit) {
roboPogo.dx = roboPogo.dx + XSpeed;
}
};
roboCrash = function (partx, party, dir, roboSection, elasticity) {
pCount++;
var _local3 = "part" + pCount;
parts.attachMovie(roboSection, _local3, pCount++);
parts[_local3]._x = partx;
parts[_local3]._y = party;
parts[_local3].dx = dir;
parts[_local3].dy = 2;
parts[_local3].onEnterFrame = function () {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this._rotation = this._rotation - 2;
if ((this._y + (this._height / 2)) > STAGEHEIGHT) {
this._y = STAGEHEIGHT - (this._height / 2);
this.dy = this.dy * elasticity;
if (_root.soundPress == true) {
boing.start();
}
}
if ((this._x > 700) | (this._x < -200)) {
delete onEnterFrame;
this.removeMovieClip();
}
this.dy = this.dy + 0.8;
};
};
testCarCrash = function (car, dir) {
if (roboPogo.hitTest(car)) {
XSpeed = XSpeed + 5;
carHit = true;
if (_root.soundPress == true) {
crash.start();
}
}
};
crashRobo = function (dir) {
switch (dir) {
case "left" :
roboCrash(600, 200, -4, "roboHead", -0.9);
roboCrash(600, 100, -6, "roboLegs", -0.9);
roboCrash(600, 150, -6, "roboBody", -0.9);
break;
case "right" :
roboCrash(-100, 200, 4, "roboHead", -0.9);
roboCrash(-100, 100, 5, "roboLegs", -0.9);
roboCrash(-100, 100, 6, "roboBody", -0.9);
}
};
carAnim = function (whichcar, dir) {
whichcar.play();
whichcar._visible = true;
if (_root.soundPress == true) {
carSound.start();
if (dir == "left") {
carSound.setPan(70);
} else {
carSound.setPan(-70);
}
}
};
onEnterFrame = function () {
if ((!outside) && (!theEnd)) {
if (!gameComplete) {
FrameCounter++;
var _local2 = 0;
if (roboPogo._x >= 250) {
_local2 = Math.abs(500 - roboPogo._x);
} else {
_local2 = roboPogo._x;
}
if ((roboPogo._x > 500) || (roboPogo._x < 0)) {
_local2 = 0;
}
_root.score = _root.score + Math.round(_local2 / 25);
trace("tempScore=" + Math.round(_local2));
_root.scoreBox.scoreText.text = _root.score;
}
if (FrameCounter == 50) {
startFramesComplete = true;
}
if ((FrameCounter % 150) == 0) {
pogoLevel++;
level._visible = true;
level.levelAnim.gotoAndStop(pogoLevel);
level.play();
XSpeed = XSpeed + 0.06;
if ((pogoLevel == 2) && ((FrameCounter % 50) == 0)) {
carAnim(car1, "left");
}
if ((pogoLevel == 4) && ((FrameCounter % 50) == 0)) {
carAnim(car2, "right");
}
if ((pogoLevel == 6) && ((FrameCounter % 50) == 0)) {
carAnim(car1, "left");
}
if ((pogoLevel == 8) && ((FrameCounter % 70) == 0)) {
carAnim(car1, "left");
}
if ((pogoLevel == 11) && ((FrameCounter % 50) == 0)) {
carAnim(car2, "right");
}
if ((pogoLevel == 13) && ((FrameCounter % 50) == 0)) {
carAnim(car1, "left");
}
if ((pogoLevel == 15) && ((FrameCounter % 20) == 0)) {
carAnim(car2, "right");
}
if ((pogoLevel == 17) && ((FrameCounter % 20) == 0)) {
carAnim(car1, "left");
}
if ((pogoLevel == 18) && ((FrameCounter % 50) == 0)) {
carAnim(car2, "right");
}
if ((pogoLevel == 19) && ((FrameCounter % 0) == 0)) {
carAnim(car1, "left");
}
if ((pogoLevel == 20) && ((FrameCounter % 0) == 0)) {
carAnim(car2, "right");
}
if (pogoLevel == 21) {
gameComplete = true;
cheerSound.start();
fadeOut.play();
}
if (pogoLevel >= 10) {
XSpeed = XSpeed + 0.02;
}
if (pogoLevel >= 15) {
XSpeed = XSpeed + 0.02;
}
firstFrame = true;
}
updateRobo();
} else {
theEnd = true;
gameOver._visible = true;
gameOver.play();
}
};
Symbol 338 MovieClip Frame 1
stop();
this._visible = false;
Symbol 338 MovieClip Frame 2
this._visible = true;
Symbol 338 MovieClip Frame 15
stop();