Combined Code
frame 1 {
stop();
}
movieClip 2 {
}
movieClip 5 {
}
// unknown tag 88 length 95
// unknown tag 88 length 145
button 14 {
on (release) {
this.gotoAndPlay('intro');
}
}
frame 2 {
gotoAndStop('intro');
}
frame 11 {
play();
}
frame 30 {
stop();
}
movieClip 21 {
}
button 22 {
on (release) {
this.nextFrame();
}
}
frame 31 {
stop();
}
frame 32 {
stop();
}
frame 33 {
stop();
}
frame 34 {
stop();
}
frame 35 {
play();
}
frame 54 {
gotoAndStop('game');
}
frame 61 {
function slot() {
moneySum += slotMoney;
money.text = moneySum;
nextBtnPushTime = 0;
prevBtnPushTime = 0;
slot_btn._visible = false;
prevPage_btn._visible = false;
nextPage_btn._visible = false;
reset_btn._visible = false;
cardList_mc.gotoAndStop(2);
var v5 = -(cardListX * cardSlotSum) * 4;
cardList_mc._x = v5;
var lengthX = Math.abs(v5) + cardListDefaultX;
this.onEnterFrame = function () {
lengthX /= 2;
cardList_mc._x += lengthX;
if (lengthX < 1) {
cardList_mc._x = cardListDefaultX;
delete this.onEnterFrame;
reset_btn._visible = true;
nextPage_btn._visible = true;
if (cardID1 > 0 && cardID2 > 0 && cardID3 > 0 && cardID4 > 0 && cardID5 > 0) {
slot_btn._visible = false;
} else {
slot_btn._visible = true;
}
}
};
var v2 = 0;
while (v2 < cardSlotSum) {
var v4 = v2 + 1;
var v3 = Math.floor(Math.random() * cardSum + 1);
cardList_mc['card' + v4 + '_mc']._x = cardListX * v2;
cardList_mc['card' + v4 + '_mc'].gotoAndStop(v3);
switch (v3) {
case 1:
++cardID1;
cardID1Txt.text = cardID1;
if (cardID1 < 2) {
announce1_mc.nextFrame();
}
break;
case 2:
++cardID2;
cardID2Txt.text = cardID2;
if (cardID2 < 2) {
announce2_mc.nextFrame();
}
break;
case 3:
++cardID3;
cardID3Txt.text = cardID3;
if (cardID3 < 2) {
announce3_mc.nextFrame();
}
break;
case 4:
++cardID4;
cardID4Txt.text = cardID4;
if (cardID4 < 2) {
announce4_mc.nextFrame();
}
break;
case 5:
++cardID5;
cardID5Txt.text = cardID5;
if (cardID5 < 2) {
announce5_mc.nextFrame();
}
}
++v2;
}
if (cardID1 > 0 && cardID2 > 0 && cardID3 > 0 && cardID4 > 0 && cardID5 > 0) {
cardComplete();
slot_btn._visible = false;
}
}
function reset() {
cardList_mc.gotoAndStop(1);
nextPage_btn._visible = false;
prevPage_btn._visible = false;
cardList_mc._x = cardListDefaultX;
moneySum = 0;
money.text = moneySum;
var v3 = 0;
while (v3 < cardRareSum) {
var v2 = v3 + 1;
this['cardID' + v2] = 0;
this['cardID' + v2 + 'Txt'].text = this['cardID' + v2];
++v3;
}
reset_btn._visible = false;
slot_btn._visible = true;
complete_mc.gotoAndStop(1);
}
function nextPage() {
++nextBtnPushTime;
prevPage_btn._visible = false;
nextPage_btn._visible = false;
this.onEnterFrame = function () {
cardListCurrentX = cardList_mc._x;
var v2 = cardListDefaultX - cardListX * nextBtnPushTime;
var v3;
v3 = (cardListCurrentX - Math.abs(v2)) / 2;
cardList_mc._x = v3;
moveAmount = v2 - v3;
if (moveAmount > -1) {
cardList_mc._x = v2;
delete this.onEnterFrame;
if (nextBtnPushTime < cardSlotSum - 1) {
nextPage_btn._visible = true;
}
prevPage_btn._visible = true;
}
};
}
function prevPage() {
--nextBtnPushTime;
prevPage_btn._visible = false;
nextPage_btn._visible = false;
this.onEnterFrame = function () {
cardListCurrentX = cardList_mc._x;
var v2 = cardListDefaultX - cardListX * nextBtnPushTime;
var v3;
if (v2 > 0) {
v3 = (cardListCurrentX + Math.abs(v2)) / 2;
} else {
v3 = (cardListCurrentX - Math.abs(v2)) / 2;
}
cardList_mc._x = v3;
moveAmount = Math.abs(v2) - Math.abs(v3);
if (Math.abs(moveAmount) < 1) {
cardList_mc._x = v2;
delete this.onEnterFrame;
if (nextBtnPushTime > 0) {
prevPage_btn._visible = true;
}
nextPage_btn._visible = true;
}
};
}
function cardComplete() {
this.onLoad = function () {
slot_btn._visible = false;
};
complete_mc.nextFrame();
}
function cardCompleteResult() {
if (moneySum < 20000) {
this.gotoAndPlay('yen0');
} else {
if (moneySum >= 20000 && moneySum < 60000) {
this.gotoAndPlay('yen20000');
} else {
if (moneySum >= 60000 && moneySum < 100000) {
this.gotoAndPlay('yen60000');
} else {
if (moneySum >= 100000 && moneySum < 200000) {
this.gotoAndPlay('yen100000');
} else {
if (moneySum >= 200000 && moneySum < 300000) {
this.gotoAndPlay('yen200000');
} else {
if (moneySum >= 300000) {
this.gotoAndPlay('yen300000');
} else {
this.gotoAndPlay('error');
}
}
}
}
}
}
}
stop();
var cardSum = 209;
var cardRareSum = 5;
var cardSlotSum = 11;
var cardListX = 200;
var cardListDefaultX = 160;
var cardListCurrentX;
var nextBtnPushTime = 0;
var prevBtnPushTime = 0;
var slotMoney = 3000;
var moneySum = 0;
reset();
slot_btn.onRelease = function () {
slot();
};
nextPage_btn.onRelease = function () {
nextPage();
};
prevPage_btn.onRelease = function () {
prevPage();
};
reset_btn.onRelease = function () {
reset();
};
}
button 36 {
on (release) {
_parent.slot();
}
}
// unknown tag 88 length 104
movieClip 41 {
}
movieClip 45 {
}
movieClip 49 {
}
movieClip 53 {
}
movieClip 57 {
}
movieClip 313 {
frame 1 {
stop();
}
}
movieClip 314 {
frame 1 {
stop();
}
}
// unknown tag 88 length 95
movieClip 329 {
}
movieClip 331 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 333 {
}
movieClip 334 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 336 {
}
movieClip 337 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 339 {
}
movieClip 340 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 342 {
}
movieClip 343 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 346 {
}
movieClip 348 {
}
button 352 {
on (release) {
_parent.cardCompleteResult();
}
}
movieClip 353 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 60 {
stop();
}
}
button 368 {
on (release) {
this.gotoAndStop('title');
reset();
}
}
frame 71 {
play();
}
frame 90 {
stop();
}
button 376 {
on (release) {
this.gotoAndStop('game');
reset();
}
}
frame 91 {
play();
}
frame 110 {
stop();
}
frame 111 {
play();
}
frame 130 {
stop();
}
frame 131 {
play();
}
frame 150 {
stop();
}
frame 151 {
play();
}
frame 170 {
stop();
}
frame 171 {
play();
}
frame 190 {
stop();
}
frame 191 {
play();
}
frame 210 {
stop();
}