Frame 1
Frame 2
this.stop();
Frame 10
this.stop();
Frame 18
function randomInt(maxNum) {
var _local1 = Math.random() * maxNum;
if (_local1 == 0) {
_local1 = 1;
} else {
_local1 = Math.ceil(_local1);
}
return(_local1);
}
Frame 19
this.ptnNum = 0;
this.prizeNameList = [[["puni_S", 37, 28], ["panzo_S", 88, 15], ["panzo_S", 164, 18], ["puni_S", 212, 16], ["panzo_L", 81, 70], ["puni_S", 151, 77], ["puni_L", 215, 82], ["panzo_L", 6, 124], ["puni_L", 87, 127], ["panzo_L", 154, 121], ["puni_L", 74, 181], ["panzo_L", 142, 199], ["puni_L", 200, 193]], [["panzo_S", 22, 15], ["puni_S", 86, 11], ["panzo_S", 151, 4], ["panzo_S", 220, 29], ["puni_L", 80, 72], ["puni_S", 149, 66], ["puni_S", 192, 75], ["panzo_L", 13, 127], ["puni_L", 76, 115], ["puni_L", 161, 135], ["panzo_L", 74, 194], ["puni_L", 138, 180], ["panzo_L", 196, 189]], [["panzo_S", 29, 3], ["puni_S", 82, 25], ["panzo_S", 137, 23], ["puni_S", 201, 1], ["puni_L", 89, 74], ["panzo_L", 140, 60], ["puni_S", 210, 64], ["panzo_L", 33, 122], ["puni_L", 87, 131], ["puni_L", 137, 136], ["puni_L", 2, 188], ["puni_L", 143, 191], ["panzo_L", 193, 180]], [["puni_S", 9, 2], ["puni_S", 75, 5], ["panzo_S", 146, 10], ["puni_S", 214, 9], ["panzo_L", 84, 50], ["puni_L", 152, 74], ["panzo_L", 199, 85], ["puni_L", 17, 136], ["puni_L", 74, 130], ["panzo_L", 144, 128], ["panzo_L", 71, 195], ["puni_L", 148, 182], ["puni_L", 217, 176]], [["panzo_S", 42, 10], ["puni_S", 100, 21], ["puni_S", 159, 2], ["panzo_S", 200, 26], ["panzo_L", 11, 40], ["panzo_S", 141, 87], ["puni_S", 210, 90], ["panzo_L", 26, 130], ["puni_L", 92, 135], ["panzo_L", 140, 123], ["puni_L", 75, 182], ["puni_S", 153, 175], ["panzo_L", 190, 199]], [["panzo_S", 13, 22], ["puni_S", 91, 2], ["puni_S", 147, 16], ["panzo_S", 208, 1], ["puni_S", 76, 90], ["puni_L", 157, 72], ["panzo_L", 212, 80], ["puni_L", 26, 127], ["panzo_L", 73, 149], ["puni_L", 141, 121], ["panzo_L", 6, 189], ["puni_L", 152, 191], ["panzo_L", 199, 190]], [["panzo_S", 13, 16], ["puni_S", 82, 8], ["panzo_S", 140, 11], ["puni_S", 215, 4], ["panzo_S", 83, 100], ["puni_S", 139, 40], ["panzo_S", 193, 50], ["panzo_L", 27, 123], ["puni_L", 92, 133], ["puni_L", 189, 129], ["puni_L", 2, 191], ["panzo_L", 152, 173], ["panzo_L", 214, 185]], [["puni_S", 38, 1], ["puni_S", 100, 3], ["panzo_S", 147, 13], ["puni_S", 206, 19], ["panzo_S", 77, 40], ["panzo_L", 157, 100], ["puni_L", 192, 50], ["puni_L", 21, 132], ["panzo_L", 76, 127], ["panzo_L", 148, 140], ["panzo_L", 85, 177], ["puni_L", 140, 199], ["puni_S", 220, 185]], [["puni_S", 42, 20], ["puni_L", 93, 1], ["puni_S", 161, 5], ["puni_S", 218, 16], ["puni_L", 89, 100], ["puni_S", 158, 50], ["puni_L", 202, 88], ["puni_S", 23, 123], ["puni_L", 79, 147], ["puni_L", 141, 139], ["puni_S", 7, 173], ["puni_L", 146, 200], ["puni_L", 213, 196]], [["panzo_S", 37, 2], ["panzo_S", 90, 23], ["panzo_S", 138, 5], ["panzo_S", 213, 7], ["panzo_S", 79, 100], ["panzo_L", 158, 50], ["panzo_S", 220, 90], ["panzo_L", 19, 129], ["panzo_L", 74, 124], ["panzo_L", 150, 147], ["panzo_L", 90, 200], ["panzo_L", 9, 198], ["panzo_L", 204, 172]]];
Frame 23
this.stat = "select";
this.credit = 0;
Frame 35
this.stop();
Frame 45
function setGame() {
this.ctrBtn1MC.entry();
}
function setNaviCoin() {
var _local1 = this;
_local1.ppMC.attachMovie("navi_coin", "navi_coinMC", 10001);
_local1.ppMC.navi_coinMC._x = 305;
_local1.ppMC.navi_coinMC._y = 275;
}
function checkResult() {
var _local1 = _root;
_local1.getPrizeList = ["panzo_L", "panzo_L", "puni_L", "puni_S"];
_local1.attachMovie("result", "resultMC", 10000);
_local1.resultMC._x = 20;
_local1.resultMC._y = 10;
}
this.credit = 0;
this.stat = "init";
_root.OtherViewOpenOkFlg = true;
this.TopDepths = 100000 /* 0x0186A0 */;
this.gameMainMC.gotoAndPlay("setPrize");
this.setNaviCoin();
this.gotoAndplay("main");
Frame 62
this.stat = "standby";
this.stop();
Symbol 34 MovieClip [prizeResult] Frame 1
function setBonus() {
this.bonusFlg = true;
}
this.bonusFlg = false;
Symbol 34 MovieClip [prizeResult] Frame 2
this.pngMC.gotoAndStop(this.prizeName);
this.prizePointMC.gotoAndStop(this.prizeName);
Symbol 34 MovieClip [prizeResult] Frame 10
if (this.bonusFlg == false) {
this.stop();
}
Symbol 34 MovieClip [prizeResult] Frame 18
this.stop();
Symbol 36 MovieClip [prize] Frame 1
function view2Dconv() {
var _local1 = this;
d = (1500 - _local1.mz) / 1500;
_local1._x = 200 + ((_local1.mx - 200) * d);
d = (2500 - _local1.mz) / 2500;
_local1._y = _local1.my * d;
_local1._xscale = d * 100;
_local1._yscale = d * 100;
}
function del() {
var _local1 = this;
_local1.yBak = _local1._y;
_local1._y = 1000;
_local1._visible = false;
}
function disp(nmx) {
var _local1 = this;
trace("nmx=" + nmx);
_local1.mx = nmx;
_local1._visible = true;
_local1.view2Dconv();
}
function liftUp() {
this.gotoAndPlay("liftUp");
}
Symbol 36 MovieClip [prize] Frame 3
this.view2Dconv();
this.pngMC.gotoAndStop(this.prizeName);
Symbol 36 MovieClip [prize] Frame 11
this.stop();
Symbol 36 MovieClip [prize] Frame 27
this.stop();
Symbol 47 MovieClip Frame 40
trace("\u30B5\u30A4\u30C9\u30D7\u30E9\u30A4\u30BA\u30BB\u30C3\u30C8\u30A8\u30E9\u30FC");
trace("prizeName : " + _parent.prizeName);
trace((("mx : " + _parent.mx) + " my : ") + _parent.my);
this.stop();
Symbol 48 MovieClip [prizeSide] Frame 2
d = (680 + this.mx) / 1000;
var nmz = (this.mz - 100);
this._x = 100 + ((nmz * d) * 0.8);
this._y = 300 - ((320 - this.mx) / 4);
this.pngMC.gotoAndStop(this.prizeName);
this._xscale = d * 100;
this._yscale = d * 100;
this.stop();
Symbol 57 MovieClip [prizeLader] Frame 1
function setLoc(nmx, nmz) {
var _local1 = this;
_local1.mx = nmx;
_local1.mz = nmz;
_local1._x = _local1.mx / 2;
_local1._y = 100 - (_local1.mz / 2);
}
function takeOut() {
this._x = -1000;
this._visible = false;
}
function Disp(flg) {
this._visible = flg;
}
this._x = this.mx / 2;
this._y = 100 - (this.mz / 2);
this.gotoAndStop(this.prizeName);
Symbol 62 MovieClip [craneLader] Frame 2
function setLoc(nmx, nmy, nmz) {
var _local1 = this;
_local1.mx = nmx;
_local1.mz = nmz;
_local1._x = _local1.mx / 2;
_local1._y = 100 - (_local1.mz / 2);
}
function disp(flg) {
this._visible = flg;
}
this._alpha = 50;
this.setLoc(0, 20, 0);
this.stop();
Symbol 70 MovieClip [getPuni_L_R1_F] Frame 1
_parent.targetMC.del();
_root.getFlg = false;
this.stop();
Symbol 70 MovieClip [getPuni_L_R1_F] Frame 10
this.stop();
Symbol 70 MovieClip [getPuni_L_R1_F] Frame 16
_parent.targetMC.disp(_parent.mx);
Symbol 70 MovieClip [getPuni_L_R1_F] Frame 30
_root.gameMainMC.craneMC.play();
this.stop();
Symbol 70 MovieClip [getPuni_L_R1_F] Frame 80
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 71 MovieClip [getPuni_L_R1] Frame 1
_parent.targetMC.del();
_root.getPrizeList.push("puni_L");
this.stop();
Symbol 71 MovieClip [getPuni_L_R1] Frame 10
this.stop();
Symbol 71 MovieClip [getPuni_L_R1] Frame 30
_parent.getPrize();
Symbol 71 MovieClip [getPuni_L_R1] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 74 MovieClip [getPuni_S_R1_F] Frame 1
_parent.targetMC.del();
_root.getFlg = false;
this.stop();
Symbol 74 MovieClip [getPuni_S_R1_F] Frame 10
this.stop();
Symbol 74 MovieClip [getPuni_S_R1_F] Frame 16
_parent.targetMC.disp(_parent.mx);
Symbol 74 MovieClip [getPuni_S_R1_F] Frame 30
_root.gameMainMC.craneMC.play();
this.stop();
Symbol 74 MovieClip [getPuni_S_R1_F] Frame 80
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 75 MovieClip [getPuni_S_R1] Frame 1
_parent.targetMC.del();
_root.getPrizeList.push("puni_S");
this.stop();
Symbol 75 MovieClip [getPuni_S_R1] Frame 10
this.stop();
Symbol 75 MovieClip [getPuni_S_R1] Frame 30
_parent.getPrize();
Symbol 75 MovieClip [getPuni_S_R1] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 76 MovieClip [getNO] Frame 1
this.stop();
Symbol 76 MovieClip [getNO] Frame 6
Symbol 76 MovieClip [getNO] Frame 10
Symbol 76 MovieClip [getNO] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 79 MovieClip [getPanzo_L_L1] Frame 1
_parent.targetMC.del();
_root.getPrizeList.push("panzo_L");
this.stop();
Symbol 79 MovieClip [getPanzo_L_L1] Frame 10
this.stop();
Symbol 79 MovieClip [getPanzo_L_L1] Frame 30
_parent.getPrize();
Symbol 79 MovieClip [getPanzo_L_L1] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 80 MovieClip [getPanzo_L_L1_F] Frame 1
_parent.targetMC.del();
_root.getFlg = false;
this.stop();
Symbol 80 MovieClip [getPanzo_L_L1_F] Frame 10
this.stop();
Symbol 80 MovieClip [getPanzo_L_L1_F] Frame 15
_parent.targetMC.disp(_parent.mx);
Symbol 80 MovieClip [getPanzo_L_L1_F] Frame 30
_root.gameMainMC.craneMC.play();
this.stop();
Symbol 80 MovieClip [getPanzo_L_L1_F] Frame 80
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 81 MovieClip [getPanzo_L_R1_F] Frame 1
_parent.targetMC.del();
_root.getFlg = false;
this.stop();
Symbol 81 MovieClip [getPanzo_L_R1_F] Frame 10
this.stop();
Symbol 81 MovieClip [getPanzo_L_R1_F] Frame 17
_parent.targetMC.disp(_parent.mx);
Symbol 81 MovieClip [getPanzo_L_R1_F] Frame 30
_root.gameMainMC.craneMC.play();
this.stop();
Symbol 81 MovieClip [getPanzo_L_R1_F] Frame 80
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 82 MovieClip [getPanzo_L_R1] Frame 1
_parent.targetMC.del();
_root.getPrizeList.push("panzo_L");
this.stop();
Symbol 82 MovieClip [getPanzo_L_R1] Frame 10
this.stop();
Symbol 82 MovieClip [getPanzo_L_R1] Frame 30
_parent.getPrize();
Symbol 82 MovieClip [getPanzo_L_R1] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 83 MovieClip [getPanzo_L_C] Frame 1
_parent.targetMC.del();
_root.getPrizeList.push("panzo_L");
this.stop();
Symbol 83 MovieClip [getPanzo_L_C] Frame 10
this.stop();
Symbol 83 MovieClip [getPanzo_L_C] Frame 30
_parent.getPrize();
Symbol 83 MovieClip [getPanzo_L_C] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 87 MovieClip [getPanzo_S_R1_F] Frame 1
_parent.targetMC.del();
_root.getFlg = false;
this.stop();
Symbol 87 MovieClip [getPanzo_S_R1_F] Frame 10
this.stop();
Symbol 87 MovieClip [getPanzo_S_R1_F] Frame 15
_parent.targetMC.disp(_parent.mx);
Symbol 87 MovieClip [getPanzo_S_R1_F] Frame 30
_root.gameMainMC.craneMC.play();
this.stop();
Symbol 87 MovieClip [getPanzo_S_R1_F] Frame 80
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 88 MovieClip [getPanzo_S_R1] Frame 1
_parent.targetMC.del();
_root.getPrizeList.push("panzo_S");
this.stop();
Symbol 88 MovieClip [getPanzo_S_R1] Frame 10
this.stop();
Symbol 88 MovieClip [getPanzo_S_R1] Frame 30
_parent.getPrize();
Symbol 88 MovieClip [getPanzo_S_R1] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 89 MovieClip [getPanzo_S_L1_F] Frame 1
_parent.targetMC.del();
_root.getFlg = false;
this.stop();
Symbol 89 MovieClip [getPanzo_S_L1_F] Frame 10
this.stop();
Symbol 89 MovieClip [getPanzo_S_L1_F] Frame 16
_parent.targetMC.disp(_parent.mx);
Symbol 89 MovieClip [getPanzo_S_L1_F] Frame 30
_root.gameMainMC.craneMC.play();
this.stop();
Symbol 89 MovieClip [getPanzo_S_L1_F] Frame 80
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 91 MovieClip [getPanzo_S_L1] Frame 1
_parent.targetMC.del();
_root.getPrizeList.push("panzo_S");
this.stop();
Symbol 91 MovieClip [getPanzo_S_L1] Frame 10
this.stop();
Symbol 91 MovieClip [getPanzo_S_L1] Frame 30
_parent.getPrize();
Symbol 91 MovieClip [getPanzo_S_L1] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 92 MovieClip [getPanzo_S_C] Frame 1
_parent.targetMC.del();
_root.getPrizeList.push("panzo_S");
this.stop();
Symbol 92 MovieClip [getPanzo_S_C] Frame 10
this.stop();
Symbol 92 MovieClip [getPanzo_S_C] Frame 30
_parent.getPrize();
Symbol 92 MovieClip [getPanzo_S_C] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 93 MovieClip [getPuni_L_C] Frame 1
_parent.targetMC.del();
_root.getPrizeList.push("puni_L");
this.stop();
Symbol 93 MovieClip [getPuni_L_C] Frame 10
this.stop();
Symbol 93 MovieClip [getPuni_L_C] Frame 30
_parent.getPrize();
Symbol 93 MovieClip [getPuni_L_C] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 94 MovieClip [getPuni_S_C] Frame 1
_parent.targetMC.del();
_root.getPrizeList.push("puni_S");
this.stop();
Symbol 94 MovieClip [getPuni_S_C] Frame 10
this.stop();
Symbol 94 MovieClip [getPuni_S_C] Frame 30
_parent.getPrize();
Symbol 94 MovieClip [getPuni_S_C] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 95 MovieClip [getPuni_L_L1_F] Frame 1
_parent.targetMC.del();
_root.getFlg = false;
this.stop();
Symbol 95 MovieClip [getPuni_L_L1_F] Frame 10
this.stop();
Symbol 95 MovieClip [getPuni_L_L1_F] Frame 15
_parent.targetMC.disp(_parent.mx);
Symbol 95 MovieClip [getPuni_L_L1_F] Frame 30
_root.gameMainMC.craneMC.play();
this.stop();
Symbol 95 MovieClip [getPuni_L_L1_F] Frame 80
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 96 MovieClip [getPuni_L_L1] Frame 1
_parent.targetMC.del();
_root.getPrizeList.push("puni_L");
this.stop();
Symbol 96 MovieClip [getPuni_L_L1] Frame 10
this.stop();
Symbol 96 MovieClip [getPuni_L_L1] Frame 30
_parent.getPrize();
Symbol 96 MovieClip [getPuni_L_L1] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 97 MovieClip [getPuni_S_L1_F] Frame 1
_parent.targetMC.del();
_root.getFlg = false;
this.stop();
Symbol 97 MovieClip [getPuni_S_L1_F] Frame 10
this.stop();
Symbol 97 MovieClip [getPuni_S_L1_F] Frame 16
_parent.targetMC.disp(_parent.mx);
Symbol 97 MovieClip [getPuni_S_L1_F] Frame 30
_root.gameMainMC.craneMC.play();
this.stop();
Symbol 97 MovieClip [getPuni_S_L1_F] Frame 80
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 98 MovieClip [getPuni_S_L1] Frame 1
_parent.targetMC.del();
_root.getPrizeList.push("puni_S");
this.stop();
Symbol 98 MovieClip [getPuni_S_L1] Frame 10
this.stop();
Symbol 98 MovieClip [getPuni_S_L1] Frame 30
_parent.getPrize();
Symbol 98 MovieClip [getPuni_S_L1] Frame 60
_parent.gotoAndStop("fin");
this.removeMovieClip();
Symbol 114 MovieClip Frame 1
this.stop();
Symbol 118 Button
on (press) {
this.getURL("http://www.kodomo-porta.com/panzo/present.html");
}
Symbol 122 Button
on (press) {
_root.gotoAndPlay("init");
this.removeMovieClip();
}
Symbol 126 MovieClip [result] Frame 1
function dispNum(n, k) {
var _local1 = n;
var _local2 = this;
var _local3 = k;
d = 10;
i = 1;
while (i <= _local3) {
_local2["n" + i] = (_local1 % d) / (d / 10);
_local1 = _local1 - (_local1 % d);
d = d * 10;
i++;
}
}
this.ptr = 0;
this.point = 0;
this.dispPoint = 0;
this.SE_pipipi = new Sound(this);
this.SE_pipipi.attachSound("SE_pipipi");
Symbol 126 MovieClip [result] Frame 15
var nCnt = _root.getPrizeList.length;
if (nCnt > 0) {
var nName = ("prizeResult" + this.ptr);
this.attachMovie("prizeResult", nName, this.ptr);
this[nName]._x = (220 - ((nCnt - 1) * 33)) + (this.ptr * 65);
this[nName]._y = 200;
this[nName].prizeName = _root.getPrizeList[this.ptr];
} else {
this.gotoAndPlay("check");
}
Symbol 126 MovieClip [result] Frame 16
switch (_root.getPrizeList[this.ptr]) {
case "puni_S" :
var addPoint = 1000;
if (_root.randomInt(3) == 1) {
this["prizeResult" + this.ptr].Setbonus();
var addPoint = 3500;
}
break;
case "puni_L" :
var addPoint = 2000;
break;
case "panzo_S" :
var addPoint = 3000;
break;
case "panzo_L" :
var addPoint = 4000;
}
this.point = this.point + addPoint;
Symbol 126 MovieClip [result] Frame 21
this.SE_pipipi.start(0, 100);
Symbol 126 MovieClip [result] Frame 23
d = ((this.point - this.dispPoint) / 10) + 9;
this.dispPoint = this.dispPoint + d;
this.dispPoint = Math.ceil(this.dispPoint);
if (this.dispPoint > this.point) {
this.dispPoint = this.point;
this.dispNum(this.dispPoint, 5);
this.SE_pipipi.stop();
} else {
this.dispNum(this.dispPoint, 5);
this.gotoAndPlay(_currentframe - 1);
}
Symbol 126 MovieClip [result] Frame 32
this.ptr++;
if (this.ptr < _root.getPrizeList.length) {
this.gotoAndPlay("setPrize");
}
Symbol 126 MovieClip [result] Frame 34
if (this.point >= 6000) {
if (this.point > 11000) {
this.stampMC.gotoAndStop("a");
} else {
this.stampMC.gotoAndStop("b");
}
} else {
this.stampMC.gotoAndStop("c");
}
Symbol 126 MovieClip [result] Frame 46
if (this.point >= 6000) {
this.gotoAndPlay("ok");
} else {
this.gotoAndPlay("ng");
}
Symbol 126 MovieClip [result] Frame 50
this.stop();
Symbol 126 MovieClip [result] Frame 70
this.stop();
Symbol 131 MovieClip [navi_coin] Frame 2
if (_root.credit > 0) {
this.removeMovieClip();
}
Symbol 131 MovieClip [navi_coin] Frame 20
this.gotoAndPlay(2);
Symbol 139 MovieClip [get] Frame 1
this.pngMC.gotoAndStop(this.prizeName);
this.getTxtMC.gotoAndStop(this.PrizeName);
Symbol 139 MovieClip [get] Frame 30
this.removeMovieClip();
Symbol 143 MovieClip Frame 9
var versionNum = getVersion().slice(4, 5);
trace(versionNum);
if (Number(versionNum) >= 6) {
this.gotoAndPlay("ok");
} else {
this.gotoAndPlay("ng");
}
Symbol 143 MovieClip Frame 19
this.stop();
_parent.gotoAndPlay("loading");
Symbol 143 MovieClip Frame 25
this.stop();
Symbol 150 MovieClip Frame 1
loadedSize = _root.getBytesLoaded();
totalSize = _root.getBytesTotal();
if (loadedSize >= totalSize) {
this.gotoAndPlay("ok");
} else {
parcent = (loadedsize / totalsize) * 100;
gDownloaded = Math.round(parcent);
this.bar._width = 300 * (gDownloaded / 100);
_root.stop();
}
Symbol 150 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 150 MovieClip Frame 5
this.bar._width = 300;
Symbol 150 MovieClip Frame 19
_root.gotoAndPlay("rInit");
Symbol 166 MovieClip Frame 1
this.stat = "standby";
this.firstCoinFlg = false;
this.onPress = function () {
var _local1 = _root;
var _local2 = this;
if (_local1.stat != "standby") {
} else if (_local2.firstCoinFlg && (_local1.playMode == "challenge")) {
} else if (_local2.stat == "coinStandby") {
if (_local1.playMode == "practice") {
_local1.credit++;
} else {
_local1.credit = 6;
_local2.firstCoinFlg = true;
_local1.btn_shaffleMC.setStat("stop");
}
if (_local1.credit > 9) {
_local1.credit = 9;
} else {
_local2.stat = "insert";
if (_local1.playMode == "challenge") {
_local2.play();
} else {
_local2.gotoAndPlay("animation");
}
if (_local1.stat == "standby") {
_local1.setGame();
}
}
}
};
this.onRollOver = function () {
var _local1 = _root;
if (_local1.stat != "standby") {
} else if (this.firstCoinFlg && (_local1.playMode == "challenge")) {
} else if (this.stat == "standby") {
if (_local1.playMode == "challenge") {
gotoAndPlay ("coinStandby2");
} else {
gotoAndPlay ("coinStandby");
}
}
};
this.onRollOut = function () {
var _local1 = this;
if (_root.stat != "standby") {
} else if (_local1.firstCoinFlg && (_root.playMode == "challenge")) {
} else if (_local1.stat == "coinStandby") {
_local1.stat = "standby";
gotoAndStop ("standby");
}
};
Symbol 166 MovieClip Frame 5
this.stop();
Symbol 166 MovieClip Frame 19
this.stat = "coinStandby";
this.stop();
Symbol 166 MovieClip Frame 39
this.stat = "standby";
this.gotoAndStop("standby");
Symbol 166 MovieClip Frame 50
this.stat = "coinStandby";
this.stop();
Symbol 166 MovieClip Frame 56
this.gotoAndPlay("animation2");
Symbol 172 MovieClip Frame 1
function moveStop() {
var _local1 = this;
if (_local1.entryFlg && (_local1.pressFlg)) {
_root.gameMainMC.craneMC.changeStat("moveXEnd");
_local1.gotoAndStop("shoutou");
_local1.entryFlg = false;
_local1.pressFlg = false;
_parent.ctrBtn2MC.entry();
}
}
function entry() {
this.entryFlg = true;
this.gotoAndPlay("tenmetu");
}
this.entryFlg = false;
this.pressFlg = false;
this.onPress = function () {
var _local1 = this;
if (_local1.entryFlg) {
_root.gameMainMC.craneMC.changeStat("moveX");
_local1.gotoAndStop("tentou");
_local1.pressFlg = true;
}
};
this.onRelease = function () {
this.moveStop();
};
this.onReleaseOutside = function () {
this.moveStop();
};
this.onDragOut = function () {
this.moveStop();
};
Symbol 172 MovieClip Frame 2
this.stop();
Symbol 172 MovieClip Frame 29
this.gotoAndPlay("tenmetu");
Symbol 176 MovieClip Frame 1
function moveStop() {
var _local1 = this;
if (_local1.entryFlg && (_local1.pressFlg)) {
_root.gameMainMC.craneMC.changeStat("moveZEnd");
_local1.pressFlg = false;
_local1.entryFlg = false;
_local1.gotoAndStop("shoutou");
}
}
function entry() {
this.entryFlg = true;
this.gotoAndPlay("tenmetu");
}
this.entryFlg = false;
this.pressFlg = false;
this.onPress = function () {
var _local1 = this;
if (_local1.entryFlg) {
_root.gameMainMC.craneMC.changeStat("moveZ");
_local1.pressFlg = true;
_local1.gotoAndStop("tentou");
}
};
this.onRelease = function () {
this.moveStop();
};
this.onReleaseOutside = function () {
this.moveStop();
};
this.onRollOut = function () {
this.moveStop();
};
Symbol 176 MovieClip Frame 2
this.stop();
Symbol 176 MovieClip Frame 29
this.gotoAndPlay("tenmetu");
Symbol 179 MovieClip Frame 1
this.onPress = function () {
_parent.startDrag();
_root.topDepths++;
_parent.swapDepths(_root.topDepths);
};
this.onRelease = function () {
_parent.limitCheck();
_parent.stopDrag();
};
this.onReleaseOutside = function () {
_parent.limitCheck();
_parent.stopDrag();
};
Symbol 183 Button
on (press) {
this.closeWindow();
}
Symbol 191 MovieClip Frame 2
d = (680 + _root.gameMainMC.craneMC.mx) / 1000;
this._y = 20 * d;
this._x = 100 + (((_root.gameMainMC.craneMC.mz - 100) * 0.8) * d);
this._xscale = d * 100;
this._yscale = d * 100;
this.gotoAndPlay(_currentframe - 1);
Symbol 193 MovieClip Frame 1
function switchWindow() {
var _local1 = this;
if (_local1.dispFlg) {
_local1.closeWindow();
} else {
_local1.dispFlg = true;
_local1.setPrize();
_local1._visible = true;
_local1._alpha = 100;
}
}
function closeWindow() {
this.stopDrag();
this.gotoAndPlay("close");
}
function limitCheck() {
var _local1 = this;
if (_local1._y < -320) {
_local1._y = -320;
}
if (_local1._x < -170) {
_local1._x = -170;
}
if (_local1._y > 340) {
_local1._y = 340;
}
if (_local1._x > 450) {
_local1._x = 450;
}
}
function clearMC() {
var _local1 = this;
i = 0;
while (i < _local1.mcList.length) {
_local1.mcList[i].removeMovieClip();
i++;
}
}
function setPrize() {
var _local1 = this;
var _local2 = _root;
_local1.mcList = [];
i = 0;
while (i < _local2.gameMainMC.prizeMCList.length) {
nName = "prizeSide" + i;
nDepth = _local2.gameMainMC.prizeMCList[i].mx;
_local1.attachMovie("prizeSide", nName, nDepth);
_local1[nName].mx = _local2.gameMainMC.prizeMCList[i].mx;
_local1[nName].my = _local2.gameMainMC.prizeMCList[i].my;
_local1[nName].mz = _local2.gameMainMC.prizeMCList[i].mz;
_local1[nName].prizeName = _local2.gameMainMC.prizeMCList[i].prizeName;
_local1[nName]._visible = _local2.gameMainMC.prizeMCList[i]._visible;
_local1.mcList.push(_local1[nName]);
i++;
}
}
this._visible = false;
this.dispFlg = false;
_root.topDepths++;
this.swapDepths(_root.topDepths);
Symbol 193 MovieClip Frame 3
this.stop();
Symbol 193 MovieClip Frame 6
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this._alpha = 0;
this._visible = false;
this.clearMC();
this.dispFlg = false;
this.stop();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 195 MovieClip Frame 1
this.onPress = function () {
_parent.startDrag();
_root.topDepths++;
_parent.swapDepths(_root.topDepths);
};
this.onRelease = function () {
_parent.limitCheck();
_parent.stopDrag();
};
this.onReleaseOutside = function () {
_parent.limitCheck();
_parent.stopDrag();
};
Symbol 199 MovieClip Frame 2
function switchWindow() {
var _local1 = this;
if (_local1._visible) {
_local1.closeWindow();
} else {
_local1.dispFlg = true;
_local1._visible = true;
_local1._alpha = 100;
_local1.gotoAndStop("disp");
}
}
function closeWindow() {
this.gotoAndPlay("close");
}
function closeWindow2() {
var _local1 = this;
i = 0;
while (i < _local1.MCList.length) {
_local1.MCList[i].removeMovieClip();
i++;
}
_local1.craneLaderMC.removeMovieClip();
_local1.closeWindow();
}
function limitCheck() {
var _local1 = this;
if (_local1._y < -155) {
_local1._y = -155;
}
if (_local1._x < -180) {
_local1._x = -180;
}
if (_local1._y > 375) {
_local1._y = 375;
}
if (_local1._x > 490) {
_local1._x = 490;
}
}
function setPrize() {
var _local2 = this;
var _local3 = _root;
_local2.MCList = [];
i = 0;
while (i < _local3.gameMainMC.prizeMCList.length) {
var _local1 = "prizeLader" + i;
var nDepth = (1000 - _local3.gameMainMC.prizeMCList[i].mz);
_local2.attachMovie("prizeLader", _local1, nDepth);
_local2[_local1].mx = _local3.gameMainMC.prizeMCList[i].mx;
_local2[_local1].my = _local3.gameMainMC.prizeMCList[i].my;
_local2[_local1].mz = _local3.gameMainMC.prizeMCList[i].mz;
_local2[_local1].prizeName = _local3.gameMainMC.prizeMCList[i].prizeName;
_local2[_local1].sNum = i;
_local2.MCList.push(_local2[_local1]);
i++;
}
_local2.attachMovie("craneLader", "craneLaderMC", 1000);
}
function checkTarget() {
var _local2 = _root;
var _local3 = this;
i = 0;
while (i < _local2.gameMainMC.prizeMCList.length) {
var nName = ("prizeLader" + i);
if (_local3[nName].hitTest(_local3.craneLaderMC.hitMC)) {
var _local1 = _local3[nName].mx - _local3.craneLaderMC.mx;
var dz = (_local3[nName].mz - _local3.craneLaderMC.mz);
var dMax = 10;
if ((Math.abs(_local1) < dMax) && (Math.abs(dz) < 5)) {
_local3.ngetMode = "_C";
_local2.getFlg = true;
if ((_local1 > (-dMax)) && (_local1 < -2)) {
if (_local2.randomInt(Math.abs(_local1)) <= 2) {
nGetMode = "_R1";
_local2.getFlg = true;
} else {
nGetMode = "_R1_F";
_local2.getFlg = false;
}
}
if ((_local1 < dMax) && (_local1 > 2)) {
if (_local2.randomInt(Math.abs(_local1)) <= 2) {
nGetMode = "_L1";
_local2.getFlg = true;
} else {
nGetMode = "_L1_F";
_local2.getFlg = false;
}
}
trace("MC\u30B2\u30C3\u30C8" + nGetMode);
return([i, nGetMode]);
}
trace((("MC\u306Fhit\u3057\u3066\u308B\u304C\u5EA7\u6A19\u30A8\u30EA\u30A2\u5916 " + _local1) + ",") + dz);
_local2.getFlg = false;
return([i, "NO"]);
}
i++;
}
trace("\u7A7A\u306A\u306B\u3082\u306A\u3057");
_local2.getFlg = false;
return([999, "NO"]);
}
this._visible = false;
this.dispFlg = false;
_root.topDepths++;
this.swapDepths(_root.topDepths);
Symbol 199 MovieClip Frame 5
this.stop();
Symbol 199 MovieClip Frame 11
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this._alpha = 0;
this._visible = false;
this.dispFlg = false;
this.stop();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 200 MovieClip Frame 1
this.stop();
Symbol 201 MovieClip Frame 1
this.pAlpha = 100;
_root.stop();
Symbol 201 MovieClip Frame 5
this._alpha = this.pAlpha;
this.pAlpha = this.pAlpha - 5;
if (this.pAlpha <= 0) {
_root.play();
this.stop();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 208 MovieClip Frame 1
this.onPress = function () {
_parent.SE_popin.start(0, 0);
_root.playMode = "practice";
_root.gotoAndPlay("start");
};
this.onRollOver = function () {
_parent.SE_kato.start(0, 0);
this.gotoAndStop("over");
};
this.onRollOut = function () {
this.gotoAndStop("std");
};
Symbol 208 MovieClip Frame 5
this.stop();
Symbol 213 MovieClip Frame 1
this.onPress = function () {
_parent.SE_popin.start(0, 0);
_root.playMode = "challenge";
_root.gotoAndPlay("start");
};
this.onRollOver = function () {
_parent.SE_kato.start(0, 0);
this.gotoAndStop("over");
};
this.onRollOut = function () {
this.gotoAndStop("std");
};
Symbol 213 MovieClip Frame 5
this.stop();
Symbol 214 MovieClip Frame 1
this.SE_kato = new Sound(this);
this.SE_kato.attachSound("SE_kato");
this.SE_popin = new Sound(this);
this.SE_popin.attachSound("SE_popin");
this.stop();
Symbol 221 MovieClip Frame 1
_parent.stop();
this.startTime = getTimer();
Symbol 221 MovieClip Frame 3
if (this.stayTime <= (getTimer() - this.startTime)) {
_parent.play();
this.stop();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 222 MovieClip Frame 1
function changeStat(nStat) {
var _local1 = this;
_local1.stat = nStat;
switch (nStat) {
case "moveX" :
_local1.speedUpFlg = true;
_local1.SE_motor.start(0, 0);
_local1.gotoAndPlay("moveX");
return;
case "moveXEnd" :
_local1.speedUpFlg = false;
_local1.SE_motor.stop();
_local1.SE_motorStop.start(0, 0);
return;
case "moveZ" :
_local1.speedUpFlg = true;
_local1.SE_motor.start(0, 0);
_local1.gotoAndPlay(_local1.Stat);
return;
case "moveZEnd" :
_local1.speedUpFlg = false;
_local1.SE_motor.stop();
_local1.SE_motorStop.start(0, 0);
}
}
function view2Dconv() {
var _local1 = this;
d = (1500 - _local1.mz) / 1500;
_local1._x = 200 + ((_local1.mx - 200) * d);
d = (2500 - _local1.mz) / 2500;
_local1._y = _local1.my * d;
ny = 257 * d;
_parent.craneShadowMC.setLoc(_local1._x, ny);
_local1._xscale = 100 * d;
_local1._yscale = 100 * d;
}
function moveX() {
var _local1 = this;
_local1.mx = _local1.mx + _local1.speed;
if (_local1.mx > _local1.mx_max) {
_local1.mx = _local1.mx_max;
_root.ctrBtn1MC.moveStop();
}
if (_local1.speedUpFlg) {
_local1.speed = _local1.speed + 0.25;
if (_local1.speed > 4) {
_local1.speed = 4;
}
} else {
_local1.speed = _local1.speed - 0.5;
if (_local1.speed <= 0) {
_local1.speed = 0;
_local1.stat = "standby";
_local1.gotoAndPlay("standby");
}
}
}
function moveZ() {
var _local1 = this;
_local1.mz = _local1.mz + _local1.speed;
if (_local1.mz > _local1.mz_max) {
_local1.mz = _local1.mz_max;
_root.ctrBtn2MC.moveStop();
}
if (_local1.speedUpFlg) {
_local1.speed = _local1.speed + 0.25;
if (_local1.speed > 4) {
_local1.speed = 4;
}
} else {
_local1.speed = _local1.speed - 0.5;
if (_local1.speed <= 0) {
_local1.speed = 0;
_local1.stat = "armOpen";
_local1.gotoAndPlay("armOpen");
}
}
_local1.swapDepths(100001 - (_local1.mz * 100));
}
function armOpen() {
var _local1 = this;
var _local2 = _parent;
if (_local1.ptr < _local1.AddAngleList.length) {
_local1.armRightMC._rotation = _local1.armRightMC._rotation - _local1.AddAngleList[_local1.ptr];
_local1.armLeftMC._rotation = _local1.armLeftMC._rotation + _local1.AddAngleList[_local1.ptr];
_local1.ptr++;
} else {
_local1.ptr = 0;
rList = _root.viewTopMC.checkTarget();
if (rList[1] != "NO") {
_local1.targetMC = _local2.prizeMCList[rList[0]];
_local1.prizeGetMode = ("get" + _local1.targetMC.prizeName) + rList[1];
_local1.targetLaderMC = _root.viewTopMC["prizeLader" + rList[0]];
_local1.emptyFlg = false;
} else {
if (rList[0] != 999) {
_local1.targetMC = _local2.prizeMCList[rList[0]];
_local1.emptyFlg = false;
} else {
_local1.targetMC = _local2.emptyMC;
_local1.emptyFlg = true;
}
_local1.prizeGetMode = "getNo";
}
switch (_local1.targetMC.prizeName) {
case "puni_S" :
_local1.my_max = 172;
break;
case "panzo_S" :
_local1.my_max = 138;
break;
case "puni_L" :
_local1.my_max = 148;
break;
case "panzo_L" :
_local1.my_max = 110;
break;
case "mu" :
_local1.my_max = 180;
}
_local1.SE_motor2.start(0, 0);
_local1.gotoAndPlay("moveY");
}
}
function moveY() {
var _local1 = this;
_local1.my = _local1.my + 4;
_parent.craneShadowMC.setAlpha(0.25);
if (_local1.my > _local1.my_max) {
_local1.my = _local1.my_max;
_local1.closeStopLeft = false;
_local1.closeStopRight = false;
_local1.ptr = 0;
_local1.SE_motor2.stop();
_local1.gotoAndPlay("armClose");
}
}
function armClose() {
var _local1 = this;
var _local2 = 3;
if (_local1.emptyFlg) {
_local1.armRightMC._rotation = _local1.armRightMC._rotation + _local2;
_local1.armLeftMC._rotation = _local1.armLeftMC._rotation - _local2;
} else {
if (_local1.closeStopRight == false) {
if (_local1.targetMC.pngMC.hitMC.hitTest(_local1.armRightMC.armTumeMC)) {
_local1.closeStopRight = true;
} else {
_local1.armRightMC._rotation = _local1.armRightMC._rotation + _local2;
}
}
if (_local1.closeStopLeft == false) {
if (_local1.targetMC.pngMC.hitMC.hitTest(_local1.armLeftMC.armTumeMC)) {
_local1.closeStopLeft = true;
} else {
_local1.armLeftMC._rotation = _local1.armLeftMC._rotation - _local2;
}
}
}
_local1.ptr++;
if ((_local1.ptr == 26) || (_local1.closeStopRight && (_local1.closeStopLeft))) {
_local1.gotoAndPlay("moveY2");
}
}
function moveY2() {
var _local1 = this;
_local1.my = my - 4;
_parent.craneShadowMC.setAlpha(-0.25);
if (_local1.my < _local1.my_min) {
_local1.my = _local1.my_min;
_local1.armRightMC._rotation = 180;
_local1.armLeftMC._rotation = 0;
_local1.SE_motor2.stop();
_local1.SE_motor.start(0, 0);
_local1.gotoAndPlay("moveXZ");
}
if (_local1.prizeGetMode == "getNo") {
var _local2 = 3;
_local1.armRightMC._rotation = _local1.armRightMC._rotation + _local2;
if (_local1.armRIghtMC._rotation <= 180) {
_local1.armRightMC._rotation = 180;
}
_local1.armLeftMC._rotation = _local1.armLeftMC._rotation - _local2;
if (_local1.armLeftMC._rotation <= 0) {
_local1.armLeftMC._rotation = 0;
}
}
}
function moveXZ() {
var _local1 = this;
_local1.mx = _local1.mx - 4;
if (_local1.mx < _local1.mx_min) {
_local1.mx = _local1.mx_min;
}
_local1.mz = _local1.mz - 4;
if (_local1.mz < _local1.mz_min) {
_local1.mz = _local1.mz_min;
}
if ((_local1.mx == _local1.mx_min) && (_local1.mz == _local1.mx_min)) {
_local1.ptr = 0;
_local1.getPrizeCraneMC.play();
_local1.SE_motor.stop();
_local1.SE_motorStop(0, 0);
_local1.gotoAndPlay("armOpen2");
}
if (_root.getFlg == true) {
_local1.targetLaderMC.setLoc(_local1.mx, _local1.mz);
}
_local1.swapDepths(100001 - (_local1.mz * 100));
}
function armOpen2() {
var _local1 = this;
if (_local1.ptr < _local1.AddAngleList2.length) {
_local1.armRightMC._rotation = _local1.armRightMC._rotation - _local1.AddAngleList2[_local1.ptr];
_local1.armLeftMC._rotation = _local1.armLeftMC._rotation + _local1.AddAngleList2[_local1.ptr];
_local1.ptr++;
} else {
_local1.ptr = 0;
_local1.gotoAndPlay("standby");
}
}
function getPrize() {
var _local1 = _root;
var _local2 = this;
_local2.SE_ok.start(0, 0);
_local2.targetLaderMC.takeOut();
_local1.attachMovie("get", "getMC", 100002);
_local1.getMC.prizeName = _local2.targetMC.prizeName;
_local1.getMC._x = 80;
_local1.getMC._y = 80;
}
function DispSwitchCrane(nFlg) {
var _local1 = nFlg;
var _local2 = this;
_local2.craneBodyMC._visible = _local1;
_local2.armLeftMC._visible = _local1;
_local2.armRightMC._visible = _local1;
}
this.AddAngleList = [1, 2, 4, 8, 8, 8, 8, 8, 8, 8, 8, 4, 2, 1];
this.AddAngleList2 = [1, 2, 4, 8, 8, 8, 8, 8, 8, 8, 8, 4, 2, 1, -1, -2, -4, -8, -8, -8, -8, -8, -8, -8, -8, -4, -2, -1];
this.ptr = 0;
this.SE_motor = new Sound(this);
this.SE_motor.attachSound("SE_motor");
this.SE_motor2 = new Sound(this);
this.SE_motor2.attachSound("SE_motor2");
this.SE_motorStop = new Sound(this);
this.SE_motorStop.attachSound("SE_motorStop");
this.SE_ok = new Sound(this);
this.SE_ok.attachSound("SE_ok");
this.SE_arm = new Sound(this);
this.SE_arm.attachSound("SE_arm");
this.speedUpFlg = false;
this.speed = 0;
this.mx_min = 0;
this.my_min = 20;
this.mz_min = 0;
this.mx_max = 320;
this.my_max = 180;
this.mz_max = 200;
this.mx = this.mx_min;
this.my = this.my_min;
this.mz = this.mz_min;
this.stat = "standby";
this.swapDepths(1000 - this.mz);
Symbol 222 MovieClip Frame 3
this.view2Dconv();
_root.viewTopMC.craneLaderMC.setLoc(this.mx, this.my, this.mz);
this.stop();
Symbol 222 MovieClip Frame 10
this.moveX();
this.view2Dconv();
_root.viewTopMC.craneLaderMC.setLoc(this.mx, this.my, this.mz);
this.gotoAndPlay(_currentframe - 1);
Symbol 222 MovieClip Frame 20
this.moveZ();
this.view2Dconv();
_root.viewTopMC.craneLaderMC.setLoc(this.mx, this.my, this.mz);
this.gotoAndPlay(_currentframe - 1);
Instance of Symbol 221 MovieClip in Symbol 222 MovieClip Frame 30
//component parameters
onClipEvent (initialize) {
stayTime = 500;
}
Symbol 222 MovieClip Frame 31
this.SE_arm.start(0, 0);
_root.viewSideMC.closeWindow();
_root.viewTopMC.closeWindow();
_root.btn_topViewMC.setStat("stop");
_root.btn_sideViewMC.setStat("stop");
_root.OtherViewOpenOkFlg = false;
Symbol 222 MovieClip Frame 33
this.armOpen();
this.gotoAndPlay(_currentframe - 1);
Instance of Symbol 221 MovieClip in Symbol 222 MovieClip Frame 40
//component parameters
onClipEvent (initialize) {
stayTime = 250;
}
Symbol 222 MovieClip Frame 43
this.moveY();
this.view2Dconv();
_root.viewTopMC.craneLaderMC.setLoc(this.mx, this.my, this.mz);
this.gotoAndPlay(_currentframe - 1);
Instance of Symbol 221 MovieClip in Symbol 222 MovieClip Frame 50
//component parameters
onClipEvent (initialize) {
stayTime = 250;
}
Symbol 222 MovieClip Frame 51
this.SE_arm.start(0, 0);
Symbol 222 MovieClip Frame 53
this.armClose();
this.gotoAndPlay(_currentframe - 1);
Instance of Symbol 221 MovieClip in Symbol 222 MovieClip Frame 60
//component parameters
onClipEvent (initialize) {
stayTime = 1000;
}
Symbol 222 MovieClip Frame 62
this.SE_motor2.start(0, 0);
if (this.prizeGetMode == "getNo") {
if (this.emptyFlg == false) {
this.targetMC.liftUp();
}
} else {
this.attachMovie(this.prizeGetMode, "getPrizeCraneMC", this.mz);
this.DispSwitchCrane(false);
}
Symbol 222 MovieClip Frame 63
this.getPrizeCraneMC.play();
Symbol 222 MovieClip Frame 65
this.moveY2();
this.view2Dconv();
_root.viewTopMC.craneLaderMC.setLoc(this.mx, this.my, this.mz);
this.gotoAndPlay(_currentframe - 1);
Instance of Symbol 221 MovieClip in Symbol 222 MovieClip Frame 70
//component parameters
onClipEvent (initialize) {
stayTime = 250;
}
Symbol 222 MovieClip Frame 72
if (_root.getFlg == false) {
this.getPrizeCraneMC.play();
if (this.prizeGetMode != "getNo") {
this.stop();
} else {
this.attachMovie(this.prizeGetMode, "getPrizeCraneMC", this.mz);
}
}
Symbol 222 MovieClip Frame 74
this.moveXZ();
this.view2Dconv();
_root.viewTopMC.craneLaderMC.setLoc(this.mx, this.my, this.mz);
this.gotoAndPlay(_currentframe - 1);
Instance of Symbol 221 MovieClip in Symbol 222 MovieClip Frame 80
//component parameters
onClipEvent (initialize) {
stayTime = 1000;
}
Symbol 222 MovieClip Frame 82
_root.viewTopMC.craneLaderMC.setLoc(this.mx, this.my, this.mz);
this.stop();
Symbol 222 MovieClip Frame 90
_root.credit--;
if (_root.playMode == "practice") {
if (_root.credit > 0) {
_root.setGame();
} else {
_root.stat = "standby";
_root.setNaviCoin();
}
} else if (_root.credit > 0) {
_root.setGame();
} else {
_root.attachMovie("result", "resultMC", 10000);
_root.resultMC._x = 20;
_root.resultMC._y = 10;
}
_root.btn_topViewMC.setStat("run");
_root.btn_sideViewMC.setStat("run");
_root.OtherViewOpenOkFlg = true;
this.gotoAndStop("standby");
Symbol 224 MovieClip Frame 1
function setLoc(nx, ny) {
this._x = nx;
this._y = ny;
}
function setAlpha(n) {
var _local1 = this;
if (_local1.ralpha > 30) {
_local1.ralpha = 30;
}
if (_local1.ralpha < 10) {
_local1.ralpha = 10;
}
_local1._alpha = _local1.ralpha;
}
this.ralpha = 10;
this._alpha = this.ralpha;
Symbol 224 MovieClip Frame 2
this.stop();
Symbol 226 MovieClip Frame 1
this.prizeName = "mu";
this._visible = false;
this.stop();
Symbol 227 MovieClip Frame 1
this.stop();
Symbol 227 MovieClip Frame 5
function makeRayOut() {
var _local1 = this;
_local1.prizeNameList = [];
var rndList = _local1.makeRndList(4);
var rndList2 = _local1.makeRndList(4);
trace(rndList);
trace(rndList2);
i = 0;
while (i < 4) {
var _local3 = (27 + (60 * i)) + rndList[i];
var _local2 = 15 + rndList2[i];
nName = rndSmallPrize();
_local1.prizeNameList.push([nName, _local3, _local2]);
i++;
}
var rndList = _local1.makeRndList(4);
var rndList2 = _local1.makeRndList(4);
i = 0;
while (i < 3) {
var _local3 = (83 + (60 * i)) + rndList[i];
var _local2 = 70 + rndLis2[i];
nName = _local1.rndAllPrize();
_local1.prizeNameList.push([nName, _local3, _local2]);
i++;
}
var rndList = _local1.makeRndList(4);
var rndList2 = _local1.makeRndList(4);
i = 0;
while (i < 3) {
var _local3 = (27 + (60 * i)) + rndList[i];
var _local2 = 135 + rndList2[i];
nName = _local1.rndLargePrize();
_local1.prizeNameList.push([nName, _local3, _local2]);
i++;
}
var rndList = _local1.makeRndList(4);
var rndList2 = _local1.makeRndList(4);
i = 0;
while (i < 3) {
var _local3 = (83 + (60 * i)) + rndList[i];
var _local2 = 185 + rndList2[i];
nName = _local1.rndLargePrize();
_local1.prizeNameList.push([nName, _local3, _local2]);
i++;
}
_local1.checkList();
}
function checkList() {
var _local1 = this;
trace("[");
i = 0;
while (i < _local1.prizeNameList.length) {
trace(((((("[\"" + _local1.prizeNameList[i][0]) + "\",") + _local1.prizeNameList[i][1]) + ",") + _local1.prizeNameList[i][2]) + "],");
i++;
}
trace("],");
}
function makeRndList(n) {
var _local3 = _root;
var _local2 = [];
i = 0;
while (i < n) {
var _local1 = true;
while (_local1) {
_local1 = false;
rn = _local3.randomInt(30) - 15;
j = 0;
while (j < _local2.length) {
if (_local2[j] == rn) {
_local1 = true;
}
j++;
}
if (_local1 == false) {
_local2.push(rn);
}
}
i++;
}
return(_local2);
}
function rndAllPrize() {
switch (_root.randomInt(4)) {
case 1 :
var _local1 = "puni_S";
break;
case 2 :
_local1 = "puni_L";
break;
case 3 :
_local1 = "panzo_S";
break;
case 4 :
_local1 = "panzo_L";
}
return(_local1);
}
function rndPuniPrize() {
switch (_root.randomInt(2)) {
case 1 :
var _local1 = "puni_S";
break;
case 2 :
_local1 = "puni_L";
}
return(_local1);
}
function rndPanzoPrize() {
switch (_root.randomInt(2)) {
case 1 :
var _local1 = "panzo_S";
break;
case 2 :
_local1 = "panzo_L";
}
return(_local1);
}
function rndSmallPrize() {
switch (_root.randomInt(2)) {
case 1 :
var _local1 = "panzo_S";
break;
case 2 :
_local1 = "puni_S";
}
return(_local1);
}
function rndLargePrize() {
switch (_root.randomInt(2)) {
case 1 :
var _local1 = "panzo_L";
break;
case 2 :
_local1 = "puni_L";
}
return(_local1);
}
this.DepthList = [];
_root.getPrizeList = [];
this.prizeMCList = [];
Symbol 227 MovieClip Frame 6
this.setPtr = 0;
Symbol 227 MovieClip Frame 16
nName = "prize" + this.setPtr;
nDepth = 100000 - (_root.prizeNameList[_root.ptnNum][this.setPtr][2] * 100);
this.attachMovie("prize", nName, nDepth);
this[nName].mx = _root.prizeNameList[_root.ptnNum][this.setPtr][1] + 100;
this[nName].my = 260;
this[nName].mz = _root.prizeNameList[_root.ptnNum][this.setPtr][2];
this[nName].prizeName = _root.prizeNameList[_root.ptnNum][this.setPtr][0];
this.prizeMCList.push(this[nName]);
this.setPtr++;
if (this.setPtr < _root.prizeNameList[_root.ptnNum].length) {
this.gotoAndPlay("setPrize2");
} else {
this.gotoAndStop("setPrize3");
}
Symbol 227 MovieClip Frame 20
_root.viewTopMC.setPrize();
this.prizeOutMC.swapDepths(90002);
Symbol 227 MovieClip Frame 29
this.stop();
Symbol 234 MovieClip Frame 1
function setStat(nmode) {
var _local1 = this;
if (nmode == "stop") {
_local1.stopFlg = true;
_local1.gotoAndStop("no");
} else {
_local1.stopFlg = false;
_local1.gotoAndStop("standby");
}
}
this.stopFlg = false;
this.onPress = function () {
var _local1 = _root;
if (this.stopFlg) {
} else if (_local1.stat != "standby") {
} else if (_local1.OtherViewOpenOkFlg) {
_local1.viewTopMC.switchWindow();
}
};
this.onRollOver = function () {
if (this.stopFlg) {
return(undefined);
}
this.gotoAndPlay(10);
};
this.onRollOut = function () {
if (this.stopFlg) {
return(undefined);
}
this.gotoAndStop(5);
};
this.onDragOut = function () {
if (this.stopFlg) {
return(undefined);
}
this.gotoAndStop(5);
};
Symbol 234 MovieClip Frame 5
this.stop();
Symbol 234 MovieClip Frame 40
this.stop();
Symbol 234 MovieClip Frame 50
this.stop();
Symbol 238 MovieClip Frame 1
function setStat(nmode) {
var _local1 = this;
if (nmode == "stop") {
_local1.stopFlg = true;
_local1.gotoAndStop("no");
} else {
_local1.stopFlg = false;
_local1.gotoAndStop("standby");
}
}
this.stopFlg = false;
this.onPress = function () {
var _local1 = _root;
if (this.stopFlg) {
} else if (_local1.stat != "standby") {
} else if (_local1.OtherViewOpenOkFlg) {
_local1.viewSideMC.switchWindow();
}
};
this.onRollOver = function () {
if (this.stopFlg) {
return(undefined);
}
this.gotoAndPlay(10);
};
this.onRollOut = function () {
if (this.stopFlg) {
return(undefined);
}
this.gotoAndStop(5);
};
this.onDragOut = function () {
if (this.stopFlg) {
return(undefined);
}
this.gotoAndStop(5);
};
Symbol 238 MovieClip Frame 5
this.stop();
Symbol 238 MovieClip Frame 40
this.stop();
Symbol 238 MovieClip Frame 50
this.stop();
Symbol 243 MovieClip Frame 1
function unEntry() {
this._y = 1000;
}
function setStat(nmode) {
var _local1 = this;
if (nmode == "stop") {
_local1.stopFlg = true;
_local1.gotoAndStop("no");
} else {
_local1.stopFlg = false;
_local1.gotoAndStop("standby");
}
}
this.stopFlg = false;
this.onPress = function () {
var _local1 = _root;
if (this.stopFlg) {
} else if (_local1.stat != "standby") {
} else {
_local1.viewTopMC.closeWindow2();
_local1.viewSideMC.closeWindow();
_local1.ptnNum++;
if (_local1.ptnNum > (_local1.prizeNameList.length - 1)) {
_local1.ptnNum = 0;
}
_local1.gotoAndPlay("start");
}
};
this.onRollOver = function () {
if (this.stopFlg) {
return(undefined);
}
this.gotoAndPlay(10);
};
this.onRollOut = function () {
if (this.stopFlg) {
return(undefined);
}
this.gotoAndStop(5);
};
this.onDragOut = function () {
if (this.stopFlg) {
return(undefined);
}
this.gotoAndStop(5);
};
Symbol 243 MovieClip Frame 5
this.stop();
Symbol 243 MovieClip Frame 40
this.stop();
Symbol 243 MovieClip Frame 50
this.stop();
Symbol 248 MovieClip Frame 1
this.onPress = function () {
if (_root.stat != "standby") {
return(undefined);
}
_root.gotoAndPlay("init");
};
this.onRollOver = function () {
this.gotoAndPlay(10);
};
this.onRollOut = function () {
this.gotoAndStop(5);
};
this.onDragOut = function () {
this.gotoAndStop(5);
};
Symbol 248 MovieClip Frame 5
this.stop();
Symbol 248 MovieClip Frame 40
this.stop();