Frame 1
if (false) {
}
Frame 3
function reverseAction(mc, frame) {
var Cpos = mc._currentframe;
_root.createEmptyMovieClip("emptyMc", _root.getNextHighestDepth());
emptyMc.onEnterFrame = function () {
Cpos--;
mc.gotoAndStop(Cpos);
if (Cpos == frame) {
trace("end");
emptyMc.onEnterFrame = null;
this.removeMovieClip();
}
};
}
function displayScores(mc) {
names = _root.topnickname.split(",");
scores = _root.topscore.split(",");
i = 0;
while (i <= 19) {
if (names[i] == undefined) {
names[i] = "";
}
if (scores[i] == undefined) {
scores[i] = "";
}
eval ((mc + ".n") + (i + 1)).text = names[i];
eval ((mc + ".p") + (i + 1)).text = scores[i];
i++;
}
}
function cancelSubmit(mc, useridframe) {
trace("cancelSubmit");
delete _root.send_lv.onLoad;
_root.skipsubmit = true;
mc.gotoAndStop(useridframe);
}
function _newUser() {
getURL (_root._registerurl, "_blank");
}
function _trackClickThru(mc) {
if (_root._allowclick) {
mc.hit_area.onRelease = function () {
getURL (_root._clickthru, "_blank");
};
} else {
mc.hit_area.useHandCursor = false;
}
}
function _resetUsername(txt) {
txt.onSetFocus = function () {
if ((this.text == _root._msgValid) or (this.text == "Connecting Error!")) {
this.text = "";
}
};
}
function _readSharedData() {
_root.so_uname = ((_root._sostatus.data.so_uname == undefined) ? "" : (_root._sostatus.data.so_uname));
_root.so_jumpframe = ((_root._sostatus.data.so_jumpframe == undefined) ? "" : (_root._sostatus.data.so_jumpframe));
_root.so_sound = ((_root._sostatus.data.so_sound == undefined) ? 1 : (_root._sostatus.data.so_sound));
_resetString = _root._sostatus.data.so_resetString;
trace("==========================");
trace((("_root.so_jumpframe : " + _root._sostatus.data.so_jumpframe) + " : ") + _root.so_uname);
if (_root.so_jumpframe != "") {
_assignValue(_resetString);
_root.createEmptyMovieClip("eye", _root.getNextHighestDepth());
_root.eye.onEnterFrame = function () {
if ((_root.getBytesTotal() == _root.getBytesLoaded()) and (_root.getBytesLoaded() > 50000)) {
_root.intro = 0;
_root._sostatus.data.so_jumpframe = "";
_root._sostatus.flush();
this.onEnterFrame = null;
_root.gotoAndStop(_root.so_jumpframe);
}
};
} else {
_root.intro = 1;
play();
}
_root.uname = _root.so_uname;
_root.gamesound = _root.so_sound;
}
function _writeSharedData(jumpframe, jumpurl, _resetString) {
_root._sostatus.data.so_uname = ((_root.so_uname == undefined) ? "" : (_root.so_uname));
_root._sostatus.data.so_sound = _root.so_sound;
_root._sostatus.data.so_resetString = _resetString;
_root._sostatus.data.so_jumpframe = jumpframe;
_root._sostatus.flush();
if (jumpurl != "") {
getURL (jumpurl);
} else {
gotoAndPlay (1);
}
}
function _assignValue(_val) {
_arr = new Array();
_arr = _val.split("|");
i = 0;
while (i < (_arr.length / 2)) {
_var2 = ((i * 2) + 1) - 1;
_var3 = _var2 + 1;
_root[_arr[_var2]] = _arr[_var3];
i++;
}
}
function _playAgain(mc, jumpframe, _resetString) {
_root.so_uname = _root.uname;
if ((_root.gurl != undefined) and (_root.gurl != "")) {
_writeSharedData(jumpframe, _root.gurl, _resetString);
} else {
_root.intro = 0;
_assignValue(_resetString);
mc.gotoAndStop(jumpframe);
}
}
stop();
var allSounds = new Sound();
_root.scoreArr = [0, 0, 0, 0, 0, 0, 0, 0];
_root._google_txt.text = "Magic finger";
_root._gameid = "1026";
_root._clickthru = "http://www.games2win.com";
_root._customer_id = "games2win";
_root.uname = "";
_root.submiturl = "/gamesubmit.asp";
_root.topnickname = [];
_root.topscore = [];
dataSubmit = function (myname, myscore, mygameid, destmc, useridframe, connframe, top10frame, _ord) {
trace("dataSubmit");
_root.skipsubmit = false;
myname = myname.trim();
_loc = eval (destmc);
if (((myname.length == 0) or (myname == "Invalid Nickname!")) or (myname == "Connecting Error!")) {
_root.uname = "Invalid Nickname!";
} else {
_root.send_lv = new LoadVars();
_root.send_lv.onLoad = function (success) {
if (success and (!_root.skipsubmit)) {
if (_root.send_lv.isreg == 0) {
_root.uname = "Invalid Nickname!";
_loc.gotoAndStop(useridframe);
} else if (_root.send_lv.isreg == 1) {
_root.topnickname = send_lv.topnicknames;
_root.topscore = send_lv.topscores;
_loc.gotoAndPlay(top10frame);
}
}
};
_root.send_lv.nickname = myname;
_root.send_lv.points = myscore;
_root.send_lv.gameid = mygameid;
_root.send_lv.order = _ord;
_root.send_lv.sendAndLoad(submiturl, _root.send_lv, "POST");
_loc.gotoAndPlay(connframe);
}
};
String.prototype.trim = function () {
var _local3 = 0;
var _local2 = this.length;
white = new Object();
white._32 = 1;
_local2--;
while (white["_" + ord(this.charAt(_local2))]) {
}
while (white["_" + ord(this.charAt(_local3++))]) {
}
return(this.slice(_local3 - 1, _local2 + 1));
};
_root._registerurl = "http://www.games2win.com/register.asp";
_root._allowclick = true;
var _sostatus = SharedObject.getLocal("gamestatus", "/");
_readSharedData();
Frame 8
stop();
Frame 28
stop();
Instance of Symbol 20 MovieClip in Frame 28
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
_parent.txt.text = ("Loaded " + percent) + "%";
if (loaded == total) {
_root.gotoAndPlay("lblgameintro");
}
}
Frame 35
stop();
trace(return1);
if (return1 == "true") {
book.gotoAndPlay("flip");
}
Instance of Symbol 223 MovieClip in Frame 35
on (release) {
this.gotoAndPlay(_currentframe + 1);
}
Frame 44
stop();
Frame 49
stop();
Frame 58
stop();
Frame 67
stop();
Symbol 250 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 251 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 252 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 6 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 13 MovieClip Frame 150
stop();
_root.gotoAndStop("lblloader");
Symbol 43 Button
on (release) {
_parent.pos = "story";
_parent.gotoAndPlay("flip");
}
Symbol 44 Button
on (release) {
_parent.pos = "instruction";
_parent.gotoAndPlay("flip");
}
Symbol 45 Button
on (release) {
_parent.pos = "index";
_parent.gotoAndPlay("flip");
}
Symbol 51 Button
on (release) {
_root.reverseAction(_parent, 36);
}
Symbol 52 Button
on (release) {
_parent.pos1 = _parent.pos;
_parent.pos = "index";
_parent.gotoAndPlay("flip");
}
Symbol 79 Button
on (release) {
_root.level = 1;
_parent.pos1 = _parent.pos;
_parent.pos = "mode";
_parent.gotoAndPlay("flip");
}
Symbol 80 Button
on (release) {
_root.level = 2;
_parent.pos1 = _parent.pos;
_parent.pos = "mode";
_parent.gotoAndPlay("flip");
}
Symbol 81 Button
on (release) {
_root.level = 3;
_parent.pos1 = _parent.pos;
_parent.pos = "mode";
_parent.gotoAndPlay("flip");
}
Symbol 82 Button
on (release) {
_root.level = 6;
_parent.pos1 = _parent.pos;
_parent.pos = "mode";
_parent.gotoAndPlay("flip");
}
Symbol 83 Button
on (release) {
_root.level = 5;
_parent.pos1 = _parent.pos;
_parent.pos = "mode";
_parent.gotoAndPlay("flip");
}
Symbol 84 Button
on (release) {
_root.level = 4;
_parent.pos1 = _parent.pos;
_parent.pos = "mode";
_parent.gotoAndPlay("flip");
}
Symbol 85 Button
on (release) {
_root.level = 7;
_parent.pos1 = _parent.pos;
_parent.pos = "mode";
_parent.gotoAndPlay("flip");
}
Symbol 92 Button
on (release) {
_root.splicePic = 3;
_parent.pos1 = _parent.pos;
_parent.pos = "game";
_parent.gotoAndPlay("flip");
}
Symbol 93 Button
on (release) {
_root.splicePic = 4;
_parent.pos1 = _parent.pos;
_parent.pos = "game";
_parent.gotoAndPlay("flip");
}
Symbol 94 Button
on (release) {
_root.splicePic = 5;
_parent.pos1 = _parent.pos;
_parent.pos = "game";
_parent.gotoAndPlay("flip");
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 112 Button
on (release) {
_parent.gameIndex = true;
_parent.pos1 = _parent.pos;
_parent.pos = "index";
_parent.play();
}
Symbol 116 Button
on (release) {
_parent.gotoAndStop("gameOver");
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 48
_parent.pos = "levelcompleted";
_parent.nextFrame();
Symbol 137 Button
on (release) {
_root.level++;
_parent.pos1 = _parent.pos;
_parent.pos = "index";
_parent.play();
}
Symbol 159 Button
on (release) {
_root._newUser();
}
Symbol 160 Button
on (release) {
mystr = "return1|true";
_root._playAgain(_root, "lblgameintro", mystr);
}
Symbol 161 Button
on (release) {
trace((((_root.score + " ") + _root._gameid) + " ") + _root.uname);
_root.dataSubmit(_root.uname, _root.score, _root._gameid, this, "gameOver", "connecting", "highScore");
}
Symbol 165 Button
on (release) {
_root.cancelSubmit(this, "gameOver");
}
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 2
stop();
Symbol 203 MovieClip Frame 3
stop();
Symbol 203 MovieClip Frame 4
stop();
Symbol 203 MovieClip Frame 5
stop();
Instance of Symbol 86 MovieClip in Symbol 203 MovieClip Frame 5
onClipEvent (load) {
vol = _root.allSounds.getVolume();
if (vol < 0) {
stopAllSounds();
a = false;
} else {
a = true;
}
}
onClipEvent (enterFrame) {
if ((vol > 0) and (a == true)) {
vol = vol - 5;
_root.allSounds.setVolume(vol);
} else if (a == true) {
a = false;
stopAllSounds();
_root.allSounds.setVolume(100);
}
trace("vol" + vol);
}
Symbol 203 MovieClip Frame 6
stop();
Symbol 203 MovieClip Frame 7
function Jpos() {
if (gameCom == false) {
gameCom = true;
trace((this._x + " ") + this._y);
trace((((this.Pvalue1 + " this.Pvalue1 this.Pvalue") + this.Pvalue) + " Name ") + this._name);
Pname = this.Pvalue;
tile_arr = Pname.split(":");
pos1 = tile_arr[1];
pos2 = tile_arr[2];
if (pos1 != 0) {
p1 = int(pos1) - 1;
na = (("tile:" + p1) + ":") + pos2;
if (Ppos == na) {
_root.moveMade++;
trace((("UP" + na) + "name Ppos") + Ppos);
var _local5 = this._y;
var _local6 = this._y - tileH;
var _local4 = 0.1;
var _local3 = this;
ballTween = new mx.transitions.Tween(_local3, "_y", easeType, _local5, _local6, _local4, true);
Ppos = this.Pvalue;
this.Pvalue = na;
}
}
if (pos2 != (row - 1)) {
p2 = int(pos2) + 1;
na = (("tile:" + pos1) + ":") + p2;
if (Ppos == na) {
_root.moveMade++;
trace((("Right" + na) + "name Ppos") + Ppos);
var _local5 = this._x;
var _local6 = this._x + tileW;
var _local4 = 0.1;
var _local3 = this;
ballTween = new mx.transitions.Tween(_local3, "_x", easeType, _local5, _local6, _local4, true);
Ppos = this.Pvalue;
this.Pvalue = na;
}
}
if (pos2 != 0) {
p2 = int(pos2) - 1;
na = (("tile:" + pos1) + ":") + p2;
if (Ppos == na) {
_root.moveMade++;
trace((("Left" + na) + "name Ppos") + Ppos);
var _local5 = this._x;
var _local6 = this._x - tileW;
var _local4 = 0.1;
var _local3 = this;
ballTween = new mx.transitions.Tween(_local3, "_x", easeType, _local5, _local6, _local4, true);
Ppos = this.Pvalue;
this.Pvalue = na;
}
}
if (pos1 != (row - 1)) {
p1 = int(pos1) + 1;
na = (("tile:" + p1) + ":") + pos2;
if (Ppos == na) {
_root.moveMade++;
trace((("Down" + na) + "name Ppos") + Ppos);
var _local5 = this._y;
var _local6 = this._y + tileH;
var _local4 = 0.1;
var _local3 = this;
ballTween = new mx.transitions.Tween(_local3, "_y", easeType, _local5, _local6, _local4, true);
Ppos = this.Pvalue;
this.Pvalue = na;
}
}
gameComplete();
}
}
function timerFun() {
_root.tim++;
}
function gameComplete() {
ga = true;
i = 0;
while (i < row) {
j = 0;
while (j < col) {
mc = container[(("tile:" + i) + ":") + j];
if (mc._name != mc.Pvalue) {
i = row;
trace((mc._name + " hello ") + mc.Pvalue);
j = col;
ga = false;
}
j++;
}
i++;
}
if (ga == true) {
mc = container[Ppos1];
Pname = mc._name;
pos_arr = Pname.split(":");
mc.masker._width = _root.tileW;
mc.masker._height = _root.tileH;
posX = mc.masker._width * int(pos_arr[2]);
posY = mc.masker._height * int(pos_arr[1]);
mc.masker._x = posX;
mc.masker._y = posY;
mc.masker1._visible = true;
gameTim.gotoAndPlay(2);
gameCom = true;
} else {
gameCom = false;
}
}
stop();
_root.tim = 0;
if (_root.splicePic == 3) {
submit_mc._visible = false;
}
_root.score = ((((((_root.scoreArr[0] + _root.scoreArr[1]) + _root.scoreArr[2]) + _root.scoreArr[3]) + _root.scoreArr[4]) + _root.scoreArr[5]) + _root.scoreArr[6]) + _root.scoreArr[7];
_root.moveMade = 0;
depth = 0;
thumb.gotoAndStop(_root.level);
var tile_arr = new Array();
var Dtile_arr = new Array();
col = (row = _root.splicePic);
imageW = 413;
imageH = 413;
_root.imageW = 342;
_root.imageW = 342;
tileW = imageW / row;
tileH = imageH / col;
_root.tileH = tileH;
_root.tileW = tileW;
trace((tileW + " ") + tileH);
i = 0;
while (i < row) {
j = 0;
while (j < col) {
name = (("tile:" + i) + ":") + j;
tile_arr[depth++] = name;
j++;
}
i++;
}
spliceNum = tile_arr.length - 1;
gameCom = false;
ss2 = tile_arr.splice(spliceNum, 1);
Dtile_arr = tile_arr;
Snum = Math.floor(spliceNum / 2);
i = 1;
while (i <= Snum) {
ss = Dtile_arr.splice(random(Dtile_arr.length), 1);
ss1 = Dtile_arr.splice(random(Dtile_arr.length), 1);
name = ss[0];
mc1 = container.attachMovie("tile_cont", name, depth--);
mc1.empty = false;
mc1.Pvalue = ss1[0];
mc1.Pvalue1 = ss[0];
mc1.onRelease = Jpos;
name = ss1[0];
mc = container.attachMovie("tile_cont", name, depth--);
mc.empty = false;
mc.Pvalue1 = ss1[0];
mc.Pvalue = ss[0];
mc.onRelease = Jpos;
Pname = mc.Pvalue;
Pname1 = mc1.Pvalue;
tile_arr = Pname.split(":");
tile_arr1 = Pname1.split(":");
posX = tileW * (int(tile_arr[2]) - int(tile_arr1[2]));
posY = tileH * (int(tile_arr[1]) - int(tile_arr1[1]));
mc._x = posX;
mc._y = posY;
posX = tileW * (int(tile_arr1[2]) - int(tile_arr[2]));
posY = tileH * (int(tile_arr1[1]) - int(tile_arr[1]));
mc1._x = posX;
mc1._y = posY;
trace(((((((((tile_arr + " ") + tile_arr1) + " ") + mc._x) + " ") + mc._y) + mc1._x) + " ") + mc1._y);
i++;
}
trace((Dtile_arr.length + " ") + Dtile_arr);
if (Dtile_arr.length == 1) {
ss = Dtile_arr.splice(random(Dtile_arr.length), 1);
ss1 = ss2;
name = ss[0];
mc1 = container.attachMovie("tile_cont", name, depth--);
mc1.empty = false;
mc1.Pvalue = ss1[0];
mc1.onRelease = Jpos;
name = ss1[0];
mc = container.attachMovie("tile_cont", name, depth--);
mc.empty = false;
mc.lastTile = true;
mc.Pvalue = ss[0];
mc.onRelease = Jpos;
Pname = mc.Pvalue;
Pname1 = mc1.Pvalue;
tile_arr = Pname.split(":");
tile_arr1 = Pname1.split(":");
posX = tileW * (int(tile_arr[2]) - int(tile_arr1[2]));
posY = tileH * (int(tile_arr[1]) - int(tile_arr1[1]));
posX = tileW * (int(tile_arr1[2]) - int(tile_arr[2]));
posY = tileH * (int(tile_arr1[1]) - int(tile_arr[1]));
mc1._x = posX;
mc1._y = posY;
Ppos = mc.Pvalue;
Ppos1 = name;
} else {
name = ss2[0];
mc = container.attachMovie("tile_cont", name, 0);
mc.lastTile = true;
mc.empty = true;
mc.Pvalue = ss2[0];
mc.onRelease = Jpos;
Ppos1 = (Ppos = name);
}
int1 = setInterval(this, "timerFun", 1000);
Symbol 203 MovieClip Frame 8
thumb.gotoAndStop(_root.level);
tempscore = _root.moveMade * 0.1;
tempscore = 10000 / tempscore;
_root.score = tempscore;
if ((_root.scoreArr[_root.level] < tempscore) and (_root.splicePic != 3)) {
_root.scoreArr[_root.level] = Math.round(tempscore);
}
txt.gotoAndStop(_root.level);
clearInterval(int1);
stop();
Symbol 203 MovieClip Frame 9
username_txt.onSetFocus = function () {
if (username_txt.text == "Invalid Nickname!") {
username_txt.text = "";
}
};
Selection.setFocus("username_txt");
stopAllSounds();
stop();
Symbol 203 MovieClip Frame 10
stop();
Symbol 203 MovieClip Frame 11
stop();
_root.displayScores(this);
Symbol 217 MovieClip Frame 1
pos1 = "main";
Symbol 217 MovieClip Frame 15
gotoAndStop(pos1);
Symbol 217 MovieClip Frame 36
stop();
page1.gotoAndStop(pos1);
Symbol 217 MovieClip Frame 37
trace("sw " + pos);
if (_root.return1 == "true") {
_root.return1 = "tttt";
pos1 = "gameOver";
pos = "index";
}
page2.gotoAndPlay(pos1);
page.gotoAndStop(pos);
bb.useHandCursor = false;
bb1.useHandCursor = false;
bb2.useHandCursor = false;
Symbol 217 MovieClip Frame 51
trace("s " + pos);
if (((pos == "story") or (pos == "instruction")) or (pos == "game")) {
stop();
} else {
pos1 = pos;
gotoAndStop ("mainpage");
}
bb.useHandCursor = false;
Symbol 217 MovieClip Frame 52
bb.useHandCursor = false;
Symbol 217 MovieClip Frame 57
page2.gotoAndStop(pos);
Symbol 217 MovieClip Frame 67
gotoAndStop ("flipend");
Symbol 223 MovieClip Frame 1
stop();
mc = this.createEmptyMovieClip("mc3", 1);
mc.onEnterFrame = function () {
if (num == undefined) {
num = _root.allSounds.getVolume();
}
trace(num);
if (num == 100) {
this.removeMovieClip();
}
num = num + 5;
_root.allSounds.setVolume(num);
};
Symbol 223 MovieClip Frame 2
stop();
mc = this.createEmptyMovieClip("mc3", 1);
mc.onEnterFrame = function () {
if (num == undefined) {
num = _root.allSounds.getVolume();
}
trace(num);
num = num - 5;
_root.allSounds.setVolume(num);
if (num == 0) {
this.removeMovieClip();
}
};
Symbol 246 MovieClip Frame 1
stop();
Symbol 249 MovieClip [tile_cont] Frame 1
name = (((this._name + " ") + this._x) + " ") + this._y;
maskee.gotoAndStop(_root.level + 1);
masker1._width = (masker._width = _root.tileW);
masker1._height = (masker._height = _root.tileH);
if (this.lastTile == true) {
masker1._visible = false;
masker._width = 0;
masker._height = 0;
}
var pos_arr = new Array();
Pname = this._name;
pos_arr = Pname.split(":");
posX = masker._width * int(pos_arr[2]);
posY = masker._height * int(pos_arr[1]);
masker._x = posX;
masker._y = posY;
masker1._x = posX;
masker1._y = posY;