Frame 1
_highquality = "2";
_focusrect = "0";
Frame 2
ifFrameLoaded (41) {
gotoAndPlay (5);
}
play();
Frame 3
prevFrame();
Frame 5
Set("_level0:flash4", "1");
Frame 6
if (flash4 == "0") {
gotoAndPlay (11);
}
Frame 7
gotoAndPlay (41);
Frame 11
stop();
Frame 41
play();
Frame 45
if (/Title:titlevisible == "1") {
gotoAndPlay (47);
} else {
play();
}
Frame 46
gotoAndPlay(_currentframe - "1");
Frame 47
ifFrameLoaded (166) {
gotoAndPlay(_currentframe + "2");
}
play();
Frame 48
gotoAndPlay(_currentframe - "1");
Frame 66
ifFrameLoaded (191) {
gotoAndPlay(_currentframe + "2");
}
play();
Frame 67
gotoAndPlay(_currentframe - "1");
Frame 86
ifFrameLoaded (216) {
gotoAndPlay(_currentframe + "2");
}
play();
Frame 87
gotoAndPlay(_currentframe - "1");
Frame 106
ifFrameLoaded (241) {
gotoAndPlay(_currentframe + "2");
}
play();
Frame 107
gotoAndPlay(_currentframe - "1");
Frame 126
ifFrameLoaded (256) {
gotoAndPlay(_currentframe + "2");
}
play();
Frame 127
gotoAndPlay(_currentframe - "1");
Frame 128
stop();
Frame 135
stop();
Frame 136
stop();
Frame 146
board = "N";
maxPicture = "3";
picture = "1";
prefix = (board add picture) add "x";
echo = "0";
maxTiles = "27";
tiles = "0";
echos = "0";
chips = "0";
if (color == "0") {
color = "8";
minColor = "3";
maxColor = "9";
}
play();
Frame 147
example = "";
example = example add "bbbbb";
example = example add "bggggb";
example = example add "d";
example = example add "bgddgb";
example = example add "ggg";
example = example add "bbbbbb";
Frame 148
gotoAndPlay(board);
Frame 151
board = "N";
maxPicture = "3";
picture = "2";
prefix = (board add picture) add "x";
echo = "0";
maxTiles = "27";
tiles = "0";
echos = "0";
chips = "0";
if (color == "0") {
color = "8";
minColor = "3";
maxColor = "9";
}
play();
Frame 152
example = "";
example = example add "fffdg";
example = example add "fffdgg";
example = example add "d";
example = example add "ffddgg";
example = example add "dgg";
example = example add "fdgggg";
Frame 153
gotoAndPlay(board);
Frame 156
board = "N";
maxPicture = "3";
picture = "3";
prefix = (board add picture) add "x";
echo = "0";
maxTiles = "27";
tiles = "0";
echos = "0";
chips = "0";
if (color == "0") {
color = "8";
minColor = "3";
maxColor = "9";
}
play();
Frame 157
example = "";
example = example add "aaaaa";
example = example add "bccbbc";
example = example add "a";
example = example add "bcbcbc";
example = example add "aaa";
example = example add "bbbccc";
Frame 158
gotoAndPlay(board);
Frame 161
if (eval (prefix add "1") == "0") {
index = "1";
while (maxTiles >= index) {
Set(((board add picture) add "x") add index, (ord(substring(Example, index, "1")) - ord("a")) + minColor);
index = index + "1";
}
}
Frame 162
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "1");
Frame 163
stop();
Frame 171
board = "A";
maxPicture = "3";
picture = "1";
prefix = (board add picture) add "x";
echo = "1";
maxTiles = "480";
tiles = "0";
echos = "0";
chips = "0";
if (color == "0") {
color = "8";
minColor = "3";
maxColor = "18";
}
nextFrame();
Frame 172
example = "";
example = example add "hmnnmmmmmmmmmmhhhhhhhhhhhhhhhh";
example = example add "hmmnnmmmmmmmmhhhhhhhhhhhhhhbbb";
example = example add "hhmnnmmmmmmmmhnhnhnhhhhhhhbbbb";
example = example add "hhmmnmmmmmmmnnmnnnkkhhhhhbbbbb";
example = example add "hhhmmnmmmmmhhnnnnnkkkkhhhhhhhb";
example = example add "hhhhmmmmmmhhhkkkkkkkkkkhhhhhhh";
example = example add "hhhhhmmmmhhhhnnnnnnnkkkkhhhhhh";
example = example add "hhhhhhmmhhhhheeneennnkkkhhhhhh";
example = example add "hhhhhhhdhhhhaaaaannnnnkkkhnhhh";
example = example add "hhhhhhhhdhhcceaaeannnnnnnnhhhh";
example = example add "hhhhhhhhdhheeenaannnnnnnhhhhhh";
example = example add "hhhhhhddhhhnnnnnnnnnnjkkhhhhhh";
example = example add "hhhnndhhhhhhhnmlllnnnhjkkhhhhh";
example = example add "hhnnnhhhhhhhhnmmmnnnhhhjjjhhhh";
example = example add "hhdnnnghhhhhgnmmnnnghhhhhhhhhh";
example = example add "hdhhgggghhhgggnnngggggghhhhhhh";
gotoAndPlay(board);
Frame 176
board = "A";
maxPicture = "3";
picture = "2";
prefix = (board add picture) add "x";
echo = "1";
maxTiles = "480";
tiles = "0";
echos = "0";
chips = "0";
if (color == "0") {
color = "8";
minColor = "3";
maxColor = "18";
}
nextFrame();
Frame 177
example = "";
example = example add "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhh";
example = example add "hhhhhhhhhhmhhhhhhhhhhhhhhhhhhh";
example = example add "hhhhhhhhhhdhhhhhhhhhhhhhhhhhhh";
example = example add "hhhhhhhhhdddhhhhhhhhhmhhhhhhhh";
example = example add "hhhhhhhhdcdcdhhhhhhhhdhhhhhhhh";
example = example add "hhbhhhhhdddddhhhbhhhdddhhhhhdd";
example = example add "hbbhhhhhdcdcdhhbcbhbbbbbhhhhdd";
example = example add "ccchhcchdddddhhccchcccccfffhdd";
example = example add "bbbhccccdcdcdhhcccebbbbbfccccd";
example = example add "bbbeccgcdddddfhclceooooofccccd";
example = example add "bcbeccccdcdcdffclcebbbbbfcjjcd";
example = example add "bbbeccgcdddddffclcebbbbbfccccd";
example = example add "bcbeccccdcdcdffcccebbbobfcjjcd";
example = example add "bbbeccgcdddddffcddddbbobfccccd";
example = example add "bcbdccccdcdcdffcddddbbobfcjjcd";
example = example add "bbbdccgcdddddffcdccdbbobfccccd";
gotoAndPlay(board);
Frame 181
board = "A";
maxPicture = "3";
picture = "3";
prefix = (board add picture) add "x";
echo = "1";
maxTiles = "480";
tiles = "0";
echos = "0";
chips = "0";
if (color == "0") {
color = "8";
minColor = "3";
maxColor = "18";
}
nextFrame();
Frame 182
example = "";
example = example add "eeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
example = example add "eeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
example = example add "eeeaaaeeeeeeeeeeeeeeeeeeeeeeee";
example = example add "eeeeaeeeeeeaaeeaaeeeeeeeeeeeee";
example = example add "eeeeaeeeeeeaeeeaeeeeeaaaeeeeee";
example = example add "eeeeaeaaaeeaeeeaeeaaeaeaeaeaee";
example = example add "eeeeaeaeaeaaaeaaaeaeeaaaeaeaee";
example = example add "eeeeaeaaaeeaeeeaeeaeeaeeeaeaee";
example = example add "eeeeaeaeeeeaeeeaeeaeeaaaeaeaee";
example = example add "eeeeaeaaaeeaeeeaeeaeeeeeeaaaee";
example = example add "eeaeaeeeeeeaeeeaeeeeeeeeeeeaee";
example = example add "eeaaaeeeeeeeeeeeeeeeeeeeeaaaee";
example = example add "eeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
example = example add "eemmmmmmmmmmmmmmmmmmmmmmmmmmee";
example = example add "eeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
example = example add "eeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
gotoAndPlay(board);
Frame 186
if (eval (prefix add "1") == "0") {
index = "1";
while (maxTiles >= index) {
Set(((board add picture) add "x") add index, (ord(substring(Example, index, "1")) - ord("a")) + minColor);
index = index + "1";
}
}
Frame 187
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "1");
Frame 188
stop();
Frame 196
board = "B";
maxPicture = "3";
picture = "1";
prefix = (board add picture) add "x";
echo = "0";
maxTiles = "84";
tiles = "0";
echos = "0";
chips = "0";
if (color == "0") {
color = "4";
minColor = "3";
maxColor = "11";
}
play();
Frame 197
example = "";
example = example add "fffffffeeeeeee";
example = example add "dddddddfffffff";
example = example add "eeeeeeeddddddd";
example = example add "cccccccbbbbbbb";
example = example add "aaaaaaaccccccc";
example = example add "bbbbbbbaaaaaaa";
Frame 198
gotoAndPlay(board);
Frame 201
board = "B";
maxPicture = "3";
picture = "2";
prefix = (board add picture) add "x";
echo = "0";
maxTiles = "84";
tiles = "0";
echos = "0";
chips = "0";
if (color == "0") {
color = "8";
minColor = "3";
maxColor = "11";
}
play();
Frame 202
example = "";
example = example add "ababababababab";
example = example add "ababababababab";
example = example add "ababababababab";
example = example add "ababababababab";
example = example add "ababababababab";
example = example add "ababababababab";
Frame 203
gotoAndPlay(board);
Frame 206
board = "B";
maxPicture = "3";
picture = "3";
prefix = (board add picture) add "x";
echo = "0";
maxTiles = "84";
tiles = "0";
echos = "0";
chips = "0";
if (color == "0") {
color = "8";
minColor = "3";
maxColor = "11";
}
play();
Frame 207
example = "";
example = example add "iiiiiiiiiiiiii";
example = example add "gggggggggggggg";
example = example add "eeeeeeeeeeeeee";
example = example add "gcgcgcgchchchc";
example = example add "gcgcgcgchchchc";
example = example add "gcgcgcgchchchc";
Frame 208
gotoAndPlay(board);
Frame 211
if (eval (prefix add "1") == "0") {
index = "1";
while (maxTiles >= index) {
Set(((board add picture) add "x") add index, (ord(substring(Example, index, "1")) - ord("a")) + minColor);
index = index + "1";
}
}
Frame 212
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "1");
Frame 213
stop();
Frame 221
board = "C";
maxPicture = "3";
picture = "1";
prefix = (board add picture) add "x";
echo = "0";
maxTiles = "153";
tiles = "0";
echos = "0";
chips = "0";
if (color == "0") {
color = "4";
minColor = "3";
maxColor = "10";
}
play();
Frame 222
example = "";
example = example add "aaaaaaaaaaaaaaaaa";
example = example add "ahbdahbdahbdahbda";
example = example add "acacacacacacacaca";
example = example add "agbfbfbeagbfbfbea";
example = example add "aaacacaaaaacacaaa";
example = example add "ahbfbfbdahbfbfbda";
example = example add "acacacacacacacaca";
example = example add "agbeagbeagbeagbea";
example = example add "aaaaaaaaaaaaaaaaa";
if (eval (prefix add "MarbleInit") == "0") {
Set(prefix add "MarbleInit", "1");
Set(prefix add "Marble1tile", "23");
Set(prefix add "Marble1xMotion", "1");
Set(prefix add "Marble1yMotion", "0");
Set(prefix add "Marble2tile", "29");
Set(prefix add "Marble2xMotion", -"1");
Set(prefix add "Marble2yMotion", "0");
}
Frame 223
gotoAndPlay(board);
Frame 226
board = "C";
maxPicture = "3";
picture = "2";
prefix = (board add picture) add "x";
echo = "0";
maxTiles = "153";
tiles = "0";
echos = "0";
chips = "0";
if (color == "0") {
color = "4";
minColor = "3";
maxColor = "10";
}
play();
Frame 227
example = "";
example = example add "aaahfffffffffdaaa";
example = example add "aaacaaaaaaaaacaaa";
example = example add "aaacahbdahbdacaaa";
example = example add "aahcacfcacfcacdaa";
example = example add "aaccaabeaabeaccaa";
example = example add "aaacaaaafaaaacaaa";
example = example add "aaacaaaaaaaaacaaa";
example = example add "aaacagbbbbbeacaaa";
example = example add "aaagdaaaaaaaheaaa";
if (eval (prefix add "MarbleInit") == "0") {
Set(prefix add "MarbleInit", "1");
Set(prefix add "Marble1tile", "42");
Set(prefix add "Marble1xMotion", "0");
Set(prefix add "Marble1yMotion", "1");
Set(prefix add "Marble2tile", "46");
Set(prefix add "Marble2xMotion", "0");
Set(prefix add "Marble2yMotion", "1");
}
Frame 228
gotoAndPlay(board);
Frame 231
board = "C";
maxPicture = "3";
picture = "3";
prefix = (board add picture) add "x";
echo = "0";
maxTiles = "153";
tiles = "0";
echos = "0";
chips = "0";
if (color == "0") {
color = "4";
minColor = "3";
maxColor = "10";
}
play();
Frame 232
example = "";
example = example add "hbbbbbbbbbbbbbbbd";
example = example add "gdhbbbbbbbbbbbdhe";
example = example add "hecbbbbbbbbbbbffb";
example = example add "gbgbbbbbbdbbbbegb";
example = example add "hbbbbbbbbfbbbbbbb";
example = example add "gbbbbbdhbgbbbdhbd";
example = example add "hbbbbbechbbbbcgbe";
example = example add "gbbbbbbbfbbbbfbbd";
example = example add "hbbbbbbbebbbbgbbe";
if (eval (prefix add "MarbleInit") == "0") {
Set(prefix add "MarbleInit", "1");
Set(prefix add "Marble1tile", "70");
Set(prefix add "Marble1xMotion", "1");
Set(prefix add "Marble1yMotion", "0");
Set(prefix add "Marble2tile", "66");
Set(prefix add "Marble2xMotion", "0");
Set(prefix add "Marble2yMotion", -"1");
}
Frame 233
gotoAndPlay(board);
Frame 236
if (eval (prefix add "1") == "0") {
index = "1";
while (maxTiles >= index) {
Set(((board add picture) add "x") add index, (ord(substring(Example, index, "1")) - ord("a")) + minColor);
index = index + "1";
}
}
Frame 237
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "1");
Frame 238
stop();
Frame 256
stop();
fscommand ("quit");
Symbol 7 Button
on (release) {
getURL ("http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash", "_blank");
}
Symbol 27 MovieClip Frame 18
gotoAndStop (1);
Symbol 33 MovieClip Frame 1
titlevisible = "0";
play();
Symbol 33 MovieClip Frame 147
titlevisible = "1";
Symbol 33 MovieClip Frame 148
stop();
Symbol 40 Button
on (press) {
gotoAndStop (146);
}
Symbol 47 MovieClip Frame 1
if (_level0:lastClicked eq "MD") {
gotoAndPlay (11);
}
Symbol 47 MovieClip Frame 81
gotoAndPlay (11);
Symbol 52 Button
on (press) {
gotoAndStop (171);
}
Symbol 63 MovieClip Frame 1
if (_level0:lastClicked eq "MD") {
gotoAndPlay (11);
}
Symbol 63 MovieClip Frame 27
gotoAndPlay (11);
Symbol 68 MovieClip Frame 1
if (_level0:lastClicked eq "MD") {
gotoAndPlay (11);
}
Symbol 68 MovieClip Frame 74
gotoAndPlay (11);
Symbol 73 Button
on (press) {
gotoAndStop (196);
}
Symbol 78 Button
on (press) {
gotoAndStop (221);
}
Symbol 89 MovieClip Frame 1
if (_level0:lastClicked eq "MD") {
gotoAndPlay (10);
}
Symbol 89 MovieClip Frame 27
gotoAndPlay (10);
Symbol 95 Button
on (press) {
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "0");
Set("_level0:color", myColor);
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "1");
Set("_level0:lastClicked", _name);
}
Symbol 106 MovieClip Frame 1
Set("_level0:chips", _level0:chips + "1");
myColor = _level0:chips + "2";
_name = ("Chip" add myColor);
setProperty("Glow", _visible , "0");
gotoAndStop(myColor);
Symbol 111 Button
on (press) {
if (lastClicked eq "Erase") {
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "0");
if (color <> maxColor) {
color = color + "1";
} else {
color = minColor;
}
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "1");
}
index = "1";
while (tiles >= index) {
Set(prefix add index, color);
index = index + "1";
}
lastClicked = "Erase";
gotoAndPlay(board add picture);
}
Symbol 116 Button
on (press) {
color = "0";
lastClicked = "MD";
gotoAndStop (136);
}
Symbol 122 Button
on (press) {
if ("1" < picture) {
picture = picture - "1";
} else {
picture = maxPicture;
}
lastClicked = "Previous";
gotoAndPlay(board add picture);
}
Symbol 125 Button
on (press) {
if (picture < maxPicture) {
picture = picture + "1";
} else {
picture = "1";
}
lastClicked = "Next";
gotoAndPlay(board add picture);
}
Symbol 129 Button
on (press) {
index = "1";
while (tiles >= index) {
Set(prefix add index, random(maxColor - (minColor - "1")) + minColor);
index = index + "1";
}
lastClicked = "Mix";
gotoAndPlay(board add picture);
}
Symbol 134 Button
on (press) {
play();
Set(prefix add "1", "0");
Set(prefix add "MarbleInit", "0");
lastClicked = "Idea";
gotoAndPlay(board add picture);
}
Symbol 146 Button
on (press) {
Set("_level0:lastClicked", "Intro");
gotoAndStop (2);
}
Symbol 151 Button
on (press) {
Set("_level0:lastClicked", "Intro");
gotoAndStop (3);
}
Symbol 156 Button
on (press) {
Set("_level0:lastClicked", "Intro");
gotoAndStop (4);
}
Symbol 161 Button
on (press) {
Set("_level0:lastClicked", "Intro");
gotoAndStop (5);
}
Symbol 166 Button
on (press) {
Set("_level0:lastClicked", "Intro");
gotoAndStop (6);
}
Symbol 171 Button
on (press) {
Set("_level0:lastClicked", "Intro");
gotoAndStop (7);
}
Symbol 176 Button
on (press) {
Set("_level0:lastClicked", "Intro");
gotoAndStop (8);
}
Symbol 205 MovieClip Frame 1
stop();
Symbol 206 Button
on (press) {
tellTarget ("") {
if (_level0:lastClicked eq _name) {
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "0");
if (_level0:color <> _level0:maxColor) {
Set("_level0:color", _level0:color + "1");
} else {
Set("_level0:color", _level0:minColor);
}
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "1");
}
gotoAndStop(_level0:color);
Set("_level0:" add _name, _level0:color);
Set("_level0:lastClicked", _name);
}
}
Symbol 207 MovieClip Frame 1
Set("_level0:tiles", _level0:tiles + "1");
_name = (_level0:prefix add _level0:tiles);
gotoAndStop(eval ("_level0:" add _name));
Symbol 211 Button
on (press) {
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "0");
Set("_level0:color", myColor);
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "1");
Set("_level0:lastClicked", _name);
}
Symbol 229 MovieClip Frame 1
Set("_level0:chips", _level0:chips + "1");
myColor = _level0:chips + "2";
_name = ("Chip" add myColor);
setProperty("Glow", _visible , "0");
gotoAndStop(myColor);
Symbol 246 MovieClip Frame 1
Set("_level0:echos", _level0:echos + "1");
_name = ((_level0:prefix add _level0:echos) add "e");
gotoAndStop(eval (("_level0:" add _level0:prefix) add _level0:echos));
Symbol 247 Button
on (press) {
tellTarget ("") {
if (_level0:lastClicked eq _name) {
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "0");
if (_level0:color <> _level0:maxColor) {
Set("_level0:color", _level0:color + "1");
} else {
Set("_level0:color", _level0:minColor);
}
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "1");
}
gotoAndStop(_level0:color);
Set("_level0:" add _name, _level0:color);
Set("_level0:lastClicked", _name);
};
tellTarget (("_level0/" add _name) add "e") {
gotoAndStop(_level0:color);
}
}
Symbol 260 MovieClip Frame 1
Set("_level0:tiles", _level0:tiles + "1");
_name = (_level0:prefix add _level0:tiles);
gotoAndStop(eval ("_level0:" add _name));
Symbol 264 Button
on (press) {
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "0");
Set("_level0:color", myColor);
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "1");
Set("_level0:lastClicked", _name);
}
Symbol 275 MovieClip Frame 1
Set("_level0:chips", _level0:chips + "1");
myColor = _level0:chips + "2";
_name = ("Chip" add myColor);
setProperty("Glow", _visible , "0");
gotoAndStop(myColor);
Symbol 276 Button
on (press) {
tellTarget ("") {
if (_level0:lastClicked eq _name) {
if (_level0:color <> _level0:maxColor) {
Set("_level0:color", _level0:color + "1");
} else {
Set("_level0:color", _level0:minColor);
}
}
gotoAndStop(_level0:color);
Set("_level0:" add _name, _level0:color);
Set("_level0:lastClicked", _name);
}
}
Symbol 277 MovieClip Frame 1
Set("_level0:tiles", _level0:tiles + "1");
_name = (_level0:prefix add _level0:tiles);
myInit = eval ("_level0:" add _name);
gotoAndStop(myInit);
Symbol 280 Button
on (press) {
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "0");
Set("_level0:color", myColor);
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "1");
Set("_level0:lastClicked", _name);
}
Symbol 290 MovieClip Frame 1
Set("_level0:chips", _level0:chips + "1");
myColor = _level0:chips + "2";
_name = ("Chip" add myColor);
setProperty("Glow", _visible , "0");
gotoAndStop(myColor);
Symbol 291 Button
on (press) {
tellTarget ("") {
if (_level0:lastClicked eq _name) {
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "0");
if (_level0:color <> _level0:maxColor) {
Set("_level0:color", _level0:color + "1");
} else {
Set("_level0:color", _level0:minColor);
}
setProperty(("_level0/Chip" add _level0:color) add "/Glow", _visible , "1");
}
gotoAndStop(_level0:color);
Set("_level0:" add _name, _level0:color);
Set("_level0:lastClicked", _name);
}
}
Symbol 294 MovieClip Frame 1
Set("_level0:tiles", _level0:tiles + "1");
_name = (_level0:prefix add _level0:tiles);
gotoAndStop(eval ("_level0:" add _name));
Symbol 296 MovieClip Frame 1
prefix = "_level0/" add _level0:prefix;
varPrefix = "_level0:" add _level0:prefix;
tilesPerRow = "17";
tile = eval ((varPrefix add _name) add "tile");
xMotion = eval ((varPrefix add _name) add "xMotion");
yMotion = eval ((varPrefix add _name) add "yMotion");
xPosition = "0";
yPosition = "0";
gotoAndPlay (5);
Symbol 296 MovieClip Frame 5
frame = getProperty(prefix add tile, _currentframe);
bounce = "0";
if (frame == "3") {
xPosition = "0";
yPosition = "0";
} else if ((frame == "4") and (xMotion == "0")) {
xMotion = "1";
yMotion = "0";
xPosition = "0";
yPosition = "0";
} else if ((frame == "5") and (yMotion == "0")) {
xMotion = "0";
yMotion = "1";
xPosition = "0";
yPosition = "0";
} else if ((xPosition == "0") and (yPosition == "0")) {
if (xMotion) {
if ((frame == "6") or (frame == "10")) {
xMotion = "0";
yMotion = "1";
} else if ((frame == "7") or (frame == "9")) {
xMotion = "0";
yMotion = -"1";
}
} else if (yMotion) {
if ((frame == "6") or (frame == "7")) {
xMotion = -"1";
yMotion = "0";
} else if ((frame == "9") or (frame == "10")) {
xMotion = "1";
yMotion = "0";
}
}
xPosition = xMotion;
yPosition = yMotion;
} else if (((xPosition + xMotion) == "0") and ((yPosition + yMotion) == "0")) {
xPosition = "0";
yPosition = "0";
} else if ((xMotion == "1") and (getProperty(prefix add tile, _x) < "470")) {
newTile = tile + "1";
newFrame = getProperty(prefix add newTile, _currentframe);
if ((((newFrame == "4") or (newFrame == "6")) or (newFrame == "7")) or (newFrame == "8")) {
tile = newTile;
xPosition = -"1";
} else {
bounce = "1";
}
} else if ((xMotion == (-"1")) and ("22" < getProperty(prefix add tile, _x))) {
newTile = tile - "1";
newFrame = getProperty(prefix add newTile, _currentframe);
if ((((newFrame == "4") or (newFrame == "8")) or (newFrame == "9")) or (newFrame == "10")) {
tile = newTile;
xPosition = "1";
} else {
bounce = "1";
}
} else if ((yMotion == "1") and (_level0:tiles >= (tile + tilesPerRow))) {
newTile = tile + tilesPerRow;
newFrame = getProperty(prefix add newTile, _currentframe);
if ((((newFrame == "5") or (newFrame == "7")) or (newFrame == "8")) or (newFrame == "9")) {
tile = newTile;
yPosition = -"1";
} else {
bounce = "1";
}
} else if ((yMotion == (-"1")) and (tilesPerRow < tile)) {
newTile = tile - tilesPerRow;
newFrame = getProperty(prefix add newTile, _currentframe);
if ((((newFrame == "5") or (newFrame == "6")) or (newFrame == "8")) or (newFrame == "10")) {
tile = newTile;
yPosition = "1";
} else {
bounce = "1";
}
} else {
bounce = "1";
}
if (bounce) {
xPosition = "0";
yPosition = "0";
xMotion = -xMotion;
yMotion = -yMotion;
}
_x = ((getProperty(prefix add tile, _x) + ("9" * xPosition)) + "14");
_y = ((getProperty(prefix add tile, _y) + ("9" * yPosition)) + "14");
Set((varPrefix add _name) add "tile", tile);
Set((varPrefix add _name) add "xMotion", xMotion);
Set((varPrefix add _name) add "yMotion", yMotion);
Symbol 296 MovieClip Frame 6
gotoAndPlay (5);
Symbol 298 MovieClip Frame 1
prefix = "_level0/" add _level0:prefix;
varPrefix = "_level0:" add _level0:prefix;
tilesPerRow = "17";
tile = eval ((varPrefix add _name) add "tile");
xMotion = eval ((varPrefix add _name) add "xMotion");
yMotion = eval ((varPrefix add _name) add "yMotion");
xPosition = "0";
yPosition = "0";
gotoAndPlay (5);
Symbol 298 MovieClip Frame 5
frame = getProperty(prefix add tile, _currentframe);
if (frame == "3") {
xPosition = "0";
yPosition = "0";
} else if ((frame == "4") and (xMotion == "0")) {
xMotion = "1";
yMotion = "0";
xPosition = "0";
yPosition = "0";
} else if ((frame == "5") and (yMotion == "0")) {
xMotion = "0";
yMotion = "1";
xPosition = "0";
yPosition = "0";
} else if ((xPosition == "0") and (yPosition == "0")) {
if (xMotion) {
if ((frame == "6") or (frame == "10")) {
xMotion = "0";
yMotion = "1";
} else if ((frame == "7") or (frame == "9")) {
xMotion = "0";
yMotion = -"1";
}
} else if (yMotion) {
if ((frame == "6") or (frame == "7")) {
xMotion = -"1";
yMotion = "0";
} else if ((frame == "9") or (frame == "10")) {
xMotion = "1";
yMotion = "0";
}
}
xPosition = xMotion;
yPosition = yMotion;
} else if (((xPosition + xMotion) == "0") and ((yPosition + yMotion) == "0")) {
xPosition = "0";
yPosition = "0";
} else if ((xMotion == "1") and (getProperty(prefix add tile, _x) < "470")) {
newTile = tile + "1";
newFrame = getProperty(prefix add newTile, _currentframe);
if ((((newFrame == "4") or (newFrame == "6")) or (newFrame == "7")) or (newFrame == "8")) {
tile = newTile;
xPosition = -"1";
} else {
xPosition = "0";
xMotion = -"1";
}
} else if ((xMotion == (-"1")) and ("22" < getProperty(prefix add tile, _x))) {
newTile = tile - "1";
newFrame = getProperty(prefix add newTile, _currentframe);
if ((((newFrame == "4") or (newFrame == "8")) or (newFrame == "9")) or (newFrame == "10")) {
tile = newTile;
xPosition = "1";
} else {
xPosition = "0";
xMotion = "1";
}
} else if ((yMotion == "1") and (_level0:tiles >= (tile + tilesPerRow))) {
newTile = tile + tilesPerRow;
newFrame = getProperty(prefix add newTile, _currentframe);
if ((((newFrame == "5") or (newFrame == "7")) or (newFrame == "8")) or (newFrame == "9")) {
tile = newTile;
yPosition = -"1";
} else {
yPosition = "0";
yMotion = -"1";
}
} else if ((yMotion == (-"1")) and (tilesPerRow < tile)) {
newTile = tile - tilesPerRow;
newFrame = getProperty(prefix add newTile, _currentframe);
if ((((newFrame == "5") or (newFrame == "6")) or (newFrame == "8")) or (newFrame == "10")) {
tile = newTile;
yPosition = "1";
} else {
yPosition = "0";
yMotion = "1";
}
} else {
xPosition = "0";
yPosition = "0";
xMotion = -xMotion;
yMotion = -yMotion;
}
_x = ((getProperty(prefix add tile, _x) + ("9" * xPosition)) + "14");
_y = ((getProperty(prefix add tile, _y) + ("9" * yPosition)) + "14");
Set((varPrefix add _name) add "tile", tile);
Set((varPrefix add _name) add "xMotion", xMotion);
Set((varPrefix add _name) add "yMotion", yMotion);
Symbol 298 MovieClip Frame 6
gotoAndPlay (5);