Frame 1
function Grab_decode(toDecode) {
if ((toDecode == undefined) || (toDecode == "")) {
return("");
}
_root.Grab_equalSign = false;
var _local1 = new Array();
_local1 = Base64toBinary(toDecode);
var _local2 = "decode";
var _local3 = XOR_decode(_local2, _local1, _root.secWord);
return(_local3);
}
function Grab_encode(toEncode) {
var _local2 = toEncode;
if ((_local2 == undefined) || (_local2 == "")) {
return("");
}
var _local3 = "encode";
var _local1 = new Array();
_local1 = XOR_encode(_local3, _local2, _root.secWord);
var out = intToBin_enc(_local1);
return(out);
}
function encodeBase64(n) {
var _local1 = base64.charAt(n);
return(_local1);
}
function XOR_encode(code, myString, secWord) {
var len = (myString.length - 1);
var secLen = (secWord.length - 1);
var _local2 = -1;
var _local3;
var charString;
var foo;
var xor_enc_array = new Array();
var _local1 = 0;
while (_local1 <= len) {
_local2++;
if (_local2 > secLen) {
_local2 = 0;
}
_local3 = secWord.charCodeAt(_local2);
charString = myString.charCodeAt(_local1);
foo = _local3 ^ charString;
xor_enc_array[_local1] = foo;
_local1++;
}
return(xor_enc_array);
}
function XOR_decode(code, myArray, secWord) {
var len = (myArray.length - 1);
var secLen = (secWord.length - 1);
var _local2 = -1;
var _local3;
var charString;
var foo;
var encoded = "";
var xor_enc_array = new Array();
var _local1 = 0;
while (_local1 <= len) {
_local2++;
if (_local2 > secLen) {
_local2 = 0;
}
_local3 = secWord.charCodeAt(_local2);
charString = myArray[_local1];
foo = _local3 ^ charString;
encoded = encoded + String.fromCharCode(foo);
_local1++;
}
if (_root.Grab_equalSign) {
encoded = encoded.substring(0, len);
}
return(encoded);
}
function toBinary(val) {
var _local1 = val;
var _local3 = "";
var _local2;
var p;
var bit = 0;
while (bit < 8) {
_local2 = _local1 % 2;
_local2 = _local2.toString();
p = _local2.indexOf(".");
if (p != -1) {
_local2 = _local2.substring(0, p);
}
_local2 = Number(_local2);
if (_local2 == 0) {
_local3 = _local3 + "0";
} else {
_local3 = _local3 + "1";
}
_local1 = _local1 / 2;
_local1 = _local1.toString();
p = _local1.indexOf(".");
if (p != -1) {
_local1 = _local1.substring(0, p);
}
_local1 = Number(_local1);
bit++;
}
var tmp = _local3;
_local3 = "";
var i = 7;
while (i >= 0) {
_local3 = _local3 + tmp.slice(i, i + 1);
i--;
}
return(_local3);
}
function intToBin_enc(codedArray) {
var len = (codedArray.length - 1);
var _local2;
var _local3;
var binString = "";
var _local1 = 0;
while (_local1 <= len) {
_local2 = codedArray[_local1];
_local3 = toBinary(_local2);
binString = binString + _local3;
_local1++;
}
var out = binToBase64(binString);
return(out);
}
function binToBase64(bin) {
var len = bin.length;
var j = 0;
var _local2 = new Array();
var z = 0;
var Base64OutString;
var i = 0;
while (i <= (len - 1)) {
if (j < 6) {
j++;
} else {
j = 1;
z++;
}
if (_local2[z] == undefined) {
_local2[z] = "";
}
_local2[z] = _local2[z] + bin.charAt(i);
i++;
}
if (j == 2) {
needed = 2;
}
if (j == 6) {
needed = 0;
}
if (j == 4) {
needed = 1;
}
var binLen = _local2.length;
var _local1 = 0;
while (_local1 <= (binLen - 1)) {
var elemLen = (_local2[_local1].length - 1);
if (elemLen < 5) {
var addN = (4 - elemLen);
var _local3 = 0;
while (_local3 <= addN) {
if (_local2[_local1] == undefined) {
_local2[_local1] = "";
}
_local2[_local1] = _local2[_local1] + "0";
_local3++;
}
}
_local1++;
}
var out = bin6ToInt(_local2, needed);
return(out);
}
function bin6ToInt(myArray, needed) {
var len = myArray.length;
var n;
var _local2;
var outArray = new Array();
var t = 0;
var digit;
var binLen;
var Base64OutString = "";
var _local1 = 0;
while (_local1 <= (len - 1)) {
n = myArray[_local1];
outArray[_local1] = 0;
digitVal = 1;
binLen = n.length;
var _local3 = binLen - 1;
while (_local3 >= 0) {
_local2 = n.charAt(_local3);
_local2 = Number(_local2);
_local2 = _local2 * digitVal;
if (outArray[_local1] == undefined) {
outArray[_local1] = "";
}
outArray[_local1] = outArray[_local1] + _local2;
digitVal = digitVal * 2;
_local3--;
}
Base64OutString = Base64OutString + encodeBase64(outArray[_local1]);
_local1++;
}
var kk = needed;
while (kk >= 1) {
Base64OutString = Base64OutString + "-";
kk--;
}
return(Base64OutString);
}
function Base64toBinary(sentText) {
var _local3;
var _local2 = new Array();
var binString = "";
var _local1 = 0;
while (_local1 <= (sentText.length - 1)) {
_local3 = sentText.charAt(_local1);
if (_local3 != "-") {
_local2[_local1] = decodeBase64(_local3);
_local2[_local1] = toBinary(_local2[_local1]);
_local2[_local1] = _local2[_local1].substring(2);
binString = binString + _local2[_local1];
} else {
_root.Grab_equalSign = true;
}
_local1++;
}
var decodedArray = new Array();
decodedArray = sixToEightBit(binString);
return(decodedArray);
}
function sixToEightBit(binString) {
var j = 0;
var _local2 = 0;
var _local3 = new Array();
var len = (binString.length - 1);
var _local1 = 0;
while (_local1 <= len) {
if (j < 8) {
j++;
} else {
j = 1;
_local2++;
}
var char = binString.charAt(_local1);
if (_local3[_local2] == undefined) {
_local3[_local2] = "";
}
_local3[_local2] = _local3[_local2] + char;
_local1++;
}
var decodedArray = new Array();
decodedArray = binToInt8(_local3, 0);
return(decodedArray);
}
function binToInt8(myArray, needed) {
var len = myArray.length;
var n;
var _local1;
var outArray = new Array();
var k;
var digit;
var binLen;
var decoded;
var digitVal;
var _local2 = 0;
while (_local2 <= (len - 1)) {
n = myArray[_local2];
digitVal = 1;
binLen = n.length;
var _local3 = binLen - 1;
while (_local3 >= 0) {
_local1 = n.charAt(_local3);
_local1 = Number(_local1);
_local1 = _local1 * digitVal;
if (outArray[_local2] == undefined) {
outArray[_local2] = 0;
}
outArray[_local2] = outArray[_local2] + _local1;
digitVal = digitVal * 2;
_local3--;
}
_local2++;
}
return(outArray);
}
function intToText(decodedArray) {
var len = (decodedArray.length - 1);
var _local3 = "";
var _local2;
var _local1 = 0;
while (_local1 <= len) {
_local2 = decodedArray[_local1];
_local3 = _local3 + String.fromCharCode(_local2);
_local1++;
}
return(_local3);
}
function decodeBase64(c) {
var _local1 = base64.indexOf(c);
return(_local1);
}
base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._";
secWord = "be6dac06b02d2a6";
gameID = "33F53089-4FF0-4D98-9D71-E025BAF3C7B6";
gameIDencoded = Grab_encode(gameID);
trialURLdecoded = Grab_decode(grab_trialURL);
buyURLdecoded = Grab_decode(grab_buyURL);
if (grab_ccode == undefined) {
grab_ccode = "";
}
function randomizeBlocks() {
x = 1;
while (x <= 100) {
Set("/:drawBlock" + x, "");
x++;
}
total = cardMax;
Set("/:count", 0);
a = new Array(total);
i = 1;
while (i <= total) {
R = random(total);
if (a[R] != null) {
R = random(total);
if (a[R] != null) {
R = random(total);
if (a[R] != null) {
R = 0;
while (R <= total) {
if (a[R] == null) {
break;
}
R++;
}
}
}
}
a[R] = i;
i++;
}
x = 0;
while (x <= (total - 1)) {
x = x + 1;
Set("/:block" add x, a[x - 1]);
}
}
function setBlocks() {
x = 1;
while (x <= 10) {
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 (x <= (cardMax - 20)) {
count = count + 1;
Set("/:drawBlock" + x, eval ("/:block" + count));
x++;
}
}
Frame 7
if (_framesloaded <= 61) {
gotoAndPlay(_currentframe - 2);
}
Frame 10
stop();
Instance of Symbol 9 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_x <= -200) {
_x = 700;
Set("/:windSpeed", random(50) + 10);
_y = (random(163) + 5);
}
_x = (_x - (/:windSpeed * 0.03));
}
Instance of Symbol 9 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_x <= -40) {
_x = 583;
Set("/:windSpeed", random(50) + 10);
_y = (random(63) + 100);
}
_x = (_x - (/:windSpeed * 0.005));
}
Instance of Symbol 9 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_x <= -40) {
_x = 583;
Set("/:windSpeed", random(50) + 10);
_y = (random(63) + 100);
}
_x = (_x - (/:windSpeed * 0.01));
}
Instance of Symbol 9 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_x <= -200) {
_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 (x <= 100) {
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 9 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (_x <= -200) {
_x = 700;
Set("/:windSpeed", random(50) + 10);
_y = (random(163) + 5);
}
_x = (_x - (/:windSpeed * 0.03));
}
Instance of Symbol 9 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (_x <= -100) {
_x = 600;
Set("/:windSpeed", random(50) + 10);
_y = (random(63) + 100);
}
_x = (_x - (/:windSpeed * 0.005));
}
Instance of Symbol 9 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (_x <= -100) {
_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 ("end");
} else {
gotoAndPlay ("start");
}
Frame 360
gotoAndStop ("promo");
Frame 370
x = 2;
while (x <= 100) {
eval ("_root.chunk" + x).removeMovieClip();
eval ("_root.chunkp" + x).removeMovieClip();
x++;
}
Frame 428
gotoAndStop ("promo");
Frame 431
score = score.toString();
scoreEncoded = _root.Grab_encode(score);
getURL (((((("javascript:reportGameScore('" + gameIDencoded) + "', '") + scoreEncoded) + "', '") + grab_ccode) + "')");
Symbol 33 MovieClip Frame 107
chunkN = 1;
_root.cB10.gotoAndStop("blow");
cunksToBlow = random(3) + 7;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB10._y);
x++;
}
Symbol 33 MovieClip Frame 109
_root.cB9.gotoAndStop("blow");
cunksToBlow = random(4) + 6;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB9._y);
x++;
}
Symbol 33 MovieClip Frame 111
_root.cB8.gotoAndStop("blow");
cunksToBlow = random(3) + 5;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB8._y);
x++;
}
Symbol 33 MovieClip Frame 113
_root.cB7.gotoAndStop("blow");
cunksToBlow = random(3) + 5;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB7._y);
x++;
}
Symbol 33 MovieClip Frame 116
_root.cB6.gotoAndStop("blow");
cunksToBlow = random(5) + 4;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB6._y);
x++;
}
Symbol 33 MovieClip Frame 118
_root.cB5.gotoAndStop("blow");
cunksToBlow = random(3) + 3;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB5._y);
x++;
}
Symbol 33 MovieClip Frame 119
_root.cB4.gotoAndStop("blow");
cunksToBlow = random(4) + 4;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB4._y);
x++;
}
Symbol 33 MovieClip Frame 121
_root.cB3.gotoAndStop("blow");
cunksToBlow = random(4) + 2;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB3._y);
x++;
}
Symbol 33 MovieClip Frame 124
_root.cB2.gotoAndStop("blow");
cunksToBlow = random(3) + 2;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB2._y);
x++;
}
Symbol 33 MovieClip Frame 126
_root.cB1.gotoAndStop("blow");
cunksToBlow = random(4) + 6;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunk1.duplicateMovieClip("chunk" + chunkN, chunkN);
setProperty("_root.chunk" + chunkN, _y , _root.cB1._y);
x++;
}
Symbol 33 MovieClip Frame 135
_root.bad1.gotoAndStop("sad");
_root.gotoAndPlay("winend");
stop();
Symbol 38 MovieClip Frame 51
stop();
_root.gotoAndPlay("loseend");
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 5
stop();
Symbol 54 Button
on (release) {
mode = 1;
score = 0;
levelDis = 0;
level = 0;
gotoAndStop ("walkthrough");
}
Symbol 60 Button
on (release) {
_root.ins.gotoAndStop(2);
}
Symbol 69 Button
on (release) {
nextFrame();
}
Symbol 90 Button
on (release) {
gotoAndStop (1);
}
Symbol 113 Button
on (release) {
prevFrame();
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 155 Button
on (release) {
_root.gotoAndPlay("start");
}
Symbol 173 MovieClip Frame 270
_root.gotoAndPlay("start");
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 3
gotoAndPlay(_currentframe + (random(18) + 1));
Symbol 194 MovieClip Frame 29
Set("/:score", /:score + /:bonus);
Symbol 195 MovieClip Frame 2
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 201 MovieClip Frame 1
shakeCount = 0;
x = 1;
while (x <= 9) {
Set(("_root.pB" + x) + "._rotation", 0);
x++;
}
Symbol 201 MovieClip Frame 2
shakeWait = random(30) + 1;
Symbol 201 MovieClip Frame 3
shakeCount = shakeCount + 1;
Symbol 201 MovieClip Frame 12
if (shakeCount >= shakeWait) {
gotoAndPlay ("shake");
} else {
gotoAndPlay ("wait");
}
Symbol 201 MovieClip Frame 15
x = 1;
while (x <= 9) {
if (eval (("_root.pB" + x) + ".rValue") < eval (("_root.cB" + (x + 1)) + ".rValue")) {
Set("block" + x, 1);
} else {
Set("block" + x, 0);
}
x++;
}
Symbol 201 MovieClip Frame 16
x = 1;
while (x <= 9) {
if ((eval ("block" + x) != 1) and ((random(10) + 1) > 0)) {
Set("shake" + x, 1);
} else {
Set("shake" + x, 0);
}
x++;
}
Symbol 201 MovieClip Frame 17
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation + ((random(5) + 1) * 0.5);
}
Symbol 201 MovieClip Frame 18
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation + (random(random(5) + 1) * 0.5);
}
Symbol 201 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 201 MovieClip Frame 21
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation - (random(random(5) + 1) * 0.5);
}
Symbol 201 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 201 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 201 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 201 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 201 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 201 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 201 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 201 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 201 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 201 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 201 MovieClip Frame 34
if (shake1 == 1) {
_root.pB1._rotation = 0;
}
if (shake3 == 1) {
_root.pB3._rotation = 0;
}
Symbol 201 MovieClip Frame 35
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation + ((random(5) + 1) * 0.5);
}
Symbol 201 MovieClip Frame 36
if (shake9 == 1) {
_root.pB9._rotation = _root.pB9._rotation + (random(random(5) + 1) * 0.5);
}
Symbol 201 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 201 MovieClip Frame 39
if (shake8 == 1) {
_root.pB8._rotation = _root.pB8._rotation - (random(random(5) + 1) * 0.5);
}
Symbol 201 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 201 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 201 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 201 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 201 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 201 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 201 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 201 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 201 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 201 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 201 MovieClip Frame 59
if (shake1 == 1) {
_root.pB1._rotation = 0;
}
if (shake3 == 1) {
_root.pB3._rotation = 0;
}
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 2
gotoAndPlay("cheer" + (random(8) + 1));
Symbol 203 MovieClip Frame 6
r = random(6) + 1;
_root.hero2.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 11
r = random(6) + 1;
_root.hero3.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 17
r = random(6) + 1;
_root.hero4.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 20
gotoAndStop (1);
Symbol 203 MovieClip Frame 26
r = random(6) + 1;
_root.hero3.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 31
r = random(6) + 1;
_root.hero2.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 38
r = random(6) + 1;
_root.hero4.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 42
gotoAndStop (1);
Symbol 203 MovieClip Frame 50
r = random(6) + 1;
_root.hero4.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 53
r = random(6) + 1;
_root.hero2.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 59
r = random(6) + 1;
_root.hero3.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 63
gotoAndStop (1);
Symbol 203 MovieClip Frame 69
r = random(6) + 1;
_root.hero4.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 77
gotoAndStop (1);
Symbol 203 MovieClip Frame 81
r = random(6) + 1;
_root.hero3.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 87
gotoAndStop (1);
Symbol 203 MovieClip Frame 92
r = random(3) + 1;
_root.horn.gotoAndStop("gplay" + r);
Symbol 203 MovieClip Frame 98
gotoAndStop (1);
Symbol 203 MovieClip Frame 104
r = random(3) + 1;
_root.horn.gotoAndStop("gplay" + r);
Symbol 203 MovieClip Frame 110
gotoAndStop (1);
Symbol 203 MovieClip Frame 115
r = random(3) + 1;
_root.horn.gotoAndStop("gplay" + r);
Symbol 203 MovieClip Frame 124
r = random(6) + 1;
_root.hero2.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 128
r = random(6) + 1;
_root.hero3.gotoAndStop("cheer" + r);
Symbol 203 MovieClip Frame 129
gotoAndStop (1);
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 6
gotoAndStop (1);
Symbol 229 MovieClip Frame 16
stop();
Symbol 229 MovieClip Frame 32
stop();
Symbol 232 MovieClip Frame 23
_parent.gotoAndStop(1);
stop();
Symbol 233 MovieClip Frame 23
_parent.gotoAndStop(1);
stop();
Symbol 234 MovieClip Frame 23
_parent.gotoAndStop(1);
stop();
Symbol 235 MovieClip Frame 23
_parent.gotoAndStop(1);
stop();
Symbol 236 MovieClip Frame 23
_parent.gotoAndStop(1);
stop();
Symbol 237 MovieClip Frame 23
_parent.gotoAndStop(1);
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 31
_parent.gotoAndStop(1);
stop();
Symbol 243 MovieClip Frame 31
_parent.gotoAndStop(1);
stop();
Symbol 244 MovieClip Frame 31
_parent.gotoAndStop(1);
stop();
Symbol 248 MovieClip Frame 51
chunkN = 1;
_root.pB10.gotoAndStop("blow");
cunksToBlow = random(3) + 7;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB10._y);
x++;
}
Symbol 248 MovieClip Frame 53
_root.pB9.gotoAndStop("blow");
cunksToBlow = random(4) + 6;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB9._y);
x++;
}
Symbol 248 MovieClip Frame 55
_root.pB8.gotoAndStop("blow");
cunksToBlow = random(3) + 5;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB8._y);
x++;
}
Symbol 248 MovieClip Frame 57
_root.pB7.gotoAndStop("blow");
cunksToBlow = random(3) + 5;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB7._y);
x++;
}
Symbol 248 MovieClip Frame 60
_root.pB6.gotoAndStop("blow");
cunksToBlow = random(5) + 4;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB6._y);
x++;
}
Symbol 248 MovieClip Frame 62
_root.pB5.gotoAndStop("blow");
cunksToBlow = random(3) + 3;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB5._y);
x++;
}
Symbol 248 MovieClip Frame 63
_root.pB4.gotoAndStop("blow");
cunksToBlow = random(4) + 4;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB4._y);
x++;
}
Symbol 248 MovieClip Frame 65
_root.pB3.gotoAndStop("blow");
cunksToBlow = random(4) + 2;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB3._y);
x++;
}
Symbol 248 MovieClip Frame 68
_root.pB2.gotoAndStop("blow");
cunksToBlow = random(3) + 2;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB2._y);
x++;
}
Symbol 248 MovieClip Frame 70
_root.pB1.gotoAndStop("blow");
cunksToBlow = random(4) + 6;
x = 1;
while (x <= cunksToBlow) {
chunkN = chunkN + 1;
_root.chunkp1.duplicateMovieClip("chunkp" + chunkN, chunkN);
setProperty("_root.chunkp" + chunkN, _y , _root.pB1._y);
x++;
}
Symbol 248 MovieClip Frame 71
_root.hero1.gotoAndStop(6);
Symbol 248 MovieClip Frame 79
stop();
Symbol 250 MovieClip Frame 6
stop();
Symbol 251 MovieClip Frame 31
_parent.gotoAndStop(1);
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 38
_parent.gotoAndStop(1);
stop();
Symbol 259 MovieClip Frame 56
_parent.gotoAndStop(1);
stop();
Symbol 260 MovieClip Frame 27
_parent.gotoAndStop(1);
stop();
Symbol 262 MovieClip Frame 58
_parent.gotoAndStop(1);
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 271 Button
on (release) {
_root.ins.gotoAndStop(2);
}
Symbol 274 MovieClip Frame 1
gotoAndStop(random(10) + 2);
Symbol 275 MovieClip Frame 1
if (/:end == 1) {
gotoAndPlay (2);
} else {
stop();
}
Symbol 275 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 275 MovieClip Frame 3
_x = (_x + xspeed);
_y = (_y - (speedMax * 1.4));
_rotation = (_rotation + 10);
xspeed = xspeed * 0.8;
Symbol 275 MovieClip Frame 4
_x = (_x + xspeed);
_y = (_y - (speedMax * 0.9));
_rotation = (_rotation + 9);
xspeed = xspeed * 0.7;
Symbol 275 MovieClip Frame 5
_x = (_x + xspeed);
_y = (_y - (speedMax * 0.5));
_rotation = (_rotation + 5);
xspeed = xspeed * 0.6;
Symbol 275 MovieClip Frame 6
_x = (_x + xspeed);
_y = (_y - (speedMax * 0.3));
_rotation = (_rotation + 3);
xspeed = xspeed * 0.5;
Symbol 275 MovieClip Frame 7
_x = (_x + xspeed);
_y = (_y + (speedMax * 0.05));
_rotation = (_rotation + 0.5);
xspeed = xspeed * 0.05;
Symbol 275 MovieClip Frame 8
_x = (_x + xspeed);
_y = (_y + (speedMax * 0.3));
_rotation = (_rotation + 0.5);
xspeed = xspeed * 0.05;
Symbol 275 MovieClip Frame 9
_x = (_x + xspeed);
_y = (_y + (speedMax * 0.6));
_rotation = (_rotation + 0.5);
xspeed = xspeed * 0.05;
Symbol 275 MovieClip Frame 10
_x = (_x + xspeed);
_rotation = (_rotation + 0.5);
xspeed = xspeed * 0.05;
if (_y >= yspot) {
gotoAndStop ("end");
} else {
_y = (_y + speedMax);
}
Symbol 275 MovieClip Frame 11
if (_y >= yspot) {
gotoAndStop ("end");
} else {
_y = (_y + (speedMax * 1.4));
}
Symbol 275 MovieClip Frame 12
if (_y >= yspot) {
gotoAndStop ("end");
} else {
_y = (_y + (speedMax * 1.6));
}
Symbol 275 MovieClip Frame 13
if (_y >= yspot) {
gotoAndStop ("end");
} else {
_y = (_y + (speedMax * 1.8));
}
Symbol 275 MovieClip Frame 14
if (_y >= yspot) {
gotoAndStop ("end");
} else {
_y = (_y + (speedMax * 2));
}
Symbol 275 MovieClip Frame 15
if (_y >= yspot) {
gotoAndStop ("end");
} else {
_y = (_y + (speedMax * 2));
}
Symbol 275 MovieClip Frame 16
if (_y >= yspot) {
gotoAndStop ("end");
} else {
_y = (_y + (speedMax * 2));
gotoAndPlay(_currentframe - 2);
}
Symbol 279 Button
on (release) {
tempValue = discardB.rValue;
pick = 1;
gotoAndStop ("place1");
}
Symbol 280 Button
on (release) {
gotoAndStop ("want");
}
Symbol 286 Button
on (release) {
pick = 2;
tempValue = chanceB.rValue;
gotoAndStop ("place2");
}
Symbol 288 Button
on (release) {
discardB.rValue = chanceB.rValue;
chanceB.rValue = "?";
n = "";
gotoAndPlay ("com");
}
Symbol 293 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 ("com");
}
Symbol 294 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 ("com");
}
Symbol 295 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 ("com");
}
Symbol 296 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 ("com");
}
Symbol 297 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 ("com");
}
Symbol 298 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 ("com");
}
Symbol 299 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 ("com");
}
Symbol 300 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 ("com");
}
Symbol 301 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 ("com");
}
Symbol 302 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 ("com");
}
Symbol 304 MovieClip Frame 38
gotoAndStop(_currentframe + _parent.openSlot);
_parent.gotoAndPlay("comdelay1");
Symbol 305 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 2
stop();
Set("/:drawBlockcount", /:drawBlockcount + 1);
chanceB.rValue = eval ("/:drawBlock" + /:drawBlockcount);
Set("/:drawBlockMax", /:drawBlockMax + 1);
Set("/:drawBlock" + /:drawBlockMax, discardB.rValue);
Symbol 305 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 (x <= 9) {
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 305 MovieClip Frame 10
winGood = 0;
x = 1;
while (x <= 9) {
if (eval (("_root.pB" + x) + ".rValue") < eval (("_root.pB" + (x + 1)) + ".rValue")) {
winGood = winGood + 1;
}
x++;
}
if (winGood == 9) {
_root.gotoAndPlay("win");
}
Symbol 305 MovieClip Frame 21
spred = int(/:cardMax / 10);
if ((/:mode == 1) and (/:level == 1)) {
gotoAndStop ("brain1");
} else if ((/:mode == 1) and (/:level == 2)) {
gotoAndStop ("brain2");
} else if ((/:mode == 1) and (/:level == 3)) {
gotoAndStop ("brain3");
} else if ((/:mode == 1) and (/:level == 4)) {
gotoAndStop ("brain3");
} else if ((/:mode == 1) and (/:level >= 5)) {
gotoAndStop ("brain3");
}
Symbol 305 MovieClip Frame 24
openSlot = 0;
x = 1;
while (x <= 10) {
if ((eval (("_root.cB" + x) + ".rValue") > ((x * spred) - spred)) and (eval (("_root.cB" + x) + ".rValue") <= (x * spred))) {
Set("lock" + x, 1);
} else {
Set("lock" + x, 0);
}
if ((discardB.rValue > ((x * spred) - spred)) and (discardB.rValue <= (x * spred))) {
openSlot = x;
}
x++;
}
a = 1;
huntfor1 = "";
huntfor2 = "";
if ((((((((((lock1 + lock2) + lock3) + lock4) + lock5) + lock6) + lock7) + lock8) + lock9) + lock10) >= 11) {
almostDone = 1;
x = 1;
while (x <= 10) {
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 ("complace1");
} else {
Set("/:drawBlockcount", /:drawBlockcount + 1);
chanceB.rValue = eval ("/:drawBlock" + /:drawBlockcount);
Set("/:drawBlockMax", /:drawBlockMax + 1);
Set("/:drawBlock" + /:drawBlockMax, discardB.rValue);
openSlot = 0;
x = 1;
while (x <= 10) {
if ((chanceB.rValue > ((x * spred) - spred)) and (chanceB.rValue <= (x * spred))) {
openSlot = x;
}
x++;
}
if (eval ("lock" + openSlot) == 1) {
if ((chanceB.rValue > eval (("_root.cB" + openSlot) + ".rValue")) and (openSlot < 10)) {
openSlot = openSlot + 1;
} else if ((chanceB.rValue < eval (("_root.cB" + openSlot) + ".rValue")) and (openSlot > 1)) {
openSlot = openSlot - 1;
}
}
if (openSlot == 0) {
openSlot = 1;
} else if (openSlot == 11) {
openSlot = 10;
}
pick = 2;
tempValue = chanceB.rValue;
gotoAndStop ("complace2");
}
Symbol 305 MovieClip Frame 29
openSlot = 0;
x = 1;
while (x <= 10) {
if ((eval (("_root.cB" + x) + ".rValue") > ((x * spred) - spred)) and (eval (("_root.cB" + x) + ".rValue") <= (x * spred))) {
Set("lock" + x, 1);
} else {
Set("lock" + x, 0);
}
if ((discardB.rValue > ((x * spred) - spred)) and (discardB.rValue <= (x * spred))) {
openSlot = x;
}
x++;
}
a = 1;
huntfor1 = "";
huntfor2 = "";
if ((((((((((lock1 + lock2) + lock3) + lock4) + lock5) + lock6) + lock7) + lock8) + lock9) + lock10) >= 8) {
almostDone = 1;
x = 1;
while (x <= 10) {
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 ("complace1");
} else {
Set("/:drawBlockcount", /:drawBlockcount + 1);
chanceB.rValue = eval ("/:drawBlock" + /:drawBlockcount);
Set("/:drawBlockMax", /:drawBlockMax + 1);
Set("/:drawBlock" + /:drawBlockMax, discardB.rValue);
openSlot = 0;
x = 1;
while (x <= 10) {
if ((chanceB.rValue > ((x * spred) - spred)) and (chanceB.rValue <= (x * spred))) {
openSlot = x;
}
x++;
}
if (eval ("lock" + openSlot) == 1) {
if ((chanceB.rValue > eval (("_root.cB" + openSlot) + ".rValue")) and (openSlot < 10)) {
openSlot = openSlot + 1;
} else if ((chanceB.rValue < eval (("_root.cB" + openSlot) + ".rValue")) and (openSlot > 1)) {
openSlot = openSlot - 1;
}
}
if (openSlot == 0) {
openSlot = 1;
} else if (openSlot == 11) {
openSlot = 10;
}
pick = 2;
tempValue = chanceB.rValue;
gotoAndStop ("complace2");
}
Symbol 305 MovieClip Frame 34
openSlot = 0;
x = 1;
while (x <= 10) {
if ((eval (("_root.cB" + x) + ".rValue") > ((x * spred) - spred)) and (eval (("_root.cB" + x) + ".rValue") <= (x * spred))) {
Set("lock" + x, 1);
} else {
Set("lock" + x, 0);
}
if ((discardB.rValue > ((x * spred) - spred)) and (discardB.rValue <= (x * spred))) {
openSlot = x;
}
x++;
}
done = 0;
x = 1;
while (x <= 9) {
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.cB10.rValue > _root.cB9.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 (x <= 10) {
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 ("complace1");
} else {
Set("/:drawBlockcount", /:drawBlockcount + 1);
chanceB.rValue = eval ("/:drawBlock" + /:drawBlockcount);
Set("/:drawBlockMax", /:drawBlockMax + 1);
Set("/:drawBlock" + /:drawBlockMax, discardB.rValue);
openSlot = 0;
x = 1;
while (x <= 10) {
if ((chanceB.rValue > ((x * spred) - spred)) and (chanceB.rValue <= (x * spred))) {
openSlot = x;
}
x++;
}
if (eval ("lock" + openSlot) == 1) {
if ((chanceB.rValue > eval (("_root.cB" + openSlot) + ".rValue")) and (openSlot < 10)) {
openSlot = openSlot + 1;
} else if ((chanceB.rValue < eval (("_root.cB" + openSlot) + ".rValue")) and (openSlot > 1)) {
openSlot = openSlot - 1;
}
}
if (openSlot == 0) {
openSlot = 1;
} else if (openSlot == 11) {
openSlot = 10;
}
pick = 2;
tempValue = chanceB.rValue;
gotoAndStop ("complace2");
}
Symbol 305 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 305 MovieClip Frame 80
winTemp2 = win;
win = 0;
x = 1;
while (x <= 9) {
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 (win > winTemp2) {
r = random(10) + 1;
if (r >= 4) {
_root.bad1.gotoAndStop("cheer1");
} else {
_root.horn.gotoAndStop("bplay1");
}
}
Symbol 305 MovieClip Frame 82
gotoAndStop (1);
Symbol 307 MovieClip Frame 29
stop();
Symbol 309 MovieClip Frame 29
stop();
Symbol 318 MovieClip Frame 18
stop();
Symbol 319 MovieClip Frame 1
speedx = (random(3) - 1) / 75;
speedy = (random(3) + 1) / 75;
life = random(30) + 20;
ap2 = 10;
Symbol 319 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 319 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 344 Button
on (press) {
getURL ("http://www.flowgo.com/page.cfm?lk=40617", "_blank");
}
Symbol 349 MovieClip Frame 42
stop();
Symbol 373 Button
on (press) {
getURL (_root.trialURLdecoded, "_blank");
}
Symbol 378 Button
on (press) {
getURL ("javascript:submitChallenge()");
}
Symbol 380 Button
on (press) {
_root.gotoAndPlay(1);
}
Symbol 382 MovieClip Frame 1
endText = ("You scored " + _level0.score) + " Points at Tower Blaster!";