Frame 1
this.stop();
Mouse.hide();
var parcent = 0;
var LoadEndFlg = false;
_root.Loadmater._height = 1;
var addLoadmatersize = ((_root.Load_phoo._height * _root.Loadmater._height) / 100);
_root.Loadmater.setMask(_root.Load_phoo);
Loadmater.onEnterFrame = function () {
_root.parcent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (LoadEndFlg == false) {
_root.loaded_vol = ((parcent - (parcent % 10)) * 1) + "\uFF05Loading\u2026";
}
_root.Loadmater._height = addLoadmatersize * parcent;
if ((parcent == 100) && (LoadEndFlg == false)) {
var _local2 = _root.attachMovie("CursorIcon", "yajirusi", _root.CursorDeth);
_local2._x = _xmouse;
_local2._y = _ymouse;
_root.loaded_vol = "Loaded";
removeMovieClip("Load_BG");
_root.gotoAndPlay("LoadEndScr");
_root.formatFlg = false;
LoadEndFlg = true;
}
};
Stage.showMenu = false;
_global.showRedrawRegions(false);
Instance of Symbol 13 MovieClip in Frame 1
onClipEvent (enterFrame) {
Mouse.hide();
}
Frame 2
function MouceVisible() {
if ((((0 < _xmouse) && (_xmouse < 600)) && (0 < _ymouse)) && (_ymouse < 450)) {
Mouse.hide();
}
}
function GameProgressCheck() {
if (GamePause == true) {
return(false);
}
if (GamePause == false) {
return(true);
}
}
function ScrChangeCheck() {
if (ScrChangeFlg == true) {
return(false);
}
if (ScrChangeFlg == false) {
return(true);
}
}
function GameStop() {
GamePause = true;
}
function GameStart() {
GamePause = false;
}
function GameLoad() {
if (SaveDataList.ConnectLine == undefined) {
_root.ConnectLine = 0;
_root.BeeSmall = 0;
_root.BeeNormal = 0;
_root.BeeBig = 0;
_root.SaveDataSrore = 0;
} else {
_root.ConnectLine = SaveDataList.ConnectLine;
_root.BeeSmall = SaveDataList.BeeSmall;
_root.BeeNormal = SaveDataList.BeeNormal;
_root.BeeBig = SaveDataList.BeeBig;
_root.SaveDataSrore = SaveDataList.SaveDataSrore;
}
}
function GameSave() {
if (_root.score > _root.SaveDataSrore) {
SaveDataList.ConnectLine = _root.ConnectLine;
SaveDataList.BeeSmall = _root.BeeSmall;
SaveDataList.BeeNormal = _root.BeeNormal;
SaveDataList.BeeBig = _root.BeeBig;
SaveDataList.SaveDataSrore = _root.score;
}
}
function InitializeScore() {
_root.ConnectLine = 0;
_root.BeeSmall = 0;
_root.BeeNormal = 0;
_root.BeeBig = 0;
_root.score = 0;
}
function ScoreMath() {
var _local2 = 0;
_root.HoneyValue = 0;
_root.HoneyValue = _root.HoneyValue + (_root.BeeSmall * 3);
_root.HoneyValue = _root.HoneyValue + (_root.BeeNormal * 4);
_root.HoneyValue = _root.HoneyValue + (_root.BeeBig * 5);
switch (true) {
case (0 < _root.ConnectLine) && (_root.ConnectLine < 5) :
_local2 = 100;
break;
case (4 < _root.ConnectLine) && (_root.ConnectLine < 10) :
_local2 = 200;
break;
case (9 < _root.ConnectLine) && (_root.ConnectLine < 15) :
_local2 = 300;
break;
case 14 < _root.ConnectLine :
_local2 = 400;
}
_root.score = (_root.HoneyValue * 100) + (_root.ConnectLine * _local2);
}
function ChangeSrc(NextPage, NowPage) {
var _local3 = "MC_ScrChange";
var _local4 = _root.ChangeScrDeth;
_root.NextScrName = NextPage;
_root.AheadScrName = NowPage;
var _local2 = _root.attachMovie(_local3, _local3 + "00", _local4);
_local2._x = 300;
_local2._y = 225;
}
function CreateScr(SrcName) {
switch (SrcName) {
case "MenuScr" :
changeSreName = "MENU_SCR";
ChangeSrcDepth = _root.MenuSrcDepth;
break;
case "HelpScr" :
changeSreName = "HELP_SCR";
ChangeSrcDepth = _root.HelpSrcDepth;
}
var _local2 = _root.attachMovie(changeSreName, changeSreName + "00", ChangeSrcDepth);
_local2._x = 300;
_local2._y = 225;
}
function DeleteScr(SrcName) {
var changeSreName;
switch (SrcName) {
case "MenuScr" :
changeSreName = "MENU_SCR00";
break;
case "HelpScr" :
changeSreName = "HELP_SCR00";
}
eval ("_root." + changeSreName).removeMovieClip();
}
function TitleMcVisible(Flg) {
var loop;
loop = 0;
while (loop < 20) {
eval ("_root.flower" + loop)._visible = Flg;
eval ("_root.M_LEAF" + loop)._visible = Flg;
eval ("_root.bee0" + loop)._visible = Flg;
loop++;
}
_root.M_ButtonTree._visible = Flg;
_root.backGrownd._visible = Flg;
_root.titleName._visible = Flg;
_root.beehouse._visible = Flg;
}
var MaxTile = 19;
var MainMc;
MainMc = _root;
var MouseInArea = 0;
var SelectTileNo;
var GamePlayNo;
var MostNearPoint;
MostNearPoint = 0;
var PutTileLengthList = new Array();
var SetArray = new Array();
var ConnectLine;
var BeeSmall;
var BeeNormal;
var BeeBig;
var ConnectLine2;
var BeeSmall2;
var BeeNormal2;
var BeeBig2;
var BeeCreateFlg = new Array();
var CursorNo = 0;
var JokerBeeCnt = 3;
var JokerBeernd = 10;
var HoneyValue = 0;
var score = 0;
var SaveDataSrore = 0;
var MousePress = false;
var GamePause = false;
var TileDrag = false;
var NormalGameFlg = false;
var GameStarting = false;
var SoundMute = false;
var ScrChangeFlg = false;
var EndMessageFlg = false;
var TileFlg = false;
var TilePutFlg = new Array();
var loop = 0;
var CreatArea;
var NormalGameFlg = false;
var GameMode;
GameMode = "FreeGame";
var Load = "LoadScr";
var Title = "TitleScr";
var MainGame = "MainGame";
var GameEnd = "GameEnd";
var MenuScr = "MenuScr";
var Help = "HelpScr";
var PhooGraphName;
var PagePalam = 0;
var NextScrName = 0;
var AheadScrName = 0;
var CursorDepth = 100000;
var MessageDepth = 6000;
var ProdDepth = 5000;
var CreateBeeDepth = 50000;
var TileDepth = 250;
var TilenDepthNumber = 0;
var TileEfectDepth = 200;
var SeDepth = 100;
var BgmDepth = 100;
var CreateBeeDepth = 7000;
var CreateJokerBeeDepth = 10000;
var ChanceDepth = 10500;
var EndMessageDepth = 30000;
var GameEndProdDepth = 20000;
var ChangeScrDeth = 40000;
var MenuSrcDepth = 25000;
var HelpSrcDepth = 26000;
var CTile = new ClassTile(_root, MaxTile);
var CArea = new ClassPutArea(_root, MaxTile);
var CMath = new ClassMath(_root, MaxTile);
var CHit = new ClassHitCheck(_root, MaxTile);
var sound = new CSound(_root);
var bgm1 = sound.SetSound("BGM1", "BGM1", "PhooBgm01", BgmDepth);
var bgm2 = sound.SetSound("BGM2", "BGM2", "PhooBgm02", BgmDepth);
var se1 = sound.SetSound("SE1", "SE1", "M_se01", BgmDepth);
var se2 = sound.SetSound("SE2", "SE2", "M_se02", BgmDepth);
var se3 = sound.SetSound("SE3", "SE3", "M_se03", BgmDepth);
var se4 = sound.SetSound("SE4", "SE4", "M_se04", BgmDepth);
var SaveData = SharedObject.getLocal("PhooPuzzleData");
var SaveDataList = SaveData.data;
_root.bgm1.start(0, 99);
_root.yajirusi.swapDepths(CursorDepth);
Instance of Symbol 13 MovieClip in Frame 2
onClipEvent (enterFrame) {
_root.MouceVisible();
}
Instance of Symbol 215 MovieClip "beehouse" in Frame 132
on (rollOver) {
if (this.AnimationFlg == false) {
_root.se4.start(0, 1);
this.AnimationFlg = true;
this.gotoAndPlay(2);
}
}
Frame 170
this.stop();
_root.GameStarting = false;
_root.ScrChangeFlg = false;
_root.GameStop();
M_ButtonTree.NormalGame.onRollOver = function () {
if (_root.ScrChangeCheck()) {
_root.se4.start(0, 1);
}
};
M_ButtonTree.NormalGame.onRelease = function () {
if (_root.ScrChangeCheck()) {
_root.se1.start(0, 1);
_root.NormalGameFlg = true;
_root.TileFlg = false;
_root.ChangeSrc(_root.MainGame, _root.Title);
}
};
M_ButtonTree.Freegame.onRollOver = function () {
if (_root.ScrChangeCheck()) {
_root.se4.start(0, 1);
}
};
M_ButtonTree.Freegame.onRelease = function () {
if (_root.ScrChangeCheck()) {
_root.se1.start(0, 1);
_root.NormalGameFlg = false;
_root.ChangeSrc(_root.MainGame, _root.Title);
}
};
M_ButtonTree.HightScore.onRollOver = function () {
if (_root.ScrChangeCheck()) {
_root.se4.start(0, 1);
}
};
M_ButtonTree.HightScore.onRelease = function () {
if (_root.ScrChangeCheck()) {
_root.se1.start(0, 1);
_root.GameLoad();
_root.TileFlg = true;
_root.ChangeSrc(_root.GameEnd, _root.Title);
}
};
M_ButtonTree.Help.onRollOver = function () {
if (_root.ScrChangeCheck()) {
_root.se4.start(0, 1);
}
};
M_ButtonTree.Help.onRelease = function () {
if (_root.ScrChangeCheck()) {
_root.se1.start(0, 1);
_root.ChangeSrc(_root.Help, _root.Title);
}
};
Frame 171
if (NormalGameFlg) {
traning._visible = false;
}
Instance of Symbol 13 MovieClip in Frame 171
onClipEvent (enterFrame) {
_root.MouceVisible();
}
Instance of Symbol 215 MovieClip "beehouse" in Frame 225
on (rollOver) {
if (this.AnimationFlg == false) {
_root.se4.start(0, 1);
this.AnimationFlg = true;
this.gotoAndPlay(2);
}
}
Frame 263
McCreatArea._visible = false;
Instance of Symbol 296 MovieClip in Frame 283
on (release) {
_root.ChangeNextTlie();
}
Frame 302
function GameParamClear() {
var _local1 = 0;
MouseInArea = 0;
SelectTileNo = 0;
GamePlayNo = 0;
MostNearPoint = 0;
MostNearPoint = 0;
ConnectLine = 0;
BeeSmall = 0;
BeeNormal = 0;
BeeBig = 0;
JokerBeeCnt = 3;
}
function GameDataClear() {
var loop;
loop = 0;
while (loop < 20) {
BeeCreateFlg[loop] = false;
removeMovieClip("" + eval ("CreateBee" + loop));
removeMovieClip("" + eval ("JokerBee" + loop));
loop++;
}
CreatArea = McCreatArea;
loop = 0;
while (loop < MaxTile) {
ClearTileGraph(loop);
CArea.Initialize(eval ("put" + loop), loop);
removeMovieClip("" + eval ("PutTile" + loop));
TilePutFlg[loop] = false;
loop++;
}
removeMovieClip("" + M_TileLightProd);
TilenDepthNumber = 0;
}
function BeeVisible(Flg) {
var loop;
loop = 0;
while (loop < 20) {
eval ("CreateBee" + loop)._visible = Flg;
loop++;
}
}
function GameGraphVisible(Flg) {
var loop;
loop = 0;
while (loop < 20) {
eval ("CreateBee" + loop)._visible = Flg;
eval ("flower" + loop)._visible = Flg;
eval ("tree" + loop)._visible = Flg;
eval ("M_LEAF" + loop)._visible = Flg;
eval ("JokerBee" + loop)._visible = Flg;
if (Flg) {
eval ("JokerBee" + loop).play();
} else {
eval ("JokerBee" + loop).stop();
}
loop++;
}
PhooGraph._visible = Flg;
menuButton._visible = Flg;
Line1._visible = Flg;
Line10._visible = Flg;
Line100._visible = Flg;
BeeCnt1._visible = Flg;
BeeCnt10._visible = Flg;
BeeCnt100._visible = Flg;
M_TileLightProd._visible = Flg;
loop = 0;
while (loop < MaxTile) {
eval ("PutTile" + loop)._visible = Flg;
eval ("put" + loop)._visible = Flg;
loop++;
}
bg_grass._visible = Flg;
}
function MainGameInitialize() {
var _local2 = 0;
SelectTileEfect();
_root.GameStart();
_root.InitializeScore();
SetArray = [5, 8, 9, 14];
if (NormalGameFlg) {
CTile.Initialize(true, SetArray);
} else {
CTile.Initialize(false, SetArray);
_local2 = 0;
while (_local2 < SetArray.length) {
SetPutTile(GamePlayNo, CreatArea._x, CreatArea._y);
SetTileAreaNo(_local2, SetArray[_local2]);
_local2++;
}
}
TilenDepthNumber = TilenDepthNumber + 10;
SetPutTile(GamePlayNo, CreatArea._x, CreatArea._y);
}
function DragOn() {
MousePress = true;
_root.se4.start(0, 1);
CursorNo = SelectTileNo;
ClearTileGraph(SelectTileNo);
ReChangeLineGaphNumber(SelectTileNo);
CTile.Tile[SelectTileNo].swapDepths(TileDepth + TilenDepthNumber);
TilenDepthNumber++;
}
function DragOff() {
if (MousePress == true) {
MousePress = false;
_root.se3.start(0, 1);
if (CHit.HitMcandMouse(PutTileArea)) {
SetTileAreaNo(SelectTileNo, MostNearPoint);
if (SelectTileNo == (GamePlayNo - 1)) {
SetPutTile(GamePlayNo, CreatArea._x, CreatArea._y);
}
TilePutFlg[SelectTileNo] = true;
} else if (TilePutFlg[SelectTileNo] == true) {
SetTileAreaNo(SelectTileNo, MostNearPoint);
} else {
CTile.Tile[SelectTileNo]._x = CreatArea._x;
CTile.Tile[SelectTileNo]._y = CreatArea._y;
}
}
}
function onMouseDrag(MC) {
if (MousePress == true) {
SetMcPojiwithMouseDrag(MC);
}
}
function AreaRangeCheck(Mc, X0, Y0, X1, Y1) {
if ((((X0 < Mc._x) && (Mc._x < X1)) && (Y0 < Mc._y)) && (Mc._y < Y1)) {
return(true);
}
return(false);
}
function IfMouseOnWithTile() {
var loop = 0;
loop = 0;
while (loop < GamePlayNo) {
if (CHit.HitMcandMouse(eval ("PutTile" + loop))) {
return(true);
}
loop++;
}
return(false);
}
function SetPutTile(SetId, PojiX, PojiY) {
if (CTile.TileParam[SetId]._CREATE == false) {
CTile.CreatePutTile("M_PutTile_BackBord", "PutTile", SetId, TileDepth + TilenDepthNumber, PojiX, PojiY);
TilenDepthNumber++;
}
CTile.TileParam[SetId]._CREATE = true;
CTile.ChangeTileGraph(SetId);
GamePlayNo++;
eval ("PutTile" + SetId).onRollOver = function () {
SelectTileNo = _root.GetMCManagementNo(this._name, "PutTile");
};
if (NormalGameFlg) {
CreateJokerBee();
}
GameEndPrd();
}
function SetTileGraph(SetNo) {
CTile.ChangeTileGraph(SetNo);
}
function SetTileAreaNo(SetTileNo, SetAreaNo) {
CArea.PutAreaPoji[SetAreaNo].Putflg = true;
SetTileGaphAndParam(SetAreaNo, SetTileNo);
CArea.PutAreaPoji[SetAreaNo]._TOP = CTile.TileParam[SetTileNo]._TOP;
CArea.PutAreaPoji[SetAreaNo]._RIGHT = CTile.TileParam[SetTileNo]._RIGHT;
CArea.PutAreaPoji[SetAreaNo]._LEFT = CTile.TileParam[SetTileNo]._LEFT;
CTile.Tile[SetTileNo]._PUTAREA = SetAreaNo;
CArea.PutAreaPoji[SetAreaNo]._Tile = SetTileNo;
CTile.Tile[SetTileNo]._x = CArea.PutAreaPoji[SetAreaNo].PojiX;
CTile.Tile[SetTileNo]._y = CArea.PutAreaPoji[SetAreaNo].PojiY;
eval ("put" + SetAreaNo)._visible = false;
}
function ClearTileGraph(ClearAreaNo) {
var ClearNomber = 0;
ClearNomber = CTile.Tile[ClearAreaNo]._PUTAREA;
CArea.PutAreaPoji[ClearNomber].Putflg = false;
CArea.PutAreaPoji[ClearNomber]._TOP = 0;
CArea.PutAreaPoji[ClearNomber]._LEFT = 0;
CArea.PutAreaPoji[ClearNomber]._RIGHT = 0;
eval ("put" + ClearNomber)._visible = true;
CArea.PutAreaPoji[CTile.Tile[ClearAreaNo]._PUTAREA]._Tile = undefined;
CTile.Tile[ClearAreaNo]._PUTAREA = undefined;
}
function PutTiletoAreaNo() {
if (TileDrag == false) {
if (CheckMouseHitArea() != undefined) {
if (CArea.PutAreaPoji[CheckMouseHitArea()].Putflg == false) {
_root.se3.start(0, 1);
ClearTileGraph(CursorNo);
SetTileAreaNo(CursorNo, CheckMouseHitArea());
if (SelectTileNo == (GamePlayNo - 1)) {
SetPutTile(GamePlayNo, CreatArea._x, CreatArea._y);
}
}
}
}
}
function ChangeTileWithJoker(TileNo) {
TileNo = TileNo + 1;
var _local2 = CTile.Tile[TileNo]._PUTAREA;
CTile.ChangeTileWithJoker(TileNo);
if (_local2 != undefined) {
CArea.PutAreaPoji[_local2]._TOP = CTile.TileParam[TileNo]._TOP;
CArea.PutAreaPoji[_local2]._RIGHT = CTile.TileParam[TileNo]._RIGHT;
CArea.PutAreaPoji[_local2]._LEFT = CTile.TileParam[TileNo]._LEFT;
}
}
function SetMcPojiwithMouseDrag(MC) {
MC._x = _xmouse;
MC._y = _ymouse;
}
function GetMostNearNumber() {
PutTileLengthList = GetMousetoPutTileLengthList();
MostNearPoint = GetMostMinimumParam(PutTileLengthList);
}
function CheckMouseHitArea() {
var loop;
loop = 0;
while (loop < MaxTile) {
if (CHit.HitMcandMouse(eval ("put" + loop))) {
return(loop);
}
loop++;
}
}
function GetMousetoPutTileLengthList() {
var loop;
var LengthList = new Array();
loop = 0;
while (loop < MaxTile) {
LengthList[loop] = CMath.TwoPointLength(_xmouse, _ymouse, eval ("put" + loop)._x, eval ("put" + loop)._y);
loop++;
}
return(LengthList);
}
function GetMostMinimumParam(PalamList) {
var _local1;
var _local4;
var _local2;
_local2 = 10000000 /* 0x989680 */;
var _local5;
_local5 = PalamList.length;
_local4 = 0;
_local1 = 0;
while (_local1 < _local5) {
if (PalamList[_local1] < _local2) {
if (CArea.PutAreaPoji[_local1].Putflg == false) {
_local2 = PalamList[_local1];
_local4 = _local1;
}
}
_local1++;
}
if (_local2 == 100000) {
_local4 = undefined;
}
return(_local4);
}
function GetMCManagementNo(SubstrName, McName) {
var _local1;
_local1 = SubstrName.substr(McName.length);
return(_local1);
}
function SelectTileEfect() {
var _local2 = _root.attachMovie("M_TileLightProd", "M_TileLightProd", _root.TileEfectDepth);
_local2._x = 1000;
_local2._y = 1000;
}
function SelectTileEfectSet() {
M_TileLightProd._x = CTile.Tile[CursorNo]._x;
M_TileLightProd._y = CTile.Tile[CursorNo]._y;
}
function ScoreSet() {
_root.ConnectLine = CArea.ConnectLine;
_root.BeeSmall = CArea.BeeSmall;
_root.BeeNormal = CArea.BeeNormal;
_root.BeeBig = CArea.BeeBig;
}
function ScoreVew() {
var _local3 = int(ConnectLine);
var _local2 = _local3 % 10;
var _local4 = ((_local3 - _local2) / 10) % 10;
var _local5 = (((_local3 - _local2) - (_local4 * 10)) / 100) % 10;
_root.Line100.gotoAndStop(_local5 + 1);
_root.Line10.gotoAndStop(_local4 + 1);
_root.Line1.gotoAndStop(_local2 + 1);
_local3 = int((BeeSmall + BeeNormal) + BeeBig);
_local2 = _local3 % 10;
_local4 = ((_local3 - _local2) / 10) % 10;
_local5 = (((_local3 - _local2) - (_local4 * 10)) / 100) % 10;
_root.BeeCnt100.gotoAndStop(_local5 + 1);
_root.BeeCnt10.gotoAndStop(_local4 + 1);
_root.BeeCnt1.gotoAndStop(_local2 + 1);
}
function CreateScoreBee() {
var _local1;
_local1 = ConnectLine;
while (_local1 < 15) {
DeleteBee(_local1);
BeeCreateFlg[_local1] = false;
_local1++;
}
_local1 = 0;
while (_local1 < ConnectLine) {
if (BeeCreateFlg[_local1] == false) {
CreateBee(_local1);
BeeCreateFlg[_local1] = true;
}
_local1++;
}
}
function CreateBee(No) {
shakeBeehouse();
var _local2 = _root.attachMovie("CreateBee" + No, "CreateBee" + No, CreateBeeDepth + No);
_local2._x = 35.6;
_local2._y = 43.6;
}
function DeleteBee(No) {
removeMovieClip("CreateBee" + No);
var _local1;
_local1._x = 35.6;
_local1._y = 43.6;
}
function shakeBeehouse() {
_root.beehouse.gotoAndPlay(2);
}
function CreateJokerBee() {
if (((_root.GamePlayNo == 0) || (_root.GamePlayNo == 1)) || (_root.GamePlayNo == 2)) {
return(0);
}
if ((JokerBeeCnt > 0) && (GamePlayNo > 1)) {
if (random(JokerBeernd) == 0) {
JokerPut();
}
if ((GamePlayNo >= 5) && (JokerBeeCnt == 3)) {
JokerPut();
}
if ((GamePlayNo >= 10) && (JokerBeeCnt == 2)) {
JokerPut();
}
if ((GamePlayNo >= 15) && (JokerBeeCnt == 1)) {
JokerPut();
}
}
}
function JokerPut() {
var _local2 = _root.attachMovie("M_Chance", "M_Chance", ChanceDepth);
_local2._x = 300;
_local2._y = 225;
ChangeTileWithJoker(GamePlayNo - 2);
JokerBeeCnt--;
}
function PhooGraphChange() {
var _local1 = "C";
switch (true) {
case ConnectLine <= 2 :
_local1 = "C";
break;
case (2 < ConnectLine) && (ConnectLine <= 4) :
_local1 = "B";
break;
case (4 < ConnectLine) && (ConnectLine <= 6) :
_local1 = "A";
break;
case (6 < ConnectLine) && (ConnectLine <= 8) :
_local1 = "S";
break;
case 8 < ConnectLine :
_local1 = "SS";
}
if (PhooGraphName == _local1) {
} else {
PhooGraphName = _local1;
PhooGraph.gotoAndPlay(_local1 + "_graph");
}
}
function ChangeLineGraph() {
var _local2 = 0;
var _local1 = new Array();
var _local4 = new Array();
var _local3 = new Array();
_local1 = [0, 3, 7];
ChangeLineGaphNumber(_local1, "_TOP", CArea.ConnetTopLine[0]);
_local1 = [11, 15, 18];
ChangeLineGaphNumber(_local1, "_TOP", CArea.ConnetTopLine[4]);
_local1 = [1, 4, 8, 12];
ChangeLineGaphNumber(_local1, "_TOP", CArea.ConnetTopLine[1]);
_local1 = [6, 10, 14, 17];
ChangeLineGaphNumber(_local1, "_TOP", CArea.ConnetTopLine[3]);
_local1 = [2, 5, 9, 13, 16];
ChangeLineGaphNumber(_local1, "_TOP", CArea.ConnetTopLine[2]);
CheckArray = [7, 12, 16];
ChangeLineGaphNumber(CheckArray, "_RIGHT", CArea.ConnetRightLine[0]);
CheckArray = [3, 8, 13, 17];
ChangeLineGaphNumber(CheckArray, "_RIGHT", CArea.ConnetRightLine[1]);
CheckArray = [0, 4, 9, 14, 18];
ChangeLineGaphNumber(CheckArray, "_RIGHT", CArea.ConnetRightLine[2]);
CheckArray = [1, 5, 10, 15];
ChangeLineGaphNumber(CheckArray, "_RIGHT", CArea.ConnetRightLine[3]);
CheckArray = [2, 6, 11];
ChangeLineGaphNumber(CheckArray, "_RIGHT", CArea.ConnetRightLine[4]);
CheckArray = [0, 1, 2];
ChangeLineGaphNumber(CheckArray, "_LEFT", CArea.ConnetLeftLine[0]);
CheckArray = [3, 4, 5, 6];
ChangeLineGaphNumber(CheckArray, "_LEFT", CArea.ConnetLeftLine[1]);
CheckArray = [7, 8, 9, 10, 11];
ChangeLineGaphNumber(CheckArray, "_LEFT", CArea.ConnetLeftLine[2]);
CheckArray = [12, 13, 14, 15];
ChangeLineGaphNumber(CheckArray, "_LEFT", CArea.ConnetLeftLine[3]);
CheckArray = [16, 17, 18];
ChangeLineGaphNumber(CheckArray, "_LEFT", CArea.ConnetLeftLine[4]);
}
function ChangeLineGaphNumber(ChangeNo, Status, Flg) {
var _local1 = 0;
if (Flg) {
_local1 = 0;
while (_local1 < ChangeNo.length) {
CTile.ChangeLineGraph(ChangeLineGraphParamData(ChangeNo[_local1]), Status);
_local1++;
}
} else {
_local1 = 0;
while (_local1 < ChangeNo.length) {
CTile.ReChangeLineGraph(ChangeLineGraphParamData(ChangeNo[_local1]), Status);
_local1++;
}
}
}
function ReChangeLineGaphNumber(TleNumber) {
CTile.ReChangeLineGraph(TleNumber, "_TOP");
CTile.ReChangeLineGraph(TleNumber, "_RIGHT");
CTile.ReChangeLineGraph(TleNumber, "_LEFT");
}
function ChangeLineGraphParamData(AreaNumber) {
return(CArea.PutAreaPoji[AreaNumber]._Tile);
}
function NormalGameCheck() {
if (NormalGameFlg == true) {
if (SameTwoParam(GamePlayNo - 1, SelectTileNo) || (SameTwoParam(GamePlayNo - 2, SelectTileNo))) {
return(true);
}
return(false);
}
return(true);
}
function AllTilePut() {
if ((MaxTile + 1) == GamePlayNo) {
return(true);
}
return(false);
}
function GameEndPrd() {
if ((MaxTile + 1) == GamePlayNo) {
GetMostNearNumber();
CArea.CheckLineStatus();
ScoreSet();
ScoreVew();
ChangeLineGraph();
CreateScoreBee();
PhooGraphChange();
M_TileLightProd._visible = false;
var mc = _root.attachMovie("M_EndProd", "M_EndProd", GameEndProdDepth);
mc._x = 300;
mc._y = 225;
_root.GameStop();
}
}
function SameTwoParam(Param1, Param2) {
if (Param1 == Param2) {
return(true);
}
return(false);
}
function TestVew() {
var _local1 = 0;
_local1 = 0;
while (_local1 < 19) {
_local1++;
}
}
this.stop();
GameParamClear();
GameDataClear();
MainGameInitialize();
onEnterFrame = function () {
if (_root.GameProgressCheck()) {
if ((MousePress == true) && (TileDrag == false)) {
DragOff();
}
CArea.CheckLineStatus();
GetMostNearNumber();
ChangeLineGraph();
CreateScoreBee();
ScoreSet();
ScoreVew();
PhooGraphChange();
SelectTileEfectSet();
if (NormalGameCheck()) {
if (MousePress == true) {
if (AreaRangeCheck(eval ("PutTile" + SelectTileNo), 20, 20, 580, 430)) {
SetMcPojiwithMouseDrag(eval ("PutTile" + SelectTileNo));
} else {
DragOff();
}
} else if (AreaRangeCheck(eval ("PutTile" + SelectTileNo), 20, 20, 580, 430) == false) {
DragOff();
}
}
}
};
onMouseUp = function () {
if (_root.GameProgressCheck() && (AllTilePut() == false)) {
if (NormalGameCheck()) {
if (IfMouseOnWithTile()) {
DragOff();
}
}
TileDrag = false;
}
};
onMouseDown = function () {
if (_root.GameProgressCheck() && (AllTilePut() == false)) {
if (NormalGameCheck()) {
if (IfMouseOnWithTile()) {
TileDrag = true;
DragOn();
}
}
}
};
Frame 303
_root.ScoreMath();
_root.GameSave();
var loop = 0;
endButton._visible = false;
restartButton._visible = false;
BackButton._visible = false;
var VewScore = _root.ConnectLine;
var no_1 = (VewScore % 10);
var no_10 = (((VewScore - no_1) / 10) % 10);
_root.Line10.gotoAndStop("No" + no_10);
_root.Line1.gotoAndStop("No" + no_1);
if (no_10 == 0) {
_root.Line10._visible = false;
}
var VewScore = ((_root.BeeSmall + _root.BeeNormal) + _root.BeeBig);
var no_1 = (VewScore % 10);
var no_10 = (((VewScore - no_1) / 10) % 10);
_root.Bee10.gotoAndStop("No" + no_10);
_root.Bee1.gotoAndStop("No" + no_1);
if (no_10 == 0) {
_root.Bee10._visible = false;
}
loop = 0;
while (loop < 10) {
eval (("honey" + loop) + "0")._visible = false;
eval ("honey" + loop)._visible = false;
loop++;
}
var no_1 = (_root.HoneyValue % 10);
var no_10 = (((_root.HoneyValue - no_1) / 10) % 10);
_root.honeyScore10.gotoAndStop("No" + no_10);
_root.honeyScore1.gotoAndStop("No" + no_1);
if (no_10 == 0) {
_root.honeyScore10._visible = false;
}
var honeyValu10 = int(_root.HoneyValue / 10);
var honeyValu1 = (_root.HoneyValue % 10);
if (honeyValu10 > 0) {
loop = 1;
while (loop < (honeyValu10 + 1)) {
eval (("honey" + loop) + "0")._visible = true;
loop++;
}
}
if (honeyValu1 > 0) {
loop = 1;
while (loop < (honeyValu1 + 1)) {
eval ("honey" + loop)._visible = true;
loop++;
}
}
Instance of Symbol 13 MovieClip in Frame 303
onClipEvent (enterFrame) {
_root.MouceVisible();
}
Frame 363
var VewScore = _root.score;
var no_1 = (VewScore % 10);
var no_10 = (((VewScore - no_1) / 10) % 10);
var no_100 = ((((VewScore - no_1) - (no_10 * 10)) / 100) % 10);
var no_1000 = (((((VewScore - no_1) - (no_10 * 10)) - (no_100 * 100)) / 1000) % 10);
var no_10000 = ((((((VewScore - no_1) - (no_10 * 10)) - (no_100 * 100)) - (no_1000 * 1000)) / 10000) % 10);
_root.score10000.gotoAndStop("No" + no_10000);
_root.score1000.gotoAndStop("No" + no_1000);
_root.score100.gotoAndStop("No" + no_100);
_root.score10.gotoAndStop("No" + no_10);
_root.score1.gotoAndStop("No" + no_1);
if (no_10000 == 0) {
_root.score10000._visible = false;
if (no_1000 == 0) {
_root.score1000._visible = false;
if (no_100 == 0) {
_root.score100._visible = false;
if (no_10 == 0) {
_root.score10._visible = false;
}
}
}
}
switch (true) {
case (0 <= _root.score) && (_root.score < 3000) :
_root.RankVew.gotoAndStop("C");
_root.RankMessage.gotoAndStop("C");
break;
case (2999 < _root.score) && (_root.score < 6000) :
_root.RankVew.gotoAndStop("B");
_root.RankMessage.gotoAndStop("B");
break;
case (5999 < _root.score) && (_root.score < 8000) :
_root.RankVew.gotoAndStop("A");
_root.RankMessage.gotoAndStop("A");
break;
case (7999 < _root.score) && (_root.score < 11700) :
_root.RankVew.gotoAndStop("S");
_root.RankMessage.gotoAndStop("S");
break;
case 11699 < _root.LastScore :
_root.RankVew.gotoAndStop("SS");
_root.RankMessage.gotoAndStop("SS");
}
Frame 553
this.stop();
Frame 793
BackButton._visible = false;
endButton._visible = false;
restartButton._visible = false;
if (_root.TileFlg == true) {
BackButton._visible = true;
endButton._visible = false;
restartButton._visible = false;
} else if (_root.TileFlg == false) {
BackButton._visible = false;
endButton._visible = true;
restartButton._visible = true;
}
Frame 813
this.stop();
_root.GameLoad();
Symbol 2 MovieClip [CursorIcon] Frame 1
this.onEnterFrame = function () {
_x = (_root._xmouse - 12);
_y = (_root._ymouse - 12);
updateAfterEvent();
};
Symbol 407 MovieClip [__Packages.ClassMath] Frame 0
class ClassMath
{
var MainMc, MaxTile;
function ClassMath (MC, MAXTILE) {
MainMc = MC;
MaxTile = MAXTILE;
}
function TwoPointLength(X1, Y1, X2, Y2) {
var _local1;
_local1 = int(((X1 - X2) * (X1 - X2)) + ((Y1 - Y2) * (Y1 - Y2)));
return(_local1);
}
}
Symbol 408 MovieClip [__Packages.ClassHitCheck] Frame 0
class ClassHitCheck
{
var MainMc, MaxTile;
function ClassHitCheck (MC, MAXTILE) {
MainMc = MC;
MaxTile = MAXTILE;
}
function HitMcandMouse(MC) {
var _local4 = MC._x - (MC._width / 2);
var _local3 = MC._x + (MC._width / 2);
var _local2 = MC._y - (MC._height / 2);
var _local5 = MC._y + (MC._height / 2);
if ((((_local4 > _xmouse) || (_xmouse > _local3)) || (_local2 > _ymouse)) || (_ymouse > _local5)) {
return(false);
}
return(true);
}
}
Symbol 409 MovieClip [__Packages.CSound] Frame 0
class CSound
{
var SoundId, SoundSeId, SoundSeDepth, CreateSound, CreateSoundMax, MainMc, VolumGradually, VolumGraduallyName, PanumGradually, PanumGraduallyName, MuteFlg;
function CSound (MainMc) {
SoundId = 0;
SoundSeId = 0;
SoundSeDepth = 500;
CreateSound = 0;
CreateSoundMax = 7;
this.MainMc = MainMc;
VolumGradually = MainMc.VolumGradually;
VolumGradually = "VolumGradually";
VolumGraduallyName = MainMc.VolumGraduallyName;
VolumGraduallyName = "VolumGraduallyName";
PanumGradually = MainMc.PanumGradually;
PanumGradually = "PanumGradually";
PanumGraduallyName = MainMc.PanumGraduallyName;
PanumGraduallyName = "PanumGraduallyName";
var _local2 = 0;
while (_local2 < CreateSoundMax) {
MuteVolu[_local2] = 0;
_local2++;
}
MuteFlg = false;
}
function CreateSoundCheck() {
if (CreateSound < CreateSoundMax) {
CreateSound++;
return(true);
}
return(false);
}
function CheckNumber(palam) {
if (palam < 0) {
palam = palam * -1;
palam = int(palam);
}
return(palam);
}
function CheckNumberVolu(palam, min, max) {
if (palam < min) {
palam = min;
} else if (palam > max) {
palam = max;
}
return(palam);
}
function SetSound(McName, EmptyMc, SoundName, Depth) {
if (CreateSoundCheck()) {
} else {
return(undefined);
}
SoundId++;
var _local7 = SoundId + Depth;
var _local6 = McName;
var _local5 = EmptyMc;
var _local2 = MainMc.mc;
_local2 = MainMc.createEmptyMovieClip(_local5, _local7);
var _local3 = new Sound(_local2);
_local3.attachSound(SoundName);
_local3._name = _local6;
SoundList.push(McName);
SoundList[McName] = _local3;
SoundMcList.push(_local2);
SoundMcList[McName] = _local2;
return(_local3);
}
function DeleateSoundCheck(McName) {
SoundMcList[McName._name].removeMovieClip();
CreateSound--;
if (CreateSound < 0) {
CreateSound = 0;
}
}
function VolumUP(McName, SetVol) {
SetVol = CheckNumberVolu(CheckNumber(SetVol), 0, 100);
if (MuteCheck()) {
return(undefined);
}
var _local2 = McName.getVolume();
_local2 = _local2 + Number(SetVol);
_local2 = int(_local2);
if (_local2 > 100) {
_local2 = 100;
}
McName.setVolume(_local2);
}
function VolumDown(McName, SetVol) {
SetVol = CheckNumberVolu(CheckNumber(SetVol), 0, 100);
if (MuteCheck()) {
return(undefined);
}
var _local2 = McName.getVolume();
_local2 = _local2 - Number(SetVol);
_local2 = int(_local2);
if (_local2 < 0) {
_local2 = 0;
}
McName.setVolume(_local2);
}
function VolumGraduallyUp(McName, SetVol, UpSpeed, AddFrame, SoundDepth) {
SetVol = CheckNumberVolu(CheckNumber(SetVol), 0, 100);
UpSpeed = CheckNumberVolu(CheckNumber(UpSpeed), 0, 100);
SoundDepth = CheckNumberVolu(CheckNumber(SoundDepth), 0, 65535);
if (MuteCheck()) {
return(undefined);
}
if (McName[VolumGradually] == "UP") {
return(undefined);
}
if (McName[VolumGradually] == "DOWN") {
eval ("" + McName[VolumGraduallyName]).removeMovieClip();
}
var mc = MovieClip;
var SoundVol = McName.getVolume();
var FrameCnt = 0;
if (SetVol <= SoundVol) {
return(undefined);
}
SoundSeId++;
mc = MainMc.createEmptyMovieClip(McName._name + "VolumGradually", (SoundSeId + SoundDepth) + SoundSeDepth);
McName[VolumGraduallyName] = mc._name;
McName[VolumGradually] = "UP";
mc.onEnterFrame = function () {
if (AddFrame == FrameCnt) {
SoundVol = McName.getVolume();
SoundVol = SoundVol + Number(UpSpeed);
SoundVol = int(SoundVol);
if (SoundVol <= SetVol) {
McName.setVolume(SoundVol);
} else {
McName.setVolume(SetVol);
this.SoundSeId--;
McName.VolumGradually = false;
this.removeMovieClip();
}
FrameCnt = 0;
}
FrameCnt++;
};
}
function VolumGraduallyDown(McName, SetVol, DownSpeed, AddFrame, SoundDepth) {
SetVol = CheckNumberVolu(CheckNumber(SetVol), 0, 100);
DownSpeed = CheckNumberVolu(CheckNumber(DownSpeed), 0, 100);
SoundDepth = CheckNumberVolu(CheckNumber(SoundDepth), 0, 65535);
if (MuteCheck()) {
return(undefined);
}
if (McName[VolumGradually] == "DOWN") {
return(undefined);
}
if (McName[VolumGradually] == "UP") {
McName[VolumGraduallyName].removeMovieClip();
eval ("" + McName[VolumGraduallyName]).removeMovieClip();
}
var mc = MovieClip;
var SoundVol = McName.getVolume();
var FrameCnt = 0;
if (SetVol >= SoundVol) {
return(undefined);
}
SoundSeId++;
mc = MainMc.createEmptyMovieClip(McName._name + "VolumGradually", (SoundSeId + SoundDepth) + SoundSeDepth);
McName[VolumGraduallyName] = mc._name;
McName[VolumGradually] = "DOWN";
mc.onEnterFrame = function () {
if (AddFrame == FrameCnt) {
SoundVol = McName.getVolume();
SoundVol = SoundVol - Number(DownSpeed);
SoundVol = int(SoundVol);
if (SoundVol >= SetVol) {
McName.setVolume(SoundVol);
} else {
McName.setVolume(SetVol);
this.SoundSeId--;
McName.VolumGradually = false;
this.removeMovieClip();
}
FrameCnt = 0;
}
FrameCnt++;
};
}
function MuteOn() {
if (MuteFlg == false) {
DellAllSoundVolu();
MuteFlg = true;
return(undefined);
}
}
function MuteOff() {
if (MuteFlg == true) {
SetAllSoundVolu();
MuteFlg = false;
}
}
function MuteCheck() {
if (MuteFlg == true) {
return(true);
}
return(false);
}
function DellAllSoundVolu() {
var _local2;
var _local4 = new Array();
var _local3;
_local2 = 0;
while (_local2 < CreateSoundMax) {
_local3 = SoundList[_local2];
MuteVolu[_local2] = SoundList[_local3].getVolume();
SoundList[_local3].setVolume(0);
_local2++;
}
}
function SetAllSoundVolu() {
var _local2;
var _local4 = new Array();
var _local3;
_local2 = 0;
while (_local2 < CreateSoundMax) {
_local3 = SoundList[_local2];
if (SoundList[_local3].getVolume() == undefined) {
MuteVolu[_local2] = 100;
}
SoundList[_local3].setVolume(MuteVolu[_local2]);
_local2++;
}
}
function PanAddLeft(McName, SetPan) {
SetPan = CheckNumberVolu(CheckNumber(SetPan), 0, 100);
if (MuteCheck()) {
return(undefined);
}
var _local2 = McName.getPan();
_local2 = _local2 - Number(SetPan);
_local2 = int(_local2);
if (_local2 < -100) {
_local2 = -100;
}
McName.setPan(_local2);
}
function PanAddRight(McName, SetPan) {
SetPan = CheckNumberVolu(CheckNumber(SetPan), 0, 100);
if (MuteCheck()) {
return(undefined);
}
var _local2 = McName.getPan();
_local2 = _local2 + Number(SetPan);
_local2 = int(_local2);
if (_local2 > 100) {
_local2 = 100;
}
McName.setPan(_local2);
}
function VolumGraduallyLeftPan(McName, SetPan, AddSpeed, AddFrame, SoundDepth) {
SetPan = CheckNumberVolu(CheckNumber(SetPan), 0, 100) * -1;
AddSpeed = CheckNumberVolu(CheckNumber(AddSpeed), 0, 100);
SoundDepth = CheckNumberVolu(CheckNumber(SoundDepth), 0, 65535);
if (MuteCheck()) {
return(undefined);
}
if (McName[PanumGradually] == "Left") {
return(undefined);
}
if (McName[PanumGradually] == "Right") {
eval ("" + McName[PanumGraduallyName]).removeMovieClip();
}
var mc = MovieClip;
var PanVol = McName.getPan();
var FrameCnt = 0;
if (SetPan >= PanVol) {
return(undefined);
}
SoundSeId++;
mc = MainMc.createEmptyMovieClip(McName._name + "PanumGradually", (SoundSeId + SoundDepth) + SoundSeDepth);
McName[PanumGraduallyName] = mc._name;
McName[PanumGradually] = "Left";
mc.onEnterFrame = function () {
if (AddFrame == FrameCnt) {
PanVol = McName.getPan();
PanVol = PanVol - Number(AddSpeed);
PanVol = int(PanVol);
if (PanVol >= SetPan) {
McName.setPan(PanVol);
} else {
McName.setPan(SetPan);
this.SoundSeId--;
McName.PanumGradually = false;
this.removeMovieClip();
}
FrameCnt = 0;
}
FrameCnt++;
};
}
function VolumGraduallyRightPan(McName, SetPan, AddSpeed, AddFrame, SoundDepth) {
SetPan = CheckNumberVolu(CheckNumber(SetPan), 0, 100);
AddSpeed = CheckNumberVolu(CheckNumber(AddSpeed), 0, 100);
SoundDepth = CheckNumberVolu(CheckNumber(SoundDepth), 0, 65535);
if (MuteCheck()) {
return(undefined);
}
if (McName[PanumGradually] == "Right") {
return(undefined);
}
if (McName[PanumGradually] == "Left") {
eval ("" + McName[PanumGraduallyName]).removeMovieClip();
}
var mc = MovieClip;
var PanVol = McName.getPan();
var FrameCnt = 0;
if (SetPan <= PanVol) {
return(undefined);
}
SoundSeId++;
mc = MainMc.createEmptyMovieClip(McName._name + "PanumGradually", (SoundSeId + SoundDepth) + SoundSeDepth);
McName[PanumGraduallyName] = mc._name;
McName[PanumGradually] = "Right";
mc.onEnterFrame = function () {
if (AddFrame == FrameCnt) {
PanVol = McName.getPan();
PanVol = PanVol + Number(AddSpeed);
PanVol = int(PanVol);
if (PanVol <= SetPan) {
McName.setPan(PanVol);
} else {
McName.setPan(SetPan);
this.SoundSeId--;
McName.PanumGradually = false;
this.removeMovieClip();
}
FrameCnt = 0;
}
FrameCnt++;
};
}
var MuteVolu = new Array();
var SoundList = new Array();
var SoundMcList = new Array();
}
Symbol 410 MovieClip [__Packages.ClassPutArea] Frame 0
class ClassPutArea
{
var MainMc, MaxTile, ConnectLine, BeeSmall, BeeNormal, BeeBig;
function ClassPutArea (mc, _MaxTile) {
MainMc = mc;
MaxTile = _MaxTile;
}
function Initialize(MC, No) {
ConnetTopLine[No] = false;
ConnetLeftLine[No] = false;
ConnetRightLine[No] = false;
PutAreaPoji[No] = {PojiX:MC._x, PojiY:MC._y, Putflg:false, _TOP:0, _LEFT:0, _RIGHT:0, _Tile:undefined};
}
function SetAreaPojiData(MC, No) {
PutAreaPoji[No] = {PojiX:MC._x, PojiY:MC._y, Putflg:false, _TOP:0, _LEFT:0, _RIGHT:0};
}
function CheckLineStatus() {
var _local6 = Number;
var _local7 = Number;
var _local8 = Number;
var _local9 = Number;
var _local5;
var _local4;
var _local3;
var _local2 = 0;
_local6 = 0;
_local7 = 0;
_local8 = 0;
_local9 = 0;
ConnectLine = 0;
BeeSmall = 0;
BeeNormal = 0;
BeeBig = 0;
_local5 = 0;
while (_local5 < 5) {
ConnetTopLine[_local5] = false;
ConnetLeftLine[_local5] = false;
ConnetRightLine[_local5] = false;
_local5++;
}
_local4 = true;
if (PutAreaPoji[0]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[3]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[7]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[0]._TOP == "ANY") {
_local2 = PutAreaPoji[3]._TOP;
if (PutAreaPoji[3]._TOP == "ANY") {
_local2 = PutAreaPoji[7]._TOP;
if (PutAreaPoji[7]._TOP == "ANY") {
_local2 = 1;
}
}
}
if (_local4 == true) {
if (PutAreaPoji[0]._TOP != PutAreaPoji[3]._TOP) {
if (PutAreaPoji[0]._TOP != "ANY") {
if ("ANY" != PutAreaPoji[3]._TOP) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[0]._TOP, PutAreaPoji[3]._TOP, _local2);
if (_local2 != PutAreaPoji[7]._TOP) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[7]._TOP) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[3]._TOP, PutAreaPoji[7]._TOP, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectTopLine(0, true);
_local6++;
_local7++;
}
}
_local4 = true;
if (PutAreaPoji[1]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[4]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[8]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[12]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[1]._TOP == "ANY") {
_local2 = PutAreaPoji[4]._TOP;
if (PutAreaPoji[4]._TOP == "ANY") {
_local2 = PutAreaPoji[8]._TOP;
if (PutAreaPoji[8]._TOP == "ANY") {
_local2 = PutAreaPoji[12]._TOP;
if (PutAreaPoji[12]._TOP == "ANY") {
_local2 = 1;
}
}
}
}
if (_local4 == true) {
if (PutAreaPoji[1]._TOP != PutAreaPoji[4]._TOP) {
if (PutAreaPoji[1]._TOP != "ANY") {
if ("ANY" != PutAreaPoji[4]._TOP) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[1]._TOP, PutAreaPoji[4]._TOP, _local2);
if (_local2 != PutAreaPoji[8]._TOP) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[8]._TOP) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[4]._TOP, PutAreaPoji[8]._TOP, _local2);
if (_local2 != PutAreaPoji[12]._TOP) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[12]._TOP) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[8]._TOP, PutAreaPoji[12]._TOP, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectTopLine(1, true);
_local6++;
_local8++;
}
}
_local4 = true;
if (PutAreaPoji[2]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[5]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[9]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[13]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[16]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[2]._TOP == "ANY") {
_local2 = PutAreaPoji[5]._TOP;
if (PutAreaPoji[5]._TOP == "ANY") {
_local2 = PutAreaPoji[9]._TOP;
if (PutAreaPoji[9]._TOP == "ANY") {
_local2 = PutAreaPoji[13]._TOP;
if (PutAreaPoji[13]._TOP == "ANY") {
_local2 = PutAreaPoji[16]._TOP;
if (PutAreaPoji[16]._TOP == "ANY") {
_local2 = 1;
}
}
}
}
}
if (_local4 == true) {
if (PutAreaPoji[2]._TOP != PutAreaPoji[5]._TOP) {
if (PutAreaPoji[2]._TOP != "ANY") {
if ("ANY" != PutAreaPoji[5]._TOP) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[2]._TOP, PutAreaPoji[5]._TOP, _local2);
if (_local2 != PutAreaPoji[9]._TOP) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[9]._TOP) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[5]._TOP, PutAreaPoji[9]._TOP, _local2);
if (_local2 != PutAreaPoji[13]._TOP) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[13]._TOP) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[9]._TOP, PutAreaPoji[13]._TOP, _local2);
if (_local2 != PutAreaPoji[16]._TOP) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[16]._TOP) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[13]._TOP, PutAreaPoji[16]._TOP, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectTopLine(2, true);
_local6++;
_local9++;
}
}
_local4 = true;
if (PutAreaPoji[6]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[10]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[14]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[17]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[6]._TOP == "ANY") {
_local2 = PutAreaPoji[10]._TOP;
if (PutAreaPoji[10]._TOP == "ANY") {
_local2 = PutAreaPoji[14]._TOP;
if (PutAreaPoji[14]._TOP == "ANY") {
_local2 = PutAreaPoji[17]._TOP;
if (PutAreaPoji[17]._TOP == 1) {
}
}
}
}
if (_local4 == true) {
if (PutAreaPoji[6]._TOP != PutAreaPoji[10]._TOP) {
if (PutAreaPoji[6]._TOP != "ANY") {
if ("ANY" != PutAreaPoji[10]._TOP) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[6]._TOP, PutAreaPoji[10]._TOP, _local2);
if (_local2 != PutAreaPoji[14]._TOP) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[14]._TOP) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[10]._TOP, PutAreaPoji[14]._TOP, _local2);
if (_local2 != PutAreaPoji[17]._TOP) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[17]._TOP) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[14]._TOP, PutAreaPoji[17]._TOP, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectTopLine(3, true);
_local6++;
_local8++;
}
}
_local4 = true;
if (PutAreaPoji[11]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[15]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[18]._TOP == 0) {
_local4 = false;
}
if (PutAreaPoji[11]._TOP == "ANY") {
_local2 = PutAreaPoji[15]._TOP;
if (PutAreaPoji[15]._TOP == "ANY") {
_local2 = PutAreaPoji[18]._TOP;
if (PutAreaPoji[18]._TOP == "ANY") {
_local2 = 1;
}
}
}
if (_local4 == true) {
if (PutAreaPoji[11]._TOP != PutAreaPoji[15]._TOP) {
if (PutAreaPoji[11]._TOP != "ANY") {
if ("ANY" != PutAreaPoji[15]._TOP) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[11]._TOP, PutAreaPoji[15]._TOP, _local2);
if (_local2 != PutAreaPoji[18]._TOP) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[18]._TOP) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[15]._TOP, PutAreaPoji[18]._TOP, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectTopLine(4, true);
_local6++;
_local7++;
}
}
_local4 = true;
if (PutAreaPoji[7]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[12]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[16]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[7]._RIGHT == "ANY") {
_local2 = PutAreaPoji[12]._RIGHT;
if (PutAreaPoji[12]._RIGHT == "ANY") {
_local2 = PutAreaPoji[16]._RIGHT;
if (PutAreaPoji[16]._RIGHT == "ANY") {
_local2 = 1;
}
}
}
if (_local4 == true) {
if (PutAreaPoji[7]._RIGHT != PutAreaPoji[12]._RIGHT) {
if (PutAreaPoji[7]._RIGHT != "ANY") {
if ("ANY" != PutAreaPoji[12]._RIGHT) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[7]._RIGHT, PutAreaPoji[12]._RIGHT, _local2);
if (_local2 != PutAreaPoji[16]._RIGHT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[16]._RIGHT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[12]._RIGHT, PutAreaPoji[16]._RIGHT, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectRightLine(0, true);
_local6++;
_local7++;
}
}
_local4 = true;
if (PutAreaPoji[3]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[8]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[13]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[17]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[3]._RIGHT == "ANY") {
_local2 = PutAreaPoji[8]._RIGHT;
if (PutAreaPoji[8]._RIGHT == "ANY") {
_local2 = PutAreaPoji[13]._RIGHT;
if (PutAreaPoji[13]._RIGHT == "ANY") {
_local2 = PutAreaPoji[17]._RIGHT;
if (PutAreaPoji[17]._RIGHT == "ANY") {
_local2 = 1;
}
}
}
}
if (_local4 == true) {
if (PutAreaPoji[3]._RIGHT != PutAreaPoji[8]._RIGHT) {
if (PutAreaPoji[3]._RIGHT != "ANY") {
if ("ANY" != PutAreaPoji[8]._RIGHT) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[3]._RIGHT, PutAreaPoji[8]._RIGHT, _local2);
if (_local2 != PutAreaPoji[13]._RIGHT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[13]._RIGHT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[8]._RIGHT, PutAreaPoji[13]._RIGHT, _local2);
if (_local2 != PutAreaPoji[17]._RIGHT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[17]._RIGHT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[13]._RIGHT, PutAreaPoji[17]._RIGHT, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectRightLine(1, true);
_local6++;
_local8++;
}
}
_local4 = true;
if (PutAreaPoji[0]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[4]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[9]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[14]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[18]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[0]._RIGHT == "ANY") {
_local2 = PutAreaPoji[4]._RIGHT;
if (PutAreaPoji[4]._RIGHT == "ANY") {
_local2 = PutAreaPoji[9]._RIGHT;
if (PutAreaPoji[9]._RIGHT == "ANY") {
_local2 = PutAreaPoji[14]._RIGHT;
if (PutAreaPoji[14]._RIGHT == "ANY") {
_local2 = PutAreaPoji[18]._RIGHT;
if (PutAreaPoji[18]._RIGHT == "ANY") {
_local2 = 1;
}
}
}
}
}
if (_local4 == true) {
if (PutAreaPoji[0]._RIGHT != PutAreaPoji[4]._RIGHT) {
if (PutAreaPoji[0]._RIGHT != "ANY") {
if ("ANY" != PutAreaPoji[4]._RIGHT) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[0]._RIGHT, PutAreaPoji[4]._RIGHT, _local2);
if (_local2 != PutAreaPoji[9]._RIGHT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[9]._RIGHT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[4]._RIGHT, PutAreaPoji[9]._RIGHT, _local2);
if (_local2 != PutAreaPoji[14]._RIGHT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[14]._RIGHT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[9]._RIGHT, PutAreaPoji[14]._RIGHT, _local2);
if (_local2 != PutAreaPoji[18]._RIGHT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[18]._RIGHT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[14]._RIGHT, PutAreaPoji[18]._RIGHT, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectRightLine(2, true);
_local6++;
_local9++;
}
}
_local4 = true;
if (PutAreaPoji[1]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[5]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[10]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[15]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[1]._RIGHT == "ANY") {
_local2 = PutAreaPoji[5]._RIGHT;
if (PutAreaPoji[5]._RIGHT == "ANY") {
_local2 = PutAreaPoji[10]._RIGHT;
if (PutAreaPoji[10]._RIGHT == "ANY") {
_local2 = PutAreaPoji[15]._RIGHT;
if (PutAreaPoji[15]._RIGHT == 1) {
}
}
}
}
if (_local4 == true) {
if (PutAreaPoji[1]._RIGHT != PutAreaPoji[5]._RIGHT) {
if (PutAreaPoji[1]._RIGHT != "ANY") {
if ("ANY" != PutAreaPoji[5]._RIGHT) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[1]._RIGHT, PutAreaPoji[5]._RIGHT, _local2);
if (_local2 != PutAreaPoji[10]._RIGHT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[10]._RIGHT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[5]._RIGHT, PutAreaPoji[10]._RIGHT, _local2);
if (_local2 != PutAreaPoji[15]._RIGHT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[15]._RIGHT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[10]._RIGHT, PutAreaPoji[15]._RIGHT, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectRightLine(3, true);
_local6++;
_local8++;
}
}
_local4 = true;
if (PutAreaPoji[2]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[6]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[11]._RIGHT == 0) {
_local4 = false;
}
if (PutAreaPoji[2]._RIGHT == "ANY") {
_local2 = PutAreaPoji[6]._RIGHT;
if (PutAreaPoji[6]._RIGHT == "ANY") {
_local2 = PutAreaPoji[11]._RIGHT;
if (PutAreaPoji[11]._RIGHT == "ANY") {
_local2 = 1;
}
}
}
if (_local4 == true) {
if (PutAreaPoji[2]._RIGHT != PutAreaPoji[6]._RIGHT) {
if (PutAreaPoji[2]._RIGHT != "ANY") {
if ("ANY" != PutAreaPoji[6]._RIGHT) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[2]._RIGHT, PutAreaPoji[6]._RIGHT, _local2);
if (_local2 != PutAreaPoji[11]._RIGHT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[11]._RIGHT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[6]._RIGHT, PutAreaPoji[11]._RIGHT, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectRightLine(4, true);
_local6++;
_local7++;
}
}
_local4 = true;
if (PutAreaPoji[0]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[1]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[2]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[0]._LEFT == "ANY") {
_local2 = PutAreaPoji[1]._LEFT;
if (PutAreaPoji[1]._LEFT == "ANY") {
_local2 = PutAreaPoji[2]._LEFT;
if (PutAreaPoji[2]._LEFT == "ANY") {
_local2 = 1;
}
}
}
if (_local4 == true) {
if (PutAreaPoji[0]._LEFT != PutAreaPoji[1]._LEFT) {
if (PutAreaPoji[0]._LEFT != "ANY") {
if ("ANY" != PutAreaPoji[1]._LEFT) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[0]._LEFT, PutAreaPoji[1]._LEFT, _local2);
if (_local2 != PutAreaPoji[2]._LEFT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[2]._LEFT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[1]._LEFT, PutAreaPoji[2]._LEFT, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectLeftLine(0, true);
_local6++;
_local7++;
}
}
_local4 = true;
if (PutAreaPoji[3]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[4]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[5]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[6]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[3]._LEFT == "ANY") {
_local2 = PutAreaPoji[4]._LEFT;
if (PutAreaPoji[4]._LEFT == "ANY") {
_local2 = PutAreaPoji[5]._LEFT;
if (PutAreaPoji[5]._LEFT == "ANY") {
_local2 = PutAreaPoji[6]._LEFT;
if (PutAreaPoji[6]._LEFT == "ANY") {
_local2 = 1;
}
}
}
}
if (_local4 == true) {
if (PutAreaPoji[3]._LEFT != PutAreaPoji[4]._LEFT) {
if (PutAreaPoji[3]._LEFT != "ANY") {
if ("ANY" != PutAreaPoji[4]._LEFT) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[3]._LEFT, PutAreaPoji[4]._LEFT, _local2);
if (_local2 != PutAreaPoji[5]._LEFT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[5]._LEFT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[4]._LEFT, PutAreaPoji[5]._LEFT, _local2);
if (_local2 != PutAreaPoji[6]._LEFT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[6]._LEFT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[5]._LEFT, PutAreaPoji[6]._LEFT, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectLeftLine(1, true);
_local6++;
_local8++;
}
}
_local4 = true;
if (PutAreaPoji[7]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[8]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[9]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[10]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[11]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[7]._LEFT == "ANY") {
_local2 = PutAreaPoji[8]._LEFT;
if (PutAreaPoji[8]._LEFT == "ANY") {
_local2 = PutAreaPoji[9]._LEFT;
if (PutAreaPoji[9]._LEFT == "ANY") {
_local2 = PutAreaPoji[10]._LEFT;
if (PutAreaPoji[10]._LEFT == "ANY") {
_local2 = PutAreaPoji[11]._LEFT;
if (PutAreaPoji[11]._LEFT == "ANY") {
_local2 = 1;
}
}
}
}
}
if (_local4 == true) {
if (PutAreaPoji[7]._LEFT != PutAreaPoji[8]._LEFT) {
if (PutAreaPoji[7]._LEFT != "ANY") {
if ("ANY" != PutAreaPoji[8]._LEFT) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[7]._LEFT, PutAreaPoji[8]._LEFT, _local2);
if (_local2 != PutAreaPoji[9]._LEFT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[9]._LEFT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[8]._LEFT, PutAreaPoji[9]._LEFT, _local2);
if (_local2 != PutAreaPoji[10]._LEFT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[10]._LEFT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[9]._LEFT, PutAreaPoji[10]._LEFT, _local2);
if (_local2 != PutAreaPoji[11]._LEFT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[11]._LEFT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[10]._LEFT, PutAreaPoji[11]._LEFT, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectLeftLine(2, true);
_local6++;
_local9++;
}
}
_local4 = true;
if (PutAreaPoji[12]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[13]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[14]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[15]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[12]._LEFT == "ANY") {
_local2 = PutAreaPoji[13]._LEFT;
if (PutAreaPoji[13]._LEFT == "ANY") {
_local2 = PutAreaPoji[14]._LEFT;
if (PutAreaPoji[14]._LEFT == "ANY") {
_local2 = PutAreaPoji[15]._LEFT;
if (PutAreaPoji[15]._LEFT == 1) {
}
}
}
}
if (_local4 == true) {
if (PutAreaPoji[12]._LEFT != PutAreaPoji[13]._LEFT) {
if (PutAreaPoji[12]._LEFT != "ANY") {
if ("ANY" != PutAreaPoji[13]._LEFT) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[12]._LEFT, PutAreaPoji[13]._LEFT, _local2);
if (_local2 != PutAreaPoji[14]._LEFT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[14]._LEFT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[13]._LEFT, PutAreaPoji[14]._LEFT, _local2);
if (_local2 != PutAreaPoji[15]._LEFT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[15]._LEFT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[15]._LEFT, PutAreaPoji[15]._LEFT, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectLeftLine(3, true);
_local6++;
_local8++;
}
}
_local4 = true;
if (PutAreaPoji[16]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[17]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[18]._LEFT == 0) {
_local4 = false;
}
if (PutAreaPoji[16]._LEFT == "ANY") {
_local2 = PutAreaPoji[6]._LEFT;
if (PutAreaPoji[17]._LEFT == "ANY") {
_local2 = PutAreaPoji[11]._LEFT;
if (PutAreaPoji[18]._LEFT == "ANY") {
_local2 = 1;
}
}
}
if (_local4 == true) {
if (PutAreaPoji[16]._LEFT != PutAreaPoji[17]._LEFT) {
if (PutAreaPoji[16]._LEFT != "ANY") {
if ("ANY" != PutAreaPoji[17]._LEFT) {
_local3 = false;
_local2 = 0;
} else {
_local3 = true;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[16]._LEFT, PutAreaPoji[17]._LEFT, _local2);
if (_local2 != PutAreaPoji[18]._LEFT) {
if (_local2 != "ANY") {
if ("ANY" != PutAreaPoji[18]._LEFT) {
_local3 = false;
_local2 = 0;
}
} else {
_local3 = true;
}
} else {
_local3 = true;
}
_local2 = LineParamcheck(_local3, PutAreaPoji[17]._LEFT, PutAreaPoji[18]._LEFT, _local2);
if ((_local2 != 0) || (_local2 == "ANY")) {
SetConnectLeftLine(4, true);
_local6++;
_local7++;
}
}
ConnectLine = _local6;
BeeSmall = _local7;
BeeNormal = _local8;
BeeBig = _local9;
return(undefined);
}
function LineParamcheck(Flg, Param0, Param1, Param2) {
if ((Param0 == 0) || (Param1 == 0)) {
return(0);
}
if (Flg == true) {
if (Param0 == Param1) {
if (Param0 == "ANY") {
return(Param2);
}
return(Param0);
}
if (Param0 == "ANY") {
return(Param1);
}
if (Param1 == "ANY") {
return(Param0);
}
return(Param2);
}
return(0);
}
function SetConnectTopLine(No, Status) {
ConnetTopLine[No] = Status;
}
function SetConnectRightLine(No, Status) {
ConnetRightLine[No] = Status;
}
function SetConnectLeftLine(No, Status) {
ConnetLeftLine[No] = Status;
}
function LimeParamCheck(param) {
if (param == 0) {
return(false);
}
return(true);
}
var PutAreaPoji = new Array();
var ConnetTopLine = new Array();
var ConnetLeftLine = new Array();
var ConnetRightLine = new Array();
}
Symbol 411 MovieClip [__Packages.ClassTile] Frame 0
class ClassTile
{
var MainMc, TileId, MaxTile, loop;
function ClassTile (mc, _MaxTile) {
MainMc = mc;
TileId = 0;
MaxTile = _MaxTile;
TileNumberingList = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18];
}
function Initialize(RandomFlg, SetList) {
if (RandomFlg) {
TileParamPattern(random(7));
TileNumberingList = ListToRandom(TileNumberingList);
} else {
TileParamPattern(random(1));
TileNumberingList = ListToRandomWithFreeGame(TileNumberingList, SetList);
}
SetTileParam();
loop = 0;
while (loop < MaxTile) {
LineEfectFlg[loop] = {_TOP:false, _LEFT:false, _RIGHT:false};
loop++;
}
}
function ListToRandom(ImportList) {
var _local4 = new Array();
var _local1 = new Array();
var _local2 = (Number = ImportList.length);
var _local3 = (Number = 0);
_local4[0] = "";
_local1[0] = 0;
while (_local1[0] < _local2) {
_local3 = random(_local2);
_local1[1] = 0;
while (_local1[1] < _local2) {
if (_local4[_local1[1]] != _local3) {
_local1[1]++;
} else {
_local3 = random(_local2);
_local1[1] = 0;
}
}
_local4[_local1[0]] = _local3;
_local1[0]++;
}
_local1[0] = 0;
while (_local1[0] < _local2) {
_local4[_local1[0]] = ImportList[_local4[_local1[0]]];
_local1[0]++;
}
return(_local4);
}
function ListToRandomWithFreeGame(ImportList, SetTileNoList) {
var _local7 = new Array();
var _local4 = new Array();
var _local2 = new Array();
var _local6 = (Number = ImportList.length);
var _local9 = (Number = SetTileNoList.length);
var _local10 = (Number = 0);
_local4[0] = "";
var _local3 = 0;
(_local2[0] = 0);
_local3 = 0;
while (_local2[0] < _local6) {
_local2[1] = 0;
while (_local2[1] < _local9) {
if (ImportList[_local3] == SetTileNoList[_local2[1]]) {
_local3++;
}
_local2[1]++;
}
if (ImportList[_local3] != undefined) {
_local7[_local2[0]] = ImportList[_local3];
}
_local2[0]++;
_local3++;
}
_local6 = _local7.length;
_local2[0] = 0;
while (_local2[0] < _local6) {
_local4[_local2[0]] = _local2[0];
_local2[0]++;
}
_local4 = ListToRandom(_local4);
_local2[0] = 0;
while (_local2[0] < _local6) {
_local4[_local2[0]] = _local7[_local4[_local2[0]]];
_local2[0]++;
}
_local4 = SetTileNoList.concat(_local4);
return(_local4);
}
function SetTileParam() {
loop = 0;
while (loop < MaxTile) {
TileParam[loop] = new Array();
TileParam[loop] = {_TOP:SetParamPattern[TileNumberingList[loop]]._TOP, _RIGHT:SetParamPattern[TileNumberingList[loop]]._RIGHT, _LEFT:SetParamPattern[TileNumberingList[loop]]._LEFT, _PUTAREA:undefined, _CREATE:false};
loop++;
}
}
function TileParamPattern(SetNo) {
switch (SetNo) {
case 0 :
SetParamPattern[0] = {_TOP:1, _RIGHT:2, _LEFT:2};
SetParamPattern[1] = {_TOP:2, _RIGHT:3, _LEFT:2};
SetParamPattern[2] = {_TOP:3, _RIGHT:1, _LEFT:2};
SetParamPattern[3] = {_TOP:1, _RIGHT:1, _LEFT:2};
SetParamPattern[4] = {_TOP:2, _RIGHT:2, _LEFT:2};
SetParamPattern[5] = {_TOP:3, _RIGHT:3, _LEFT:2};
SetParamPattern[6] = {_TOP:2, _RIGHT:1, _LEFT:2};
SetParamPattern[7] = {_TOP:1, _RIGHT:3, _LEFT:3};
SetParamPattern[8] = {_TOP:2, _RIGHT:1, _LEFT:3};
SetParamPattern[9] = {_TOP:3, _RIGHT:2, _LEFT:3};
SetParamPattern[10] = {_TOP:2, _RIGHT:3, _LEFT:3};
SetParamPattern[11] = {_TOP:1, _RIGHT:1, _LEFT:3};
SetParamPattern[12] = {_TOP:2, _RIGHT:3, _LEFT:1};
SetParamPattern[13] = {_TOP:3, _RIGHT:1, _LEFT:1};
SetParamPattern[14] = {_TOP:2, _RIGHT:2, _LEFT:1};
SetParamPattern[15] = {_TOP:1, _RIGHT:3, _LEFT:1};
SetParamPattern[16] = {_TOP:3, _RIGHT:3, _LEFT:1};
SetParamPattern[17] = {_TOP:2, _RIGHT:1, _LEFT:1};
SetParamPattern[18] = {_TOP:1, _RIGHT:2, _LEFT:1};
break;
case 1 :
SetParamPattern[0] = {_TOP:3, _RIGHT:3, _LEFT:1};
SetParamPattern[1] = {_TOP:1, _RIGHT:2, _LEFT:1};
SetParamPattern[2] = {_TOP:2, _RIGHT:2, _LEFT:1};
SetParamPattern[3] = {_TOP:3, _RIGHT:1, _LEFT:2};
SetParamPattern[4] = {_TOP:1, _RIGHT:3, _LEFT:2};
SetParamPattern[5] = {_TOP:2, _RIGHT:2, _LEFT:2};
SetParamPattern[6] = {_TOP:3, _RIGHT:1, _LEFT:2};
SetParamPattern[7] = {_TOP:3, _RIGHT:1, _LEFT:3};
SetParamPattern[8] = {_TOP:1, _RIGHT:1, _LEFT:3};
SetParamPattern[9] = {_TOP:2, _RIGHT:3, _LEFT:3};
SetParamPattern[10] = {_TOP:3, _RIGHT:2, _LEFT:3};
SetParamPattern[11] = {_TOP:1, _RIGHT:2, _LEFT:3};
SetParamPattern[12] = {_TOP:1, _RIGHT:1, _LEFT:2};
SetParamPattern[13] = {_TOP:2, _RIGHT:1, _LEFT:2};
SetParamPattern[14] = {_TOP:3, _RIGHT:3, _LEFT:2};
SetParamPattern[15] = {_TOP:1, _RIGHT:2, _LEFT:2};
SetParamPattern[16] = {_TOP:2, _RIGHT:1, _LEFT:1};
SetParamPattern[17] = {_TOP:3, _RIGHT:1, _LEFT:1};
SetParamPattern[18] = {_TOP:1, _RIGHT:3, _LEFT:1};
break;
case 2 :
SetParamPattern[0] = {_TOP:1, _RIGHT:3, _LEFT:3};
SetParamPattern[1] = {_TOP:1, _RIGHT:2, _LEFT:3};
SetParamPattern[2] = {_TOP:3, _RIGHT:1, _LEFT:3};
SetParamPattern[3] = {_TOP:1, _RIGHT:2, _LEFT:1};
SetParamPattern[4] = {_TOP:1, _RIGHT:3, _LEFT:1};
SetParamPattern[5] = {_TOP:3, _RIGHT:2, _LEFT:1};
SetParamPattern[6] = {_TOP:2, _RIGHT:1, _LEFT:1};
SetParamPattern[7] = {_TOP:1, _RIGHT:1, _LEFT:2};
SetParamPattern[8] = {_TOP:1, _RIGHT:2, _LEFT:2};
SetParamPattern[9] = {_TOP:3, _RIGHT:3, _LEFT:2};
SetParamPattern[10] = {_TOP:2, _RIGHT:2, _LEFT:2};
SetParamPattern[11] = {_TOP:2, _RIGHT:1, _LEFT:2};
SetParamPattern[12] = {_TOP:1, _RIGHT:1, _LEFT:3};
SetParamPattern[13] = {_TOP:3, _RIGHT:2, _LEFT:3};
SetParamPattern[14] = {_TOP:2, _RIGHT:3, _LEFT:3};
SetParamPattern[15] = {_TOP:2, _RIGHT:2, _LEFT:3};
SetParamPattern[16] = {_TOP:3, _RIGHT:1, _LEFT:1};
SetParamPattern[17] = {_TOP:2, _RIGHT:2, _LEFT:1};
SetParamPattern[18] = {_TOP:2, _RIGHT:3, _LEFT:1};
break;
case 3 :
SetParamPattern[0] = {_TOP:1, _RIGHT:2, _LEFT:1};
SetParamPattern[1] = {_TOP:2, _RIGHT:1, _LEFT:1};
SetParamPattern[2] = {_TOP:3, _RIGHT:3, _LEFT:1};
SetParamPattern[3] = {_TOP:1, _RIGHT:3, _LEFT:1};
SetParamPattern[4] = {_TOP:2, _RIGHT:2, _LEFT:1};
SetParamPattern[5] = {_TOP:3, _RIGHT:1, _LEFT:1};
SetParamPattern[6] = {_TOP:2, _RIGHT:3, _LEFT:1};
SetParamPattern[7] = {_TOP:1, _RIGHT:1, _LEFT:3};
SetParamPattern[8] = {_TOP:2, _RIGHT:3, _LEFT:3};
SetParamPattern[9] = {_TOP:3, _RIGHT:2, _LEFT:3};
SetParamPattern[10] = {_TOP:2, _RIGHT:1, _LEFT:3};
SetParamPattern[11] = {_TOP:1, _RIGHT:3, _LEFT:3};
SetParamPattern[12] = {_TOP:2, _RIGHT:1, _LEFT:2};
SetParamPattern[13] = {_TOP:3, _RIGHT:3, _LEFT:2};
SetParamPattern[14] = {_TOP:2, _RIGHT:2, _LEFT:2};
SetParamPattern[15] = {_TOP:1, _RIGHT:1, _LEFT:2};
SetParamPattern[16] = {_TOP:3, _RIGHT:1, _LEFT:2};
SetParamPattern[17] = {_TOP:2, _RIGHT:3, _LEFT:2};
SetParamPattern[18] = {_TOP:1, _RIGHT:2, _LEFT:2};
break;
case 4 :
SetParamPattern[0] = {_TOP:1, _RIGHT:3, _LEFT:1};
SetParamPattern[1] = {_TOP:3, _RIGHT:1, _LEFT:1};
SetParamPattern[2] = {_TOP:2, _RIGHT:1, _LEFT:1};
SetParamPattern[3] = {_TOP:1, _RIGHT:2, _LEFT:2};
SetParamPattern[4] = {_TOP:3, _RIGHT:3, _LEFT:2};
SetParamPattern[5] = {_TOP:2, _RIGHT:1, _LEFT:2};
SetParamPattern[6] = {_TOP:1, _RIGHT:1, _LEFT:2};
SetParamPattern[7] = {_TOP:1, _RIGHT:2, _LEFT:3};
SetParamPattern[8] = {_TOP:3, _RIGHT:2, _LEFT:3};
SetParamPattern[9] = {_TOP:2, _RIGHT:3, _LEFT:3};
SetParamPattern[10] = {_TOP:1, _RIGHT:1, _LEFT:3};
SetParamPattern[11] = {_TOP:3, _RIGHT:1, _LEFT:3};
SetParamPattern[12] = {_TOP:3, _RIGHT:2, _LEFT:2};
SetParamPattern[13] = {_TOP:2, _RIGHT:2, _LEFT:2};
SetParamPattern[14] = {_TOP:1, _RIGHT:3, _LEFT:2};
SetParamPattern[15] = {_TOP:3, _RIGHT:1, _LEFT:2};
SetParamPattern[16] = {_TOP:2, _RIGHT:2, _LEFT:1};
SetParamPattern[17] = {_TOP:1, _RIGHT:2, _LEFT:1};
SetParamPattern[18] = {_TOP:3, _RIGHT:3, _LEFT:1};
break;
case 5 :
SetParamPattern[0] = {_TOP:2, _RIGHT:3, _LEFT:1};
SetParamPattern[1] = {_TOP:2, _RIGHT:2, _LEFT:1};
SetParamPattern[2] = {_TOP:3, _RIGHT:1, _LEFT:1};
SetParamPattern[3] = {_TOP:2, _RIGHT:2, _LEFT:3};
SetParamPattern[4] = {_TOP:2, _RIGHT:3, _LEFT:3};
SetParamPattern[5] = {_TOP:3, _RIGHT:2, _LEFT:3};
SetParamPattern[6] = {_TOP:1, _RIGHT:1, _LEFT:3};
SetParamPattern[7] = {_TOP:2, _RIGHT:1, _LEFT:2};
SetParamPattern[8] = {_TOP:2, _RIGHT:2, _LEFT:2};
SetParamPattern[9] = {_TOP:3, _RIGHT:3, _LEFT:2};
SetParamPattern[10] = {_TOP:1, _RIGHT:2, _LEFT:2};
SetParamPattern[11] = {_TOP:1, _RIGHT:1, _LEFT:2};
SetParamPattern[12] = {_TOP:2, _RIGHT:1, _LEFT:1};
SetParamPattern[13] = {_TOP:3, _RIGHT:2, _LEFT:1};
SetParamPattern[14] = {_TOP:1, _RIGHT:3, _LEFT:1};
SetParamPattern[15] = {_TOP:1, _RIGHT:2, _LEFT:1};
SetParamPattern[16] = {_TOP:3, _RIGHT:1, _LEFT:3};
SetParamPattern[17] = {_TOP:1, _RIGHT:2, _LEFT:3};
SetParamPattern[18] = {_TOP:1, _RIGHT:3, _LEFT:3};
break;
case 6 :
SetParamPattern[0] = {_TOP:3, _RIGHT:1, _LEFT:3};
SetParamPattern[1] = {_TOP:2, _RIGHT:3, _LEFT:3};
SetParamPattern[2] = {_TOP:1, _RIGHT:2, _LEFT:3};
SetParamPattern[3] = {_TOP:3, _RIGHT:2, _LEFT:3};
SetParamPattern[4] = {_TOP:2, _RIGHT:1, _LEFT:3};
SetParamPattern[5] = {_TOP:1, _RIGHT:3, _LEFT:3};
SetParamPattern[6] = {_TOP:2, _RIGHT:2, _LEFT:3};
SetParamPattern[7] = {_TOP:3, _RIGHT:3, _LEFT:2};
SetParamPattern[8] = {_TOP:2, _RIGHT:2, _LEFT:2};
SetParamPattern[9] = {_TOP:1, _RIGHT:1, _LEFT:2};
SetParamPattern[10] = {_TOP:2, _RIGHT:3, _LEFT:2};
SetParamPattern[11] = {_TOP:3, _RIGHT:2, _LEFT:2};
SetParamPattern[12] = {_TOP:2, _RIGHT:3, _LEFT:1};
SetParamPattern[13] = {_TOP:1, _RIGHT:2, _LEFT:1};
SetParamPattern[14] = {_TOP:2, _RIGHT:1, _LEFT:1};
SetParamPattern[15] = {_TOP:3, _RIGHT:3, _LEFT:1};
SetParamPattern[16] = {_TOP:1, _RIGHT:3, _LEFT:1};
SetParamPattern[17] = {_TOP:2, _RIGHT:2, _LEFT:1};
SetParamPattern[18] = {_TOP:3, _RIGHT:1, _LEFT:1};
}
}
function CreatePutTile(McName, CreateNAme, SetNo, Depth, Xpoji, Ypoji) {
var _local2 = MovieClip;
_local2 = MainMc.attachMovie(McName, CreateNAme + SetNo, Depth + TileId);
_local2._x = Xpoji;
_local2._y = Ypoji;
Tile[SetNo] = _local2;
TileId++;
}
function ChangeTileGraph(TileNo) {
Tile[TileNo].TopLine.gotoAndStop("No" + TileParam[TileNo]._TOP);
Tile[TileNo].RightLine.gotoAndStop("No" + TileParam[TileNo]._RIGHT);
Tile[TileNo].LeftLine.gotoAndStop("No" + TileParam[TileNo]._LEFT);
}
function ChangeLineGraph(TileNo, Param) {
switch (Param) {
case "_TOP" :
if (LineEfectFlg[TileNo]._TOP == true) {
return(0);
}
LineEfectFlg[TileNo]._TOP = true;
Tile[TileNo].TopLine.Line.gotoAndPlay("Efect");
break;
case "_RIGHT" :
if (LineEfectFlg[TileNo]._RIGHT == true) {
return(0);
}
LineEfectFlg[TileNo]._RIGHT = true;
Tile[TileNo].RightLine.Line.gotoAndPlay("Efect");
break;
case "_LEFT" :
if (LineEfectFlg[TileNo]._LEFT == true) {
return(0);
}
LineEfectFlg[TileNo]._LEFT = true;
Tile[TileNo].LeftLine.Line.gotoAndPlay("Efect");
}
LineEfectFlg[TileNo][Param] = true;
}
function ReChangeLineGraph(TileNo, Param) {
switch (Param) {
case "_TOP" :
if (LineEfectFlg[TileNo]._TOP == false) {
return(0);
}
LineEfectFlg[TileNo]._TOP = false;
Tile[TileNo].TopLine.Line.gotoAndStop("Normal");
break;
case "_RIGHT" :
if (LineEfectFlg[TileNo]._RIGHT == false) {
return(0);
}
LineEfectFlg[TileNo]._RIGHT = false;
Tile[TileNo].RightLine.Line.gotoAndStop("Normal");
break;
case "_LEFT" :
if (LineEfectFlg[TileNo]._LEFT == false) {
return(0);
}
LineEfectFlg[TileNo]._LEFT = false;
Tile[TileNo].LeftLine.Line.gotoAndStop("Normal");
}
}
function ChangeTileWithJoker(McNo) {
TileParam[McNo] = {_TOP:"ANY", _RIGHT:"ANY", _LEFT:"ANY"};
Tile[McNo].gotoAndStop("Joker");
}
function SetTilePoji(SelectNo, _Xpoji, _Ypoji) {
Tile[loop]._x = _Xpoji;
Tile[loop]._y = _Ypoji;
}
var Tile = new Array();
var TileParam = new Array();
var SetParamPattern = new Array();
var TileNumberingList = new Array();
var LineEfectFlg = new Array();
}
Symbol 17 MovieClip Frame 1
var move_speed = (random(20) * 0.1);
this.onEnterFrame = function () {
this._x = this._x + move_speed;
if (this._x > 400) {
this._x = -560;
}
};
Symbol 25 MovieClip Frame 1
var moveFlg = false;
this.onEnterFrame = function () {
if ((random(512) == 0) && (moveFlg == false)) {
moveFlg = true;
gotoAndPlay (2);
}
};
this.stop();
Symbol 28 MovieClip Frame 1
var moveFlg = false;
this.onEnterFrame = function () {
if ((random(1024) == 0) && (moveFlg == false)) {
moveFlg = true;
gotoAndPlay (2);
}
};
this.stop();
Symbol 30 MovieClip Frame 1
if (moveFlg != false) {
var rotSpeed = (random(3) + 5);
}
var moveFlg = false;
this.onRollOver = function () {
if (moveFlg == false) {
_root.se4.start(0, 1);
moveFlg = true;
gotoAndPlay (2);
}
};
this.stop();
Symbol 30 MovieClip Frame 9
var moveFlg = false;
Symbol 32 MovieClip Frame 1
if (moveFlg != false) {
var rotSpeed = (random(3) + 5);
}
var moveFlg = false;
this.onRollOver = function () {
_root.se4.start(0, 1);
if (moveFlg == false) {
moveFlg = true;
gotoAndPlay (2);
}
};
this.stop();
Symbol 32 MovieClip Frame 9
var moveFlg = false;
Symbol 34 MovieClip Frame 1
if (moveFlg != false) {
var rotSpeed = (random(3) + 5);
}
var moveFlg = false;
this.onRollOver = function () {
if (moveFlg == false) {
_root.se4.start(0, 1);
moveFlg = true;
gotoAndPlay (2);
}
};
this.stop();
Symbol 34 MovieClip Frame 9
var moveFlg = false;
Symbol 41 MovieClip [CreateBee0] Frame 120
this.stop();
Symbol 42 MovieClip [CreateBee1] Frame 120
this.stop();
Symbol 43 MovieClip [CreateBee2] Frame 120
this.stop();
Symbol 44 MovieClip [CreateBee3] Frame 120
this.stop();
Symbol 45 MovieClip [CreateBee4] Frame 120
this.stop();
Symbol 46 MovieClip [CreateBee5] Frame 120
this.stop();
Symbol 47 MovieClip [CreateBee6] Frame 120
this.stop();
Symbol 48 MovieClip [CreateBee7] Frame 120
this.stop();
Symbol 49 MovieClip [CreateBee8] Frame 120
this.stop();
Symbol 50 MovieClip [CreateBee9] Frame 120
this.stop();
Symbol 51 MovieClip [CreateBee10] Frame 120
this.stop();
Symbol 52 MovieClip [CreateBee11] Frame 120
this.stop();
Symbol 53 MovieClip [CreateBee12] Frame 120
this.stop();
Symbol 54 MovieClip [CreateBee13] Frame 120
this.stop();
Symbol 55 MovieClip [CreateBee14] Frame 120
this.stop();
Symbol 61 MovieClip [MC_ScrChange] Frame 1
_root.ScrChangeFlg = true;
Symbol 61 MovieClip [MC_ScrChange] Frame 21
if (_root.AheadScrName == _root.Title) {
if (_root.NextScrName == _root.MainGame) {
_root.GameStarting = true;
}
if (_root.NextScrName == _root.GameEnd) {
}
if (_root.NextScrName == _root.Help) {
_root.TitleMcVisible(false);
}
}
if (_root.AheadScrName == _root.MainGame) {
if (_root.NextScrName == _root.Title) {
_root.GameDataClear();
}
if (_root.NextScrName == _root.MenuScr) {
_root.CreateScr(_root.MenuScr);
}
if (_root.NextScrName == _root.GameEnd) {
_root.GameDataClear();
}
}
if (_root.AheadScrName == _root.MenuScr) {
_root.DeleteScr(_root.MenuScr);
if (_root.NextScrName == _root.Title) {
_root.GameDataClear();
}
if (_root.NextScrName == _root.MainGame) {
_root.GameGraphVisible(true);
_root.DeleteScr(_root.MenuScr);
}
if (_root.NextScrName == _root.Help) {
_root.DeleteMenuScr(_root.MenuScr);
}
}
if (_root.AheadScrName == _root.GameEnd) {
if (_root.NextScrName == _root.Title) {
}
if (_root.NextScrName == _root.MainGame) {
}
}
if (_root.AheadScrName == _root.Help) {
_root.DeleteScr(_root.Help);
if (_root.NextScrName == _root.Title) {
}
if (_root.NextScrName == _root.MenuScr) {
}
}
Symbol 61 MovieClip [MC_ScrChange] Frame 37
if (_root.AheadScrName == _root.Title) {
if (_root.NextScrName == _root.MainGame) {
_root.GameStarting = true;
_root.bgm1.stop();
_root.bgm2.start(0, 99);
_root.gotoAndStop(_root.NextScrName);
}
if (_root.NextScrName == _root.GameEnd) {
_root.gotoAndStop(_root.NextScrName);
}
if (_root.NextScrName == _root.Help) {
_root.TitleMcVisible(false);
_root.CreateScr(_root.Help);
}
}
if (_root.AheadScrName == _root.MainGame) {
if (_root.NextScrName == _root.Title) {
_root.bgm2.stop();
_root.bgm1.start(0, 99);
_root.GameDataClear();
_root.gotoAndStop(_root.NextScrName);
}
if (_root.NextScrName == _root.MenuScr) {
_root.GameGraphVisible(false);
_root.CreateScr(_root.MenuScr);
}
if (_root.NextScrName == _root.GameEnd) {
_root.bgm2.stop();
_root.bgm1.start(0, 99);
_root.GameDataClear();
_root.gotoAndStop(_root.NextScrName);
}
}
if (_root.AheadScrName == _root.MenuScr) {
_root.DeleteScr(_root.MenuScr);
if (_root.NextScrName == _root.Title) {
_root.bgm2.stop();
_root.bgm1.start(0, 99);
_root.GameDataClear();
_root.gotoAndStop(_root.NextScrName);
}
if (_root.NextScrName == _root.MainGame) {
_root.GameGraphVisible(true);
_root.DeleteScr(_root.MenuScr);
}
if (_root.NextScrName == _root.Help) {
_root.DeleteMenuScr(_root.MenuScr);
_root.CreateScr(_root.Help);
}
}
if (_root.AheadScrName == _root.GameEnd) {
if (_root.NextScrName == _root.Title) {
}
if (_root.NextScrName == _root.MainGame) {
_root.bgm1.stop();
_root.bgm2.start(0, 99);
_root.NormalGameFlg = true;
_root.GameStarting = true;
}
_root.gotoAndStop(_root.NextScrName);
}
if (_root.AheadScrName == _root.Help) {
_root.DeleteScr(_root.Help);
if (_root.NextScrName == _root.Title) {
_root.TitleMcVisible(true);
}
if (_root.NextScrName == _root.MenuScr) {
_root.CreateScr(_root.MenuScr);
}
}
_root.stop();
Symbol 61 MovieClip [MC_ScrChange] Frame 56
if (_root.AheadScrName == _root.Title) {
if (_root.NextScrName == _root.MainGame) {
_root.play();
}
if (_root.NextScrName == _root.GameEnd) {
_root.play();
}
if (_root.NextScrName == _root.Help) {
}
}
if (_root.AheadScrName == _root.MainGame) {
if (_root.NextScrName == _root.Title) {
_root.play();
}
if (_root.NextScrName == _root.MenuScr) {
}
if (_root.NextScrName == _root.GameEnd) {
_root.play();
}
}
if (_root.AheadScrName == _root.MenuScr) {
if (_root.NextScrName == _root.Title) {
_root.play();
}
if (_root.NextScrName == _root.MainGame) {
_root.GameStart();
}
if (_root.NextScrName == _root.Help) {
}
}
if (_root.AheadScrName == _root.GameEnd) {
if (_root.NextScrName == _root.Title) {
_root.play();
}
if (_root.NextScrName == _root.MainGame) {
_root.play();
}
}
if (_root.AheadScrName == _root.Help) {
if (_root.NextScrName == _root.Title) {
}
if (_root.NextScrName == _root.MenuScr) {
}
}
_root.ScrChangeFlg = false;
this.removeMovieClip();
this.stop();
Symbol 67 Button
on (release) {
if (_root.EndMessageFlg == false) {
if (_root.ScrChangeCheck()) {
_root.se3.start(0, 1);
_root.ChangeSrc(_root.Help, _root.MenuScr);
}
}
}
on (rollOver) {
if (_root.EndMessageFlg == false) {
if (_root.ScrChangeCheck()) {
this.B_help._xscale = 120;
this.B_help._yscale = 120;
_root.se4.start(0, 1);
}
}
}
on (rollOut) {
this.B_help._xscale = 100;
this.B_help._yscale = 100;
}
Symbol 69 Button
on (release) {
if (_root.EndMessageFlg == false) {
if (_root.ScrChangeCheck()) {
_root.se3.start(0, 1);
_root.ChangeSrc(_root.MainGame, _root.MenuScr);
}
}
}
on (rollOver) {
if (_root.EndMessageFlg == false) {
if (_root.ScrChangeCheck()) {
this.B_return._xscale = 120;
this.B_return._yscale = 120;
_root.se4.start(0, 1);
}
}
}
on (rollOut) {
this.B_return._xscale = 100;
this.B_return._yscale = 100;
}
Symbol 71 Button
on (release) {
if (_root.EndMessageFlg == false) {
if (_root.ScrChangeCheck()) {
_root.se3.start(0, 1);
var mc = _root.attachMovie("M_EndCallVew", "M_EndCallVew", _root.EndMessageDepth);
mc._x = 300;
mc._y = 225;
_root.EndMessageFlg = true;
}
}
}
on (rollOver) {
if (_root.EndMessageFlg == false) {
if (_root.ScrChangeCheck()) {
this.B_end._xscale = 120;
this.B_end._yscale = 120;
_root.se4.start(0, 1);
}
}
}
on (rollOut) {
this.B_end._xscale = 100;
this.B_end._yscale = 100;
}
Symbol 74 Button
on (release) {
_root.AllSoundVol = true;
gotoAndStop ("SUND_ON");
_parent.On_Button.gotoAndStop("SUND_ON");
_root.SoundPlay("se04", 1);
_root.SetSoundVolu("bgm02", 50);
}
on (rollOver) {
_root.SoundPlay("se03", 1);
}
Symbol 77 Button
on (release) {
_root.AllSoundVol = false;
_root.AllSoundVoluOff();
gotoAndStop ("SUND_OFF");
_root.SoundPlay("se04", 1);
_parent.On_Button.gotoAndStop("SUND_OFF");
}
on (rollOver) {
_root.SoundPlay("se03", 1);
}
Symbol 78 MovieClip Frame 1
this.stop();
if (_root.SoundMute == false) {
gotoAndStop ("SUND_ON");
}
Symbol 78 MovieClip Frame 11
this.stop();
Symbol 81 Button
on (release) {
_root.AllSoundVol = false;
_root.AllSoundVoluOff();
gotoAndStop ("BGM_OFF");
_root.SoundPlay("se04", 1);
gotoAndStop ("SUND_OFF");
_parent.Off_Button.gotoAndStop("SUND_OFF");
}
on (rollOver) {
_root.SoundPlay("se03", 1);
}
Symbol 84 Button
on (release) {
_root.AllSoundVol = true;
gotoAndStop ("BGM_ON");
_root.SoundPlay("se04", 1);
gotoAndStop ("SUND_ON");
_parent.Off_Button.gotoAndStop("SUND_ON");
_root.SetSoundVolu("bgm02", 50);
}
on (rollOver) {
_root.SoundPlay("se03", 1);
}
Symbol 85 MovieClip Frame 1
this.stop();
if (_root.SoundMute) {
gotoAndStop ("SUND_OFF");
}
Symbol 85 MovieClip Frame 11
this.stop();
Symbol 99 MovieClip [MENU_SCR] Frame 1
Instance of Symbol 78 MovieClip "Off_Button" in Symbol 99 MovieClip [MENU_SCR] Frame 1
on (release) {
if (_root.EndMessageFlg == false) {
if (_root.ScrChangeCheck()) {
_root.sound.MuteOn();
_root.SoundMute = true;
this.gotoAndStop("SUND_OFF");
_parent.On_Button.gotoAndStop("SUND_OFF");
}
}
}
on (rollOver) {
if (_root.EndMessageFlg == false) {
if (_root.ScrChangeCheck()) {
this._xscale = 120;
this._yscale = 120;
_root.se4.start(0, 1);
}
}
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 85 MovieClip "On_Button" in Symbol 99 MovieClip [MENU_SCR] Frame 1
on (release) {
if (_root.EndMessageFlg == false) {
if (_root.ScrChangeCheck()) {
_root.sound.MuteOff();
_root.SoundMute = false;
_root.se3.start(0, 1);
this.gotoAndStop("SUND_ON");
_parent.Off_Button.gotoAndStop("SUND_ON");
}
}
}
on (rollOver) {
if (_root.EndMessageFlg == false) {
if (_root.ScrChangeCheck()) {
this._xscale = 120;
this._yscale = 120;
_root.se4.start(0, 1);
}
}
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Symbol 127 Button
on (release) {
if (_root.ScrChangeCheck()) {
_root.se3.start(0, 1);
if (_root.GameStarting) {
_root.ChangeSrc(_root.MenuScr, _root.Help);
} else {
_root.ChangeSrc(_root.Title, _root.Help);
}
}
}
on (rollOver) {
if (_root.ScrChangeCheck()) {
_root.se4.start(0, 1);
}
}
Symbol 138 MovieClip Frame 1
if (_parent.pageStart == false) {
gotoAndStop (38);
}
_parent.pageStart = false;
Symbol 138 MovieClip Frame 30
this.stop();
Symbol 139 Button
on (release) {
_root.se3.start(0, 1);
gotoAndPlay ("PAGE2");
}
on (rollOver) {
_root.se4.start(0, 1);
}
Symbol 143 MovieClip Frame 1
this.stop();
Symbol 143 MovieClip Frame 11
this.stop();
Symbol 148 MovieClip Frame 1
this.stop();
Symbol 148 MovieClip Frame 100
gotoAndPlay ("Efect");
Symbol 150 MovieClip Frame 1
this.stop();
Symbol 150 MovieClip Frame 100
gotoAndPlay ("Efect");
Symbol 152 MovieClip Frame 1
this.stop();
Symbol 152 MovieClip Frame 100
gotoAndPlay ("Efect");
Symbol 155 MovieClip Frame 1
this.stop();
Symbol 156 Button
on (release) {
_root.se3.start(0, 1);
gotoAndPlay ("PAGE1");
}
on (rollOver) {
_root.se4.start(0, 1);
}
Symbol 157 Button
on (release) {
_root.se3.start(0, 1);
gotoAndPlay ("PAGE3");
}
on (rollOver) {
_root.se4.start(0, 1);
}
Symbol 161 Button
on (rollOver) {
_root.se4.start(0, 1);
}
on (release) {
_root.se3.start(0, 1);
}
Symbol 164 MovieClip Frame 1
this.stop();
Symbol 165 Button
on (release) {
_root.se3.start(0, 1);
gotoAndPlay ("PAGE2");
}
on (rollOver) {
_root.se4.start(0, 1);
}
Symbol 166 MovieClip [HELP_SCR] Frame 1
var pageStart = true;
Symbol 166 MovieClip [HELP_SCR] Frame 58
this.stop();
Symbol 166 MovieClip [HELP_SCR] Frame 59
this.stop();
Symbol 166 MovieClip [HELP_SCR] Frame 75
this.stop();
Symbol 166 MovieClip [HELP_SCR] Frame 76
this.stop();
Symbol 166 MovieClip [HELP_SCR] Frame 92
this.stop();
Symbol 169 MovieClip Frame 1
this.stop();
Symbol 169 MovieClip Frame 11
this.stop();
Symbol 169 MovieClip Frame 21
this.stop();
Symbol 170 MovieClip [M_PutTile_BackBord] Frame 1
this.stop();
Symbol 170 MovieClip [M_PutTile_BackBord] Frame 11
this.stop();
Symbol 174 MovieClip [M_Chance] Frame 60
this.removeMovieClip();
Instance of Symbol 142 MovieClip "Special" in Symbol 180 MovieClip Frame 1
on (press) {
if (_root.GameProgressCheck() && (_root.AllTilePut() == false)) {
this._visible = false;
_root.ChangeTileWithJoker(_root.GamePlayNo - 2);
_root.se1.start(0, 1);
}
}
Symbol 181 MovieClip [JokerBee] Frame 212
this.removeMovieClip();
Symbol 185 MovieClip [M_EndProd] Frame 220
if (_root.NormalGameFlg) {
_root.ChangeSrc("GameEnd", _root.MainGame);
} else {
_root.ChangeSrc(_root.Title, _root.MainGame);
}
this.removeMovieClip();
Instance of Symbol 195 MovieClip in Symbol 200 MovieClip [M_EndCallVew] Frame 1
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
_root.se4.start(0, 1);
}
on (release) {
_root.se1.start(0, 1);
_root.EndMessageFlg = false;
this._parent.removeMovieClip();
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 195 MovieClip in Symbol 200 MovieClip [M_EndCallVew] Frame 1
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
_root.se4.start(0, 1);
}
on (release) {
_root.se1.start(0, 1);
_root.ChangeSrc(_root.Title, _root.MenuScr);
_root.EndMessageFlg = false;
this._parent.removeMovieClip();
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Symbol 215 MovieClip Frame 1
this.stop();
var AnimationFlg = false;
Instance of Symbol 214 MovieClip in Symbol 215 MovieClip Frame 18
on (rollOver) {
this.gotoAndPlay(2);
}
Symbol 230 MovieClip Frame 1
Symbol 230 MovieClip Frame 48
this.stop();
Symbol 233 MovieClip Frame 1
var moveFlg = false;
this.onEnterFrame = function () {
if ((random(256) == 0) && (moveFlg == false)) {
moveFlg = true;
gotoAndPlay (2);
}
};
this.stop();
Symbol 241 Button
on (release) {
gotoAndStop ("BGM_STOP");
}
Symbol 245 Button
on (release) {
if (_root.ScrChangeCheck()) {
_root.sound.MuteOn();
_root.SoundMute = true;
gotoAndStop ("BGM_STOP");
}
}
on (rollOver) {
if (_root.ScrChangeCheck()) {
_root.se4.start(0, 1);
}
}
Symbol 252 Button
on (release) {
_root.sound.MuteOff();
_root.SoundMute = false;
_root.se3.start(0, 1);
gotoAndStop ("BGM_ON");
}
on (rollOver) {
_root.se4.start(0, 1);
}
Symbol 253 MovieClip Frame 1
if (_root.AllSoundVol == false) {
gotoAndStop ("BGM_STOP");
}
Symbol 253 MovieClip Frame 22
if (_root.SoundMute) {
this.gotoAndStop("BGM_STOP");
}
Symbol 253 MovieClip Frame 23
this.stop();
Symbol 253 MovieClip Frame 33
this.stop();
Symbol 293 MovieClip Frame 1
this.stop();
Symbol 293 MovieClip Frame 2
this.stop();
Symbol 293 MovieClip Frame 3
this.stop();
Symbol 293 MovieClip Frame 4
this.stop();
Symbol 293 MovieClip Frame 5
this.stop();
Symbol 293 MovieClip Frame 6
this.stop();
Symbol 293 MovieClip Frame 7
this.stop();
Symbol 293 MovieClip Frame 8
this.stop();
Symbol 293 MovieClip Frame 9
this.stop();
Symbol 293 MovieClip Frame 10
this.stop();
Symbol 300 Button
on (rollOver) {
if (ScrChangeCheck() && (_root.GameProgressCheck())) {
_root.se4.start(0, 1);
}
}
on (release) {
if (_root.ScrChangeCheck() && (_root.GameProgressCheck())) {
_root.se2.start(0, 1);
_root.NormalGameFlg = true;
_root.ChangeSrc(_root.MenuScr, _root.MainGame);
_root.GameStop();
}
}
Symbol 301 Button
on (rollOver) {
if (ScrChangeCheck() && (_root.GameProgressCheck())) {
_root.se4.start(0, 1);
}
}
on (release) {
if (_root.ScrChangeCheck() && (_root.GameProgressCheck())) {
_root.se2.start(0, 1);
_root.NormalGameFlg = true;
_root.ChangeSrc(_root.MenuScr, _root.MainGame);
_root.GameStop();
}
}
Symbol 327 MovieClip Frame 10
this.stop();
Symbol 327 MovieClip Frame 20
this.stop();
Symbol 327 MovieClip Frame 30
this.stop();
Symbol 327 MovieClip Frame 40
this.stop();
Symbol 327 MovieClip Frame 50
this.stop();
Symbol 330 Button
on (rollOver) {
if (ScrChangeCheck() && (_root.GameProgressCheck())) {
_root.se4.start(0, 1);
}
}
on (release) {
if (_root.ScrChangeCheck() && (_root.GameProgressCheck())) {
_root.se2.start(0, 1);
_root.M_TileLightProd._visible = false;
_root.ChangeSrc(_root.MenuScr, _root.MainGame);
_root.GameStop();
}
}
Symbol 362 MovieClip Frame 1
this.stop();
Symbol 362 MovieClip Frame 2
this.stop();
Symbol 362 MovieClip Frame 3
this.stop();
Symbol 362 MovieClip Frame 4
this.stop();
Symbol 362 MovieClip Frame 5
this.stop();
Symbol 362 MovieClip Frame 6
this.stop();
Symbol 362 MovieClip Frame 7
this.stop();
Symbol 362 MovieClip Frame 8
this.stop();
Symbol 362 MovieClip Frame 9
this.stop();
Symbol 362 MovieClip Frame 10
this.stop();
Symbol 373 MovieClip Frame 1
this.stop();
Symbol 373 MovieClip Frame 6
this.stop();
Symbol 373 MovieClip Frame 11
this.stop();
Symbol 373 MovieClip Frame 16
this.stop();
Symbol 373 MovieClip Frame 21
this.stop();
Symbol 377 Button
on (release) {
if (_root.ScrChangeCheck()) {
_root.se3.start(0, 1);
_root.ChangeSrc(_root.MainGame, _root.GameEnd);
}
}
on (rollOver) {
if (_root.ScrChangeCheck()) {
_root.se4.start(0, 1);
}
}
Symbol 381 Button
on (release) {
if (_root.ScrChangeCheck()) {
_root.se3.start(0, 1);
_root.ChangeSrc(_root.Title, _root.GameEnd);
}
}
on (rollOver) {
if (_root.ScrChangeCheck()) {
_root.se4.start(0, 1);
}
}
Symbol 383 Button
on (release) {
if (_root.ScrChangeCheck()) {
_root.se3.start(0, 1);
_root.ChangeSrc(_root.Title, _root.GameEnd);
}
}
on (rollOver) {
if (_root.ScrChangeCheck()) {
_root.se4.start(0, 1);
}
}
Symbol 405 Button
on (release) {
if (_root.ScrChangeCheck()) {
_root.se3.start(0, 1);
gotoAndPlay (554);
}
}
on (rollOver) {
if (_root.ScrChangeCheck()) {
_root.se4.start(0, 1);
}
}
Symbol 406 Button
on (release) {
if (_root.ScrChangeCheck()) {
_root.se3.start(0, 1);
_root.ChangeSrc(_root.Title, _root.GameEnd);
}
}
on (rollOver) {
if (_root.ScrChangeCheck()) {
_root.se4.start(0, 1);
}
}