Combined Code
movieClip 10 {
frame 56 {
gotoAndPlay(1);
}
}
frame 2 {
loadMovie('', 'prepreloader.swf');
}
movieClip 11 {
frame 56 {
gotoAndPlay(1);
}
}
frame 55 {
ifFrameLoaded (62) {
gotoAndPlay(58);
}
}
frame 56 {
gotoAndPlay(2);
}
movieClip 21 {
frame 70 {
stop();
}
}
movieClip 25 {
frame 70 {
stop();
}
}
movieClip 28 {
}
movieClip 30 {
}
movieClip 31 {
frame 9 {
gotoAndPlay(1);
}
}
movieClip 47 {
}
movieClip 49 {
}
movieClip 50 {
}
movieClip 52 {
}
movieClip 54 {
}
movieClip 55 {
frame 9 {
gotoAndPlay(1);
}
}
movieClip 71 {
frame 60 {
gotoAndPlay(1);
}
}
movieClip 72 {
}
movieClip 75 {
}
movieClip 76 {
}
movieClip 78 {
}
movieClip 80 {
}
movieClip 82 {
}
movieClip 85 {
}
movieClip 87 {
frame 165 {
gotoAndPlay(20);
}
}
frame 311 {
ifFrameLoaded (188) {
gotoAndPlay(334);
}
}
frame 318 {
gotoAndPlay(192);
}
movieClip 101 {
frame 61 {
gotoAndPlay(1);
}
}
frame 334 {
stop();
}
movieClip 105 {
}
movieClip 109 {
}
button 112 {
on (release, keyPress '<Enter>') {
play();
}
}
frame 350 {
stop();
/:lives = 3;
/:score = 0;
}
movieClip 117 {
}
button 120 {
on (release, keyPress '*') {
/:type = 5;
gotoAndPlay(357);
}
}
button 124 {
on (release, keyPress '-') {
/:type = 3;
gotoAndPlay(357);
}
}
button 128 {
on (release, keyPress '+') {
/:type = 2;
gotoAndPlay(357);
}
}
button 132 {
on (release, keyPress '/') {
/:type = 4;
gotoAndPlay(357);
}
}
frame 357 {
if (/:lives == 3) {
loadMovieNum('background_sound.swf', 2);
tellTarget ('riley_lives') {
gotoAndStop(3);
}
}
if (/:lives == 2) {
tellTarget ('riley_lives') {
gotoAndStop(2);
}
}
if (/:lives == 1) {
tellTarget ('riley_lives') {
gotoAndStop(1);
}
}
if (/:type == 2) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) + Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 3) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = int(random(13));
/:s2 = int(random(13));
/:x = Number(/:s1) + Number(/:s2);
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 4) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = 0;
while (/:s1 == 0) {
/:s1 = int(random(13));
}
/:s2 = int(random(13));
/:x = /:s1 * /:s2;
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 5) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) * Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
}
}
}
}
}
frame 357 {
stop();
}
movieClip 134 {
}
movieClip 136 {
}
movieClip 138 {
}
movieClip 140 {
}
movieClip 142 {
}
movieClip 144 {
}
movieClip 146 {
}
movieClip 148 {
}
instance fg of movieClip 148 {
onClipEvent (enterFrame) {
_root.status = this.hitTest(_root.riley);
}
}
movieClip 151 {
}
movieClip 153 {
}
movieClip 156 {
}
movieClip 158 {
frame 61 {
gotoAndPlay(1);
}
}
movieClip 161 {
frame 6 {
stop();
tellTarget ('/riley') {
gotoAndPlay('stand');
}
}
}
movieClip 162 {
}
movieClip 164 {
}
movieClip 166 {
}
movieClip 167 {
frame 8 {
stop();
tellTarget ('/riley') {
gotoAndPlay('stand');
}
}
}
movieClip 170 {
frame 13 {
stop();
tellTarget ('/riley') {
gotoAndPlay('stand');
}
}
}
movieClip 171 {
}
movieClip 172 {
}
movieClip 173 {
frame 10 {
stop();
tellTarget ('/riley') {
gotoAndPlay('stand');
}
}
}
movieClip 175 {
}
movieClip 177 {
}
movieClip 178 {
frame 1 {
stop();
}
}
movieClip 183 {
frame 6 {
gotoAndPlay(1);
}
}
movieClip 187 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin1 of movieClip 187 {
onClipEvent (enterFrame) {
_root.statuscoin1 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin1 eq 'true') {
/:score += 100;
tellTarget ('/coin1') {
gotoAndPlay('sound');
}
}
}
}
movieClip 188 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin3 of movieClip 188 {
onClipEvent (enterFrame) {
_root.statuscoin3 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin3 eq 'true') {
/:score += 100;
tellTarget ('/coin3') {
gotoAndPlay('sound');
}
}
}
}
movieClip 189 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin2 of movieClip 189 {
onClipEvent (enterFrame) {
_root.statuscoin2 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin2 eq 'true') {
/:score += 100;
tellTarget ('/coin2') {
gotoAndPlay('sound');
}
}
}
}
movieClip 190 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin4 of movieClip 190 {
onClipEvent (enterFrame) {
_root.statuscoin4 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin4 eq 'true') {
/:score += 100;
tellTarget ('/coin4') {
gotoAndPlay('sound');
}
}
}
}
movieClip 191 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin5 of movieClip 191 {
onClipEvent (enterFrame) {
_root.statuscoin5 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin5 eq 'true') {
/:score += 100;
tellTarget ('/coin5') {
gotoAndPlay('sound');
}
}
}
}
button 193 {
on (keyPress '<Right>') {
tellTarget ('/riley') {
gotoAndPlay('run');
}
if (/:z == /:a) {
/:riley_x += 20;
/riley._x = /:riley_x;
if (/:riley_x >= 320 and /riley._y >= 300) {
/:riley_x = 320;
}
if (/:riley_x >= 585) {
gotoAndPlay(364);
/riley._x = 40;
/riley._y = 204;
/:riley_x = 40;
/:counter = 0;
}
}
}
on (keyPress '<Left>') {
tellTarget ('/riley') {
gotoAndPlay('run_left');
}
/:riley_x -= 20;
/riley._x = /:riley_x;
if (40 >= /:riley_x) {
/:riley_x = 40;
}
if (/:riley_x < 383 and 300 >= /riley._y) {
/riley._y = 303;
}
}
on (keyPress '<Space>') {
tellTarget ('/riley') {
gotoAndPlay('jump');
}
if (_root.status eq 'true' and /:riley_x < 445) {
tellTarget ('/riley') {
gotoAndPlay('jump_ledge');
/:riley_x = 445;
/riley._x = 445;
/riley._y = 204;
}
}
}
}
movieClip 195 {
}
movieClip 197 {
}
movieClip 199 {
}
movieClip 201 {
}
movieClip 203 {
}
movieClip 205 {
}
movieClip 206 {
}
movieClip 207 {
}
movieClip 208 {
}
movieClip 211 {
frame 1 {
stop();
}
}
movieClip 212 {
}
movieClip 214 {
frame 1 {
stop();
}
}
movieClip 221 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 223 {
}
button 227 {
on (release, keyPress '<Enter>') {
/:counter += 1;
if (Number(/:z) == Number(/:a)) {
while (/:counter == 1) {
/:score += 1000;
/:counter += 1;
if (/:lives == 3) {
tellTarget ('riley_lives') {
gotoAndStop(3);
}
}
if (/:lives == 2) {
tellTarget ('riley_lives') {
gotoAndStop(2);
}
}
if (/:lives == 1) {
tellTarget ('riley_lives') {
gotoAndStop(1);
}
}
}
tellTarget ('operand') {
gotoAndPlay('smoke_poof');
}
tellTarget ('num1') {
gotoAndStop(1);
}
tellTarget ('num2') {
gotoAndStop(1);
}
} else {
/:lives -= 1;
tellTarget ('/riley') {
gotoAndPlay('riley_poof');
/:z = '';
if (/:lives == 3) {
}
tellTarget ('riley_lives') {
gotoAndStop(3);
}
tellTarget ('_target') {
}
if (/:lives == 2) {
}
tellTarget ('riley_lives') {
gotoAndStop(2);
}
tellTarget ('_target') {
}
if (/:lives == 1) {
}
tellTarget ('riley_lives') {
gotoAndStop(1);
}
tellTarget ('_target') {
}
}
if (0 >= /:lives) {
gotoAndPlay(454);
}
}
}
}
movieClip 230 {
}
movieClip 233 {
}
button 238 {
on (release, keyPress '?') {
gotoAndPlay(10);
}
}
button 248 {
on (release) {
gotoAndStop(36);
}
}
button 252 {
on (release) {
gotoAndPlay(37);
}
}
movieClip 255 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
movieClip 256 {
}
movieClip 257 {
}
movieClip 258 {
}
button 259 {
on (release) {
gotoAndStop(29);
}
}
movieClip 263 {
frame 6 {
gotoAndPlay(1);
}
}
movieClip 264 {
frame 1 {
stop();
}
frame 29 {
stop();
}
frame 36 {
stop();
}
frame 66 {
stop();
}
}
button 270 {
on (release) {
gotoAndPlay(37);
}
}
movieClip 272 {
frame 1 {
stop();
}
frame 24 {
Score = /:score;
Name = /:Name;
loadVariables('http://www.kidscom.com/cgi-bin/mathgame/score.pl', '');
}
frame 29 {
stop();
}
frame 29 {
if (Number(eof) == Number('true')) {
eof = '';
stop();
}
}
frame 36 {
stop();
}
frame 66 {
stop();
}
}
button 278 {
on (release) {
/:link = int(random(4));
if (/:link == 0) {
getURL('http://www.kidscom.com/adventure/specandtra/specandtra_flash.html', '_blank');
}
if (/:link == 1) {
getURL('http://www.kidscom.com/cgi-bin/geekgadgets/board.pl', '_blank');
}
if (/:link == 2) {
getURL('http://www.kidscom.com/chat/wdyt/think.html', '_blank');
}
if (/:link == 3) {
getURL('http://www.kidscom.com/games/candy/candy_flash.html', '_blank');
}
if (/:link == 4) {
getURL('http://www.kidscom.com/games/rileyrace/rileyrace_flash.html', '_blank');
}
}
}
button 282 {
on (release) {
high_scores._visible = true;
directions._visible = false;
tellTarget ('_root.help.high_scores') {
gotoAndPlay('open');
}
}
}
button 286 {
on (release) {
high_scores._visible = false;
directions._visible = true;
tellTarget ('_root.help.directions') {
gotoAndPlay('open');
}
}
}
button 287 {
on (release) {
gotoAndPlay(31);
}
}
movieClip 289 {
frame 1 {
stop();
}
frame 30 {
stop();
}
}
movieClip 291 {
frame 6 {
gotoAndPlay(1);
}
}
movieClip 293 {
frame 475 {
stop();
}
frame 476 {
stop();
}
}
instance saxdrop of movieClip 293 {
onClipEvent (enterFrame) {
_root.statussaxdrop = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statussaxdrop eq 'true') {
/:score += 2500;
tellTarget ('/saxdrop') {
gotoAndPlay('sound');
}
stopAllSounds();
loadMovieNum('riley_boogie.swf', 2);
}
}
}
frame 364 {
if (/:lives == 3) {
tellTarget ('riley_lives') {
gotoAndStop(3);
}
}
if (/:lives == 2) {
tellTarget ('riley_lives') {
gotoAndStop(2);
}
}
if (/:lives == 1) {
tellTarget ('riley_lives') {
gotoAndStop(1);
}
}
if (/:type == 2) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) + Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 3) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = int(random(13));
/:s2 = int(random(13));
/:x = Number(/:s1) + Number(/:s2);
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 4) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = 0;
while (/:s1 == 0) {
/:s1 = int(random(13));
}
/:s2 = int(random(13));
/:x = /:s1 * /:s2;
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 5) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) * Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
}
}
}
}
}
frame 364 {
stop();
}
movieClip 295 {
}
movieClip 297 {
}
movieClip 299 {
}
movieClip 301 {
}
movieClip 303 {
}
movieClip 305 {
}
movieClip 306 {
}
movieClip 307 {
}
movieClip 308 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin11 of movieClip 308 {
onClipEvent (enterFrame) {
_root.statuscoin11 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin11 eq 'true') {
/:score += 100;
tellTarget ('/coin11') {
gotoAndPlay('sound');
}
}
}
}
movieClip 309 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin12 of movieClip 309 {
onClipEvent (enterFrame) {
_root.statuscoin12 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin12 eq 'true') {
/:score += 100;
tellTarget ('/coin12') {
gotoAndPlay('sound');
}
}
}
}
movieClip 310 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin17 of movieClip 310 {
onClipEvent (enterFrame) {
_root.statuscoin17 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin17 eq 'true') {
/:score += 100;
tellTarget ('/coin17') {
gotoAndPlay('sound');
}
}
}
}
movieClip 311 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin18 of movieClip 311 {
onClipEvent (enterFrame) {
_root.statuscoin18 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin18 eq 'true') {
/:score += 100;
tellTarget ('/coin18') {
gotoAndPlay('sound');
}
}
}
}
button 312 {
on (keyPress '<Right>') {
tellTarget ('/riley') {
gotoAndPlay('run');
}
if (/:z == /:a) {
/:riley_x += 20;
/riley._x = /:riley_x;
if (/:riley_x >= 320 and /riley._y >= 300) {
/:riley_x = 320;
}
if (/:riley_x >= 585) {
gotoAndPlay(374);
/riley._x = 40;
/:riley_x = 40;
/:counter = 0;
}
}
}
on (keyPress '<Left>') {
tellTarget ('/riley') {
gotoAndPlay('run_left');
}
/:riley_x -= 20;
/riley._x = /:riley_x;
if (40 >= /:riley_x) {
/:riley_x = 40;
}
}
on (keyPress '<Space>') {
tellTarget ('/riley') {
gotoAndPlay('jump');
}
}
}
frame 374 {
if (/:type == 2) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) + Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 3) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = int(random(13));
/:s2 = int(random(13));
/:x = Number(/:s1) + Number(/:s2);
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 4) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = 0;
while (/:s1 == 0) {
/:s1 = int(random(13));
}
/:s2 = int(random(13));
/:x = /:s1 * /:s2;
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 5) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) * Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
}
}
}
}
}
frame 374 {
stop();
}
movieClip 313 {
}
movieClip 315 {
}
movieClip 316 {
}
button 317 {
on (keyPress '<Right>') {
tellTarget ('/riley') {
gotoAndPlay('run');
}
if (/:z == /:a) {
/:riley_x += 20;
/riley._x = /:riley_x;
if (/:riley_x >= 320 and 340 >= /:riley_x and /riley._y >= 300) {
/:riley_x = 320;
}
if (470 < /:riley_x) {
/riley._y = 303;
}
if (/:riley_x >= 585) {
gotoAndPlay(384);
/riley._x = 40;
/:riley_x = 40;
/:counter = 0;
}
if (/:riley_x >= 240 and 320 >= /:riley_x and 300 >= /riley._y or /:riley_x >= 510 and 585 >= /:riley_x and 300 >= /riley._y) {
/riley._y = 303;
}
}
}
on (keyPress '<Left>') {
tellTarget ('/riley') {
gotoAndPlay('run_left');
}
/:riley_x -= 20;
/riley._x = /:riley_x;
if (/:riley_x >= 510 and 540 >= /:riley_x and /riley._y >= 300) {
/:riley_x = 510;
}
if (/:riley_x < 400 and 240 < /:riley_x) {
/riley._y = 303;
}
if (40 >= /:riley_x) {
/:riley_x = 40;
}
}
on (keyPress '<Space>') {
tellTarget ('/riley') {
gotoAndPlay('jump');
}
if (_root.statusbarrel eq 'true' and 320 >= /:riley_x) {
tellTarget ('/riley') {
gotoAndPlay('jump_ledge');
/:riley_x = 510;
/riley._x = 445;
/riley._y = 204;
}
}
}
}
movieClip 318 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin21 of movieClip 318 {
onClipEvent (enterFrame) {
_root.statuscoin21 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin21 eq 'true') {
/:score += 100;
tellTarget ('/coin21') {
gotoAndPlay('sound');
}
}
}
}
movieClip 319 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin24 of movieClip 319 {
onClipEvent (enterFrame) {
_root.statuscoin24 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin24 eq 'true') {
/:score += 100;
tellTarget ('/coin24') {
gotoAndPlay('sound');
}
}
}
}
movieClip 320 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin22 of movieClip 320 {
onClipEvent (enterFrame) {
_root.statuscoin22 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin22 eq 'true') {
/:score += 100;
tellTarget ('/coin22') {
gotoAndPlay('sound');
}
}
}
}
movieClip 321 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin23 of movieClip 321 {
onClipEvent (enterFrame) {
_root.statuscoin23 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin23 eq 'true') {
/:score += 100;
tellTarget ('/coin23') {
gotoAndPlay('sound');
}
}
}
}
movieClip 322 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin25 of movieClip 322 {
onClipEvent (enterFrame) {
_root.statuscoin25 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin25 eq 'true') {
/:score += 100;
tellTarget ('/coin25') {
gotoAndPlay('sound');
}
}
}
}
movieClip 323 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin26 of movieClip 323 {
onClipEvent (enterFrame) {
_root.statuscoin26 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin26 eq 'true') {
/:score += 100;
tellTarget ('/coin26') {
gotoAndPlay('sound');
}
}
}
}
movieClip 325 {
}
instance barrel of movieClip 325 {
onClipEvent (enterFrame) {
_root.statusbarrel = this.hitTest(_root.riley);
}
}
frame 384 {
if (/:type == 2) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) + Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 3) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = int(random(13));
/:s2 = int(random(13));
/:x = Number(/:s1) + Number(/:s2);
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 4) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = 0;
while (/:s1 == 0) {
/:s1 = int(random(13));
}
/:s2 = int(random(13));
/:x = /:s1 * /:s2;
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 5) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) * Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
}
}
}
}
}
frame 384 {
stop();
if (_root.statuscoin eq 'true') {
/coin1._visible = false;
}
}
movieClip 326 {
}
movieClip 327 {
}
movieClip 329 {
}
button 330 {
on (keyPress '<Right>') {
tellTarget ('/riley') {
gotoAndPlay('run');
}
if (/:z == /:a) {
/:riley_x += 20;
/riley._x = /:riley_x;
if (/:riley_x >= 200 and 455 >= /:riley_x and /riley._y >= 300) {
/:riley_x = 200;
}
if (445 < /:riley_x) {
/riley._y = 303;
}
if (/:riley_x >= 585) {
gotoAndPlay(394);
/riley._x = 40;
/:riley_x = 40;
/:counter = 0;
}
if (/:riley_x >= 240 and 300 >= /riley._y) {
/riley._y = 303;
}
}
}
on (keyPress '<Left>') {
tellTarget ('/riley') {
gotoAndPlay('run_left');
}
/:riley_x -= 20;
/riley._x = /:riley_x;
if (40 >= /:riley_x) {
/:riley_x = 40;
}
if (/:riley_x >= 460 and 585 >= /:riley_x and /riley._y >= 300) {
/:riley_x = 460;
}
}
on (keyPress '<Space>') {
tellTarget ('/riley') {
gotoAndPlay('jump');
}
if (_root.statusrock eq 'true') {
tellTarget ('/riley') {
gotoAndPlay('jump_rock');
/:riley_x = 460;
/riley._x = 460;
/riley._y = 303;
}
}
}
}
movieClip 331 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin29 of movieClip 331 {
onClipEvent (enterFrame) {
_root.statuscoin29 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin29 eq 'true') {
/:score += 100;
tellTarget ('/coin29') {
gotoAndPlay('sound');
}
}
}
}
movieClip 332 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin28 of movieClip 332 {
onClipEvent (enterFrame) {
_root.statuscoin28 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin28 eq 'true') {
/:score += 100;
tellTarget ('/coin28') {
gotoAndPlay('sound');
}
}
}
}
movieClip 333 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin31 of movieClip 333 {
onClipEvent (enterFrame) {
_root.statuscoin31 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin31 eq 'true') {
/:score += 100;
tellTarget ('/coin31') {
gotoAndPlay('sound');
}
}
}
}
movieClip 334 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin30 of movieClip 334 {
onClipEvent (enterFrame) {
_root.statuscoin30 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin30 eq 'true') {
/:score += 100;
tellTarget ('/coin30') {
gotoAndPlay('sound');
}
}
}
}
movieClip 335 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin27 of movieClip 335 {
onClipEvent (enterFrame) {
_root.statuscoin27 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin27 eq 'true') {
/:score += 100;
tellTarget ('/coin27') {
gotoAndPlay('sound');
}
}
}
}
movieClip 337 {
}
movieClip 338 {
}
instance of movieClip 338 {
onClipEvent (enterFrame) {
_root.statusrock = this.hitTest(_root.riley);
}
}
frame 394 {
if (/:type == 2) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) + Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 3) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = int(random(13));
/:s2 = int(random(13));
/:x = Number(/:s1) + Number(/:s2);
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 4) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = 0;
while (/:s1 == 0) {
/:s1 = int(random(13));
}
/:s2 = int(random(13));
/:x = /:s1 * /:s2;
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 5) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) * Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
}
}
}
}
}
frame 394 {
stop();
}
movieClip 339 {
}
instance fg of movieClip 148 {
onClipEvent (enterFrame) {
_root.status = this.hitTest(_root.riley);
}
}
button 341 {
on (keyPress '<Right>') {
tellTarget ('/riley') {
gotoAndPlay('run');
}
if (/:z == /:a) {
/:riley_x += 20;
/riley._x = /:riley_x;
if (/:riley_x >= 320 and /riley._y >= 300) {
/:riley_x = 320;
}
if (/:riley_x >= 585) {
gotoAndPlay(404);
/riley._x = 40;
/:riley_x = 40;
/:counter = 0;
}
}
}
on (keyPress '<Left>') {
tellTarget ('/riley') {
gotoAndPlay('run_left');
}
/:riley_x -= 20;
/riley._x = /:riley_x;
if (40 >= /:riley_x) {
/:riley_x = 40;
}
if (/:riley_x < 383 and 300 >= /riley._y) {
/riley._y = 303;
}
}
on (keyPress '<Space>') {
tellTarget ('/riley') {
gotoAndPlay('jump');
}
if (_root.status eq 'true' and /:riley_x < 445) {
tellTarget ('/riley') {
gotoAndPlay('jump_ledge');
/:riley_x = 445;
/riley._x = 445;
/riley._y = 204;
}
}
}
}
instance coin2 of movieClip 189 {
onClipEvent (enterFrame) {
_root.statuscoin2 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin2 eq 'true') {
/:score += 100;
tellTarget ('/coin2') {
gotoAndPlay('sound');
}
}
}
}
instance coin4 of movieClip 190 {
onClipEvent (enterFrame) {
_root.statuscoin4 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin4 eq 'true') {
/:score += 100;
tellTarget ('/coin4') {
gotoAndPlay('sound');
}
}
}
}
frame 404 {
if (/:type == 2) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) + Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 3) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = int(random(13));
/:s2 = int(random(13));
/:x = Number(/:s1) + Number(/:s2);
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 4) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = 0;
while (/:s1 == 0) {
/:s1 = int(random(13));
}
/:s2 = int(random(13));
/:x = /:s1 * /:s2;
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 5) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) * Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
}
}
}
}
}
frame 404 {
stop();
}
button 342 {
on (keyPress '<Right>') {
tellTarget ('/riley') {
gotoAndPlay('run');
}
if (/:z == /:a) {
/:riley_x += 20;
/riley._x = /:riley_x;
if (/:riley_x >= 320 and /riley._y >= 300) {
/:riley_x = 320;
}
if (/:riley_x >= 585) {
gotoAndPlay(414);
/riley._x = 40;
/:riley_x = 40;
/:counter = 0;
}
}
}
on (keyPress '<Left>') {
tellTarget ('/riley') {
gotoAndPlay('run_left');
}
/:riley_x -= 20;
/riley._x = /:riley_x;
if (40 >= /:riley_x) {
/:riley_x = 40;
}
}
on (keyPress '<Space>') {
tellTarget ('/riley') {
gotoAndPlay('jump');
}
}
}
movieClip 343 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin8 of movieClip 343 {
onClipEvent (enterFrame) {
_root.statuscoin8 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin8 eq 'true') {
/:score += 100;
tellTarget ('/coin8') {
gotoAndPlay('sound');
}
}
}
}
movieClip 344 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin10 of movieClip 344 {
onClipEvent (enterFrame) {
_root.statuscoin10 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin10 eq 'true') {
/:score += 100;
tellTarget ('/coin10') {
gotoAndPlay('sound');
}
}
}
}
movieClip 345 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin9 of movieClip 345 {
onClipEvent (enterFrame) {
_root.statuscoin9 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin9 eq 'true') {
/:score += 100;
tellTarget ('/coin9') {
gotoAndPlay('sound');
}
}
}
}
instance coin11 of movieClip 308 {
onClipEvent (enterFrame) {
_root.statuscoin11 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin11 eq 'true') {
/:score += 100;
tellTarget ('/coin11') {
gotoAndPlay('sound');
}
}
}
}
instance coin12 of movieClip 309 {
onClipEvent (enterFrame) {
_root.statuscoin12 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin12 eq 'true') {
/:score += 100;
tellTarget ('/coin12') {
gotoAndPlay('sound');
}
}
}
}
instance coin17 of movieClip 310 {
onClipEvent (enterFrame) {
_root.statuscoin17 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin17 eq 'true') {
/:score += 100;
tellTarget ('/coin17') {
gotoAndPlay('sound');
}
}
}
}
instance coin18 of movieClip 311 {
onClipEvent (enterFrame) {
_root.statuscoin18 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin18 eq 'true') {
/:score += 100;
tellTarget ('/coin18') {
gotoAndPlay('sound');
}
}
}
}
instance barrel of movieClip 325 {
onClipEvent (enterFrame) {
_root.statusbarrel = this.hitTest(_root.riley);
}
}
frame 414 {
if (/:type == 2) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) + Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 3) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = int(random(13));
/:s2 = int(random(13));
/:x = Number(/:s1) + Number(/:s2);
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 4) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = 0;
while (/:s1 == 0) {
/:s1 = int(random(13));
}
/:s2 = int(random(13));
/:x = /:s1 * /:s2;
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 5) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) * Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
}
}
}
}
}
frame 414 {
stop();
}
button 346 {
on (keyPress '<Right>') {
tellTarget ('/riley') {
gotoAndPlay('run');
}
if (/:z == /:a) {
/:riley_x += 20;
/riley._x = /:riley_x;
if (/:riley_x >= 320 and 340 >= /:riley_x and /riley._y >= 300) {
/:riley_x = 320;
}
if (470 < /:riley_x) {
/riley._y = 303;
}
if (/:riley_x >= 585) {
gotoAndPlay(424);
/riley._x = 40;
/:riley_x = 40;
/:counter = 0;
}
if (/:riley_x >= 240 and 320 >= /:riley_x and 300 >= /riley._y or /:riley_x >= 510 and 585 >= /:riley_x and 300 >= /riley._y) {
/riley._y = 303;
}
}
}
on (keyPress '<Left>') {
tellTarget ('/riley') {
gotoAndPlay('run_left');
}
/:riley_x -= 20;
/riley._x = /:riley_x;
if (/:riley_x >= 510 and 540 >= /:riley_x and /riley._y >= 300) {
/:riley_x = 510;
}
if (/:riley_x < 400 and 240 < /:riley_x) {
/riley._y = 303;
}
if (40 >= /:riley_x) {
/:riley_x = 40;
}
}
on (keyPress '<Space>') {
tellTarget ('/riley') {
gotoAndPlay('jump');
}
if (_root.statusbarrel eq 'true' and 320 >= /:riley_x) {
tellTarget ('/riley') {
gotoAndPlay('jump_ledge');
/:riley_x = 510;
/riley._x = 445;
/riley._y = 204;
}
}
}
}
movieClip 347 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin19 of movieClip 347 {
onClipEvent (enterFrame) {
_root.statuscoin19 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin19 eq 'true') {
/:score += 100;
tellTarget ('/coin19') {
gotoAndPlay('sound');
}
}
}
}
movieClip 348 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin20 of movieClip 348 {
onClipEvent (enterFrame) {
_root.statuscoin20 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin20 eq 'true') {
/:score += 100;
tellTarget ('/coin20') {
gotoAndPlay('sound');
}
}
}
}
instance coin24 of movieClip 319 {
onClipEvent (enterFrame) {
_root.statuscoin24 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin24 eq 'true') {
/:score += 100;
tellTarget ('/coin24') {
gotoAndPlay('sound');
}
}
}
}
movieClip 349 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin22 of movieClip 349 {
onClipEvent (enterFrame) {
_root.statuscoin22 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin22 eq 'true') {
/:score += 500;
tellTarget ('/coin22') {
gotoAndPlay('sound');
}
}
}
}
instance coin23 of movieClip 321 {
onClipEvent (enterFrame) {
_root.statuscoin23 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin23 eq 'true') {
/:score += 100;
tellTarget ('/coin23') {
gotoAndPlay('sound');
}
}
}
}
instance coin26 of movieClip 323 {
onClipEvent (enterFrame) {
_root.statuscoin26 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin26 eq 'true') {
/:score += 100;
tellTarget ('/coin26') {
gotoAndPlay('sound');
}
}
}
}
frame 424 {
if (/:type == 2) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) + Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 3) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = int(random(13));
/:s2 = int(random(13));
/:x = Number(/:s1) + Number(/:s2);
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 4) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = 0;
while (/:s1 == 0) {
/:s1 = int(random(13));
}
/:s2 = int(random(13));
/:x = /:s1 * /:s2;
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 5) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) * Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
}
}
}
}
}
frame 424 {
stop();
if (_root.statuscoin eq 'true') {
/coin1._visible = false;
}
}
button 350 {
on (keyPress '<Right>') {
tellTarget ('/riley') {
gotoAndPlay('run');
}
if (/:z == /:a) {
/:riley_x += 20;
/riley._x = /:riley_x;
if (/:riley_x >= 200 and 455 >= /:riley_x and /riley._y >= 300) {
/:riley_x = 200;
}
if (445 < /:riley_x) {
/riley._y = 303;
}
if (/:riley_x >= 585) {
gotoAndPlay(434);
/riley._x = 40;
/:riley_x = 40;
/:counter = 0;
}
if (/:riley_x >= 240 and 300 >= /riley._y) {
/riley._y = 303;
}
}
}
on (keyPress '<Left>') {
tellTarget ('/riley') {
gotoAndPlay('run_left');
}
/:riley_x -= 20;
/riley._x = /:riley_x;
if (40 >= /:riley_x) {
/:riley_x = 40;
}
if (/:riley_x >= 460 and 585 >= /:riley_x and /riley._y >= 300) {
/:riley_x = 460;
}
}
on (keyPress '<Space>') {
tellTarget ('/riley') {
gotoAndPlay('jump');
}
if (_root.statusrock eq 'true') {
tellTarget ('/riley') {
gotoAndPlay('jump_rock');
/:riley_x = 460;
/riley._x = 460;
/riley._y = 303;
}
}
}
}
instance coin29 of movieClip 331 {
onClipEvent (enterFrame) {
_root.statuscoin29 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin29 eq 'true') {
/:score += 100;
tellTarget ('/coin29') {
gotoAndPlay('sound');
}
}
}
}
instance coin28 of movieClip 332 {
onClipEvent (enterFrame) {
_root.statuscoin28 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin28 eq 'true') {
/:score += 100;
tellTarget ('/coin28') {
gotoAndPlay('sound');
}
}
}
}
instance coin31 of movieClip 333 {
onClipEvent (enterFrame) {
_root.statuscoin31 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin31 eq 'true') {
/:score += 100;
tellTarget ('/coin31') {
gotoAndPlay('sound');
}
}
}
}
instance coin30 of movieClip 334 {
onClipEvent (enterFrame) {
_root.statuscoin30 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin30 eq 'true') {
/:score += 100;
tellTarget ('/coin30') {
gotoAndPlay('sound');
}
}
}
}
instance coin27 of movieClip 335 {
onClipEvent (enterFrame) {
_root.statuscoin27 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin27 eq 'true') {
/:score += 100;
tellTarget ('/coin27') {
gotoAndPlay('sound');
}
}
}
}
movieClip 351 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin22 of movieClip 351 {
onClipEvent (enterFrame) {
_root.statuscoin22 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin22 eq 'true') {
/:score += 1000;
tellTarget ('/coin22') {
gotoAndPlay('sound');
}
}
}
}
instance of movieClip 338 {
onClipEvent (enterFrame) {
_root.statusrock = this.hitTest(_root.riley);
}
}
frame 434 {
if (/:type == 2) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) + Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 3) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = int(random(13));
/:s2 = int(random(13));
/:x = Number(/:s1) + Number(/:s2);
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 4) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = 0;
while (/:s1 == 0) {
/:s1 = int(random(13));
}
/:s2 = int(random(13));
/:x = /:s1 * /:s2;
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 5) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) * Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
}
}
}
}
}
frame 434 {
stop();
}
instance fg of movieClip 148 {
onClipEvent (enterFrame) {
_root.status = this.hitTest(_root.riley);
}
}
button 353 {
on (keyPress '<Right>') {
tellTarget ('/riley') {
gotoAndPlay('run');
}
if (/:z == /:a) {
/:riley_x += 20;
/riley._x = /:riley_x;
if (/:riley_x >= 320 and /riley._y >= 300) {
/:riley_x = 320;
}
if (/:riley_x >= 585) {
gotoAndPlay(444);
/riley._x = 40;
/:riley_x = 40;
/:counter = 0;
}
}
}
on (keyPress '<Left>') {
tellTarget ('/riley') {
gotoAndPlay('run_left');
}
/:riley_x -= 20;
/riley._x = /:riley_x;
if (40 >= /:riley_x) {
/:riley_x = 40;
}
if (/:riley_x < 383 and 300 >= /riley._y) {
/riley._y = 303;
}
}
on (keyPress '<Space>') {
tellTarget ('/riley') {
gotoAndPlay('jump');
}
if (_root.status eq 'true' and /:riley_x < 445) {
tellTarget ('/riley') {
gotoAndPlay('jump_ledge');
/:riley_x = 445;
/riley._x = 445;
/riley._y = 204;
}
}
}
}
instance coin2 of movieClip 189 {
onClipEvent (enterFrame) {
_root.statuscoin2 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin2 eq 'true') {
/:score += 100;
tellTarget ('/coin2') {
gotoAndPlay('sound');
}
}
}
}
instance coin4 of movieClip 190 {
onClipEvent (enterFrame) {
_root.statuscoin4 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin4 eq 'true') {
/:score += 100;
tellTarget ('/coin4') {
gotoAndPlay('sound');
}
}
}
}
frame 444 {
if (/:type == 2) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) + Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 3) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = int(random(13));
/:s2 = int(random(13));
/:x = Number(/:s1) + Number(/:s2);
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 4) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:s1 = 0;
while (/:s1 == 0) {
/:s1 = int(random(13));
}
/:s2 = int(random(13));
/:x = /:s1 * /:s2;
/:y = /:s1;
/:a = /:s2;
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
} else {
if (/:type == 5) {
tellTarget ('operand') {
gotoAndStop(/:type);
}
/:x = int(random(13));
/:y = int(random(13));
/:a = Number(/:x) * Number(/:y);
/:z = '';
tellTarget ('num1') {
gotoAndStop(/:x + 2);
}
tellTarget ('num2') {
gotoAndStop(/:y + 2);
}
}
}
}
}
}
frame 444 {
stop();
}
movieClip 354 {
}
button 355 {
on (keyPress '<Right>') {
tellTarget ('/riley') {
gotoAndPlay('run');
}
if (/:z == /:a) {
/:riley_x += 20;
/riley._x = /:riley_x;
if (/:riley_x >= 320 and /riley._y >= 300) {
/:riley_x = 320;
}
if (/:riley_x >= 585) {
gotoAndPlay(454);
/riley._x = 40;
/:riley_x = 40;
/:counter = 0;
}
}
}
on (keyPress '<Left>') {
tellTarget ('/riley') {
gotoAndPlay('run_left');
}
/:riley_x -= 20;
/riley._x = /:riley_x;
if (40 >= /:riley_x) {
/:riley_x = 40;
}
}
on (keyPress '<Space>') {
tellTarget ('/riley') {
gotoAndPlay('jump');
}
}
}
movieClip 356 {
frame 6 {
stop();
}
frame 15 {
stop();
}
}
instance coin12 of movieClip 356 {
onClipEvent (enterFrame) {
_root.statuscoin12 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin12 eq 'true') {
/:score += 1000;
tellTarget ('/coin12') {
gotoAndPlay('sound');
}
}
}
}
instance coin17 of movieClip 310 {
onClipEvent (enterFrame) {
_root.statuscoin17 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin17 eq 'true') {
/:score += 100;
tellTarget ('/coin17') {
gotoAndPlay('sound');
}
}
}
}
instance coin18 of movieClip 311 {
onClipEvent (enterFrame) {
_root.statuscoin18 = this.hitTest(_root.riley);
}
onClipEvent (enterFrame) {
if (_root.statuscoin18 eq 'true') {
/:score += 100;
tellTarget ('/coin18') {
gotoAndPlay('sound');
}
}
}
}
instance of movieClip 338 {
onClipEvent (enterFrame) {
_root.statusrock = this.hitTest(_root.riley);
}
}
frame 454 {
stop();
}
movieClip 367 {
frame 230 {
gotoAndPlay(205);
}
}
movieClip 369 {
}
movieClip 370 {
frame 230 {
gotoAndPlay(205);
}
}
movieClip 381 {
frame 231 {
Score = /:score;
Name = /:Name;
loadVariables('http://www.kidscom.com/cgi-bin/mathgame/score.pl', '', 'POST');
}
frame 240 {
stop();
}
frame 240 {
if (Number(eof) == Number('true')) {
eof = '';
stop();
}
}
}
button 386 {
on (release) {
stopAllSounds();
gotoAndPlay(334);
}
}