Frame 1
Stage.scaleMode = "noScale";
Stage.showMenu = false;
Stage.align = "";
Frame 2
this.stop();
var checkFlash5 = true;
if (_root.checkFlash5) {
if (this._framesloaded >= 7) {
this.gotoAndStop(4);
} else {
gotoAndPlay (1);
}
} else {
play();
}
Frame 3
stop();
Frame 4
this.stop();
Object.version = getVersion().split(",");
Object.majorVersion = int(substring(Object.version[0], Object.version[0].length, 1));
Object.minorVersion = int(Object.version[2]);
if (Object.majorversion < 6) {
this.gotoAndStop(5);
} else {
this.gotoAndPlay(6);
}
Frame 5
this.stop();
Frame 10
this.stop();
Frame 17
createlevel = new Array();
var num_levels;
createlevel[1] = function () {
mc_root.placeHole(6, 4);
mc_root.buildpusher(0, 2, 4, 3);
mc_root.placeBall(3, 4);
game_mc.attachMovie("helpScene1_mc", "helpScene1_mc", 120);
mc_root.par = 1;
mc_root.updateCounters();
};
createlevel[2] = function () {
placeHole(6, 4);
buildpusher(2, 7, 4, 3);
placeBall(3, 4);
game_mc.attachMovie("helpScene2_mc", "helpScene2_mc", 120);
mc_root.par = 2;
};
createlevel[3] = function () {
placeHole(2, 5);
buildpusher(2, 6, 5, 3);
buildpusher(3, 5, 6, 3);
placeBall(5, 2);
mc_root.par = 3;
};
createlevel[4] = function () {
placeHole(2, 5);
buildpusher(0, 1, 2, 3);
buildpusher(1, 5, 1, 3);
buildpusher(0, 1, 5, 3);
placeBall(3, 2);
mc_root.par = 4;
};
createlevel[5] = function () {
placeHole(7, 4);
buildpusher(1, 2, 1, 3);
buildpusher(0, 1, 7, 3);
buildpusher(3, 2, 8, 3);
buildpusher(3, 7, 8, 3);
buildpusher(2, 8, 7, 3);
placeBall(2, 2);
mc_root.par = 7;
};
createlevel[6] = function () {
placeHole(4, 5);
buildpusher(0, 1, 2, 3);
buildpusher(1, 4, 1, 3);
buildpusher(1, 5, 1, 3);
placeBall(2, 2);
mc_root.par = 3;
};
createlevel[7] = function () {
placeHole(1, 4);
buildpusher(0, 1, 2, 3);
buildpusher(3, 4, 5, 3);
buildpusher(1, 5, 1, 3);
buildpusher(2, 5, 4, 3);
placeBall(2, 2);
mc_root.par = 5;
};
createlevel[8] = function () {
placeHole(3, 6);
buildpusher(1, 6, 3, 3);
buildpusher(0, 5, 4, 3);
buildpusher(1, 3, 1, 3);
buildpusher(1, 7, 3, 3);
buildpusher(2, 7, 5, 3);
buildpusher(2, 7, 6, 3);
buildpusher(3, 6, 8, 3);
placeBall(6, 5);
mc_root.par = 5;
};
createlevel[9] = function () {
placeHole(4, 3);
buildpusher(0, 1, 7, 3);
buildpusher(3, 6, 5, 3);
buildpusher(1, 7, 1, 3);
buildpusher(2, 8, 3, 3);
buildpusher(2, 8, 4, 3);
buildpusher(3, 7, 8, 3);
buildpusher(2, 8, 7, 3);
mc_root.par = 9;
placeBall(2, 7);
};
createlevel[10] = function () {
placeHole(5, 5);
buildpusher(0, 1, 2, 3);
buildpusher(1, 4, 1, 4);
buildpusher(1, 5, 1, 2);
buildpusher(3, 5, 8, 2);
buildpusher(2, 6, 6, 2);
placeBall(2, 2);
mc_root.par = 6;
};
createlevel[11] = function () {
placeHole(5, 6);
buildpusher(1, 5, 2, 3);
buildpusher(0, 2, 4, 3);
buildpusher(2, 7, 4, 3);
mc_root.par = 5;
placeBall(3, 4);
};
createlevel[12] = function () {
placeHole(4, 3);
buildpusher(0, 1, 2, 3);
buildpusher(1, 5, 1, 3);
buildpusher(2, 8, 4, 3);
buildpusher(3, 5, 7, 3);
buildpusher(3, 4, 7, 3);
mc_root.par = 7;
placeBall(2, 2);
};
createlevel[13] = function () {
placeHole(2, 4);
buildpusher(0, 1, 3, 3);
buildpusher(1, 3, 1, 3);
buildpusher(2, 5, 3, 3);
buildpusher(2, 5, 4, 3);
buildpusher(3, 3, 6, 3);
mc_root.par = 7;
placeBall(2, 3);
};
createlevel[14] = function () {
placeHole(6, 5);
buildpusher(2, 8, 4, 3);
buildpusher(0, 2, 2, 3);
buildpusher(0, 1, 3, 3);
buildpusher(0, 1, 4, 3);
buildpusher(3, 4, 5, 3);
buildpusher(3, 3, 6, 3);
buildpusher(3, 2, 7, 3);
buildpusher(1, 6, 1, 3);
placeBall(7, 4);
mc_root.par = 10;
};
createlevel[15] = function () {
placeHole(6, 5);
buildpusher(1, 2, 1, 3);
buildpusher(0, 1, 5, 3);
buildpusher(0, 1, 7, 3);
buildpusher(3, 2, 8, 3);
buildpusher(3, 6, 8, 3);
buildpusher(3, 5, 8, 3);
buildpusher(0, 4, 6, 3);
buildpusher(1, 5, 3, 3);
buildpusher(2, 9, 6, 3);
placeBall(2, 2);
mc_root.par = 11;
};
num_levels = createlevel.length - 1;
var uniqueID = "levels01";
_global.mc_root = this;
_global.game_mc;
var stageWidth = Stage.width;
var stageHeight = Stage.height;
this.grid_array = new Array();
var setLength = 10;
var setWidth = 10;
var active = false;
fSetActive = function (value) {
mc_root.active = value;
};
this.rotationProp_array = new Array();
this.rotationProp_array[0] = ["x", 1];
this.rotationProp_array[1] = ["y", 1];
this.rotationProp_array[2] = ["x", -1];
this.rotationProp_array[3] = ["y", -1];
var progress_num = 1;
var moveCounter = 0;
var totalPar_num = 0;
var completedLevels = 0;
this.onclick = new Array();
this.onClick[2] = "fExtend";
this.onClick[1] = "fRetract";
buildPusher = function (arg1, arg2, arg3, arg4) {
var temp_mc = game_mc.attachMovie("pusher_MC", "pusher_MC" + mc_root.pusher_counter, mc_root.pusher_counter++, {rotation:arg1, gridx:arg2, gridy:arg3, initSize:arg4});
};
cPusher = function () {
mc_root.grid_array[this.gridx][this.gridy] = 0;
var temp_box;
var temp_num;
this.move_count = (this.moveSection = 0);
this.box_array = new Array();
this.state = 1;
temp_box = this.attachMovie("box_mc", "tail_mc", 2);
temp_box._height = 12;
temp_box.gotoAndStop(this.initSize - 1);
this.box_array.push(temp_box);
temp_box.pos_obj = this._gridPos(-1);
var i = 0;
while (i <= this.initSize) {
temp_num = 10 - i;
temp_box = this.attachMovie("box_mc", "box_mc" + temp_num, temp_num);
temp_box.gotoAndStop(this.initSize - 1);
temp_box._x = i * 20;
temp_box._height = 20 - (2 * i);
if (i) {
this.box_array.push(temp_box);
}
temp_box.pos_obj = this._gridPos(i);
i++;
}
this.box_length = this.box_array.length;
this.onRelease = function () {
if (!mc_root.active) {
mc_root.fSetActive(true);
this.fClicked();
}
};
var temp_mc;
var i = this.box_array.length;
while (i--) {
temp_mc = this.box_array[i];
temp_mc._x = temp_mc._x - 20;
if (i) {
temp_mc._visible = false;
temp_mc.extended = false;
} else {
temp_mc.extended = true;
mc_root.fSetGridSquare(temp_mc.pos_obj, 0);
}
}
this._x = (this.gridx * 20) + 10;
this._y = (this.gridy * 20) + 10;
this._rotation = 90 * this.rotation;
};
Object.registerClass("pusher_MC", cPusher);
cPusher.prototype = new MovieClip();
cPusher.prototype.fClicked = function () {
if (this.state > 1) {
this.state = 1;
} else {
this.state++;
}
var temp = mc_root.onClick[this.state];
mc_root.incrementMoveCounter();
this[temp]();
};
cPusher.prototype.fExtend = function () {
clearInterval(this.intervalID);
if (this.moveSection < this.box_length) {
var temp_num2;
if (this.moveSection) {
temp_num2 = this.moveSection;
} else {
temp_num2 = -1;
}
var nextPos = this._gridPos(temp_num2);
var nextValue = this.fCheckForObjects(nextPos.temp_x, nextPos.temp_y);
var section_mc = this.box_array[this.moveSection];
this.moveTheBall = false;
if (this.moveSection) {
if (nextValue == 1) {
this.fStartMove(section_mc, 5, true, nextPos, 0);
} else if (nextValue == 2) {
var nextPos2 = this._gridPos(temp_num2 + 1);
var nextValue2 = this.fCheckForObjects(nextPos2.temp_x, nextPos2.temp_y);
if (nextValue2) {
this.moveTheBall = true;
this.fStartMove(section_mc, 5, true, nextPos, 0);
} else {
this.fStopMove();
}
} else {
this.fStopMove();
}
} else {
var nextPos2 = this._gridPos(temp_num2 - 1);
var nextValue2 = this.fCheckForObjects(nextPos2.temp_x, nextPos2.temp_y);
if (nextValue2 == 2) {
this.moveTheBall = true;
}
this.fStartMove(section_mc, 5, false, nextPos, 1);
}
} else {
this.fStopMove();
}
};
cPusher.prototype.fRetract = function () {
var box_vis;
var temp_num;
clearInterval(this.intervalID);
this.moveTheBall = false;
if (this.moveSection < this.box_length) {
temp_num = (this.box_length - this.moveSection) - 1;
var temp_num2;
if (temp_num) {
temp_num2 = temp_num;
} else {
temp_num2 = -1;
}
var nextPos = this._gridPos(temp_num2);
var nextValue = this.fCheckForObjects(nextPos.temp_x, nextPos.temp_y);
var section_mc = this.box_array[temp_num];
if (temp_num) {
var nextPos2 = this._gridPos(temp_num2 + 1);
var nextValue2 = this.fCheckForObjects(nextPos2.temp_x, nextPos2.temp_y);
if (nextValue2 == 2) {
this.moveTheBall = true;
}
this.fStartMove(section_mc, -5, false, nextPos, 1);
} else if (nextValue == 1) {
this.fStartMove(section_mc, -5, true, nextPos, 0);
} else if (nextValue == 2) {
var nextPos2 = this._gridPos(temp_num2 - 1);
var nextValue2 = this.fCheckForObjects(nextPos2.temp_x, nextPos2.temp_y);
if (nextValue2) {
this.moveTheBall = true;
this.fStartMove(section_mc, -5, true, nextPos, 0);
} else {
this.fStopMove();
}
} else {
this.fStopMove();
}
} else {
this.fStopMove();
}
};
cPusher.prototype.fStopMove = function () {
this.moveSection = 0;
mc_root.fSetActive(false);
};
cPusher.prototype.fStartMove = function (mc, value, vis, nextPos, setNum) {
this.moveSection++;
if (mc.extended != vis) {
this.intervalID = setInterval(this, "fMoveSection", 25, mc, value, vis);
mc.extended = vis;
mc_root.fSetGridSquare(nextPos, setNum);
} else {
clearInterval(this.intervalID);
var temp = mc_root.onClick[this.state];
this[temp]();
}
};
cPusher.prototype.fMoveSection = function (mc, value, box_vis) {
if (box_vis) {
mc._visible = true;
}
this.move_count++;
mc._x = mc._x + value;
if (this.moveTheBall) {
mc_root.stepBall(value, this.rotation, box_vis);
}
if (this.move_count > 3) {
this.move_count = 0;
if (!box_vis) {
mc._visible = false;
}
clearInterval(this.intervalID);
var temp = mc_root.onClick[this.state];
this[temp]();
}
};
cPusher.prototype.fCheckForObjects = function (xx, yy) {
return(mc_root.grid_array[xx][yy]);
};
cPusher.prototype._gridPos = function (distance) {
var temp_x = this.gridx;
var temp_y = this.gridy;
var temp_array = mc_root.rotationProp_array[this.rotation];
if (temp_array[0] == "x") {
temp_x = temp_x + (distance * temp_array[1]);
} else {
temp_y = temp_y + (distance * temp_array[1]);
}
return({temp_x:temp_x, temp_y:temp_y});
};
cPusher.prototype.killMe = function () {
clearInterval(this.intervalID);
delete this.onRelease;
delete this.fMoveSection;
if (this.state == 2) {
this.moveSection = 0;
} else {
this.moveSection = 10;
}
};
placeBall = function (numx, numy) {
mc_root.grid_array[numx][numy] = 2;
var temp_mc = game_mc.attachmovie("ball_mc", "ball_mc", mc_root.pusher_counter++, {_x:numx * 20, _y:numy * 20});
temp_mc.pos_obj = {temp_x:numx, temp_y:numy};
};
stepBall = function (amount, rotation, box_vis) {
var my_mc = game_mc.ball_mc;
var rot_obj = mc_root.rotationProp_array[rotation];
var direction = (amount * rot_obj[1]);
if (rot_obj[0] == "x") {
game_mc.ball_mc._x = game_mc.ball_mc._x + direction;
} else {
game_mc.ball_mc._y = game_mc.ball_mc._y + direction;
}
game_mc.ball_mc.move_count++;
if (my_mc.move_count > 3) {
var toAdd;
var setGridTo;
if (box_vis) {
setGridTo = 0;
} else {
setGridTo = 1;
}
if (amount > 0) {
toAdd = rot_obj[1];
} else {
toAdd = -rot_obj[1];
}
mc_root.fSetGridSquare(my_mc.pos_obj, setGridTo);
if (rot_obj[0] == "x") {
my_mc.pos_obj.temp_x = my_mc.pos_obj.temp_x + toAdd;
} else {
my_mc.pos_obj.temp_y = my_mc.pos_obj.temp_y + toAdd;
}
mc_root.fSetGridSquare(my_mc.pos_obj, 2);
clearInterval(my_mc.intervalID);
my_mc.move_count = 0;
mc_root.checkEndGame();
}
};
fSetGridSquare = function (pos_obj, num) {
mc_root.grid_array[pos_obj.temp_x][pos_obj.temp_y] = num;
};
placeHole = function (numx, numy) {
mc_root.grid_array[numx][numy] = 1;
var temp_mc = game_mc.attachmovie("hole_mc", "hole_mc", mc_root.pusher_counter++, {_x:numx * 20, _y:numy * 20});
temp_mc.pos_obj = {temp_x:numx, temp_y:numy};
};
checkEndGame = function () {
if (game_mc.ball_mc.hitTest(game_mc.hole_mc)) {
mc_root.fStopPushers();
mc_root.animateBallFall();
}
};
animateBallFall = function () {
mc_root.intervalShrink = setInterval(mc_root, "fShrinkBall", 40);
};
fShrinkBall = function () {
var tempBall_mc = game_mc.ball_mc;
var ballScale = tempBall_mc._xscale;
ballScale = ballScale - (((100 - ballScale) / 10) + 3);
tempBall_mc._xscale = (tempBall_mc._yscale = ballScale - 5);
if (!tempBall_mc.origx) {
tempBall_mc.origx = tempBall_mc._x;
tempBall_mc.origy = tempBall_mc._y;
}
tempBall_mc._x = tempBall_mc.origx + ((100 - ballScale) / 10);
tempBall_mc._y = tempBall_mc.origy + ((100 - ballScale) / 10);
if (ballScale <= 0) {
clearInterval(mc_root.intervalShrink);
mc_root.callNextLevel();
}
};
startLevel = function () {
if (mc_root.progress_num <= mc_root.num_levels) {
mc_root.resetGrid();
var temp_mc = mc_root.attachMovie("levelPage_mc", "levelPage_mc", 11);
temp_mc.levelBox_mc.dyn_txt.text = "level " + mc_root.progress_num;
} else {
mc_root.startCutScene();
}
};
startCutScene = function () {
mc_root.removeAllElements();
var temp_mc;
if (mc_root.progress_num > mc_root.num_levels) {
mc_root.gotoAndPlay("cutscene_last");
} else {
var temp_ref = mc_root["animation" + mc_root.progress_num];
if (temp_ref != undefined) {
mc_root.gotoAndPlay(temp_ref);
} else {
temp_mc = mc_root.attachMovie("cutScene_mid", "cutPage_mc", 11);
}
}
temp_mc.levelBox_mc.dyn_txt.text = "level " + mc_root.progress_num;
};
callNextLevel = function () {
mc_root.progress_num++;
mc_root.saveDataToLocal();
mc_root.startCutScene();
};
loadCurrentLevel = function () {
temp_func = mc_root.createLevel[mc_root.progress_num];
temp_func();
mc_root.gotoAndStop("levelbegin");
};
callPrevLevel = function () {
mc_root.progress_num = this.num_txt.text;
mc_root.startCutScene();
};
removeAllElements = function () {
mc_root.grid_array.length = 0;
mc_root.game_holder.removeMovieclip();
};
resetGrid = function () {
removeAllElements();
game_mc = mc_root.attachMovie("grid_mc", "game_holder", 10);
mc_root.fSetActive(false);
game_mc._y = (game_mc._x = 50);
var i = setLength;
while (i--) {
mc_root.grid_array[i] = new Array();
var j = mc_root.setWidth;
while (j--) {
mc_root.grid_array[i][j] = 1;
}
}
mc_root.buildLevelNumbers();
};
createCounters = function () {
var temp_mc = mc_root.attachMovie("counter_mc", "counter_mc", 15);
mc_root.updateCounters();
};
updateCounters = function () {
mc_root.totalPar_num = mc_root.totalPar_num + mc_root.moveCounter;
mc_root.moveCounter = 0;
temp_mc = mc_root.counter_mc;
temp_mc.move_count.dyn_txt.text = "MOVES : " + mc_root.moveCounter;
temp_mc.level_count.dyn_txt.text = "LEVEL : " + mc_root.progress_num;
temp_mc.par_count.dyn_txt.text = "PAR : " + mc_root.par;
};
incrementMoveCounter = function () {
mc_root.moveCounter++;
mc_root.counter_mc.move_count.dyn_txt.text = "MOVES : " + mc_root.moveCounter;
};
buildLevelNumbers = function () {
var temp_mc = mc_root.createEmptyMovieClip("level_num_holder", 99);
var temp2_mc;
var temp_num;
if (mc_root.completedLevels > mc_root.num_levels) {
temp_num = mc_root.num_levels;
} else {
temp_num = mc_root.completedLevels;
}
var i = 1;
while (i <= temp_num) {
temp2_mc = temp_mc.attachMovie("levelButton", "levelButton" + i, i);
temp2_mc._x = 20;
temp2_mc._y = 45 + (i * 10);
temp2_mc.num_txt.text = i;
temp2_mc.onRelease = callPrevLevel;
i++;
}
};
fStopPushers = function () {
for (var prop in game_mc) {
temp_mc = game_mc[prop];
temp_mc.killMe();
}
return(undefined);
};
var createdId = ("userPrefs" + mc_root.uniqueID);
var userProfile_so = SharedObject.getLocal(createdId);
if (mc_root.userProfile_so.data.completedLevels_num) {
mc_root.progress_num = (mc_root.completedLevels = mc_root.userProfile_so.data.completedLevels_num);
} else {
var bestScore = new Array();
var worstScore = new Array();
var parScore = new Array();
mc_root.userProfile_so.data.best = bestScore;
mc_root.userProfile_so.data.worst = worstScore;
mc_root.userProfile_so.data.par = parScore;
}
mc_root.userProfile_so.onStatus = function (infoObject) {
if (infoObject.code == "SharedObject.Flush.Success") {
} else if (infoObject.code == "SharedObject.Flush.Failed") {
}
};
saveDataToLocal = function () {
var _so_Data = mc_root.userProfile_so.data;
if (mc_root.progress_num > mc_root.completedLevels) {
if (mc_root.progress_num > mc_root.num_levels) {
_so_Data.completedLevels_num = (mc_root.completedLevels = mc_root.num_levels);
} else {
_so_Data.completedLevels_num = (mc_root.completedLevels = mc_root.progress_num);
}
}
if ((_so_Data.worst[mc_root.progress_num - 1] < mc_root.moveCounter) || (!_so_Data.worst[mc_root.progress_num - 1])) {
_so_Data.worst[mc_root.progress_num - 1] = mc_root.moveCounter;
}
if (((_so_Data.best[mc_root.progress_num - 1] > mc_root.moveCounter) && (mc_root.moveCounter > 0)) || (!_so_Data.best[mc_root.progress_num - 1])) {
_so_Data.best[mc_root.progress_num - 1] = mc_root.moveCounter;
}
if (mc_root.par > 0) {
_so_Data.par[mc_root.progress_num - 1] = mc_root.par;
}
var requiredSpace = (mc_root.userProfile_so.getSize() + 10240);
var saveAttempt = mc_root.userProfile_so.flush(requiredSpace);
if (saveAttempt == false) {
System.showSettings(1);
} else if (saveAttempt == true) {
} else if (saveAttempt == "pending") {
}
};
fCreateScoreCard = function () {
var _so_Data = mc_root.userProfile_so.data;
var temp_width = mc_root.stageWidth;
var temp_height = mc_root.stageHeight;
var startWidth = ((temp_width - 230) / 2);
var startHeight = (10 + ((temp_height - (mc_root.num_levels * 13)) / 2));
var temp_mc = mc_root.createEmptyMovieClip("cover_mc", 500);
temp_mc.beginFill(16777215);
temp_mc.moveTo(0, 0);
temp_mc.lineTo(temp_width, 0);
temp_mc.lineTo(temp_width, temp_height);
temp_mc.lineTo(0, temp_height);
temp_mc.lineTo(0, 0);
temp_mc.endFill();
game_mc._visible = false;
mc_root.counter_mc._visible = false;
mc_root.level_num_holder._visible = false;
temp_mc = mc_root.createEmptyMovieClip("scoreCard_mc", 501);
var temp_num = 0;
temp_mc.attachMovie("firstCardLine_mc", "firstCardLine_mc" + temp_num, temp_num, {_x:startWidth, _y:startHeight - 13});
var i = 0;
while (i < mc_root.num_levels) {
temp_num = i + 1;
var temp2_mc = temp_mc.attachMovie("scoreCardLine_mc", "scoreCardLine_mc" + temp_num, temp_num);
temp2_mc._x = startWidth;
temp2_mc._y = startHeight + (i * 13);
if (temp_num < 10) {
temp2_mc.level_txt.Text = "0" + temp_num;
} else {
temp2_mc.level_txt.Text = "" + temp_num;
}
temp2_mc.best_txt.Text = _so_Data.best[temp_num];
temp2_mc.worst_txt.Text = _so_Data.worst[temp_num];
temp2_mc.par_txt.Text = _so_Data.par[temp_num];
i++;
}
var temp3_mc = temp_mc.attachMovie("closeBtn_mc", "closeBtn_mc", temp_num + 1, {_x:startWidth + 196, _y:startHeight - 27});
temp3_mc.onRollover = function () {
this.gotoAndStop(2);
};
temp3_mc.onRollOut = (temp3_mc.onDragOut = (temp3_mc.onReleaseOutside = function () {
this.gotoAndStop(1);
}));
temp3_mc.onRelease = function () {
game_mc._visible = true;
mc_root.counter_mc._visible = true;
mc_root.level_num_holder._visible = true;
mc_root.cover_mc.removeMovieClip();
mc_root.scoreCard_mc.removeMovieClip();
};
};
fRemoveAllSharedData = function () {
var _so_Data = mc_root.userProfile_so.data;
_so_Data.worst = [];
_so_Data.best = [];
_so_Data.par = [];
_so_Data.completedLevels_num = (mc_root.completedLevels = (mc_root.progress_num = 1));
var requiredSpace = mc_root.userProfile_so.getSize();
var saveAttempt = mc_root.userProfile_so.flush(requiredSpace);
if (saveAttempt == false) {
} else if (saveAttempt == true) {
} else if (saveAttempt == "pending") {
}
mc_root.game_holder.removeMovieclip();
mc_root.counter_mc.removeMovieclip();
mc_root.level_num_holder.removeMovieclip();
mc_root.cutPage_mc.removeMovieClip();
mc_root.scoreCard_mc.removeMovieclip();
mc_root.gotoAndPlay(1);
};
keyListener = new Object();
keyListener.onKeyUp = function () {
var pressed = Key.getCode();
if (pressed == 82) {
mc_root.fRemoveAllSharedData();
}
};
Key.addListener(keyListener);
Frame 18
animation6 = "animation5";
animation11 = "animation10";
setLength = 10;
setWidth = 10;
stageWidth = 300;
stageHeight = 300;
mc_root.buildLevelNumbers();
mc_root.levelBox_mc.dyn_txt.text = "level " + mc_root.progress_num;
mc_root.createCounters();
this.stop();
Frame 20
this.stop();
Frame 21
this.gotoAndStop("levelbegin");
Frame 71
mc_root.attachMovie("cutScene_mid", "cutPage_mc", 11);
this.gotoAndStop("levelBegin");
Frame 139
mc_root.attachMovie("cutScene_mid", "cutPage_mc", 11);
this.gotoAndStop("levelBegin");
Frame 152
this.stop();
Frame 153
this.gotoAndStop("levelbegin");
Symbol 12 Button
on (release) {
getURL ("http://www.macromedia.com/go/getflashplayer", "_blank");
}
Symbol 32 MovieClip [levelPage_mc] Frame 5
mc_root.loadCurrentLevel();
Symbol 32 MovieClip [levelPage_mc] Frame 7
mc_root.updateCounters();
Symbol 32 MovieClip [levelPage_mc] Frame 12
this.removeMovieClip();
Symbol 42 MovieClip [helpScene2_mc] Frame 1
var temp_count = 1;
killMe = function () {
this.gotoAndStop(50);
};
Symbol 42 MovieClip [helpScene2_mc] Frame 49
this.stop();
this.temp_count++;
if (this.temp_count < 3) {
this.gotoAndPlay(2);
}
Symbol 48 MovieClip [helpScene1_mc] Frame 1
var temp_count = 1;
killMe = function () {
this.gotoAndStop(50);
};
Symbol 48 MovieClip [helpScene1_mc] Frame 49
this.stop();
this.temp_count++;
if (this.temp_count < 3) {
this.gotoAndPlay(2);
}
Symbol 56 Button
on (release) {
mc_root.startLevel();
}
Symbol 60 Button
on (release) {
mc_root.fCreateScoreCard();
}
Symbol 71 MovieClip [box_mc] Frame 1
this.stop();
Symbol 71 MovieClip [box_mc] Frame 2
this.stop();
Symbol 71 MovieClip [box_mc] Frame 3
this.stop();
Symbol 71 MovieClip [box_mc] Frame 4
this.stop();
Symbol 76 MovieClip [cutScene_mid] Frame 1
mc_root.play();
this.dyn_txt_mc.dyn_txt.text = "level " + mc_root.progress_num;
Symbol 76 MovieClip [cutScene_mid] Frame 29
mc_root.startLevel();
this.removeMovieClip();
Symbol 77 MovieClip [closeBtn_mc] Frame 1
this.stop();
Symbol 90 MovieClip Frame 1
this.play();
Symbol 90 MovieClip Frame 30
this.stop();
_parent.play();
Symbol 91 Button
on (release) {
mc_root.startCutScene();
this.play();
}
Symbol 109 Button
on (release) {
getURL ("http://www.dyson.co.uk/game/", "_blank");
}
Symbol 110 Button
on (release) {
getURL ("http://www.dyson.co.uk/game/play_next_10.asp", "_top");
}
Symbol 111 MovieClip Frame 362
this.stop();