Frame 1
Stage.showMenu = false;
stop();
Instance of Symbol 38 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(35555);
}
Frame 2
bgsndClip.gotoAndPlay(2);
Frame 3
_global.startregame = function () {
var _local2 = _global;
clearInterval(_local2.waittime);
clearInterval(_local2.timer_val);
_local2.time_over = false;
_local2.levelnum = 0;
_local2.score = 0;
_local2.bonus = 0;
_local2.reuse = 40;
_local2.images_array = [0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 2, 5, 3, 1];
_local2.rowcol_array = [0, 3, 3, 4, 4, 4, 4, 5, 4, 4, 4, 5, 5, 5, 3, 5, 5, 5, 5, 4, 5, 3, 3, 4, 4, 4, 4, 5, 4, 4, 4, 5, 5, 5, 3, 5, 5, 5, 5, 4, 5];
_local2.bonus_array = [0, 350, 350, 550, 500, 450, 400, 700, 400, 350, 300, 600, 550, 500, 300, 650, 600, 600, 600, 450, 600, 350, 350, 550, 500, 450, 400, 700, 400, 350, 300, 600, 550, 500, 300, 650, 600, 600, 600, 450, 600];
};
_global.wait = function (mevents) {
clearInterval(_global.waittime);
mevents.gotoAndPlay(mevents._currentframe + 1);
};
Number.prototype.Zeros = function (nums) {
var _local5 = new String(this);
var _local2 = "";
var _local3 = _local5.length;
while (_local3 < nums) {
_local2 = _local2 + "0";
_local3++;
}
_local2 = _local2 + _local5;
return(_local2);
};
Array.prototype.tilechanges = function () {
tl = this.length;
var _local4 = new Array(tl);
while (this.length) {
var _local3 = Number(this.splice(Math.floor(Math.random() * this.length), 1).toString());
var _local2 = Number(this.splice(Math.floor(Math.random() * this.length), 1).toString());
if (isNaN(_local2)) {
do {
_local2 = Math.floor(Math.random() * tl);
} while (_local2 == _local3);
_local4[_local3] = _local4[_local2];
_local4[_local2] = _local3;
continue;
}
_local4[_local3] = _local2;
_local4[_local2] = _local3;
}
return(_local4);
};
Array.prototype.retilechanges = function () {
var _local2 = this;
var _local4;
var _local3 = _local2.length;
for (_local4 in _local2) {
_local2.splice(Math.floor(Math.random() * _local3), 0, _local2.pop());
}
};
MovieClip.prototype.settileTween = function (pEndX, pEndY, pFric, pFricFac) {
var _local2 = this;
_local2.endX = pEndX;
_local2.endY = pEndY;
_local2.friction = pFric;
_local2.fricFac = pFricFac;
_local2.x = _local2._x;
_local2.y = _local2._y;
_local2.atEnd = false;
_local2.onEnterFrame = _local2.tileTween;
};
MovieClip.prototype.tileTween = function () {
var _local2 = this;
var _local5 = _local2.endX - _local2.x;
var _local6 = _local2.endY - _local2.y;
var _local4 = _local5 / _local2.friction;
var _local3 = _local6 / _local2.friction;
_local2.friction = Math.max(1, (_local2.friction = _local2.friction * _local2.fricFac));
((Math.abs(_local5) > 0.5) ? ((_local2.x = _local2.x + _local4)(_local2.x = _local2.x + _local4)) : ((_local2.x = _local2.endX)));
((Math.abs(_local6) > 0.5) ? ((_local2.y = _local2.y + _local3)(_local2.y = _local2.y + _local3)) : ((_local2.y = _local2.endY)));
_local2._x = _local2.x;
_local2._y = _local2.y;
if ((_local2.x == _local2.endX) && (_local2.y == _local2.endY)) {
_local2.atEnd = true;
delete _local2.onEnterFrame;
}
};
Frame 4
if ((++i) < 60) {
gotoAndPlay (3);
}
count = 0;
countsound = 0;
activate = 0;
_root.slidemusic_X = 0;
_root.slidesound_X = 0;
Frame 5
_root.snd1.musicObj.start(0, 10000);
scoreboard_mc.onEnterFrame = function () {
var _local4 = _global;
var _local3 = this;
_local3.score_txt.text = _local4.score.Zeros(1);
_local3.bonus_txt.text = _local4.bonus.Zeros(3);
_local3.levelNumber_txt.text = _local4.levelnum;
};
startregame();
passButton._visible = false;
stop();
BlockTile = false;
Instance of Symbol 108 MovieClip in Frame 5
onClipEvent (enterFrame) {
_root.dbInterface.updateScore(_root.scoreboard_mc.score_txt.text);
}
Frame 6
stop();
var PassUsed = 0;
Frame 7
stop();
Symbol 24 MovieClip Frame 1
Symbol 25 MovieClip Frame 1
correctObj = new Sound(this);
correctObj.attachSound("sound2");
Symbol 26 MovieClip Frame 1
wrongObj = new Sound(this);
wrongObj.attachSound("button");
Symbol 27 MovieClip Frame 1
newObj = new Sound(this);
newObj.attachSound("sound1");
Symbol 37 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
stop();
LoaderBlk.useHandCursor = false;
Instance of Symbol 37 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
total = _parent._parent.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _parent._parent.getBytesLoaded();
percent = int((loaded / total) * 100);
gotoAndStop(percent);
perText = percent + "%";
if (percent >= 100) {
_parent.gotoAndStop(2);
}
}
Symbol 38 MovieClip Frame 2
stop();
_parent.gotoAndStop(2);
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
play();
Symbol 41 MovieClip Frame 5285
gotoAndPlay (2);
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 100
stop();
Symbol 56 MovieClip Frame 1
titleMc.autoSize = true;
titletxt = "YOU ARE LISTENING TO-CORBIN BLEU";
Symbol 65 Button
on (release) {
_parent.bgsndClip.stop();
gotoAndStop (3);
}
Symbol 70 Button
on (release) {
_parent.bgsndClip.play();
gotoAndStop (2);
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
stop();
Instance of Symbol 61 MovieClip in Symbol 71 MovieClip Frame 2
onClipEvent (load) {
speed = 0.5;
titleClipX = _parent.titleClip._x + 180;
}
onClipEvent (enterFrame) {
if ((_parent.titleClip.hitTest(_parent.hit1) || (_parent.titleClip.hitTest(_parent.hit2))) || (_parent.titleClip.hitTest(_parent.hit3))) {
_parent.titleClip._x = _parent.titleClip._x - speed;
} else if (_parent.hit3._x < _parent.titleClip._x) {
_parent.titleClip._x = _parent.titleClip._x - speed;
} else {
_parent.titleClip._x = titleClipX;
}
}
Symbol 71 MovieClip Frame 3
stop();
Symbol 80 Button
on (release) {
soundController.gotoAndStop(2);
gotoAndPlay (3);
}
Symbol 84 Button
on (release) {
getURL ("http://www.ikoncity.com", "_blank");
}
Symbol 100 Button
on (release) {
passButton._visible = true;
_root.gotoAndStop(6);
_root.snd3.wrongObj.start();
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
stop();
soundBlocker.useHandCursor = false;
Symbol 106 Button
on (release) {
PassUsed = 1;
}
Symbol 116 MovieClip Frame 1
_visible = false;
Symbol 120 Button
on (release) {
var first_var = this;
first_var._parent.gotoAndPlay(1);
_root.snd3.wrongObj.start();
first_var._parent._parent.smalltile_mc.removeMovieClip();
first_var._parent.word_mc.removeMovieClip();
}
Symbol 124 MovieClip Frame 1
function tilesetposition() {
tilepos = 320 / _global.rowcol;
tiles_arr = new Array();
var _local3 = 0;
while (_local3 < _global.tf) {
mclip = this.createEmptyMovieClip(("tile" + _local3) + "_mc", 100 + _local3);
mclip._x = (_local3 % _global.rowcol) * tilepos;
mclip._y = int(_local3 / _global.rowcol) * tilepos;
mclip.nr = _local3;
mcstyle = mclip.createEmptyMovieClip("mymask_mc", 0);
mcstyle.beginFill(16711680, 0);
mcstyle.moveTo(1, 1);
mcstyle.lineTo(tilepos + 1, 1);
mcstyle.lineTo(tilepos + 1, tilepos + 1);
mcstyle.lineTo(1, tilepos + 1);
mcstyle.endFill();
mcstyle = mclip.attachMovie(image, "picture_mc", 1);
mcstyle._x = (-mclip._x) + 1;
mcstyle._y = (-mclip._y) + 1;
mcstyle = mclip.createEmptyMovieClip("blink_mc", 2);
mcstyle.beginFill(16777215, 30);
mcstyle.moveTo(1, 1);
mcstyle.lineTo(tilepos + 1, 1);
mcstyle.lineTo(tilepos + 1, tilepos + 1);
mcstyle.lineTo(1, tilepos + 1);
mcstyle.endFill();
mcstyle._visible = false;
mcstyle = mclip.createEmptyMovieClip("lines_mc", 3);
mcstyle.lineStyle(1, 16777215, 35);
mcstyle.moveTo(1, tilepos + 1);
mcstyle.lineTo(1, 1);
mcstyle.lineTo(tilepos, 1);
mcstyle.lineStyle(1, 0, 35);
mcstyle.lineTo(tilepos, tilepos);
mcstyle.lineTo(1, tilepos);
mcstyle.lineStyle(1, 16777215, 15);
mcstyle.moveTo(2, tilepos);
mcstyle.lineTo(2, 2);
mcstyle.lineTo(tilepos - 1, 2);
mcstyle.lineStyle(1, 0, 15);
mcstyle.lineTo(tilepos - 1, tilepos - 1);
mcstyle.lineTo(2, tilepos - 1);
mcstyle = mclip.createEmptyMovieClip("frame_mc", 4);
mcstyle.lineStyle(2, 0, 100);
mcstyle.moveTo(2, 2);
mcstyle.lineTo(tilepos, 2);
mcstyle.lineTo(tilepos, tilepos);
mcstyle.lineTo(2, tilepos);
mcstyle.lineTo(2, 2);
mcstyle._visible = false;
tiles_arr[_local3] = _local3;
_local3++;
}
}
function gameover() {
if ((_global.levelnum % _global.reuse) == 0) {
_global.images_array = [0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 2, 5, 3, 1];
trace("******** reseted ********");
}
if (_global.time_over) {
word_mc.text1_txt.text = "Time over!";
word_mc.text2_txt.text = ("\rYou got\r" + _global.score) + "\rpoints.";
word_mc.nextpuzz_button._visible = false;
_parent.endClip.gotoAndStop(2);
} else if (_parent.PassUsed == 1) {
word_mc.text1_txt.text = "";
word_mc.text2_txt.text = "";
_parent.PassUsed = 2;
word_mc.nextpuzz_button._visible = true;
} else {
word_mc.text1_txt.text = ("WELL DONE !!!,\r you have completed level :" + _global.levelnum) + ".";
if ((_global.levelnum % _global.reuse) != 0) {
tempLevel = _global.levelnum % _global.reuse;
} else {
tempLevel = _global.reuse;
}
word_mc.text2_txt.text = ("Time taken =" + ((_global.bonus_array[tempLevel] - _global.bonus) / 10)) + " seconds.";
_global.score = _global.score + _global.bonus;
if (_parent.PassUsed == 0) {
_global.score = _global.score + (30 * _global.levelnum);
word_mc.text2_txt.text = word_mc.text2_txt.text + ("\r Pass Button Bonus = " + (30 * _global.levelnum));
}
word_mc.nextpuzz_button._visible = true;
}
}
function initialiser1() {
_global.rowcol = _global.rowcol_array[(_global.levelnum % _global.reuse) + 1];
_global.tf = _global.rowcol * _global.rowcol;
_global.bonus = _global.bonus_array[(_global.levelnum % _global.reuse) + 1];
_global.levelnum++;
_global.mClick = 1;
_global.time_over = false;
image = Number(_global.images_array.splice(Math.floor(Math.random() * _global.images_array.length), 1).toString()).Zeros(2);
l_mc._xscale = 0;
mc = this.attachMovie(image, "tiles_mc", 1);
mc._alpha = 0;
this.tiles_mc._x = (this.tiles_mc._y = 1);
text1_txt.text = "Level: " + _global.levelnum;
text2_txt.text = ((_global.tf + " tiles\r") + (_global.bonus / 10)) + " seconds time";
stop();
}
initialiser1();
this.onEnterFrame = function () {
var _local2 = this;
var _local4 = _local2.mc.getBytesTotal();
var _local5 = _local2.mc.getBytesLoaded();
var _local3 = (100 * _local5) / _local4;
_local2.l_mc._xscale = _local3;
if ((_local3 >= 100) && (_local4 > 0)) {
_local2.gotoAndPlay(2);
text3_txt.text = "get ready...";
delete _local2.onEnterFrame;
}
};
Symbol 124 MovieClip Frame 2
function tileshuffle() {
var _local3 = 0;
while (_local3 < _global.tf) {
mc = this[("tile" + _local3) + "_mc"];
mc.picture_mc.setMask(mc.mymask_mc);
_local3++;
}
((_global.rowcol == 2) ? ((tiles_arr = tiles_arr.tilechanges())(tiles_arr = tiles_arr.tilechanges())(tiles_arr = tiles_arr.tilechanges())) : (tiles_arr.retilechanges()));
_global.waittime = setInterval(wait, 1500, this);
}
function initialiser2() {
mc = this.attachMovie(image, "smalltile_mc", 2);
mc._alpha = 0;
mc._x = refxMc._x;
mc._y = refyMc._y;
mc._xscale = (mc._yscale = 40);
stop();
}
initialiser2();
this.onEnterFrame = function () {
var _local3 = this;
var _local4 = _local3.mc.getBytesTotal();
var _local5 = _local3.mc.getBytesLoaded();
if ((_local4 == _local5) && (_local4 > 0)) {
_local3.mc.onEnterFrame = function () {
var _local2 = this;
_local2._alpha = _local2._alpha + 10;
if (_local2._alpha >= 100) {
_local2._alpha = 100;
delete _local2.onEnterFrame;
}
};
_global.waittime = setInterval(wait, 3000, _local3);
delete _local3.onEnterFrame;
}
};
Symbol 124 MovieClip Frame 3
function tilearrange() {
var _local4 = 0;
while (_local4 < _global.tf) {
mc = this[("tile" + _local4) + "_mc"];
mc.settileTween(160 - (tilepos * 0.5), 160 - (tilepos * 0.5), 4, 0.95);
_local4++;
}
_root.snd4.newObj.start();
_global.waittime = setInterval(wait, 1500, this);
}
_global.waittime = setInterval(wait, 3000, this);
stop();
this.tiles_mc.onEnterFrame = function () {
var _local2 = this;
if ((_local2._alpha + 10) >= 100) {
_local2._alpha = 100;
delete _local2.onEnterFrame;
}
};
Symbol 124 MovieClip Frame 4
function tilerearrange() {
var _local4 = 0;
while (_local4 < _global.tf) {
mc = this[("tile" + tiles_arr[_local4]) + "_mc"];
mc.pos = _local4;
mc.settileTween((_local4 % _global.rowcol) * tilepos, int(_local4 / _global.rowcol) * tilepos, 4, 0.95);
_local4++;
}
_root.snd4.newObj.start();
_global.waittime = setInterval(wait, 1500, this);
}
tilesetposition();
_global.tDepth = 1000;
_root.snd2.correctObj.start();
stop();
this.onEnterFrame = function () {
var _local2 = this;
var _local3 = _local2.mclip.picture_mc.getBytesTotal();
var _local4 = _local2.mclip.picture_mc.getBytesLoaded();
if ((_local3 == _local4) && (_local3 > 0)) {
_local2.gotoAndPlay(5);
delete _local2.onEnterFrame;
}
};
Symbol 124 MovieClip Frame 5
function tileremover() {
var _local3 = 0;
while (_local3 < _global.tf) {
var _local4 = this[("tile" + _local3) + "_mc"];
_local4.removeMovieClip();
_local3++;
}
_global.waittime = setInterval(wait, 2500, this);
}
this.tiles_mc._visible = false;
tileshuffle();
stop();
Symbol 124 MovieClip Frame 6
tilearrange();
stop();
Symbol 124 MovieClip Frame 7
tilerearrange();
stop();
Symbol 124 MovieClip Frame 8
function bonus_reducer() {
var _local5 = _global;
var _local6 = this;
if (_parent.BlockTile == false) {
_local5.bonus = _local5.bonus - 1;
if (_local5.bonus <= 0) {
clearInterval(_local5.timer_val);
_local5.time_over = true;
_parent.setDeactive();
var _local4 = 0;
while (_local4 < _local5.tf) {
_local6[("tile" + _local4) + "_mc"].removeMovieClip();
_local4++;
}
gotoAndPlay (10);
} else if (_parent.PassUsed == 1) {
_parent.passButton._visible = false;
clearInterval(_local5.timer_val);
var _local4 = 0;
while (_local4 < _local5.tf) {
_local6[("tile" + _local4) + "_mc"].removeMovieClip();
_local4++;
}
gotoAndPlay (10);
}
}
}
function clearEvents(mevents) {
var _local1 = mevents;
delete _local1.onRelease;
delete _local1.onRollOver;
delete _local1.onDragOver;
delete _local1.onRollOut;
delete _local1.onDragOut;
}
var i = 0;
while (i < _global.tf) {
mc = this[("tile" + i) + "_mc"];
mc.onRollOver = (mc.onDragOver = function () {
this.blink_mc._visible = true;
});
mc.onRollOut = (mc.onDragOut = function () {
this.blink_mc._visible = false;
});
mc.onRelease = function () {
var _local7 = _global;
var _local5 = this;
if ((++_local7.mClick) == 2) {
_local7.mClick = 0;
}
if (!_local7.mClick) {
_local7.firstTile = _local5;
_local7.firstTileNr = _local5.nr;
_local7.firstPos = _local5.pos;
_local7.firstTile.frame_mc._visible = true;
_root.snd2.correctObj.start();
} else {
_local7.secTile = _local5;
_local7.secTileNr = _local5.nr;
_local7.secPos = _local5.pos;
_local7.firstTile.frame_mc._visible = false;
if (_local7.secTileNr == _local7.firstTileNr) {
_root.snd2.correctObj.start();
} else {
_local7.firstTile.swapDepths(_local7.tDepth++);
_local7.secTile.swapDepths(_local7.tDepth++);
_local7.firstTile.settileTween((_local7.secPos % _local7.rowcol) * tilepos, int(_local7.secPos / _local7.rowcol) * tilepos, 3, 0.95);
_local7.secTile.settileTween((_local7.firstPos % _local7.rowcol) * tilepos, int(_local7.firstPos / _local7.rowcol) * tilepos, 3, 0.95);
_local7.firstTile.pos = _local7.secPos;
_local7.secTile.pos = _local7.firstPos;
_root.snd4.newObj.start();
if ((_local7.firstTile.pos == _local7.firstTile.nr) && (_local7.secTile.pos == _local7.secTile.nr)) {
_local7.score = _local7.score + (15 * _global.levelnum);
} else if ((_local7.firstTile.pos == _local7.firstTile.nr) || (_local7.secTile.pos == _local7.secTile.nr)) {
_local7.score = _local7.score + (5 * _global.levelnum);
}
var _local8 = 0;
var _local4 = 0;
while (_local4 < _local7.tf) {
var _local6 = _local5._parent[("tile" + _local4) + "_mc"];
if (_local6.nr == _local6.pos) {
_local8++;
}
_local4++;
}
if (_local8 == _local7.tf) {
_local5._parent.onEnterFrame = function () {
var _local3 = this;
if (_global.firstTile.atEnd == true) {
_local3.tiles_mc._visible = true;
_global.waittime = setInterval(wait, 500, _local3);
delete _local3.onEnterFrame;
}
};
clearInterval(_local7.timer_val);
_local4 = 0;
while (_local4 < _local7.tf) {
_local5._parent.clearEvents(_local5._parent[("tile" + _local4) + "_mc"]);
_local4++;
}
}
}
}
};
i++;
}
_global.timer_val = setInterval(this, "bonus_reducer", 100);
stop();
Symbol 124 MovieClip Frame 9
tileremover();
stop();
Symbol 124 MovieClip Frame 10
gameover();
stop();
this.tiles_mc.onEnterFrame = function () {
var _local2 = this;
_local2._alpha = _local2._alpha - 10;
if (_local2._alpha <= 10) {
_local2._alpha = 10;
_local2._parent.word_mc.swapDepths(3);
delete _local2.onEnterFrame;
}
};
Symbol 124 MovieClip Frame 11
stop();
Symbol 134 Button
on (release) {
_parent.gotoAndStop(2);
}
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 2
stop();
endScore = _parent.scoreboard_mc.score_txt.text;
stopAllSounds();
blocks.useHandCursor = false;
_parent.bgsndClip.stop();
_parent.soundController.gotoAndStop(1);