Frame 1
function randomizeBlocks() {
x = 1;
while (100 >= x) {
Set("/:drawBlock" + x, "");
x++;
}
total = cardMax;
Set("/:count", 0);
a = new Array(total);
i = 1;
while (total >= i) {
R = random(total);
if (a[R] != null) {
R = random(total);
if (a[R] != null) {
R = random(total);
if (a[R] != null) {
R = 0;
while (total >= R) {
if (a[R] == null) {
break;
}
R++;
}
}
}
}
a[R] = i;
i++;
}
x = 0;
while ((total - 1) >= x) {
x = x + 1;
Set("/:block" add x, a[x - 1]);
}
}
function setBlocks() {
x = 1;
while (10 >= x) {
count = count + 1;
Set(("_root.cB" + x) + ".rValue", eval ("/:block" + count));
eval ("_root.cB" + x).gotoAndStop(eval ("/:block" + count));
count = count + 1;
Set(("_root.pB" + x) + ".rValue", eval ("/:block" + count));
eval ("_root.pB" + x).gotoAndStop(eval ("/:block" + count));
x++;
}
}
function setChanceBlocks() {
x = 1;
while ((cardMax - 20) >= x) {
count = count + 1;
Set("/:drawBlock" + x, eval ("/:block" + count));
x++;
}
}
Frame 7
if (61 >= _framesloaded) {
gotoAndPlay(_currentframe - 2);
}
Frame 10
stop();
Instance of Symbol 16 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (-200 >= _x) {
_x = 700;
Set("/:windSpeed", random(50) + 10);
_y = (random(163) + 5);
}
_x = (_x - (/:windSpeed * 0.03));
}
Instance of Symbol 17 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (-40 >= _x) {
_x = 583;
Set("/:windSpeed", random(50) + 10);
_y = (random(63) + 100);
}
_x = (_x - (/:windSpeed * 0.005));
}
Instance of Symbol 18 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (-40 >= _x) {
_x = 583;
Set("/:windSpeed", random(50) + 10);
_y = (random(63) + 100);
}
_x = (_x - (/:windSpeed * 0.01));
}
Instance of Symbol 19 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (-200 >= _x) {
_x = 700;
Set("/:windSpeed", random(50) + 10);
_y = (random(163) + 5);
}
_x = (_x - (/:windSpeed * 0.05));
}
Frame 14
end = 0;
drawBlockCount = 1;
discardBlockCount = 0;
count = 0;
Set("/:level", /:level + 1);
Set("/:levelDis", /:level + " of 8");
x = 2;
while (100 >= x) {
eval ("_root.chunk" + x).removeMovieClip();
eval ("_root.chunkp" + x).removeMovieClip();
x++;
}
if (/:level == 1) {
cardMax = 50;
} else if (/:level == 2) {
cardMax = 45;
} else if (/:level == 3) {
cardMax = 42;
} else if (/:level == 4) {
cardMax = 38;
} else if (/:level == 5) {
cardMax = 35;
} else if (/:level == 6) {
cardMax = 32;
} else if (/:level == 7) {
cardMax = 30;
} else if (/:level == 8) {
cardMax = 22;
}
drawBlockMax = cardMax - 20;
Frame 58
randomizeBlocks();
setChanceBlocks();
Frame 61
setBlocks();
sample1.rValue = 1;
sample2.rValue = cardMax;
stop();
Instance of Symbol 16 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (-200 >= _x) {
_x = 700;
Set("/:windSpeed", random(50) + 10);
_y = (random(163) + 5);
}
_x = (_x - (/:windSpeed * 0.03));
}
Instance of Symbol 200 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (-100 >= _x) {
_x = 600;
Set("/:windSpeed", random(50) + 10);
_y = (random(63) + 100);
}
_x = (_x - (/:windSpeed * 0.005));
}
Instance of Symbol 201 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (-100 >= _x) {
_x = 600;
Set("/:windSpeed", random(50) + 10);
_y = (random(63) + 100);
}
_x = (_x - (/:windSpeed * 0.01));
}
Frame 62
stop();
_root.curtain.gotoAndPlay("close");
scroll.discardB.rValue = eval ("/:drawBlock" + /:drawBlockcount);
_root.scroll.chanceB.rValue = "?";
Frame 63
end = 1;
_root.shaker.gotoAndStop(1);
Frame 68
_root.curtain.gotoAndPlay("open");
Frame 69
_root.bad1.gotoAndStop(5);
stop();
Frame 73
end = 1;
_root.shaker.gotoAndStop(1);
Frame 77
_root.curtain.gotoAndPlay("open");
Frame 78
_root.hero1.gotoAndStop(5);
stop();
Frame 81
PLB = /:level * 1000;
TTB = _root.pB1.rValue * 40;
score = (score + PLB) + TTB;
Frame 218
if (/:level >= 8) {
gotoAndPlay (226);
} else {
gotoAndPlay (14);
}
Frame 360
stop();
Frame 370
x = 2;
while (100 >= x) {
eval ("_root.chunk" + x).removeMovieClip();
eval ("_root.chunkp" + x).removeMovieClip();
x++;
}
Frame 428
stop();
Symbol 14 Button
on (release) {
getURL ("http://www.gamerival.com");
}
Symbol 43 MovieClip Frame 107
chunkN = 1;
_root.cB10.gotoAndStop("blow");
cunksToBlow = random(3) + 7;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB10._y);
x++;
}
Symbol 43 MovieClip Frame 109
_root.cB9.gotoAndStop("blow");
cunksToBlow = random(4) + 6;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB9._y);
x++;
}
Symbol 43 MovieClip Frame 111
_root.cB8.gotoAndStop("blow");
cunksToBlow = random(3) + 5;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB8._y);
x++;
}
Symbol 43 MovieClip Frame 113
_root.cB7.gotoAndStop("blow");
cunksToBlow = random(3) + 5;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB7._y);
x++;
}
Symbol 43 MovieClip Frame 116
_root.cB6.gotoAndStop("blow");
cunksToBlow = random(5) + 4;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB6._y);
x++;
}
Symbol 43 MovieClip Frame 118
_root.cB5.gotoAndStop("blow");
cunksToBlow = random(3) + 3;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB5._y);
x++;
}
Symbol 43 MovieClip Frame 119
_root.cB4.gotoAndStop("blow");
cunksToBlow = random(4) + 4;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB4._y);
x++;
}
Symbol 43 MovieClip Frame 121
_root.cB3.gotoAndStop("blow");
cunksToBlow = random(4) + 2;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB3._y);
x++;
}
Symbol 43 MovieClip Frame 124
_root.cB2.gotoAndStop("blow");
cunksToBlow = random(3) + 2;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB2._y);
x++;
}
Symbol 43 MovieClip Frame 126
_root.cB1.gotoAndStop("blow");
cunksToBlow = random(4) + 6;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB1._y);
x++;
}
Symbol 43 MovieClip Frame 135
_root.bad1.gotoAndStop("sad");
_root.gotoAndPlay("winend");
stop();
Symbol 48 MovieClip Frame 51
stop();
_root.gotoAndPlay("loseend");
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 5
stop();
Symbol 64 Button
on (release) {
mode = 1;
score = 0;
levelDis = 0;
level = 0;
gotoAndStop (13);
}
Symbol 70 Button
on (release) {
_root.ins.gotoAndStop(2);
}
Symbol 79 Button
on (release) {
nextFrame();
}
Symbol 100 Button
on (release) {
gotoAndStop (1);
}
Symbol 123 Button
on (release) {
prevFrame();
}
Symbol 154 MovieClip Frame 1
stop();
Symbol 165 Button
on (release) {
_root.gotoAndPlay("start");
}
Symbol 183 MovieClip Frame 270
_root.gotoAndPlay("start");
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 3
gotoAndPlay(_currentframe + (random(18) + 1));
Symbol 207 MovieClip Frame 29
Set("/:score", /:score + /:bonus);
Symbol 208 MovieClip Frame 2
stop();
Symbol 209 MovieClip Frame 2
stop();
Symbol 212 MovieClip Frame 2
stop();
Symbol 214 MovieClip Frame 1
shakeCount = 0;
x = 1;
while (9 >= x) {
Set(("_root.pB" + x) + "._rotation", 0);
x++;
}
Symbol 214 MovieClip Frame 2
shakeWait = random(30) + 1;
Symbol 214 MovieClip Frame 3
shakeCount = shakeCount + 1;
Symbol 214 MovieClip Frame 12
if (shakeCount >= shakeWait) {
gotoAndPlay (15);
} else {
gotoAndPlay (3);
}
Symbol 214 MovieClip Frame 15
x = 1;
while (9 >= x) {
if (eval (("_root.pB" + x) + ".rValue") < eval (("_root.cB" + (x + 1)) + ".rValue")) {
Set("block" + x, 1);
} else {
Set("block" + x, 0);
}
x++;
}
Symbol 214 MovieClip Frame 16
x = 1;
while (9 >= x) {
if ((eval ("block" + x) != 1) and (0 < (random(10) + 1))) {
Set("shake" + x, 1);
} else {
Set("shake" + x, 0);
}
x++;
}
Symbol 214 MovieClip Frame 17
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation + ((random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 18
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation + (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 20
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation - (random(random(5) + 1) * 0.5);
}
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation + (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 21
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation - (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 22
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation - (random(random(5) + 1) * 0.5);
}
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation - (random(random(5) + 1) * 0.5);
}
if (shake7 == 1) {
_root.pB7._rotation = _root.pB7._rotation + (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 24
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation + (random(random(5) + 1) * 0.5);
}
if (shake7 == 1) {
_root.pB7._rotation = _root.pB7._rotation + (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 25
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation + (random(random(5) + 1) * 0.5);
}
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation + (random(random(5) + 1) * 0.5);
}
if (shake7 == 1) {
_root.pB7._rotation = _root.pB7._rotation - (random(random(5) + 1) * 0.5);
}
if (shake6 == 1) {
_root.pB6._rotation = _root.pB6._rotation - (random(random(5) + 1) * 0.5);
}
if (shake5 == 1) {
_root.pB5._rotation = _root.pB5._rotation + (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 27
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation - (random(random(5) + 1) * 0.5);
}
if (shake7 == 1) {
_root.pB7._rotation = _root.pB7._rotation - (random(random(5) + 1) * 0.5);
}
if (shake5 == 1) {
_root.pB5._rotation = _root.pB5._rotation - (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 28
if (shake7 == 1) {
_root.pB7._rotation = _root.pB7._rotation - (random(random(5) + 1) * 0.5);
}
if (shake5 == 1) {
_root.pB5._rotation = _root.pB5._rotation + (random(random(5) + 1) * 0.5);
}
if (shake4 == 1) {
_root.pB4._rotation = _root.pB4._rotation - (random(random(5) + 1) * 0.5);
}
if (shake3 == 1) {
_root.pB3._rotation = _root.pB3._rotation - (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 29
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation - (random(random(5) + 1) * 0.5);
}
if (shake6 == 1) {
_root.pB6._rotation = _root.pB6._rotation + (random(random(5) + 1) * 0.5);
}
if (shake5 == 1) {
_root.pB5._rotation = _root.pB5._rotation - (random(random(5) + 1) * 0.5);
}
if (shake3 == 1) {
_root.pB3._rotation = _root.pB3._rotation - (random(random(5) + 1) * 0.5);
}
if (shake2 == 1) {
_root.pB2._rotation = _root.pB2._rotation - (random(random(5) + 1) * 0.5);
}
if (shake1 == 1) {
_root.pB1._rotation = _root.pB1._rotation + (random(random(5) + 1) * 0.5);
}
if (shake7 == 1) {
_root.pB7._rotation = 0;
}
Symbol 214 MovieClip Frame 30
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation + (random(random(5) + 1) * 0.5);
}
if (shake4 == 1) {
_root.pB4._rotation = _root.pB4._rotation + (random(random(5) + 1) * 0.5);
}
if (shake5 == 1) {
_root.pB5._rotation = _root.pB5._rotation + (random(random(5) + 1) * 0.5);
}
if (shake3 == 1) {
_root.pB3._rotation = _root.pB3._rotation + (random(random(5) + 1) * 0.5);
}
if (shake2 == 1) {
_root.pB2._rotation = _root.pB2._rotation - (random(random(5) + 1) * 0.5);
}
if (shake1 == 1) {
_root.pB1._rotation = _root.pB1._rotation - (random(random(5) + 1) * 0.5);
}
if (shake9 == 1) {
_root.pB9._rotation = 0;
}
Symbol 214 MovieClip Frame 31
if (shake6 == 1) {
_root.pB6._rotation = _root.pB6._rotation + ((random(5) + 1) * 0.5);
}
if (shake5 == 1) {
_root.pB5._rotation = _root.pB5._rotation + ((random(5) + 1) * 0.5);
}
if (shake3 == 1) {
_root.pB3._rotation = _root.pB3._rotation + ((random(5) + 1) * 0.5);
}
if (shake1 == 1) {
_root.pB1._rotation = _root.pB1._rotation - ((random(5) + 1) * 0.5);
}
if (shake8 == 1) {
_root.pB8._rotation = 0;
}
if (shake4 == 1) {
_root.pB4._rotation = 0;
}
Symbol 214 MovieClip Frame 32
if (shake2 == 1) {
_root.pB2._rotation = _root.pB2._rotation + ((random(5) + 1) * 0.5);
}
if (shake3 == 1) {
_root.pB3._rotation = _root.pB3._rotation - ((random(5) + 1) * 0.5);
}
if (shake1 == 1) {
_root.pB1._rotation = _root.pB1._rotation + ((random(5) + 1) * 0.5);
}
if (shake6 == 1) {
_root.pB6._rotation = 0;
}
if (shake5 == 1) {
_root.pB5._rotation = 0;
}
Symbol 214 MovieClip Frame 33
if (shake1 == 1) {
_root.pB1._rotation = _root.pB1._rotation - ((random(5) + 1) * 0.5);
}
if (shake2 == 1) {
_root.pB2._rotation = 0;
}
Symbol 214 MovieClip Frame 34
if (shake1 == 1) {
_root.pB1._rotation = 0;
}
if (shake3 == 1) {
_root.pB3._rotation = 0;
}
Symbol 214 MovieClip Frame 35
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation + ((random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 36
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation + (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 38
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation - (random(random(5) + 1) * 0.5);
}
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation + (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 39
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation - (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 40
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation - (random(random(5) + 1) * 0.5);
}
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation - (random(random(5) + 1) * 0.5);
}
if (shake7 == 1) {
_root.pB7._rotation = _root.pB7._rotation + (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 42
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation + (random(random(5) + 1) * 0.5);
}
if (shake7 == 1) {
_root.pB7._rotation = _root.pB7._rotation + (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 44
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation + (random(random(5) + 1) * 0.5);
}
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation + (random(random(5) + 1) * 0.5);
}
if (shake7 == 1) {
_root.pB7._rotation = _root.pB7._rotation - (random(random(5) + 1) * 0.5);
}
if (shake6 == 1) {
_root.pB6._rotation = _root.pB6._rotation - (random(random(5) + 1) * 0.5);
}
if (shake5 == 1) {
_root.pB5._rotation = _root.pB5._rotation + (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 46
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation - (random(random(5) + 1) * 0.5);
}
if (shake7 == 1) {
_root.pB7._rotation = _root.pB7._rotation - (random(random(5) + 1) * 0.5);
}
if (shake5 == 1) {
_root.pB5._rotation = _root.pB5._rotation - (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 47
if (shake7 == 1) {
_root.pB7._rotation = _root.pB7._rotation - (random(random(5) + 1) * 0.5);
}
if (shake5 == 1) {
_root.pB5._rotation = _root.pB5._rotation + (random(random(5) + 1) * 0.5);
}
if (shake4 == 1) {
_root.pB4._rotation = _root.pB4._rotation - (random(random(5) + 1) * 0.5);
}
if (shake3 == 1) {
_root.pB3._rotation = _root.pB3._rotation - (random(random(5) + 1) * 0.5);
}
Symbol 214 MovieClip Frame 49
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation - (random(random(5) + 1) * 0.5);
}
if (shake6 == 1) {
_root.pB6._rotation = _root.pB6._rotation + (random(random(5) + 1) * 0.5);
}
if (shake5 == 1) {
_root.pB5._rotation = _root.pB5._rotation - (random(random(5) + 1) * 0.5);
}
if (shake3 == 1) {
_root.pB3._rotation = _root.pB3._rotation - (random(random(5) + 1) * 0.5);
}
if (shake2 == 1) {
_root.pB2._rotation = _root.pB2._rotation - (random(random(5) + 1) * 0.5);
}
if (shake1 == 1) {
_root.pB1._rotation = _root.pB1._rotation + (random(random(5) + 1) * 0.5);
}
if (shake7 == 1) {
_root.pB7._rotation = 0;
}
Symbol 214 MovieClip Frame 50
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation + (random(random(5) + 1) * 0.5);
}
if (shake4 == 1) {
_root.pB4._rotation = _root.pB4._rotation + (random(random(5) + 1) * 0.5);
}
if (shake5 == 1) {
_root.pB5._rotation = _root.pB5._rotation + (random(random(5) + 1) * 0.5);
}
if (shake3 == 1) {
_root.pB3._rotation = _root.pB3._rotation + (random(random(5) + 1) * 0.5);
}
if (shake2 == 1) {
_root.pB2._rotation = _root.pB2._rotation - (random(random(5) + 1) * 0.5);
}
if (shake1 == 1) {
_root.pB1._rotation = _root.pB1._rotation - (random(random(5) + 1) * 0.5);
}
if (shake9 == 1) {
_root.pB9._rotation = 0;
}
Symbol 214 MovieClip Frame 52
if (shake6 == 1) {
_root.pB6._rotation = _root.pB6._rotation + ((random(5) + 1) * 0.5);
}
if (shake5 == 1) {
_root.pB5._rotation = _root.pB5._rotation + ((random(5) + 1) * 0.5);
}
if (shake3 == 1) {
_root.pB3._rotation = _root.pB3._rotation + ((random(5) + 1) * 0.5);
}
if (shake1 == 1) {
_root.pB1._rotation = _root.pB1._rotation - ((random(5) + 1) * 0.5);
}
if (shake8 == 1) {
_root.pB8._rotation = 0;
}
if (shake4 == 1) {
_root.pB4._rotation = 0;
}
Symbol 214 MovieClip Frame 54
if (shake2 == 1) {
_root.pB2._rotation = _root.pB2._rotation + ((random(5) + 1) * 0.5);
}
if (shake3 == 1) {
_root.pB3._rotation = _root.pB3._rotation - ((random(5) + 1) * 0.5);
}
if (shake1 == 1) {
_root.pB1._rotation = _root.pB1._rotation + ((random(5) + 1) * 0.5);
}
if (shake6 == 1) {
_root.pB6._rotation = 0;
}
if (shake5 == 1) {
_root.pB5._rotation = 0;
}
Symbol 214 MovieClip Frame 56
if (shake1 == 1) {
_root.pB1._rotation = _root.pB1._rotation - ((random(5) + 1) * 0.5);
}
if (shake2 == 1) {
_root.pB2._rotation = 0;
}
Symbol 214 MovieClip Frame 59
if (shake1 == 1) {
_root.pB1._rotation = 0;
}
if (shake3 == 1) {
_root.pB3._rotation = 0;
}
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
gotoAndPlay("cheer" + (random(8) + 1));
Symbol 216 MovieClip Frame 6
r = random(6) + 1;
_root.hero2.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 11
r = random(6) + 1;
_root.hero3.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 17
r = random(6) + 1;
_root.hero4.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 20
gotoAndStop (1);
Symbol 216 MovieClip Frame 26
r = random(6) + 1;
_root.hero3.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 31
r = random(6) + 1;
_root.hero2.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 38
r = random(6) + 1;
_root.hero4.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 42
gotoAndStop (1);
Symbol 216 MovieClip Frame 50
r = random(6) + 1;
_root.hero4.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 53
r = random(6) + 1;
_root.hero2.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 59
r = random(6) + 1;
_root.hero3.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 63
gotoAndStop (1);
Symbol 216 MovieClip Frame 69
r = random(6) + 1;
_root.hero4.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 77
gotoAndStop (1);
Symbol 216 MovieClip Frame 81
r = random(6) + 1;
_root.hero3.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 87
gotoAndStop (1);
Symbol 216 MovieClip Frame 92
r = random(3) + 1;
_root.horn.gotoAndStop("gplay" + r);
Symbol 216 MovieClip Frame 98
gotoAndStop (1);
Symbol 216 MovieClip Frame 104
r = random(3) + 1;
_root.horn.gotoAndStop("gplay" + r);
Symbol 216 MovieClip Frame 110
gotoAndStop (1);
Symbol 216 MovieClip Frame 115
r = random(3) + 1;
_root.horn.gotoAndStop("gplay" + r);
Symbol 216 MovieClip Frame 124
r = random(6) + 1;
_root.hero2.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 128
r = random(6) + 1;
_root.hero3.gotoAndStop("cheer" + r);
Symbol 216 MovieClip Frame 129
gotoAndStop (1);
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 6
gotoAndStop (1);
Symbol 242 MovieClip Frame 16
stop();
Symbol 242 MovieClip Frame 32
stop();
Symbol 245 MovieClip Frame 23
_parent.gotoAndStop(1);
stop();
Symbol 246 MovieClip Frame 23
_parent.gotoAndStop(1);
stop();
Symbol 247 MovieClip Frame 23
_parent.gotoAndStop(1);
stop();
Symbol 248 MovieClip Frame 23
_parent.gotoAndStop(1);
stop();
Symbol 249 MovieClip Frame 23
_parent.gotoAndStop(1);
stop();
Symbol 250 MovieClip Frame 23
_parent.gotoAndStop(1);
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 31
_parent.gotoAndStop(1);
stop();
Symbol 256 MovieClip Frame 31
_parent.gotoAndStop(1);
stop();
Symbol 257 MovieClip Frame 31
_parent.gotoAndStop(1);
stop();
Symbol 260 MovieClip Frame 51
chunkN = 1;
_root.pB10.gotoAndStop("blow");
cunksToBlow = random(3) + 7;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB10._y);
x++;
}
Symbol 260 MovieClip Frame 53
_root.pB9.gotoAndStop("blow");
cunksToBlow = random(4) + 6;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB9._y);
x++;
}
Symbol 260 MovieClip Frame 55
_root.pB8.gotoAndStop("blow");
cunksToBlow = random(3) + 5;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB8._y);
x++;
}
Symbol 260 MovieClip Frame 57
_root.pB7.gotoAndStop("blow");
cunksToBlow = random(3) + 5;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB7._y);
x++;
}
Symbol 260 MovieClip Frame 60
_root.pB6.gotoAndStop("blow");
cunksToBlow = random(5) + 4;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB6._y);
x++;
}
Symbol 260 MovieClip Frame 62
_root.pB5.gotoAndStop("blow");
cunksToBlow = random(3) + 3;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB5._y);
x++;
}
Symbol 260 MovieClip Frame 63
_root.pB4.gotoAndStop("blow");
cunksToBlow = random(4) + 4;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB4._y);
x++;
}
Symbol 260 MovieClip Frame 65
_root.pB3.gotoAndStop("blow");
cunksToBlow = random(4) + 2;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB3._y);
x++;
}
Symbol 260 MovieClip Frame 68
_root.pB2.gotoAndStop("blow");
cunksToBlow = random(3) + 2;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB2._y);
x++;
}
Symbol 260 MovieClip Frame 70
_root.pB1.gotoAndStop("blow");
cunksToBlow = random(4) + 6;
x = 1;
while (cunksToBlow >= x) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB1._y);
x++;
}
Symbol 260 MovieClip Frame 71
_root.hero1.gotoAndStop(6);
Symbol 260 MovieClip Frame 79
stop();
Symbol 262 MovieClip Frame 6
stop();
Symbol 263 MovieClip Frame 31
_parent.gotoAndStop(1);
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 38
_parent.gotoAndStop(1);
stop();
Symbol 271 MovieClip Frame 56
_parent.gotoAndStop(1);
stop();
Symbol 272 MovieClip Frame 27
_parent.gotoAndStop(1);
stop();
Symbol 274 MovieClip Frame 58
_parent.gotoAndStop(1);
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 283 Button
on (release) {
_root.ins.gotoAndStop(2);
}
Symbol 284 Button
on (release) {
nextFrame();
}
Symbol 287 MovieClip Frame 1
gotoAndStop(random(10) + 2);
Symbol 288 MovieClip Frame 1
if (/:end == 1) {
gotoAndPlay (2);
} else {
stop();
}
Symbol 288 MovieClip Frame 2
sizeChange = random(100) - 50;
_xscale = (_xscale + sizeChange);
_yscale = (_yscale + sizeChange);
speedMax = random(10) + 10;
_rotation = ((_rotation + random(150)) + 10);
yspot = random(30) + 340;
xspeed = random(60) - 30;
_x = (_x + xspeed);
_y = (_y - speedMax);
_rotation = (_rotation + 10);
xspeed = xspeed * 0.9;
Symbol 288 MovieClip Frame 3
_x = (_x + xspeed);
_y = (_y - (speedMax * 1.4));
_rotation = (_rotation + 10);
xspeed = xspeed * 0.8;
Symbol 288 MovieClip Frame 4
_x = (_x + xspeed);
_y = (_y - (speedMax * 0.9));
_rotation = (_rotation + 9);
xspeed = xspeed * 0.7;
Symbol 288 MovieClip Frame 5
_x = (_x + xspeed);
_y = (_y - (speedMax * 0.5));
_rotation = (_rotation + 5);
xspeed = xspeed * 0.6;
Symbol 288 MovieClip Frame 6
_x = (_x + xspeed);
_y = (_y - (speedMax * 0.3));
_rotation = (_rotation + 3);
xspeed = xspeed * 0.5;
Symbol 288 MovieClip Frame 7
_x = (_x + xspeed);
_y = (_y + (speedMax * 0.05));
_rotation = (_rotation + 0.5);
xspeed = xspeed * 0.05;
Symbol 288 MovieClip Frame 8
_x = (_x + xspeed);
_y = (_y + (speedMax * 0.3));
_rotation = (_rotation + 0.5);
xspeed = xspeed * 0.05;
Symbol 288 MovieClip Frame 9
_x = (_x + xspeed);
_y = (_y + (speedMax * 0.6));
_rotation = (_rotation + 0.5);
xspeed = xspeed * 0.05;
Symbol 288 MovieClip Frame 10
_x = (_x + xspeed);
_rotation = (_rotation + 0.5);
xspeed = xspeed * 0.05;
if (_y >= yspot) {
gotoAndStop (27);
} else {
_y = (_y + speedMax);
}
Symbol 288 MovieClip Frame 11
if (_y >= yspot) {
gotoAndStop (27);
} else {
_y = (_y + (speedMax * 1.4));
}
Symbol 288 MovieClip Frame 12
if (_y >= yspot) {
gotoAndStop (27);
} else {
_y = (_y + (speedMax * 1.6));
}
Symbol 288 MovieClip Frame 13
if (_y >= yspot) {
gotoAndStop (27);
} else {
_y = (_y + (speedMax * 1.8));
}
Symbol 288 MovieClip Frame 14
if (_y >= yspot) {
gotoAndStop (27);
} else {
_y = (_y + (speedMax * 2));
}
Symbol 288 MovieClip Frame 15
if (_y >= yspot) {
gotoAndStop (27);
} else {
_y = (_y + (speedMax * 2));
}
Symbol 288 MovieClip Frame 16
if (_y >= yspot) {
gotoAndStop (27);
} else {
_y = (_y + (speedMax * 2));
gotoAndPlay(_currentframe - 2);
}
Symbol 292 Button
on (release) {
tempValue = discardB.rValue;
pick = 1;
gotoAndStop (3);
}
Symbol 293 Button
on (release) {
gotoAndStop (2);
}
Symbol 299 Button
on (release) {
pick = 2;
tempValue = chanceB.rValue;
gotoAndStop (4);
}
Symbol 301 Button
on (release) {
discardB.rValue = chanceB.rValue;
chanceB.rValue = "?";
n = "";
gotoAndPlay (9);
}
Symbol 306 Button
on (release) {
n = 1;
temp1 = tempValue;
temp2 = eval (("_root.pB" + n) + ".rValue");
Set(("_root.pB" + n) + ".rValue", temp1);
eval ("_root.pB" + n).gotoAndStop(tempValue);
discardB.rValue = temp2;
if (pick == 2) {
chanceB.rValue = "?";
}
gotoAndPlay (9);
}
Symbol 307 Button
on (release) {
n = 2;
temp1 = tempValue;
temp2 = eval (("_root.pB" + n) + ".rValue");
Set(("_root.pB" + n) + ".rValue", temp1);
eval ("_root.pB" + n).gotoAndStop(tempValue);
discardB.rValue = temp2;
if (pick == 2) {
chanceB.rValue = "?";
}
gotoAndPlay (9);
}
Symbol 308 Button
on (release) {
n = 3;
temp1 = tempValue;
temp2 = eval (("_root.pB" + n) + ".rValue");
Set(("_root.pB" + n) + ".rValue", temp1);
eval ("_root.pB" + n).gotoAndStop(tempValue);
discardB.rValue = temp2;
if (pick == 2) {
chanceB.rValue = "?";
}
gotoAndPlay (9);
}
Symbol 309 Button
on (release) {
n = 4;
temp1 = tempValue;
temp2 = eval (("_root.pB" + n) + ".rValue");
Set(("_root.pB" + n) + ".rValue", temp1);
eval ("_root.pB" + n).gotoAndStop(tempValue);
discardB.rValue = temp2;
if (pick == 2) {
chanceB.rValue = "?";
}
gotoAndPlay (9);
}
Symbol 310 Button
on (release) {
n = 5;
temp1 = tempValue;
temp2 = eval (("_root.pB" + n) + ".rValue");
Set(("_root.pB" + n) + ".rValue", temp1);
eval ("_root.pB" + n).gotoAndStop(tempValue);
discardB.rValue = temp2;
if (pick == 2) {
chanceB.rValue = "?";
}
gotoAndPlay (9);
}
Symbol 311 Button
on (release) {
n = 6;
temp1 = tempValue;
temp2 = eval (("_root.pB" + n) + ".rValue");
Set(("_root.pB" + n) + ".rValue", temp1);
eval ("_root.pB" + n).gotoAndStop(tempValue);
discardB.rValue = temp2;
if (pick == 2) {
chanceB.rValue = "?";
}
gotoAndPlay (9);
}
Symbol 312 Button
on (release) {
n = 7;
temp1 = tempValue;
temp2 = eval (("_root.pB" + n) + ".rValue");
Set(("_root.pB" + n) + ".rValue", temp1);
eval ("_root.pB" + n).gotoAndStop(tempValue);
discardB.rValue = temp2;
if (pick == 2) {
chanceB.rValue = "?";
}
gotoAndPlay (9);
}
Symbol 313 Button
on (release) {
n = 8;
temp1 = tempValue;
temp2 = eval (("_root.pB" + n) + ".rValue");
Set(("_root.pB" + n) + ".rValue", temp1);
eval ("_root.pB" + n).gotoAndStop(tempValue);
discardB.rValue = temp2;
if (pick == 2) {
chanceB.rValue = "?";
}
gotoAndPlay (9);
}
Symbol 314 Button
on (release) {
n = 9;
temp1 = tempValue;
temp2 = eval (("_root.pB" + n) + ".rValue");
Set(("_root.pB" + n) + ".rValue", temp1);
eval ("_root.pB" + n).gotoAndStop(tempValue);
discardB.rValue = temp2;
if (pick == 2) {
chanceB.rValue = "?";
}
gotoAndPlay (9);
}
Symbol 315 Button
on (release) {
n = 10;
temp1 = tempValue;
temp2 = eval (("_root.pB" + n) + ".rValue");
Set(("_root.pB" + n) + ".rValue", temp1);
eval ("_root.pB" + n).gotoAndStop(tempValue);
discardB.rValue = temp2;
if (pick == 2) {
chanceB.rValue = "?";
}
gotoAndPlay (9);
}
Symbol 317 MovieClip Frame 38
gotoAndStop(_currentframe + _parent.openSlot);
_parent.gotoAndPlay("comdelay1");
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 2
stop();
Set("/:drawBlockcount", /:drawBlockcount + 1);
chanceB.rValue = eval ("/:drawBlock" + /:drawBlockcount);
Set("/:drawBlockMax", /:drawBlockMax + 1);
Set("/:drawBlock" + /:drawBlockMax, discardB.rValue);
Symbol 318 MovieClip Frame 9
Set("/:bonus", 0);
byes = 0;
if (n ne "") {
if ((eval (("_root.pB" + n) + ".rValue") + 1) == eval (("_root.pB" + (n + 1)) + ".rValue")) {
byes = byes + 2;
eval (("_root.pB" + (n + 1)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") + 2) == eval (("_root.pB" + (n + 2)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n + 2)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") + 3) == eval (("_root.pB" + (n + 3)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n + 3)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") + 4) == eval (("_root.pB" + (n + 4)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n + 4)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") + 5) == eval (("_root.pB" + (n + 5)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n + 5)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") + 6) == eval (("_root.pB" + (n + 6)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n + 6)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") + 7) == eval (("_root.pB" + (n + 7)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n + 7)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") + 8) == eval (("_root.pB" + (n + 8)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n + 8)) + ".b").gotoAndPlay(2);
}
}
}
}
}
}
}
}
if ((eval (("_root.pB" + n) + ".rValue") - 1) == eval (("_root.pB" + (n - 1)) + ".rValue")) {
if (byes >= 1) {
byes = byes + 1;
} else {
byes = byes + 2;
}
eval (("_root.pB" + (n - 1)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") - 2) == eval (("_root.pB" + (n - 2)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n - 2)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") - 3) == eval (("_root.pB" + (n - 3)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n - 3)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") - 4) == eval (("_root.pB" + (n - 4)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n - 4)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") - 5) == eval (("_root.pB" + (n - 5)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n - 5)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") - 6) == eval (("_root.pB" + (n - 6)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n - 6)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") - 7) == eval (("_root.pB" + (n - 7)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n - 7)) + ".b").gotoAndPlay(2);
if ((eval (("_root.pB" + n) + ".rValue") - 8) == eval (("_root.pB" + (n - 8)) + ".rValue")) {
byes = byes + 1;
eval (("_root.pB" + (n + 8)) + ".b").gotoAndPlay(2);
}
}
}
}
}
}
}
}
if (byes >= 1) {
_root.soundMov.gotoAndPlay("bonus");
Set("/:bonus", eval (("_root.pB" + n) + ".rValue") * byes);
eval (("_root.pB" + n) + ".b").gotoAndPlay(2);
} else {
winTemp = 0;
x = 1;
while (9 >= x) {
if (eval (("_root.pB" + x) + ".rValue") < eval (("_root.pB" + (x + 1)) + ".rValue")) {
winTemp = winTemp + 1;
}
x++;
}
if (winTemp >= winGood) {
_root.goodGuys.gotoAndPlay(2);
}
}
}
n = "";
Symbol 318 MovieClip Frame 10
winGood = 0;
x = 1;
while (9 >= x) {
if (eval (("_root.pB" + x) + ".rValue") < eval (("_root.pB" + (x + 1)) + ".rValue")) {
winGood = winGood + 1;
}
x++;
}
if (winGood == 9) {
_root.gotoAndPlay("win");
}
Symbol 318 MovieClip Frame 21
spred = int(/:cardMax / 10);
if ((/:mode == 1) and (/:level == 1)) {
gotoAndStop (24);
} else if ((/:mode == 1) and (/:level == 2)) {
gotoAndStop (29);
} else if ((/:mode == 1) and (/:level == 3)) {
gotoAndStop (34);
} else if ((/:mode == 1) and (/:level == 4)) {
gotoAndStop (34);
} else if ((/:mode == 1) and (/:level >= 5)) {
gotoAndStop (34);
}
Symbol 318 MovieClip Frame 24
openSlot = 0;
x = 1;
while (10 >= x) {
if ((((x * spred) - spred) < eval (("_root.cB" + x) + ".rValue")) and ((x * spred) >= eval (("_root.cB" + x) + ".rValue"))) {
Set("lock" + x, 1);
} else {
Set("lock" + x, 0);
}
if ((((x * spred) - spred) < discardB.rValue) and ((x * spred) >= discardB.rValue)) {
openSlot = x;
}
x++;
}
a = 1;
huntfor1 = "";
huntfor2 = "";
if ((((((((((lock1 + lock2) + lock3) + lock4) + lock5) + lock6) + lock7) + lock8) + lock9) + lock10) >= 11) {
almostDone = 1;
x = 1;
while (10 >= x) {
if (eval ("lock" + x) == 0) {
Set("huntfor" + a, x);
a = a + 1;
}
x++;
}
} else {
almostDone = 0;
}
if ((random(100) + 1) >= 80) {
openSlot = random(10) + 1;
}
if (openSlot != 0) {
pick = 1;
tempValue = discardB.rValue;
gotoAndStop (53);
} else {
Set("/:drawBlockcount", /:drawBlockcount + 1);
chanceB.rValue = eval ("/:drawBlock" + /:drawBlockcount);
Set("/:drawBlockMax", /:drawBlockMax + 1);
Set("/:drawBlock" + /:drawBlockMax, discardB.rValue);
openSlot = 0;
x = 1;
while (10 >= x) {
if ((((x * spred) - spred) < chanceB.rValue) and ((x * spred) >= chanceB.rValue)) {
openSlot = x;
}
x++;
}
if (eval ("lock" + openSlot) == 1) {
if ((eval (("_root.cB" + openSlot) + ".rValue") < chanceB.rValue) and (openSlot < 10)) {
openSlot = openSlot + 1;
} else if ((chanceB.rValue < eval (("_root.cB" + openSlot) + ".rValue")) and (1 < openSlot)) {
openSlot = openSlot - 1;
}
}
if (openSlot == 0) {
openSlot = 1;
} else if (openSlot == 11) {
openSlot = 10;
}
pick = 2;
tempValue = chanceB.rValue;
gotoAndStop (54);
}
Symbol 318 MovieClip Frame 29
openSlot = 0;
x = 1;
while (10 >= x) {
if ((((x * spred) - spred) < eval (("_root.cB" + x) + ".rValue")) and ((x * spred) >= eval (("_root.cB" + x) + ".rValue"))) {
Set("lock" + x, 1);
} else {
Set("lock" + x, 0);
}
if ((((x * spred) - spred) < discardB.rValue) and ((x * spred) >= discardB.rValue)) {
openSlot = x;
}
x++;
}
a = 1;
huntfor1 = "";
huntfor2 = "";
if ((((((((((lock1 + lock2) + lock3) + lock4) + lock5) + lock6) + lock7) + lock8) + lock9) + lock10) >= 8) {
almostDone = 1;
x = 1;
while (10 >= x) {
if (eval ("lock" + x) == 0) {
Set("huntfor" + a, x);
a = a + 1;
}
x++;
}
} else {
almostDone = 0;
}
if (eval ("lock" + openSlot) == 1) {
openSlot = 0;
}
if ((almostDone == 1) and (huntfor1 ne "")) {
if ((huntfor1 + 1) == huntfor2) {
lookforMax = ((Number(huntfor1) + 1) * spred) - spred;
lookforMin = eval (("_root.cB" + (Number(huntfor1) - 1)) + ".rValue");
} else {
lookforMax = eval (("_root.cB" + (Number(huntfor1) + 1)) + ".rValue");
lookforMin = eval (("_root.cB" + (Number(huntfor1) - 1)) + ".rValue");
}
if (huntfor1 == 10) {
lookforMax = /:cardMax;
} else if (huntfor1 == 1) {
lookforMin = 1;
}
if ((discardB.rValue >= lookforMin) and (discardB.rValue < lookforMax)) {
openSlot = huntfor1;
} else if (huntFor2 eq "") {
} else {
if ((huntfor1 + 1) == huntfor2) {
lookforMax = ((Number(huntfor2) + 1) * spred) - spred;
lookforMin = eval (("_root.cB" + (Number(huntfor2) - 1)) + ".rValue");
} else {
lookforMax = eval (("_root.cB" + (Number(huntfor2) + 1)) + ".rValue");
lookforMin = eval (("_root.cB" + (Number(huntfor2) - 1)) + ".rValue");
}
if (huntfor2 == 10) {
lookforMax = /:cardMax;
} else if (huntfor2 == 1) {
lookforMin = 1;
}
if ((discardB.rValue >= lookforMin) and (discardB.rValue < lookforMax)) {
openSlot = huntfor2;
}
}
}
if (openSlot != 0) {
pick = 1;
tempValue = discardB.rValue;
gotoAndStop (53);
} else {
Set("/:drawBlockcount", /:drawBlockcount + 1);
chanceB.rValue = eval ("/:drawBlock" + /:drawBlockcount);
Set("/:drawBlockMax", /:drawBlockMax + 1);
Set("/:drawBlock" + /:drawBlockMax, discardB.rValue);
openSlot = 0;
x = 1;
while (10 >= x) {
if ((((x * spred) - spred) < chanceB.rValue) and ((x * spred) >= chanceB.rValue)) {
openSlot = x;
}
x++;
}
if (eval ("lock" + openSlot) == 1) {
if ((eval (("_root.cB" + openSlot) + ".rValue") < chanceB.rValue) and (openSlot < 10)) {
openSlot = openSlot + 1;
} else if ((chanceB.rValue < eval (("_root.cB" + openSlot) + ".rValue")) and (1 < openSlot)) {
openSlot = openSlot - 1;
}
}
if (openSlot == 0) {
openSlot = 1;
} else if (openSlot == 11) {
openSlot = 10;
}
pick = 2;
tempValue = chanceB.rValue;
gotoAndStop (54);
}
Symbol 318 MovieClip Frame 34
openSlot = 0;
x = 1;
while (10 >= x) {
if ((((x * spred) - spred) < eval (("_root.cB" + x) + ".rValue")) and ((x * spred) >= eval (("_root.cB" + x) + ".rValue"))) {
Set("lock" + x, 1);
} else {
Set("lock" + x, 0);
}
if ((((x * spred) - spred) < discardB.rValue) and ((x * spred) >= discardB.rValue)) {
openSlot = x;
}
x++;
}
done = 0;
x = 1;
while (9 >= x) {
if (eval (("_root.cB" + x) + ".rValue") < eval (("_root.cB" + (x + 1)) + ".rValue")) {
Set("done" + x, 1);
done = done + 1;
} else if (eval ("lock" + x) == 1) {
done = done + 1;
Set("done" + x, 1);
x = x + 1;
Set("done" + x, 0);
} else {
Set("done" + x, 0);
}
x++;
}
if ((_root.cB9.rValue < _root.cB10.rValue) or (lock10 == 1)) {
done10 = 1;
done = done + 1;
} else {
done10 = 0;
}
a = 1;
huntfor1 = "";
huntfor2 = "";
if ((done >= 8) or ((((((((((lock1 + lock2) + lock3) + lock4) + lock5) + lock6) + lock7) + lock8) + lock9) + lock10) >= 8)) {
almostDone = 1;
x = 1;
while (10 >= x) {
if ((eval ("done" + x) == 0) and (eval ("lock" + x) == 0)) {
Set("huntfor" + a, x);
a = a + 1;
}
x++;
}
} else {
almostDone = 0;
}
if (eval ("lock" + openSlot) == 1) {
openSlot = 0;
}
if ((almostDone == 1) and (huntfor1 ne "")) {
openSlot = 0;
if ((huntfor1 + 1) == huntfor2) {
lookforMax = ((Number(huntfor1) + 1) * spred) - spred;
lookforMin = eval (("_root.cB" + (Number(huntfor1) - 1)) + ".rValue");
} else {
lookforMax = eval (("_root.cB" + (Number(huntfor1) + 1)) + ".rValue");
lookforMin = eval (("_root.cB" + (Number(huntfor1) - 1)) + ".rValue");
}
if (huntfor1 == 10) {
lookforMax = /:cardMax;
} else if (huntfor1 == 1) {
lookforMin = 1;
}
if ((discardB.rValue >= lookforMin) and (discardB.rValue < lookforMax)) {
openSlot = huntfor1;
} else if (huntFor2 eq "") {
} else {
if ((huntfor1 + 1) == huntfor2) {
lookforMax = ((Number(huntfor2) + 1) * spred) - spred;
lookforMin = eval (("_root.cB" + (Number(huntfor2) - 1)) + ".rValue");
} else {
lookforMax = eval (("_root.cB" + (Number(huntfor2) + 1)) + ".rValue");
lookforMin = eval (("_root.cB" + (Number(huntfor2) - 1)) + ".rValue");
}
if (huntfor2 == 10) {
lookforMax = /:cardMax;
} else if (huntfor2 == 1) {
lookforMin = 1;
}
if ((discardB.rValue >= lookforMin) and (discardB.rValue < lookforMax)) {
openSlot = huntfor2;
}
}
}
if (openSlot != 0) {
pick = 1;
tempValue = discardB.rValue;
gotoAndStop (53);
} else {
Set("/:drawBlockcount", /:drawBlockcount + 1);
chanceB.rValue = eval ("/:drawBlock" + /:drawBlockcount);
Set("/:drawBlockMax", /:drawBlockMax + 1);
Set("/:drawBlock" + /:drawBlockMax, discardB.rValue);
openSlot = 0;
x = 1;
while (10 >= x) {
if ((((x * spred) - spred) < chanceB.rValue) and ((x * spred) >= chanceB.rValue)) {
openSlot = x;
}
x++;
}
if (eval ("lock" + openSlot) == 1) {
if ((eval (("_root.cB" + openSlot) + ".rValue") < chanceB.rValue) and (openSlot < 10)) {
openSlot = openSlot + 1;
} else if ((chanceB.rValue < eval (("_root.cB" + openSlot) + ".rValue")) and (1 < openSlot)) {
openSlot = openSlot - 1;
}
}
if (openSlot == 0) {
openSlot = 1;
} else if (openSlot == 11) {
openSlot = 10;
}
pick = 2;
tempValue = chanceB.rValue;
gotoAndStop (54);
}
Symbol 318 MovieClip Frame 72
n = openSlot;
temp1 = tempValue;
temp2 = eval (("_root.cB" + n) + ".rValue");
Set(("_root.cB" + n) + ".rValue", temp1);
eval ("_root.cB" + n).gotoAndStop(tempValue);
discardB.rValue = temp2;
if (pick == 2) {
chanceB.rValue = "?";
}
Symbol 318 MovieClip Frame 80
winTemp2 = win;
win = 0;
x = 1;
while (9 >= x) {
if (eval (("_root.cB" + x) + ".rValue") < eval (("_root.cB" + (x + 1)) + ".rValue")) {
win = win + 1;
}
x++;
}
if (win == 9) {
_root.gotoAndPlay("lose");
} else if (almostDone == 1) {
r = random(3) + 1;
_root.bad1.gotoAndStop("done" + r);
} else if (winTemp2 < win) {
r = random(10) + 1;
if (r >= 4) {
_root.bad1.gotoAndStop("cheer1");
} else {
_root.horn.gotoAndStop("bplay1");
}
}
Symbol 318 MovieClip Frame 82
gotoAndStop (1);
Symbol 320 MovieClip Frame 29
stop();
Symbol 322 MovieClip Frame 29
stop();
Symbol 331 MovieClip Frame 18
stop();
Symbol 332 MovieClip Frame 1
speedx = (random(3) - 1) / 75;
speedy = (random(3) + 1) / 75;
life = random(30) + 20;
ap2 = 10;
Symbol 332 MovieClip Frame 2
curx = _x;
cury = _y;
_x = (Number(curx) + Number(speedx));
_y = (Number(cury) + Number(speedy));
ap = (75 * life) / 70;
_alpha = ap;
_xscale = (ap * 0.5);
_yscale = (ap * 0.5);
speedx = Number(speedx) - Number((random(51) - 25) / ap2);
speedy = Number(speedy) - Number((random(51) - 25) / ap2);
life = life - 1;
ap2 = ap2 + 100;
if (Number(life) < 0) {
removeMovieClip("");
stop();
}
Symbol 332 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 344 MovieClip Frame 1
score = _level0.score;
gcode = _level0.gcode;
if (score == 0) {
score = 5;
}
stop();