Frame 1
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
if (_root.soundon == undefined) {
_root.soundon = true;
}
Frame 2
_quality = "MEDIUM";
Instance of Symbol 76 MovieClip "heli_nupp" in Frame 2
onClipEvent (load) {
if (_root.soundon == false) {
gotoAndStop (2);
}
}
Frame 7
function buildMap() {
game.clip = _root.stage;
char.clip = game.clip.char;
game.level++;
border.lives.gotoAndStop(game.lives + 1);
game.stageHcur = ((game.level * game.visH) / 2) + game.visH;
if (game.stageHcur > game.stageH) {
game.stageHcur = game.stageH;
}
game.clip.finish._y = game.stageH - game.stageHcur;
char.x = game.stageW / 2;
char.y = (game.stageH - char.size) - 150;
char.jump = true;
char.wheel = "none";
char.speedX = 0;
char.lastSpeedX = char.speed;
char.speedY = 0;
char.dead = false;
game.clip._y = ((-game.stageH) + game.visH) + 50;
parallax.height = parallax._height / 2;
parallaxabove.height = parallaxabove._height / 2;
game.spikesSpeed = game.baseSpikesSpeed + ((game.baseSpikesSpeed * game.level) / 2);
game.spikesY = game.stageH + game.visH;
game.clip.spikes._y = game.spikesY;
placeChar(char);
game.wheels = [];
game.points = [];
game.pointsInStage = 0;
game.gravity = game.baseGravity;
if (game.stageRestore) {
game.clip.gotoAndStop(game.lastStage.stage);
game.bonusPoints = game.lastStage.bonusPoints;
} else {
game.clip.gotoAndStop(random(5) + 1);
game.bonusPoints = 0;
}
game.mapHeight = border.map._height;
var _local2 = 1;
while (_local2 <= 4) {
var _local1 = "tele" + _local2;
game.clip[_local1].x = game.clip[_local1]._x;
game.clip[_local1].y = game.clip[_local1]._y;
if (game.level <= game.showTeleports) {
game.clip[_local1]._visible = false;
}
_local2++;
}
game.safetyBumper = false;
resetBonus();
game.buildPause = 0;
game.building = 1;
game.buildingTime = getTimer() + game.buildPause;
game.curWheel = 0;
}
function startWheel(ob) {
var _local1 = ob;
_local1._visible = false;
if ((_local1._y + _local1._height) > ((game.stageH - game.stageHcur) + 30)) {
game.wheels.push(_local1);
addWheel(_local1);
}
}
function addWheel(ob) {
var _local1 = ob;
_local1._visible = true;
_local1.size = _local1._xscale / 2;
_local1.scale = _local1._xscale;
_local1.x = int(_local1._x);
_local1.y = int(_local1._y);
_local1._y = _local1.y;
_local1._x = _local1.x;
if (_local1.scale < 50) {
_local1.wood.gotoAndStop(3);
} else if (_local1.scale < 100) {
_local1.wood.gotoAndStop(2);
} else {
_local1.wood.gotoAndStop(1);
}
_local1._name = (("wheel" + _local1.y) + "_") + _local1.x;
if (game.stageRestore) {
var _local2 = game.lastStage[_local1._name];
_local1.speed = _local2.speed;
_local1.gotoAndStop(_local2.frame);
_local1.sizeChange = _local2.sizeChange;
_local1.moveSpeedx = _local2.moveSpeedx;
_local1.notSticky = _local2.notSticky;
} else {
var _local3 = game.wheelTurn / _local1._width;
_local1.speedBase = ((_local3 * _local3) * 1.5) + (game.level / 2);
_local1.speed = ((random(2) * 2) - 1) * _local1.speedBase;
_local1.gotoAndStop(random(3) + 1);
var sizeChange = (_local1.size * 0.3);
_local1.minSize = _local1.size - sizeChange;
_local1.maxSize = _local1.size + sizeChange;
if (random(100) < (game.level * 5)) {
_local1.notSticky = true;
} else {
_local1.notSticky = false;
}
}
if (!_local1.notSticky) {
_local1.stick._visible = false;
}
game.curWheel++;
game.buildingTime = getTimer() + game.buildPause;
if (game.curWheel > game.wheels.length) {
game.building = 2;
game.curWheel = 0;
}
}
function startPoint(ob) {
var _local1 = ob;
_local1._visible = false;
_local1.picked = true;
if (_local1._y > ((game.stageH - game.stageHcur) + 50)) {
if (game.stageRestore) {
game.points.push(_local1);
addPoint(_local1);
} else if (random(100) < ((game.level * 10) + 30)) {
game.points.push(_local1);
addPoint(_local1);
}
}
}
function addPoint(ob) {
var _local1 = ob;
_local1._visible = true;
_local1.x = int(_local1._x);
_local1.y = int(_local1._y);
_local1._y = _local1.y;
_local1._x = _local1.x;
_local1._name = (("p" + _local1.y) + "_") + _local1.x;
if (game.stageRestore) {
var _local2 = game.lastStage[_local1._name];
_local1.picked = _local2.picked;
_local1.points = _local2.points;
} else {
_local1.picked = false;
_local1.points = random(3) + 1;
}
if (_local1.picked) {
_local1._visible = false;
} else {
game.pointsInStage++;
}
_local1.point.gotoAndStop(_local1.points);
game.curWheel++;
game.buildingTime = getTimer() + game.buildPause;
if (game.curWheel > game.points.length) {
game.building = 0;
border.bonusmsg.gotoAndStop(1);
}
}
function moveChar(ob) {
var _local1 = ob;
_local1.x = _local1.x + _local1.speedX;
_local1.y = _local1.y + _local1.speedY;
if (_local1.x > (game.stageW - _local1.size)) {
_local1.x = game.stageW - _local1.size;
if (_local1.wheel != "none") {
_local1.speedX = _local1.speedX * -0.9;
} else {
_local1.speedX = _local1.speedX * -1;
}
} else if (_local1.x < _local1.size) {
_local1.x = _local1.size;
if (_local1.wheel != "none") {
_local1.speedX = _local1.speedX * -0.9;
} else {
_local1.speedX = _local1.speedX * -1;
}
}
if (_local1.y > (game.stageH - _local1.size)) {
_local1.clip._rotation = 0;
_local1.y = game.stageH - _local1.size;
_local1.jump = false;
_local1.jumpAngle = -90;
_local1.wheel = "none";
if (_local1.speedX > 0.1) {
_local1.speedX = _local1.speed;
} else if (_local1.speedX < -0.1) {
_local1.speedX = -_local1.speed;
} else {
_local1.speedX = _local1.lastSpeedX;
}
}
if (_root._currentframe > 35) {
if (_local1.y >= (game.stageH - game.stageHcur)) {
_local1.clip._rotation = 0;
_local1.y = (game.stageH - game.stageHcur) - 10;
_local1.speedX = 0;
_local1.speedY = 0;
_local1.jump = 0;
_local1.clip.gotoAndPlay("dance");
}
}
var _local2 = 0;
while (_local2 < game.wheels.length) {
if (findDist(game.wheels[_local2], _local1)) {
_local1.wheel = game.wheels[_local2];
rotateTowards(_local1);
_local1.wheelAngle = _local1.wheelAngle - _local1.wheel._rotation;
if (_local1.wheelAngle < 0) {
_local1.wheelAngle = _local1.wheelAngle + 360;
}
_local1.jump = false;
var _local3 = degToRad(_local1.wheelAngle + _local1.wheel._rotation);
_local1.x = _local1.wheel.x + (_local1.wheel.size * Math.cos(_local3));
_local1.y = _local1.wheel.y + (_local1.wheel.size * Math.sin(_local3));
if ((_local1.wheel.notSticky and (_local1.wheelAngle < 90)) and (_local1.wheelAngle > 0)) {
_local1.jump = true;
var speed = (_local1.jumpSpeed + (Math.abs(_local1.wheel.speed) / 1.5));
_local1.speedX = speed * Math.cos(_local3);
_local1.speedY = speed * Math.sin(_local3);
_local1.x = _local1.x + _local1.speedX;
_local1.y = _local1.y + _local1.speedY;
}
break;
}
_local2++;
}
if (game.level > game.showTeleports) {
_local2 = 1;
while (_local2 <= 3) {
var name = ("tele" + _local2);
if (findDist(game.clip[name], _local1)) {
if (_local2 == 1) {
var newtelenum = (random(2) + 2);
} else if (_local2 == 3) {
var newtelenum = (random(2) + 1);
} else if (_local2 == 2) {
var newtelenum = ((random(2) * 2) + 1);
}
var newtele = game.clip["tele" + newtelenum];
if (_local1.y < newtele._y) {
_local1.teleportSpeed = 1;
} else {
_local1.teleportSpeed = -1;
}
_local1.x = newtele._x;
_local1.y = newtele._y + _local1.size;
_local1.teleporting = true;
_local1.clip._visible = false;
_local1.speedX = 0;
_local1.speedY = 0;
break;
}
_local2++;
}
}
checkPoints(_local1);
placeChar(_local1);
}
function checkPoints(ob) {
var _local3 = ob;
var _local2 = 0;
while (_local2 < game.points.length) {
var _local1 = game.points[_local2];
if (!_local1.picked) {
if (findDist(_local1, _local3)) {
addSound("s_point");
setScore(game.score + _local1.points);
game.bonusPoints = game.bonusPoints + _local1.points;
_local1.play();
_local1.picked = true;
game.pointsInStage--;
if (game.pointsInStage <= 0) {
setScore(game.score + game.bonusPoints);
game.startBonustime = getTimer() + (game.showBonusTime * 1000);
border.bonusmsg.gotoAndStop(7);
}
}
}
_local2++;
}
}
function findDist(ob1, ob2) {
var _local3 = ob2;
var _local2 = _local3.x - ob1.x;
var _local1 = _local3.y - ob1.y;
var dist = ((_local2 * _local2) + (_local1 * _local1));
if (dist < ((ob1.size * ob1.size) + (_local3.size * _local3.size))) {
return(true);
}
return(false);
}
function placeChar(ob) {
if (!game.flowStop) {
game.spikesY = game.spikesY - game.spikesSpeed;
game.clip.spikes._y = game.spikesY;
}
if (ob.y > game.spikesY) {
if (game.safetyBumper and ob.jump) {
game.safetyBumper = false;
game.clip.spikes.gotoAndStop(1);
ob.speedY = ob.speedY * -2;
ob.y = ob.y + ob.speedY;
} else {
ob.dead = true;
ob.clip._rotation = 0;
game.stageRestore = true;
game.lastStage = {};
obSave = game.lastStage;
obSave.stage = game.clip._currentframe;
obSave.bonusPoints = game.bonusPoints;
var i = 0;
while (i < game.wheels.length) {
var _local1 = game.wheels[i];
var name = _local1._name;
obSave[name] = {};
var _local2 = obSave[name];
_local2.speed = _local1.speed;
_local2.frame = _local1._currentframe;
_local2.sizeChange = _local1.sizeChange;
_local2.moveSpeedx = _local1.moveSpeedx;
_local2.notSticky = _local1.notSticky;
i++;
}
var i = 0;
while (i < game.points.length) {
var _local3 = game.points[i];
var name = _local3._name;
obSave[name] = {};
var obP = obSave[name];
obP.picked = _local3.picked;
obP.points = _local3.points;
i++;
}
}
}
if ((ob.y <= (game.stageH - game.stageHcur)) && (_root._currentframe < 35)) {
setScore(game.score + 10);
border.points = game.score;
border.bonusmsg.gotoAndStop(1);
game.stageRestore = false;
_root.gotoAndPlay("level_complete");
}
if (Math.abs((ob.y + game.clip._y) - game.visH) > game.fallSpeed) {
var fallSpeed = (((-((ob.y + game.clip._y) - game.visH)) / 10) * game.fallSpeed);
scrollStage(fallSpeed);
}
ob.clip._x = ob.x;
ob.clip._y = ob.y;
}
function scrollStage(speed) {
var _local1 = speed;
game.clip._y = game.clip._y + _local1;
if (game.clip._y > ((game.stageHcur - game.stageH) + 100)) {
game.clip._y = (game.stageHcur - game.stageH) + 100;
} else {
parallax._y = parallax._y + _local1;
parallaxabove._y = parallaxabove._y + (_local1 * 2);
if (parallax._y > 0) {
parallax._y = parallax._y - parallax.height;
} else if (parallax._y < (-parallax.height)) {
parallax._y = parallax._y + parallax.height;
}
if (parallaxabove._y > 0) {
parallaxabove._y = parallaxabove._y - parallaxabove.height;
} else if (parallaxabove._y < (-parallaxabove.height)) {
parallaxabove._y = parallaxabove._y + parallaxabove.height;
}
}
}
function doJump(ob) {
var _local1 = ob;
_local1.clip.gotoAndStop(2);
var _local3 = Math.atan2(_local1.speedY, _local1.speedX);
var _local2 = Math.sqrt((_local1.speedX * _local1.speedX) + (_local1.speedY * _local1.speedY));
_local1.speedX = _local2 * Math.cos(_local3);
_local1.speedY = game.gravity + (_local2 * Math.sin(_local3));
if (_local1.speedY > game.maxSpeed) {
_local1.speedY = game.maxSpeed;
} else if (_local1.speedY < (-game.maxSpeed)) {
_local1.speedY = -game.maxSpeed;
}
if (_local1.speedX > game.maxSpeed) {
_local1.speedX = game.maxSpeed;
} else if (_local1.speedX < (-game.maxSpeed)) {
_local1.speedX = -game.maxSpeed;
}
_local3 = radiansToDegrees(Math.atan2(_local1.speedY, _local1.speedX));
if (_local1.speedY < 0) {
_local1.clip._rotation = _local3 + 90;
} else {
_local1.clip._rotation = _local3 - 90;
}
moveChar(_local1);
}
function resetBonus() {
game.bonus = 0;
game.bonusTime = (int(getTimer() / 1000) + 5) + random(10);
game.clip.bonus.y = (game.stageH - game.stageHcur) - 110;
game.clip.bonus._y = game.clip.bonus.y;
game.clip.bonus.x = random(game.stageW - 10) + 5;
game.clip.bonus._x = game.clip.bonus.x;
}
function moveBonus() {
game.clip.bonus.y = game.clip.bonus.y + game.gravity;
game.clip.bonus._y = game.clip.bonus.y;
var _local3 = game.clip.bonus.x - char.x;
var _local2 = game.clip.bonus.y - char.y;
var dist = ((_local3 * _local3) + (_local2 * _local2));
if (dist < char.size2) {
addSound("s_bonus");
game.clip.bonus.play();
game.bonus = 2;
var _local1 = random(5) + 2;
border.bonusmsg.gotoAndStop(_local1);
game.startBonustime = getTimer() + (game.showBonusTime * 1000);
if (_local1 == 2) {
game.flowStop = true;
} else if (_local1 == 3) {
setscore(game.score + 10);
} else if (_local1 == 4) {
game.gravity = 0;
} else if (_local1 == 5) {
game.wheelsStop = true;
} else if (_local1 == 6) {
game.safetyBumper = true;
game.clip.spikes.gotoAndStop(2);
}
}
if (game.clip.bonus.y > (game.stageH + 5)) {
resetBonus();
}
}
function breakPoint(mc, x, y) {
var _local1 = mc;
_local1._x = _local1._x + x;
_local1._y = _local1._y + y;
_local1._alpha = _local1._alpha - game.explosionSpeed;
if (_local1._alpha < game.explosionSpeed) {
_local1.removeMovieClip();
}
}
function rotateTowards(ob) {
var _local1 = ob;
var deltaX = (_local1.wheel._x - _local1.x);
var _local3 = _local1.wheel._y - _local1.y;
var _local2 = Math.atan2(-_local3, -deltaX);
_local1.wheelAngle = radiansToDegrees(_local2);
}
function radiansToDegrees(radians) {
return((radians / Math.PI) * 180);
}
function degToRad(ang) {
var _local1 = (ang * Math.PI) / 180;
return(_local1);
}
function addSound(s_id) {
}
function addMusic(tune, repeat) {
trace("play tune : " + tune);
if (_root.soundon) {
stopAllSounds();
_root[tune].start(0, 999);
}
}
function detectKeys() {
border.points = game.score;
border.level = game.level;
if (game.bonus == 1) {
moveBonus();
} else if ((game.bonus == 0) and (game.bonusTime < int(getTimer() / 1000))) {
game.bonus = 1;
}
var _local3 = 0;
while (_local3 < game.wheels.length) {
var _local2 = game.wheels[_local3];
if (!game.wheelsStop) {
var _local1 = _local2._rotation;
_local1 = _local1 + _local2.speed;
if (_local1 > 360) {
_local1 = _local1 - 360;
} else if (_local1 < -360) {
_local1 = _local1 + 360;
}
_local2._rotation = _local1;
}
_local3++;
}
var _local2 = char;
if (_local2.dead) {
_local2.y = _local2.y + _local2.speed;
_local2.clip._y = _local2.y;
if ((_local2.y + game.clip._y) > (game.visH * 2.5)) {
border.bonusmsg.gotoAndStop(1);
game.lives--;
if (game.lives <= 0) {
_root.gotoAndPlay("game_over");
} else {
if (game.level > 0) {
game.level--;
}
_root.gotoAndPlay("lose_life");
}
}
} else if (_local2.teleporting) {
if (_local2.teleportSpeed < 0) {
var fallSpeed = (game.fallSpeed * 7);
if ((game.clip._y + _local2.y) > (game.visH / 2)) {
_local2.teleporting = false;
_local2.clip._visible = true;
}
} else {
var fallSpeed = ((-game.fallSpeed) * 7);
if ((game.clip._y + _local2.y) < (game.visH / 2)) {
_local2.teleporting = false;
_local2.clip._visible = true;
}
}
scrollStage(fallSpeed);
} else if (_local2.jump) {
doJump(_local2);
} else {
_local2.clip.gotoAndStop(1);
if (_local2.wheel != "none") {
if (Key.isDown(37)) {
_local2.wheelAngle = _local2.wheelAngle - _local2.walkOnWheel;
} else if (Key.isDown(39)) {
_local2.wheelAngle = _local2.wheelAngle + _local2.walkOnWheel;
}
var angle = degToRad(_local2.wheelAngle + _local2.wheel._rotation);
_local2.x = _local2.wheel.x + ((_local2.wheel.size + _local2.size) * Math.cos(angle));
_local2.y = _local2.wheel.y + ((_local2.wheel.size + _local2.size) * Math.sin(angle));
_local2.clip._rotation = (_local2.wheelAngle + _local2.wheel._rotation) + 90;
placeChar(_local2);
checkPoints(_local2);
} else {
moveChar(_local2);
}
if (Key.isDown(32) or Key.isDown(38)) {
_root.detectMouse();
}
}
border.map.char._y = (game.mapHeight - (((game.stageH - _local2.y) / game.stageHcur) * game.mapHeight)) + 20;
var spikesH = (((game.stageH - game.spikesY) / game.stageHcur) * game.mapHeight);
if (spikesH > 0) {
border.map.spikes._height = spikesH;
} else {
border.map.spikes._height = 0;
}
}
function detectMouse() {
if ((game.paused or (!game.mouseReleased)) or char.teleporting) {
} else {
var _local1 = char;
if (!_local1.jump) {
game.mouseReleased = false;
addSound("s_jump");
_local1.jump = true;
if (_local1.wheel == "none") {
_local1.lastSpeedX = _local1.speedX;
_local1.speedX = 0;
_local1.speedY = -_local1.jumpSpeed;
} else {
var _local3 = _local1.wheelAngle + _local1.wheel._rotation;
var _local2 = _local1.jumpSpeed + (Math.abs(_local1.wheel.speed) / 1.5);
_local1.speedX = _local2 * Math.cos(degToRad(_local3));
_local1.speedY = _local2 * Math.sin(degToRad(_local3));
}
}
}
}
function clearMouse() {
game.mouseReleased = true;
}
fscommand ("allowscale", false);
game = {stageW:300, stageH:1200, visH:200, baseGravity:0.6, wheelTurn:100, maxSpeed:10, wheelsStop:false, flowStop:false, fallSpeed:1, explosionSpeed:2, mouseReleased:true, showBonusTime:10, wheelsSizeChange:0.2, wheelsMoveSpeed:0.2, wheelsMoveDist:30, level:0, lives:3, score:0, baseSpikesSpeed:0.1, stageRestore:false, showTeleports:9};
char = {speed:6, size:10, wheel:"none", jump:false, jumpSpeed:8, jumpAngle:-90, walkOnWheel:5};
char.size2 = char.size * char.size;
border.points = 0;
border.level = 0;
stopAllSounds();
_root.Mintro = new Sound();
_root.Mintro.attachSound("intro");
_root.Mgame = new Sound();
_root.Mgame.attachSound("gameLoop");
_root.Mwin = new Sound();
_root.Mwin.attachSound("winner");
stop();
addMusic("Mintro", 1);
_quality = "HIGH";
stop();
Frame 18
buildMap();
_quality = "MEDIUM";
Instance of Symbol 105 MovieClip "controller" in Frame 18
onClipEvent (enterFrame) {
_root.detectKeys();
}
onClipEvent (mouseDown) {
_root.detectMouse();
}
onClipEvent (mouseUp) {
_root.clearMouse();
}
onClipEvent (load) {
_root.clearMouse();
}
onClipEvent (keyUp) {
_root.clearMouse();
}
Frame 27
stop();
Frame 42
stop();
Frame 47
game.level = 0;
game.score = 0;
gotoAndStop ("menu");
Frame 52
_root.addMusic("Mwin", 1);
Instance of Symbol 105 MovieClip "controller" in Frame 52
onClipEvent (enterFrame) {
if (_root.char.jump) {
_root.doJump(_root.char);
}
}
Frame 62
stop();
Frame 67
gotoAndPlay ("game");
Frame 82
stop();
Frame 87
gotoAndPlay ("game");
Instance of Symbol 230 MovieClip "comHighscores" in Frame 92
//component parameters
onClipEvent (initialize) {
scoreLocation = "_root.game.score";
gamename = "drcarter";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Frame 97
stop();
Frame 102
game.level = 0;
game.score = 0;
gotoAndStop ("menu");
Symbol 14 MovieClip Frame 1
this._visible = false;
Symbol 20 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 25 MovieClip Frame 1
pushSWF1 = "http://www.miniclip.com/swfcontent/push/didyouknow.swf";
totalAds = 1;
gotoAndPlay ("ReadCookie");
Symbol 25 MovieClip Frame 9
so = SharedObject.getLocal("MiniclipLoaderAd");
showThisAd = so.data.showThisAd + 1;
if (showThisAd > totalAds) {
showThisAd = 1;
}
so.data.showThisAd = showThisAd;
gotoAndPlay ("prepareAd");
Symbol 25 MovieClip Frame 20
doReadCookie();
showAd = ((this["pushSWF" + showThisAd] + "?cacheBuster=") + getTimer()) + random(999999);
gotoAndPlay ("loadAd");
Symbol 25 MovieClip Frame 31
if (_url.indexOf("http") > -1) {
trace("trying to load ad: " + showAd);
mcAd.loadMovie(showAd);
}
mcCookie.doWriteCookie(showThisAd);
Symbol 25 MovieClip Frame 33
if ((mcAd.getBytesTotal() != 0) && (mcAd.getBytesLoaded() == mcAd.getBytesTotal())) {
lastAdShown = showThisAd;
doWriteCookie();
gotoAndStop ("showAd");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 25 MovieClip Frame 41
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 100
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 12
_root.play();
_root.isFinished = true;
_parent.stop();
stop();
Symbol 41 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 42 MovieClip Frame 2
_parent.mcAnimation.play();
stop();
Symbol 42 MovieClip Frame 13
_parent.gotoAndPlay("preload");
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 60
Symbol 56 MovieClip Frame 121
_parent.mcBackground.play();
stop();
Symbol 57 MovieClip Frame 1
_root.stop();
play();
Instance of Symbol 14 MovieClip "mcIntro" in Symbol 57 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 57 MovieClip Frame 2
xPos = _x;
yPos = _y;
mcBackground._x = mcBackground._x - xPos;
mcBackground._y = mcBackground._y - yPos;
mcAnimation._x = mcAnimation._x - xPos;
mcAnimation._y = mcAnimation._y - yPos;
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = (stageWidth / 2);
var centerStageY = (stageHeight / 2);
mcBackground._width = stageWidth;
mcBackground._height = stageHeight;
mcAnimation._x = mcAnimation._x + centerStageX;
mcAnimation._y = mcAnimation._y + (centerStageY - (stageHeight / 10));
stop();
Instance of Symbol 37 MovieClip "mcLoadingAnimated" in Symbol 57 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 57 MovieClip Frame 3
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent == 100) {
_root.play();
stop();
} else {
mcLoadingAnimated._visible = true;
}
Symbol 57 MovieClip Frame 5
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent < 100) {
mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent);
mcLoadingAnimated.mcLoading.txtPercentLoaded1 = ("The game is loading (" + loadedPercent) + "%)";
mcLoadingAnimated.mcLoading.txtPercentLoaded2 = ("The game is loading (" + loadedPercent) + "%)";
gotoAndPlay(_currentframe - 1);
} else {
mcLoadingAnimated.play();
stop();
}
Symbol 63 MovieClip Frame 1
this._visible = false;
Symbol 64 MovieClip Frame 1
_global.SSscoreLocation = scoreLocation;
if (_global.dif == undefined) {
_global.dif = random(100000);
}
_global.lockVariable = function (varName, varValue, newScore) {
var _local1 = _global;
var _local2 = varValue;
if (newScore == undefined) {
if (_local1.lockedVar == undefined) {
_local1.lockedVar = _local2 + _local1.dif;
} else {
_local2 = _local1.lockedVar;
}
} else {
_local1.lockedVar = newScore + _local1.dif;
}
var setVar = int(_local2 - _local1.dif);
Set(varName, _local1.lockedVar - _local1.dif);
};
_global.setScore = function (varValue) {
var _local1 = varValue;
trace("Safe Score Set: " + _local1);
lockVariable(_global.SSscoreLocation, _local1, _local1);
};
ivLockVariable = setInterval(lockVariable, 10, _global.SSscoreLocation, varValue);
stop();
Instance of Symbol 63 MovieClip in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 71 Button
on (release) {
_root.game.level = _root.curlevel - 1;
setScore(0);
_root.addMusic("Mgame", 999);
_root.gotoAndPlay("game");
}
Symbol 75 Button
on (release) {
if (_root.soundon) {
_root.soundon = false;
} else {
_root.soundon = true;
}
play();
}
Symbol 76 MovieClip Frame 1
stopAllSounds();
if (_root.soundon) {
_root.addMusic();
}
stop();
Symbol 76 MovieClip Frame 2
stopAllSounds();
stop();
Symbol 79 Button
on (rollOver) {
gotoAndPlay ("in");
}
on (rollOut) {
gotoAndPlay ("out");
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 10
stop();
Symbol 84 MovieClip Frame 20
gotoAndStop ("stop");
Symbol 86 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 101 MovieClip Frame 1
stop();
Instance of Symbol 105 MovieClip in Symbol 107 MovieClip Frame 1
onClipEvent (load) {
_root.startWheel(_parent);
}
Instance of Symbol 105 MovieClip in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
y = -1;
_parent.points = _parent._parent.points;
}
onClipEvent (enterFrame) {
_root.breakPoint(_parent, x, y);
}
Instance of Symbol 105 MovieClip in Symbol 117 MovieClip Frame 1
onClipEvent (load) {
x = (random(30) - 15) / 5;
y = (random(30) - 15) / 5;
}
onClipEvent (enterFrame) {
_root.breakPoint(_parent, x, y);
}
Symbol 118 MovieClip Frame 1
stop();
Instance of Symbol 105 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (load) {
_root.startPoint(_parent);
}
Symbol 118 MovieClip Frame 2
gotoAndStop(3 + random(4));
Symbol 118 MovieClip Frame 3
stop();
Symbol 118 MovieClip Frame 4
stop();
Symbol 118 MovieClip Frame 5
stop();
Symbol 118 MovieClip Frame 6
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 20
_root.resetBonus();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 15
gotoAndPlay ("dance");
Symbol 142 MovieClip Frame 1
stop();
Symbol 157 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 167 MovieClip Frame 1
_root.game.gravity = _root.game.baseGravity;
_root.game.wheelsStop = false;
_root.game.flowStop = false;
stop();
Instance of Symbol 105 MovieClip in Symbol 167 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.game.startBonustime < getTimer()) {
if (_parent._currentFrame < 7) {
_root.resetBonus();
}
_parent.gotoAndStop(1);
}
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 186 Button
on (release) {
_root.play();
}
Symbol 190 Button
on (release) {
_root.gotoAndPlay("hi_scores");
}
Symbol 198 Button
on (release, keyPress "<Space>") {
_root.addMusic("Mgame", 999);
_root.play();
}
Symbol 204 Button
on (release, keyPress "<Space>") {
_root.addMusic("Mgame", 999);
_root.play();
}
Symbol 210 MovieClip Frame 1
this._visible = false;
Symbol 228 Button
on (release) {
gameURL = ("http://www.miniclip.com/" + gamename) + ".htm";
getURL (gameURL, "_blank");
}
Instance of Symbol 210 MovieClip "mcHighscores" in Symbol 230 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 230 MovieClip Frame 2
if (_url.indexOf("miniclip.com") == -1) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?noCache=" + noCache);
stop();
}
Symbol 230 MovieClip Frame 3
stop();