Frame 1
function gameScrapWin() {
_level98.ScrapWin._visible = true;
if (_root.scrapLoad_ok != undefined) {
_level98._x = _root.Scrap_x;
_level98._y = _root.Scrap_y;
}
}
function gameScrapMovieLoad() {
if (_root.scrapLoad_ok == undefined) {
var getScrap = new LoadVars();
getScrap.onLoad = function (success) {
if (success) {
if (getScrap.gameScrap != "") {
_root.db_uid = getScrap.dbUid;
var _local2 = (((((getScrap.gameScrap + "?cgroup=") + _root.dirName) + "&uid=") + getScrap.dbUid) + "&scrapUrl=") + getScrap.loaderUrl;
loadMovieNum (_local2, 98);
_level98._x = _root.Scrap_x;
_level98._y = _root.Scrap_y;
_root.scrapLoad_ok = true;
}
}
};
var _local2 = new LoadVars();
_local2.game_id = _root.uid;
_local2.cgroup = _root.dirName;
_local2.sendAndLoad("http://www.flad.co.kr/System/gameserver/getScrapOpenGame.proc.php", getScrap, "POST");
}
}
function ViewGameRank(sel) {
sel = "goURL";
if (sel) {
getURL ((("http://www.gameangel.com/" + _root.dirName) + "/?process=read&uid=") + _root.db_uid, "_blank");
} else {
var _local2 = XMLclass;
_local2 = new XMLclass();
_local2.GetXMLURL = "http://www.flad.co.kr/System/gameserver/open_game_rank.xml.php";
_local2.dirname = _root.dirName;
_local2.game_id = _root.uid;
_local2.myVarName = "gcode";
_local2.goXmlUrl(_root.gcode);
}
}
System.security.allowDomain("*");
System.useCodepage = true;
Stage.showMenu = false;
this.stop();
if (_root.dirName == undefined) {
var dirName = "game_rank";
var uid = 1;
var gcode = "naver";
var openGameUrl = "http://www.flad.co.kr/System/gameserver/getGameOpenRank.xml.php";
var Scrap_x = 140;
var Scrap_y = 100;
this.gameScrapMovieLoad();
}
Frame 2
function selectInputWin() {
if (_root.selectFocus == "nickName") {
this.openNicknameWin();
} else {
return(undefined);
}
}
function openNicknameWin() {
if ((_root.msid != undefined) || (_root.NickName != undefined)) {
this.GAME.img_start._visible = true;
this.GAME.startButton.gotoAndStop("ON");
} else {
this.GAME.startButton.gotoAndStop("OFF");
this.GAME.inputNickNameWin._visible = true;
this.GAME.inputNickNameWin.NickName.restrict = "^ ";
Selection.setFocus(this.GAME.inputNickNameWin.input_NickName);
}
}
function Input_NickName_OK() {
if (!this.GAME.inputNickNameWin.NickName) {
_root.selectFocus = "nickName";
this.GAME.inputNickNameWin._visible = false;
this.openAlert("\uAC8C\uC784\uB7AD\uD0B9\uC5D0 \uB4F1\uB85D\uD560 \uB2C9\uB124\uC784\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694!");
return(undefined);
}
_root.NickName = this.GAME.inputNickNameWin.NickName;
this.GAME.inputNickNameWin._visible = false;
_root.gameAS.Game_Start();
}
function ViewGameRank(sel) {
sel = "goURL";
if (sel) {
getURL ((("http://www.gameangel.com/" + _root.dirName) + "/?process=read&uid=") + _root.db_uid);
} else {
var _local2 = XMLclass;
_local2 = new XMLclass();
_local2.GetXMLURL = "http://www.flad.co.kr/System/gameserver/open_game_rank.xml.php";
_local2.dirname = _root.dirName;
_local2.game_id = _root.uid;
_local2.myVarName = "gcode";
_local2.goXmlUrl(_root.gcode);
}
}
function openGcodeWin() {
if (_root.gcode == undefined) {
this.GAME.RESULT.gotoAndPlay("GCODE");
this.GAME.RESULT.inputGcodeWin.levelBonusTXT = this.levelBonusTXT;
this.GAME.RESULT.inputGcodeWin.timeBonusTXT = this.timeBonusTXT;
this.GAME.RESULT.inputGcodeWin.totalScoreTXT = this.totalScoreTXT;
return(undefined);
}
this.Input_Gcode_OK();
}
function Input_Gcode_OK() {
if (_root.gcode == undefined) {
var _local4 = Array();
if (!this.GAME.RESULT.inputGcodeWin.gCode) {
_root.openAlert("\uC774\uBA54\uC77C \uC8FC\uC18C\uB97C \uC815\uD655\uD788 \uC785\uB825\uD574\uC8FC\uC138\uC694!");
_root.selectFocus = "gCode";
return(undefined);
}
_local4 = this.GAME.RESULT.inputGcodeWin.gCode.split("@", 2);
if (_local4) {
var _local5 = _local4[1].indexOf(".");
if ((_local4.length != 2) || (_local5 <= 1)) {
_root.openAlert("\uC774\uBA54\uC77C \uC8FC\uC18C\uB97C \uC815\uD655\uD788 \uC785\uB825\uD574\uC8FC\uC138\uC694!");
_root.selectFocus = "gCode";
return(undefined);
}
}
_root.gcode = this.GAME.RESULT.inputGcodeWin.gCode;
}
var _local3 = XMLclass;
_local3 = new XMLclass();
if (_root.gameAS.playTime == 0) {
_local3.play_time = Math.floor((getTimer() - _root.gameAS.ts) / 1000);
} else {
_local3.play_time = Math.floor((getTimer() - _root.gameAS.playTime) / 1000);
}
trace("\uAC8C\uC784\uD50C\uB808\uC774\uC2DC\uAC04" + _local3.play_time);
_root.score = (_local3.play_point = _root.gameAS.score);
if (_root.msid != undefined) {
_local3.msid = _root.msid;
} else {
_local3.nickName = _root.NickName;
_local3.GetXMLURL = _root.openGameUrl;
}
_local3.dirname = _root.dirName;
_local3.game_id = _root.uid;
_local3.myVarName = "gcode";
_local3.goXmlUrl(_root.gcode);
}
function XMLgameResult(returnVar, returnMode) {
switch (returnMode) {
case "false" :
_root.selectFocus = "none";
this.openAlert(returnVar);
this.GAME.RESULT.gotoAndPlay("FALSEGAME");
if ((_root.selectFocus = "nickName")) {
this.GAME.startButton.gotoAndStop("OFF");
} else {
this.GAME.startButton.gotoAndStop("ON");
}
break;
case "openURL" :
getURL (returnVar, "_blank");
this.GAME.RESULT.gotoAndPlay("RESTART");
this.GAME.startButton.gotoAndStop("ON");
}
trace("\uB3CC\uB824\uBC1B\uC740 \uAC12:" + returnVar);
}
function XMLgameRank(nick, rank) {
_root.nickName = nick;
_root.gameRank = rank;
_root.GAME.RESULT.gotoAndPlay("RANK");
_root.GAME.RESULT.gameOverBoard.my_nickName = nick;
_root.GAME.RESULT.gameOverBoard.my_score = _root.score;
_root.GAME.RESULT.gameOverBoard.my_gameRank = rank;
}
function openAlert(myText) {
var _local4 = Math.ceil(myText.length / 12);
var _local3 = "";
var _local2 = 3;
while (_local2 >= _local4) {
_local3 = _local3 + newline;
_local2--;
}
this.GAME.winAlert._visible = true;
this.GAME.winAlert.info = _local3 + myText;
trace(myText);
}
this.stop();
var selectFocus = "nickName";
this.GAME.scrapLayer.swapDepths(6001);
this.GAME.scrapLayer._visible = false;
this.GAME.inputNickNameWin.swapDepths(5001);
this.GAME.inputNickNameWin._visible = false;
this.GAME.img_start.swapDepths(5000);
this.GAME.img_start._visible = false;
this.GAME.win_gamestop.swapDepths(6000);
this.GAME.win_gamestop._visible = false;
this.GAME.btn_gamestop._visible = false;
this.GAME.winAlert.swapDepths(5001);
this.GAME.winAlert._visible = false;
this.GAME.PAUSE.swapDepths(3000);
this.GAME.PAUSE._visible = false;
this.GAME.RESULT.swapDepths(5001);
this.openNicknameWin();
Instance of Symbol 362 MovieClip in Frame 2
//component parameters
onClipEvent (construct) {
gameVolume = 100;
testOn = false;
hintMax = 3;
tileSizeX = 34;
tileSizeY = 43;
}
Frame 8
stop();
Symbol 72 MovieClip [tiles] Frame 1
this.stop();
Symbol 85 MovieClip [ComLoading] Frame 1
this.per = 0;
this.num = 0;
this.f = 0;
this.ts = 0;
this.onEnterFrame = function () {
if (this.per >= 100) {
var _local4 = (getTimer() - this.ts) / 1000;
if (_local4 > this.delayTime) {
_parent.gotoAndPlay(this.nextFrameNum);
}
} else {
this.per = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this.BAR._xscale = this.per;
this.TXT = this.per + "% Load";
this.ts = getTimer();
}
this.BOX._rotation = this.BOX._rotation + 4;
};
this.stop();
Symbol 138 Button
on (release) {
getURL ("http://www.gameangel.com", "_blank");
}
Symbol 140 Button
on (release) {
getURL ("http://www.gameangel.com", "_blank");
}
Symbol 145 Button
on (release) {
_root.gotoAndStop("GAME", 1);
}
Symbol 151 Button
on (release) {
_root.gotoAndStop("DASH");
}
Symbol 160 Button
on (release) {
_root.ViewGameRank("goURL");
}
Symbol 165 Button
on (release) {
this._parent.gameScrapWin();
}
Symbol 166 MovieClip Frame 1
this.stop();
Symbol 381 MovieClip [__Packages.XMLclass] Frame 0
class XMLclass
{
var play_point, gameRank, msid, myVarName, game_id, nickName, play_time, sendURL;
function XMLclass () {
}
function goXmlUrl(sendOptionValue) {
if (play_point == 0) {
gameRank = 0;
_root.XMLgameResult("\uAC8C\uC784 \uC810\uC218\uAC00 0\uC810 \uC77C\uB54C\uB294 \uB7AD\uD0B9\uC5D0 \uB4F1\uB85D\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.", "false");
} else {
if (!msid) {
var _local3 = (((((((((GetXMLURL + "?nickName=") + nickName) + "&dirname=") + dirname) + "&game_id=") + game_id) + "&") + myVarName) + "=") + sendOptionValue;
} else {
var _local3 = (((((((((GetXMLURL + "?dirname=") + dirname) + "&game_id=") + game_id) + "&filename=") + msid) + "&") + myVarName) + "=") + sendOptionValue;
}
XMLparser(_local3);
trace(_local3);
}
}
function XMLparser(GetXMLURL) {
var GetXML = new XML();
GetXML.ignoreWhite = true;
XMLclass.prototype.play_point = play_point;
XMLclass.prototype.play_time = play_time;
GetXML.onLoad = function () {
if (GetXML.loaded == true) {
XMLclass.prototype.GetNodes(GetXML, "MakeXML");
delete GetXML;
}
};
GetXML.load(GetXMLURL);
}
function GetNodes(inputNode, sendFunc) {
var _local2 = inputNode.firstChild;
while (_local2 != null) {
if (_local2.firstChild.nodeValue != null) {
getXMLNodeName.push(_local2.nodeName);
getXMLNodeValue.push(_local2.firstChild.nodeValue);
}
if (_local2.firstChild.hasChildNodes() == true) {
GetNodes(_local2);
}
_local2 = _local2.nextSibling;
}
if (sendFunc == "MakeXML") {
MakeXML(getXMLNodeName, getXMLNodeValue);
} else if (sendFunc == "ReturnFlash") {
ReturnFlash(getXMLNodeName, getXMLNodeValue);
}
}
function SendXMLServer(InputXML) {
var GetXML2 = new XML();
GetXML2.ignoreWhite = true;
GetXML2.onLoad = function () {
if (GetXML2.loaded == true) {
XMLclass.prototype.GetNodes(GetXML2, "ReturnFlash");
}
};
trace(sendURL);
InputXML.sendAndLoad(sendURL, GetXML2);
trace("[\uC11C\uBC84\uB85C \uC804\uC1A1\uD560 XML \uD30C\uC77C \uB9CC\uB4E4\uAE30]");
trace(InputXML);
}
function MakeXML(nodeNames, nodeValues) {
if (nodeNames.length > 0) {
var _local5 = new XML();
var _local4;
var _local6;
_local5.xmlDecl = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
var _local8 = _local5.createElement("RANKGAME");
var _local2 = 0;
while (_local2 < nodeNames.length) {
if (nodeNames[_local2] == "sendURL") {
sendURL = nodeValues[_local2];
}
if ((nodeNames[_local2] != "result") && (nodeNames[_local2] != "process")) {
_local4 = _local5.createElement(nodeNames[_local2]);
_local8.appendChild(_local4);
_local6 = _local5.createTextNode(nodeValues[_local2]);
_local4.appendChild(_local6);
}
_local2++;
}
if (XMLclass.prototype.play_point) {
_local4 = _local5.createElement("play_point");
_local8.appendChild(_local4);
_local6 = _local5.createTextNode(XMLclass.prototype.play_point);
_local4.appendChild(_local6);
}
if (XMLclass.prototype.play_time) {
_local4 = _local5.createElement("play_time");
_local8.appendChild(_local4);
_local6 = _local5.createTextNode(XMLclass.prototype.play_time);
_local4.appendChild(_local6);
}
_local5.appendChild(_local8);
SendXMLServer(_local5);
}
getXMLNodeName.splice(0, getXMLNodeName.length);
getXMLNodeValue.splice(0, getXMLNodeValue.length);
}
function ReturnFlash(nodeNames, nodeValues) {
if (nodeNames.length > 0) {
var _local6 = "stop";
var _local7 = "false";
var _local3 = 0;
while (_local3 < nodeNames.length) {
switch (nodeNames[_local3]) {
case "gameRank" :
gameRank = nodeValues[_local3];
break;
case "nickName" :
nickName = nodeValues[_local3];
break;
case "result" :
_local7 = nodeValues[_local3];
break;
case "process" :
_local6 = nodeValues[_local3];
}
_local3++;
}
}
if (_local6 == "Rank") {
_root.XMLgameRank(nickName, gameRank);
} else {
_root.XMLgameResult(_local7, _local6);
}
}
var GetXMLURL = "http://www.flad.co.kr/System/gameserver/getGameInfoRank.xml.php";
var dirname = "game_spacial";
var getXMLNodeName = new Array();
var getXMLNodeValue = new Array();
}
Symbol 173 Button
on (release) {
_root.gameAS.soundOnOff();
}
Symbol 176 Button
on (release) {
_root.gameAS.soundOnOff();
}
Symbol 178 MovieClip Frame 1
this.stop();
Symbol 178 MovieClip Frame 6
this.stop();
Symbol 178 MovieClip Frame 11
this.stop();
Symbol 181 Button
on (release) {
_root.gameAS.pauseOnOff();
}
Symbol 184 Button
on (release) {
_root.gameAS.pauseOnOff();
}
Symbol 185 MovieClip Frame 1
this.stop();
Symbol 185 MovieClip Frame 6
this.stop();
Symbol 199 Button
on (release) {
_root.gameAS.hintUse();
}
Symbol 234 Button
on (release) {
_root.gameAS.Game_Start();
}
Symbol 236 Button
on (release) {
_root.gotoAndStop("INTRO", 1);
}
Symbol 240 Button
on (release) {
_root.ViewGameRank("goURL");
}
Symbol 241 MovieClip Frame 1
stop();
Symbol 261 Button
on (release) {
_root.Input_Gcode_OK();
}
Symbol 264 Button
on (release) {
_root.gameAS.Game_Start();
}
Symbol 267 Button
on (release) {
_root.gotoAndStop("INTRO", 1);
}
Symbol 272 Button
on (release) {
_root.gameScrapWin();
}
Symbol 276 MovieClip Frame 1
this.stop();
Symbol 276 MovieClip Frame 23
this._parent._parent.openGcodeWin();
this.stop();
Symbol 276 MovieClip Frame 46
this._parent._parent.openGcodeWin();
this.stop();
Symbol 276 MovieClip Frame 71
this._parent._parent.openGcodeWin();
this.stop();
Symbol 276 MovieClip Frame 72
trace("clear");
Symbol 276 MovieClip Frame 155
_root.gameAS.Game_Restart();
this.stop();
Symbol 276 MovieClip Frame 156
trace("allclear");
Symbol 276 MovieClip Frame 198
this._parent._parent.openGcodeWin();
this.stop();
Symbol 276 MovieClip Frame 199
this.stop();
trace("restart");
Symbol 276 MovieClip Frame 206
this.stop();
trace("false");
Symbol 276 MovieClip Frame 213
this.stop();
trace("Rank");
Symbol 276 MovieClip Frame 220
this.stop();
trace("gcode");
Symbol 317 Button
on (release) {
_root.gameAS.Game_Start();
}
Symbol 319 MovieClip Frame 1
this.stop();
Symbol 319 MovieClip Frame 6
this.stop();
Symbol 319 MovieClip Frame 11
this.stop();
Symbol 332 Button
on (release) {
_root.gameAS.Game_Stop();
}
Symbol 336 Button
on (release) {
_root.gameAS.Game_StopNo();
}
Symbol 342 Button
on (release) {
_root.gameAS.Game_StopYN();
}
Symbol 348 Button
on (release) {
this._visible = false;
this._parent._parent.selectInputWin();
}
Symbol 357 Button
on (release) {
this._parent._parent.Input_NickName_OK();
}
Symbol 362 MovieClip Frame 1
function helpOnOff() {
if (this.helpOn == true) {
this.helpView._visible = false;
this.helpMC.gotoAndStop("OFF");
this.helpOn = false;
} else {
if (this.helpView._totalframes > 1) {
this.helpView.gotoAndPlay(1);
}
this.helpView._visible = true;
this.helpMC.gotoAndStop("ON");
this.helpOn = true;
}
}
function soundOnOff() {
if (this.soundOn == true) {
this.soundMC.gotoAndStop("OFF");
this.soundOn = false;
stopAllSounds();
} else {
this.soundMC.gotoAndStop("ON");
this.soundOn = true;
bgsound.start();
}
}
function pauseOnOff() {
if (this.pauseOn == true) {
if (this.gameplay == true) {
this.pauseTime = this.pauseTime + (getTimer() - this.pts);
}
this.soundOnOff();
this.pauseView._visible = false;
this.gameMC.btn_gamestop._visible = true;
this.pauseMC.gotoAndStop("OFF");
this.pauseOn = false;
} else if (this.pauseOn == false) {
this.soundOnOff();
this.soundMC.gotoAndStop("PAUSE");
stopAllSounds();
this.pts = getTimer();
this.pauseView._visible = true;
this.gameMC.btn_gamestop._visible = false;
this.pauseMC.gotoAndStop("ON");
this.pauseOn = true;
}
}
function soundPlay(name, loop) {
if ((this.soundOn == true) && (this.gameVolume > 0)) {
this.soundObj[name].start(0, loop);
this.soundObj[name].setVolume(this.gameVolume);
}
}
function KeyDown_Options() {
var _local2 = Key.getCode();
if ((this.helpKeyDown == false) && (_local2 == 72)) {
this.helpKeyDown = true;
this.helpOnOff();
}
if ((this.soundKeyDown == false) && (_local2 == 83)) {
this.soundKeyDown = true;
this.soundOnOff();
}
if ((this.pauseKeyDown == false) && (_local2 == 80)) {
this.pauseKeyDown = true;
this.pauseOnOff();
}
}
function KeyUp_Options() {
var _local2 = Key.getCode();
if (_local2 == 72) {
this.helpKeyDown = false;
}
if (_local2 == 83) {
this.soundKeyDown = false;
}
if (_local2 == 80) {
this.pauseKeyDown = false;
}
}
function shuffle(Arr, Cnt) {
var _local6 = Arr.length;
if (Cnt == undefined) {
Cnt = _local6;
}
var _local2 = 0;
while (_local2 < Cnt) {
var _local4 = random(_local6);
var _local3 = random(_local6);
var _local5 = Arr[_local4];
Arr[_local4] = Arr[_local3];
Arr[_local3] = _local5;
_local2++;
}
}
function hintUse() {
if (((((this.fristSet == true) && (this.hintNum > 0)) && (this.hidden <= 0)) && (this.pauseOn == false)) && (this.gameplay == true)) {
this.gameMC.C1._visible = false;
this.gameMC.C2._visible = false;
this.Tile_Click(this.hintMC[0]);
this.Tile_Click(this.hintMC[1]);
this.hintMC = [undefined, undefined];
this.hintNum--;
}
}
function Game_Setup() {
if (this.helpOn == true) {
this.helpOnOff();
}
if (this.pauseOn == true) {
this.pauseOnOff();
}
this.hintMC = [undefined, undefined];
if (this.level < 1) {
this.level = 1;
}
this.timeMax = this.levelTime[this.level - 1];
this.tileTypeNum = this.levelTiles[this.level - 1];
this.tileStyle = [];
this.tileNum = [];
this.tileList = [];
var _local7 = 0;
while (_local7 < 30) {
this.tileStyle[_local7] = _local7 + 1;
this.tileNum[_local7] = 0;
this.tileList[_local7] = [];
_local7++;
}
this.shuffle(this.tileStyle, this.tileStyle.length + random(this.tileStyle.length));
_local7 = 0;
while (_local7 < 60) {
var _local6 = _local7 % this.tileTypeNum;
this.tileArr[_local7] = _local6;
this.tileArr[60 + _local7] = _local6;
_local7++;
}
this.shuffle(this.tileArr, this.tileArr.length + random(this.tileArr.length));
if (this.testOn == true) {
this.tileArr = [-1, -1, 12, -1, -1, -1, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, 11, 12, 12, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 11, 11, -1, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 11, 12, 12, 12, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 12, 11, 12, -1, 12, -1, 11, -1, -1, -1, -1, -1, -1, -1, -1, 11, -1, 12, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1];
}
if (this.fristSet == false) {
this._visible = false;
_local7 = 0;
var _local3 = 0;
while (_local3 <= (this.tileB + 1)) {
var _local4 = 0;
while (_local4 <= (this.tileA + 1)) {
var _local5 = this.gameMC.attachMovie("tiles", (("T" + _local4) + "x") + _local3, _local7++);
_local5.a = _local4;
_local5.b = _local3;
_local5.block = [-1, -1, -1, -1];
_local5._x = (_local5.a * this.tileSizeX) + this.displayX;
_local5._y = (_local5.b * this.tileSizeY) + this.displayY;
_local5.num = 0;
_local5.gotoAndStop(this.tileStyle[_local5.num]);
_local5.BUTTON.onPress = function () {
_root.gameAS.Tile_Click(this._parent);
};
_local5._visible = false;
_local4++;
}
_local3++;
}
}
this.fristSet = true;
this.times = 0;
this.tileMax = 0;
var _local3 = 1;
while (_local3 <= this.tileB) {
var _local4 = 1;
while (_local4 <= this.tileA) {
var _local5 = this.gameMC[(("T" + _local4) + "x") + _local3];
_local5._alpha = 100;
if (this.tileArr[this.tileMax] >= 0) {
_local5.num = this.tileArr[this.tileMax];
_local5.gotoAndStop(this.tileStyle[_local5.num]);
_local5._visible = true;
}
this.tileMax++;
_local4++;
}
_local3++;
}
var _local4 = 1;
while (_local4 <= 2) {
var _local5 = this.gameMC.attachMovie("cursor", "C" + _local4, _local4 + 200);
_local5.tMC = undefined;
_local5._visible = false;
_local4++;
}
this.hidden = 0;
this.gameMC.timeTXT = "00 : 00";
this.gameMC.levelTXT = this.level;
this.gameMC.tilesTXT = this.tileMax;
this.Check_Block_Set();
this.Tile_Check_All();
}
function Check_Block_Set() {
this.tileMax = 0;
var _local4 = 0;
while (_local4 <= (this.tileB + 1)) {
var _local3 = 0;
while (_local3 <= (this.tileA + 1)) {
var _local2 = this.gameMC[(("T" + _local3) + "x") + _local4];
if (_local2._visible == true) {
this.tileMax++;
this.tileNum[_local2.num]++;
this.tileList[_local2.num].push(_local2);
}
this.Check_Block(_local2);
_local3++;
}
_local4++;
}
this.Button_Visible(true);
}
function Check_Block(tMC) {
if (tMC != undefined) {
this.Check_Block_Line(tMC, 0, 1, 0);
this.Check_Block_Line(tMC, 1, 0, 1);
this.Check_Block_Line(tMC, 2, -1, 0);
this.Check_Block_Line(tMC, 3, 0, -1);
}
}
function Check_Block_Line(tMC, bn, sa, sb) {
var _local5 = tMC.a;
var _local4 = tMC.b;
var _local6 = 0;
var _local3 = 0;
while (_local3 < 100) {
_local5 = _local5 + sa;
_local4 = _local4 + sb;
var _local2 = this.gameMC[(("T" + _local5) + "x") + _local4];
if ((_local2 != undefined) && (_local2._visible == false)) {
_local6++;
} else {
break;
}
_local3++;
}
tMC.block[bn] = _local6;
}
function Check_Block_Side(tMC) {
if (tMC != undefined) {
this.Check_Block(tMC);
this.Check_Block_Side_Line(tMC, 0, 1, 0);
this.Check_Block_Side_Line(tMC, 1, 0, 1);
this.Check_Block_Side_Line(tMC, 2, -1, 0);
this.Check_Block_Side_Line(tMC, 3, 0, -1);
}
}
function Check_Block_Side_Line(tMC, bn, sa, sb) {
var _local4 = tMC.a;
var _local3 = tMC.b;
var _local5 = 0;
while (_local5 < 100) {
_local4 = _local4 + sa;
_local3 = _local3 + sb;
var _local2 = this.gameMC[(("T" + _local4) + "x") + _local3];
if (_local2 == undefined) {
break;
}
if (_local2._visible == true) {
this.Check_Block(_local2);
break;
}
if ((((_local4 < 0) || (_local3 < 0)) || (_local4 >= (this.tileA + 2))) || (_local3 >= (this.tileB + 2))) {
break;
}
this.Check_Block(_local2);
_local5++;
}
}
function draw_Line() {
if (this.lineXY.length > 1) {
this.lineMC.clear();
this.lineMC.lineStyle(3, 16777215);
this.lineMC.moveTo(this.lineXY[0][0], this.lineXY[0][1]);
var _local2 = 1;
while (_local2 < this.lineXY.length) {
this.lineMC.lineTo(this.lineXY[_local2][0], this.lineXY[_local2][1]);
_local2++;
}
this.lineMC._alpha = 100;
}
}
function make_Draw_Line(tMC1, tMC2, a1, b1, a2, b2) {
this.lineXY = [];
this.addLine(tMC1._x, tMC1._y);
if (a1 == undefined) {
} else if (a2 == undefined) {
this.addLine(a1, b1);
} else {
this.addLine(a1, b1);
this.addLine(a2, b2);
}
this.addLine(tMC2._x, tMC2._y);
}
function addLine(x, y, v) {
this.lineXY.push([x + this.halfX, y + this.halfY]);
}
function Tile_Click(tMC) {
if ((this.fristSet == false) || (this.pauseOn == true)) {
return(false);
}
if (this.gameMC.C2._visible == true) {
return(false);
}
var _local2 = 0;
if (this.gameMC.C1._visible == true) {
var _local4 = this.Tile_Check(this.gameMC.C1.tMC, tMC);
if (_local4 > 0) {
_local2 = 2;
this.hidden = this.hiddenTime;
this.draw_Line();
this.soundPlay("boom", 1);
this.gameMC.C1.gotoAndPlay(1);
this.gameMC.C2.gotoAndPlay(1);
this.Button_Visible(false);
this.ts = this.ts + (this.timeAdd * 1000);
} else {
this.gameMC.C1.tMC = undefined;
this.gameMC.C1._visible = false;
this.gameMC.C2.tMC = undefined;
this.gameMC.C2._visible = false;
this.soundPlay("warning", 1);
this.ts = this.ts - (this.timeDel * 1000);
}
} else {
_local2 = 1;
this.soundPlay("click", 1);
}
if (_local2 > 0) {
this.gameMC["C" + _local2].tMC = tMC;
this.gameMC["C" + _local2]._x = tMC._x;
this.gameMC["C" + _local2]._y = tMC._y;
this.gameMC["C" + _local2]._visible = true;
}
}
function Tile_Check_All() {
if (this.tileMax <= 0) {
return(true);
}
var _local4 = 0;
while (_local4 < this.tileTypeNum) {
var _local5 = this.tileList[_local4].length;
var _local3 = 0;
while (_local3 < (_local5 - 1)) {
var _local2 = _local3 + 1;
while (_local2 < _local5) {
if (this.Tile_Check(this.tileList[_local4][_local3], this.tileList[_local4][_local2]) > 0) {
this.hintMC[0] = this.tileList[_local4][_local3];
this.hintMC[1] = this.tileList[_local4][_local2];
return(true);
}
_local2++;
}
_local3++;
}
_local4++;
}
return(false);
}
function Tile_Check(tMC1, tMC2) {
if ((((tMC1._visible == true) && (tMC2._visible == true)) && (tMC1 != tMC2)) && (tMC1.num == tMC2.num)) {
if (tMC1.a > tMC2.a) {
var _local21 = tMC1;
tMC1 = tMC2;
tMC2 = _local21;
}
var _local5 = tMC2.a - tMC1.a;
var _local4 = tMC2.b - tMC1.b;
if ((_local5 == 0) && (_local4 < 0)) {
var _local21 = tMC1;
tMC1 = tMC2;
tMC2 = _local21;
}
_local4 = Math.abs(_local4);
if ((_local5 == 0) && ((tMC1.block[1] + 1) == _local4)) {
this.make_Draw_Line(tMC1, tMC2);
return(11);
}
if ((_local4 == 0) && ((tMC1.block[0] + 1) == _local5)) {
this.make_Draw_Line(tMC1, tMC2);
return(12);
}
if (tMC1.b < tMC2.b) {
if ((tMC1.block[0] >= _local5) && (tMC2.block[3] >= _local4)) {
this.make_Draw_Line(tMC1, tMC2, tMC2._x, tMC1._y);
return(21);
}
if ((tMC1.block[1] >= _local4) && (tMC2.block[2] >= _local5)) {
this.make_Draw_Line(tMC1, tMC2, tMC1._x, tMC2._y);
return(23);
}
var _local18 = tMC1.b - tMC1.block[3];
var _local16 = tMC2.b - tMC2.block[3];
var _local14 = tMC1.b + tMC1.block[1];
var _local13 = tMC2.b + tMC2.block[1];
var _local10 = ((_local18 > _local16) ? (_local18) : (_local16));
var _local9 = ((_local14 < _local13) ? (_local14) : (_local13));
var _local6 = tMC1.b + 1;
while (_local6 <= (tMC2.b - 1)) {
var _local8 = this.gameMC[(("T" + tMC1.a) + "x") + _local6];
if (_local8._visible == true) {
break;
}
if (((_local8.block[0] >= _local5) && (_local6 >= _local10)) && (_local6 <= _local9)) {
this.make_Draw_Line(tMC1, tMC2, tMC1._x, _local8._y, tMC2._x, _local8._y);
return(31);
}
_local6++;
}
_local6 = tMC2.b + 1;
while (_local6 <= _local9) {
var _local8 = this.gameMC[(("T" + tMC2.a) + "x") + _local6];
if (_local8._visible == true) {
break;
}
if (((_local8.block[2] >= _local5) && (_local6 >= _local10)) && (_local6 <= _local9)) {
this.make_Draw_Line(tMC1, tMC2, tMC1._x, _local8._y, tMC2._x, _local8._y);
return(31);
}
_local6++;
}
_local6 = tMC1.b - 1;
while (_local6 >= _local10) {
var _local8 = this.gameMC[(("T" + tMC1.a) + "x") + _local6];
if (_local8._visible == true) {
break;
}
if (((_local8.block[0] >= _local5) && (_local6 >= _local10)) && (_local6 <= _local9)) {
this.make_Draw_Line(tMC1, tMC2, tMC1._x, _local8._y, tMC2._x, _local8._y);
return(31);
}
_local6--;
}
var _local20 = tMC1.a - tMC1.block[2];
var _local19 = tMC2.a - tMC2.block[2];
var _local17 = tMC1.a + tMC1.block[0];
var _local15 = tMC2.a + tMC2.block[0];
var _local12 = ((_local20 > _local19) ? (_local20) : (_local19));
var _local11 = ((_local17 < _local15) ? (_local17) : (_local15));
var _local7 = tMC1.a + 1;
while (_local7 <= (tMC2.a - 1)) {
var _local8 = this.gameMC[(("T" + _local7) + "x") + tMC1.b];
if (_local8._visible == true) {
break;
}
if (((_local8.block[1] >= _local4) && (_local7 >= _local12)) && (_local7 <= _local11)) {
this.make_Draw_Line(tMC1, tMC2, _local8._x, tMC1._y, _local8._x, tMC2._y);
return(32);
}
_local7++;
}
_local7 = tMC2.a + 1;
while (_local7 <= _local11) {
var _local8 = this.gameMC[(("T" + _local7) + "x") + tMC2.b];
if (_local8._visible == true) {
break;
}
if (((_local8.block[3] >= _local4) && (_local7 >= _local12)) && (_local7 <= _local11)) {
this.make_Draw_Line(tMC1, tMC2, _local8._x, tMC1._y, _local8._x, tMC2._y);
return(32);
}
_local7++;
}
_local7 = tMC1.a - 1;
while (_local7 >= _local12) {
var _local8 = this.gameMC[(("T" + _local7) + "x") + tMC1.b];
if (_local8._visible == true) {
break;
}
if (((_local8.block[1] >= _local4) && (_local7 >= _local12)) && (_local7 <= _local11)) {
this.make_Draw_Line(tMC1, tMC2, _local8._x, tMC1._y, _local8._x, tMC2._y);
return(32);
}
_local7--;
}
} else {
if ((tMC1.block[0] >= _local5) && (tMC2.block[1] >= _local4)) {
this.make_Draw_Line(tMC1, tMC2, tMC2._x, tMC1._y);
return(22);
}
if ((tMC1.block[3] >= _local4) && (tMC2.block[2] >= _local5)) {
this.make_Draw_Line(tMC1, tMC2, tMC1._x, tMC2._y);
return(24);
}
var _local18 = tMC1.b - tMC1.block[3];
var _local16 = tMC2.b - tMC2.block[3];
var _local14 = tMC1.b + tMC1.block[1];
var _local13 = tMC2.b + tMC2.block[1];
var _local10 = ((_local18 > _local16) ? (_local18) : (_local16));
var _local9 = ((_local14 < _local13) ? (_local14) : (_local13));
var _local6 = tMC2.b + 1;
while (_local6 <= (tMC1.b - 1)) {
var _local8 = this.gameMC[(("T" + tMC2.a) + "x") + _local6];
if (_local8._visible == true) {
break;
}
if (((_local8.block[2] >= _local5) && (_local6 >= _local10)) && (_local6 <= _local9)) {
this.make_Draw_Line(tMC1, tMC2, tMC1._x, _local8._y, tMC2._x, _local8._y);
return(31);
}
_local6++;
}
_local6 = tMC1.b + 1;
while (_local6 <= _local9) {
var _local8 = this.gameMC[(("T" + tMC1.a) + "x") + _local6];
if (_local8._visible == true) {
break;
}
if (((_local8.block[0] >= _local5) && (_local6 >= _local10)) && (_local6 <= _local9)) {
this.make_Draw_Line(tMC1, tMC2, tMC1._x, _local8._y, tMC2._x, _local8._y);
return(31);
}
_local6++;
}
_local6 = tMC2.b - 1;
while (_local6 >= _local10) {
var _local8 = this.gameMC[(("T" + tMC2.a) + "x") + _local6];
if (_local8._visible == true) {
break;
}
if (((_local8.block[2] >= _local5) && (_local6 >= _local10)) && (_local6 <= _local9)) {
this.make_Draw_Line(tMC1, tMC2, tMC1._x, _local8._y, tMC2._x, _local8._y);
return(31);
}
_local6--;
}
var _local20 = tMC1.a - tMC1.block[2];
var _local19 = tMC2.a - tMC2.block[2];
var _local17 = tMC1.a + tMC1.block[0];
var _local15 = tMC2.a + tMC2.block[0];
var _local12 = ((_local20 > _local19) ? (_local20) : (_local19));
var _local11 = ((_local17 < _local15) ? (_local17) : (_local15));
var _local7 = tMC2.a + 1;
while (_local7 <= (tMC1.a - 1)) {
var _local8 = this.gameMC[(("T" + _local7) + "x") + tMC2.b];
if (_local8._visible == true) {
break;
}
if (((_local8.block[3] >= _local4) && (_local7 >= _local12)) && (_local7 <= _local11)) {
this.make_Draw_Line(tMC1, tMC2, _local8._x, tMC1._y, _local8._x, tMC2._y);
return(32);
}
_local7++;
}
_local7 = tMC1.a + 1;
while (_local7 <= _local11) {
var _local8 = this.gameMC[(("T" + _local7) + "x") + tMC1.b];
if (_local8._visible == true) {
break;
}
if (((_local8.block[3] >= _local4) && (_local7 >= _local12)) && (_local7 <= _local11)) {
this.make_Draw_Line(tMC1, tMC2, _local8._x, tMC1._y, _local8._x, tMC2._y);
return(32);
}
_local7++;
}
_local7 = tMC2.a - 1;
while (_local7 >= _local12) {
var _local8 = this.gameMC[(("T" + _local7) + "x") + tMC2.b];
if (_local8._visible == true) {
break;
}
if (((_local8.block[1] >= _local4) && (_local7 >= _local12)) && (_local7 <= _local11)) {
this.make_Draw_Line(tMC1, tMC2, _local8._x, tMC1._y, _local8._x, tMC2._y);
return(32);
}
_local7--;
}
}
}
return(0);
}
function Tile_Delete(tMC) {
this.tileMax--;
this.tileNum[tMC.num]--;
var _local3 = this.tileList[tMC.num].length;
i = 0;
while (i < _local3) {
if (this.tileList[tMC.num][i] == tMC) {
this.tileList[tMC.num][i] = this.tileList[tMC.num][_local3 - 1];
this.tileList[tMC.num].pop();
break;
}
i++;
}
tMC._visible = false;
this.Check_Block_Side(tMC);
this.score = this.score + this.oneScore;
}
function Tile_Hidden() {
if (this.hidden > 0) {
var _local2 = 50 / this.hiddenTime;
this.hidden--;
this.gameMC.C1.tMC._alpha = this.gameMC.C1.tMC._alpha - _local2;
this.gameMC.C2.tMC._alpha = this.gameMC.C2.tMC._alpha - _local2;
this.lineMC._alpha = this.lineMC._alpha - _local2;
if (this.hidden < (this.hiddenTime - 5)) {
this.gameMC.C1._visible = false;
this.gameMC.C2._visible = false;
}
if (this.hidden <= 0) {
this.lineMC._alpha = 0;
this.gameMC.C1._visible = false;
this.gameMC.C2._visible = false;
this.Tile_Delete(this.gameMC.C1.tMC);
this.Tile_Delete(this.gameMC.C2.tMC);
this.gameMC.C1.tMC = undefined;
this.gameMC.C2.tMC = undefined;
this.Button_Visible(true);
if (this.Tile_Check_All() == false) {
this.Game_Over();
} else if (this.tileMax <= 0) {
this.Game_Clear();
}
}
}
}
function Zero(num, len) {
var _local2 = num.toString();
if (_local2.length > len) {
return(_local2.substr(0, len));
}
var _local4 = _local2.length;
var _local1 = _local4;
while (_local1 < len) {
_local2 = "0" + _local2;
_local1++;
}
return(_local2);
}
function Display_Time(t) {
var _local3 = Math.floor(t / 60);
var _local2 = Math.floor(t) % 60;
_local3 = ((_local3 >= 0) ? (_local3) : 0);
_local2 = ((_local2 >= 0) ? (_local2) : 0);
return((this.Zero(_local3, 2) + " : ") + this.Zero(_local2, 2));
}
function Display_Txt() {
if (this.pauseOn == false) {
if (this.pauseTime > 0) {
this.ts = this.ts + this.pauseTime;
this.pauseTimes = this.pauseTimes + this.pauseTime;
this.pauseTime = 0;
}
this.times = Math.ceil(this.timeMax - ((getTimer() - this.ts) / 1000));
this.gameMC.timeTXT = this.Display_Time(this.times);
this.gameMC.tilesTXT = this.tileMax;
this.gameMC.scoreTXT = this.score;
this.gameMC.hintTXT = this.hintNum;
this.gameMC.levelTXT = this.level;
if (this.times <= 0) {
this.Game_TimeOver();
}
}
_parent.testTXT = (this.tileNum + " // ") + this.info;
}
function Button_Visible(view) {
if (this.fristSet == true) {
var _local3 = 0;
while (_local3 < (this.tileB + 2)) {
var _local2 = 0;
while (_local2 < (this.tileA + 2)) {
this.gameMC[(("T" + _local2) + "x") + _local3].BUTTON._visible = view;
_local2++;
}
_local3++;
}
}
}
function Game_Restart() {
this.level++;
this.Game_Setup();
this.gameplay = true;
this.gameMC.btn_gamestop._visible = true;
this.ts = getTimer();
this.gameMC.RESULT.gotoAndStop("OFF");
}
function Game_Start() {
this.soundPlay("welcome", 1);
this.gameMC.img_start._visible = false;
this.gameMC.RESULT.gotoAndStop("OFF");
this.gameMC.startButton.gotoAndStop("OFF");
this.level = 1;
this.score = 0;
this.playTime = 0;
this.hintNum = this.hintMax;
this.Game_Setup();
this.gameplay = true;
this.ts = getTimer();
this.pauseTimes = 0;
this.totalTimes = 0;
this.gameMC.btn_gamestop._visible = true;
}
function Game_TimeOver() {
this.soundPlay("gameover", 1);
this.Button_Visible(false);
this.gameMC.btn_gamestop._visible = false;
this.gameplay = false;
this.gameMC.RESULT.gotoAndPlay("TIME");
this.gameMC.startButton.gotoAndStop("OFF");
this.levelBonusTXT = this.level * this.levelScore;
this.timeBonusTXT = this.times * this.timeScore;
this.score = this.score + ((this.level * this.levelScore) + (this.times * this.timeScore));
this.totalScoreTXT = this.score;
}
function Game_Stop() {
this.gameplay = false;
this.pauseOnOff();
this.gameMC.win_gamestop._visible = false;
this.gameMC.btn_gamestop._visible = false;
this.soundPlay("gameover", 1);
this.Button_Visible(false);
this.gameMC.RESULT.gotoAndPlay("STOP");
this.gameMC.startButton.gotoAndStop("OFF");
this.levelBonusTXT = this.level * this.levelScore;
this.timeBonusTXT = 0;
this.score = this.score + (this.level * this.levelScore);
this.totalScoreTXT = this.score;
}
function Game_StopYN() {
this.pauseOnOff();
this.gameMC.win_gamestop._visible = true;
}
function Game_StopNo() {
this.pauseOnOff();
this.gameMC.win_gamestop._visible = false;
}
function Game_Over() {
this.soundPlay("gameover", 1);
this.Button_Visible(false);
this.gameMC.btn_gamestop._visible = false;
this.gameplay = false;
this.gameMC.RESULT.gotoAndPlay("OVER");
this.gameMC.startButton.gotoAndStop("OFF");
this.levelBonusTXT = this.level * this.levelScore;
this.timeBonusTXT = this.times * this.timeScore;
this.score = this.score + ((this.level * this.levelScore) + (this.times * this.timeScore));
this.totalScoreTXT = this.score;
}
function Game_Clear() {
this.totalTimes = this.totalTimes + this.times;
this.Button_Visible(false);
this.gameMC.btn_gamestop._visible = false;
this.gameplay = false;
if (this.level < this.levelTime.length) {
this.soundPlay("win", 1);
this.gameMC.RESULT.gotoAndPlay("CLEAR");
} else {
this.soundPlay("end", 1);
this.gameMC.RESULT.gotoAndPlay("ALLCLEAR");
this.gameMC.startButton.gotoAndStop("ON");
}
this.gameMC.RESULT.scoreBoard.levelBonusTXT = this.level * this.levelScore;
this.gameMC.RESULT.scoreBoard.timeBonusTXT = this.times * this.timeScore;
this.score = this.score + ((this.level * this.levelScore) + (this.times * this.timeScore));
this.playTime = this.playTime + this.times;
this.gameMC.RESULT.scoreBoard.totalScoreTXT = (this.level * this.levelScore) + (this.times * this.timeScore);
}
this._name = "AS";
_root.gameAS = this;
var gameMC = _parent.GAME;
var helpOn = true;
var soundOn = true;
var pauseOn = false;
var pts = 0;
var pauseTime = 0;
var bgVolume = 50;
var resultView = this.gameMC.RESULT;
var helpKeyDown = false;
var helpView = this.gameMC.HELP;
var helpMC = this.gameMC.helpMC;
this.helpView._visible = true;
if (this.helpOn == true) {
this.helpMC.gotoAndStop("ON");
this.Button_Visible(false);
} else {
this.helpMC.gotoAndStop("OFF");
this.Button_Visible(true);
}
this.helpView.swapDepths(5001);
var soundKeyDown = false;
var soundMC = this.gameMC.soundMC;
if (this.soundOn == true) {
this.soundMC.gotoAndStop("ON");
} else {
this.soundMC.gotoAndStop("OFF");
}
var pauseKeyDown = false;
var pauseView = this.gameMC.PAUSE;
var pauseMC = this.gameMC.pauseMC;
if (this.pauseOn == true) {
this.pauseMC.gotoAndStop("ON");
this.Button_Visible(false);
} else {
this.pauseMC.gotoAndStop("OFF");
this.Button_Visible(true);
}
var soundName = ["boom", "click", "end", "gameover", "lineup", "warning", "welcome", "win", "bg"];
var soundObj = Array();
if (this.gameVolume < 0) {
this.gameVolume = 0;
}
if (this.gameVolume > 1000) {
this.gameVolume = 1000;
}
var i = 0;
while (i <= soundName.length) {
soundObj[soundName[i]] = new Sound(this);
soundObj[soundName[i]].attachSound("s_" + soundName[i]);
if (soundName[i] == "bg") {
var bgsound = soundObj[soundName[i]];
}
i++;
}
bgsound.setVolume(240);
bgsound.start();
bgsound.onSoundComplete = function () {
bgsound.start();
};
var lineMC = this.gameMC.createEmptyMovieClip("lineTmp", 300);
var hidden = 0;
var hiddenTime = 7;
var gameplay = false;
var ts = 0;
var sendTime = 0;
var timeMax = 0;
var tileMax = 0;
var tileList = [];
var tileStyle = [];
var tileNum = [];
var tileArr = [];
var tileA = 15;
var tileB = 8;
var lineXY = [];
var displayX = -9;
var displayY = -5;
var halfX = (this.tileSizeX / 2);
var halfY = (this.tileSizeY / 2);
var info = "";
var score = 0;
var times = 0;
var playTime = 0;
var pauseTimes = 0;
var totalTimes = 0;
var level = 1;
var levelTime = [240, 180, 240, 180, 240, 180];
var levelTiles = [20, 20, 25, 25, 30, 30];
var oneScore = 100;
var timeScore = 10;
var levelScore = 100;
var tileTypeNum = 0;
var timeAdd = 2;
var timeDel = 10;
var hintNum = this.hintMax;
var hintMC = [undefined, undefined];
var fristSet = false;
this.onEnterFrame = function () {
if (this.gameplay == true) {
this.Tile_Hidden();
this.Display_Txt();
if (this.testOn == true) {
var _local5 = Math.floor((this.gameMC._xmouse + 9) / this.tileSizeX);
var _local4 = Math.floor((this.gameMC._ymouse + 5) / this.tileSizeY);
var _local3 = this.gameMC[(("T" + _local5) + "x") + _local4];
if ((_root.BLOCK._visible == true) && (_local3 != undefined)) {
_root.BLOCK._x = _local3._x + this.gameMC._x;
_root.BLOCK._y = _local3._y + this.gameMC._y;
_root.BLOCK.XY = (((((_local5 + ",") + _local4) + newline) + _local3.num) + ":") + _local3._currentframe;
var _local9 = ((((_local3.a + _local3.block[0]) < 1) || ((_local3.a + _local3.block[0]) > this.tileA)) ? (_local3.block[0]) : (_local3.block[0] + 1));
var _local8 = ((((_local3.b + _local3.block[1]) < 1) || ((_local3.b + _local3.block[1]) > this.tileB)) ? (_local3.block[1]) : (_local3.block[1] + 1));
var _local7 = ((((_local3.a - _local3.block[2]) < 1) || ((_local3.a - _local3.block[2]) > this.tileA)) ? (_local3.block[2]) : (_local3.block[2] + 1));
var _local6 = ((((_local3.b - _local3.block[3]) < 1) || ((_local3.b - _local3.block[3]) > this.tileB)) ? (_local3.block[3]) : (_local3.block[3] + 1));
_root.BLOCK.B1._x = _local9 * _root.gameAS.tileSizeX;
_root.BLOCK.B1._y = 0;
_root.BLOCK.B1.TXT = _local3.block[0];
_root.BLOCK.B2._x = 0;
_root.BLOCK.B2._y = _local8 * _root.gameAS.tileSizeY;
_root.BLOCK.B2.TXT = _local3.block[1];
_root.BLOCK.B3._x = (-_local7) * _root.gameAS.tileSizeX;
_root.BLOCK.B3._y = 0;
_root.BLOCK.B3.TXT = _local3.block[2];
_root.BLOCK.B4._x = 0;
_root.BLOCK.B4._y = (-_local6) * _root.gameAS.tileSizeY;
_root.BLOCK.B4.TXT = _local3.block[3];
}
}
}
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
if ((_root.gameAS.testOn == true) && (Key.isDown(32))) {
if (_root.BLOCK._visible == true) {
_root.BLOCK._visible = false;
} else {
_root.BLOCK._visible = true;
}
}
};
Key.addListener(keyListener);
this.onUnload = function () {
Key.removeListener(keyListener);
};
Symbol 364 Button
on (release) {
getURL ("http://www.gameangel.com", "_blank");
}