Frame 1
protect = 1;
level0 = new Array("01P9", "07P9", "03P9", "06P9", "07P9", "04P9", "07P9", "07P9", "05P9", "07P9", "07P9", "04P9", "07P9", "07P9", "03P9", "07P9", "08P9", "00N0", "00N0", "02G4", "07G4", "05G4", "05G4", "07G4", "09G4", "00N0", "00N0", "01B0", "03B0", "07B0", "07B0", "04B0", "07B0", "07B0", "05B0", "07B0", "07B0", "04B0", "07B0", "07B0", "03B0", "07B0", "07B0", "03B0", "07B0", "07B0", "04B0", "07B0", "07B0", "05B0", "07B0", "07B0", "04B0", "07B0", "07B0", "03B0", "07B0", "07B0", "03B0", "07B0", "07B0", "04B0", "07B0", "07B0", "05B0", "07B0", "07B0", "04B0", "07B0", "07B0", "03B0", "08B0", "00N0", "00N0", "02G4", "07G4", "05G4", "05G4", "07G4", "09G4", "00N0", "00N0", "01P9", "07P9", "03P9", "07P9", "07P9", "04P9", "07P9", "07P9", "05P9", "07P9", "07P9", "04P9", "07P9", "07P9", "03P9", "07P9", "08P9", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01R5", "07R5", "07R5", "06R5", "07R5", "07R5", "07R5", "09R5", "00N0", "00N0", "00N0", "00N0", "02G0", "07G0", "05G0", "05G0", "07G0", "08G0", "00N0", "00N0", "00N0", "02R9", "07R9", "07R9", "07R9", "11R9");
music = 1;
Set("/code:lvlholder", 0);
body = new Array(1, 1, 1);
level1 = new Array("00N0", "02Y0", "03Y0", "06Y0", "07Y0", "07Y0", "04Y0", "09Y0", "00N0", "00N0", "02P3", "03P3", "05P3", "07P3", "05P3", "03P3", "08P3", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01B5", "03B5", "07B5", "04B5", "07B5", "03B5", "09B5", "00N0", "00N0", "02R4", "04R4", "09R4", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01P2", "03P2", "09P2", "00N0", "02G0", "05G0", "07G0", "04G0", "07G0", "05G0", "07G0", "03G0", "08G0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "02Y9", "03Y9", "07Y9", "05Y9", "06Y9", "04Y9", "09Y9", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01R0", "04R0", "07R0", "03R0", "06R0", "05R0", "07R0", "04R0", "08R0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "02Y0", "04Y0", "03Y0", "04Y0", "04Y0", "03Y0", "04Y0", "09Y0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01B0", "05B0", "11B0");
level2 = new Array("00N0", "00N0", "02B9", "06B9", "03B9", "07B9", "07B9", "03B9", "07B9", "07B9", "05B9", "07B9", "07B9", "03B9", "07B9", "07B9", "03B9", "07B9", "07B9", "05B9", "07B9", "07B9", "03B9", "07B9", "07B9", "03B9", "07B9", "07B9", "04B9", "07B9", "08B9", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "02R3", "07R3", "03R3", "07R3", "03R3", "05R3", "03R3", "07R3", "03R3", "08R3", "00N0", "00N0", "00N0", "00N0", "02Y0", "05Y0", "09Y0", "00N0", "00N0", "00N0", "02P0", "05P0", "09P0", "00N0", "00N0", "00N0", "00N0", "00N0", "02B1", "07B1", "03B1", "07B1", "07B1", "03B1", "07B1", "07B1", "03B1", "07B1", "08B1", "00N0", "00N0", "01Y3", "03Y3", "09Y3", "00N0", "00N0", "00N0", "01G5", "05G5", "09G5", "00N0", "00N0", "00N0", "01P7", "04P7", "09P7", "00N0", "00N0", "00N0", "00N0", "02B9", "07B9", "05B9", "07B9", "07B9", "04B9", "07B9", "07B9", "05B9", "07B9", "07B9", "04B9", "07B9", "09B9", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "02Y0", "05Y0", "07Y0", "07Y0", "08Y0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "02R9", "09R9", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01P0", "05P0", "07P0", "05P0", "07P0", "05P0", "11P0");
level3 = new Array("00N0", "01B0", "03B0", "06B0", "04B0", "07B0", "05B0", "07B0", "04B0", "07B0", "03B0", "08B0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "02R5", "07R5", "07R5", "04R5", "04R5", "07R5", "07R5", "08R5", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01P9", "04P9", "07P9", "07P9", "07P9", "05P9", "07P9", "07P9", "07P9", "03P9", "07P9", "07P9", "07P9", "05P9", "07P9", "06P9", "07P9", "04P9", "08P9", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01G5", "03G5", "07G5", "07G5", "07G5", "07G5", "03G5", "09G5", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01Y0", "07Y0", "05Y0", "05Y0", "07Y0", "06Y0", "07Y0", "05Y0", "05Y0", "07Y0", "08Y0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "02G0", "04G0", "03G0", "07G0", "11G0");
level4 = new Array("00N0", "00N0", "01R9", "03R9", "07R9", "07R9", "03R9", "07R9", "07R9", "07R9", "04R9", "06R9", "07R9", "07R9", "03R9", "07R9", "05R9", "08R9", "00N0", "00N0", "00N0", "00N0", "01B4", "07B4", "03B4", "07B4", "07B4", "07B4", "07B4", "07B4", "05B4", "07B4", "07B4", "07B4", "04B4", "07B4", "07B4", "07B4", "03B4", "07B4", "07B4", "07B4", "07B4", "07B4", "07B4", "03B4", "07B4", "07B4", "03B4", "07B4", "08B4", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01R5", "07R5", "07R5", "07R5", "03R5", "07R5", "07R5", "07R5", "04R5", "07R5", "07R5", "03R5", "07R5", "07R5", "06R5", "04R5", "07R5", "08R5", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "02G9", "04G9", "07G9", "07G9", "07G9", "03G9", "07G9", "07G9", "07G9", "04G9", "07G9", "07G9", "07G9", "07G9", "04G9", "07G9", "07G9", "07G9", "04G9", "07G9", "07G9", "06G9", "07G9", "05G9", "07G9", "07G9", "07G9", "09G9", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01R0", "07R0", "07R0", "03R0", "07R0", "07R0", "07R0", "03R0", "07R0", "07R0", "07R0", "06R0", "07R0", "07R0", "07R0", "05R0", "07R0", "07R0", "07R0", "03R0", "08R0", "00N0", "00N0", "00N0", "00N0", "00N0", "02R9", "06R9", "09R9", "00N0", "00N0", "00N0", "02R5", "07R5", "07R5", "03R5", "07R5", "07R5", "06R5", "07R5", "07R5", "04R5", "07R5", "07R5", "07R5", "07R5", "07R5", "07R5", "05R5", "07R5", "07R5", "08R5", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01B9", "05B9", "07B9", "07B9", "07B9", "07B9", "04B9", "07B9", "06B9", "07B9", "07B9", "07B9", "03B9", "09B9", "00N0", "00N0", "00N0", "01G2", "07G2", "04G2", "07G2", "07G2", "07G2", "07G2", "03G2", "07G2", "07G2", "06G2", "07G2", "07G2", "05G2", "07G2", "09G2", "00N0", "00N0", "00N0", "00N0", "02R7", "06R7", "07R7", "03R7", "07R7", "07R7", "07R7", "07R7", "07R7", "07R7", "07R7", "04R7", "07R7", "07R7", "07R7", "07R7", "07R7", "07R7", "05R7", "08R7", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01G9", "07G9", "07G9", "07G9", "04G9", "07G9", "07G9", "07G9", "03G9", "07G9", "07G9", "07G9", "07G9", "03G9", "07G9", "07G9", "07G9", "07G9", "04G9", "07G9", "07G9", "05G9", "07G9", "07G9", "04G9", "07G9", "06G9", "07G9", "07G9", "03G9", "07G9", "07G9", "07G9", "07G9", "07G9", "04G9", "07G9", "07G9", "07G9", "05G9", "07G9", "07G9", "07G9", "07G9", "07G9", "07G9", "07G9", "03G9", "07G9", "07G9", "07G9", "07G9", "07G9", "06G9", "07G9", "08G9", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01R0", "06R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "07R0", "08R0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01B5", "07B5", "06B5", "07B5", "07B5", "07B5", "07B5", "07B5", "07B5", "07B5", "11B5");
level5 = new Array("01B9", "07B9", "07B9", "06B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "08B9", "00N0", "00N0", "02B0", "09B0", "00N0", "00N0", "01B9", "05B9", "05B9", "08B9", "00N0", "00N0", "00N0", "02B0", "09B0", "00N0", "00N0", "00N0", "01B9", "05B9", "05B9", "08B9", "00N0", "00N0", "00N0", "00N0", "02B0", "09B0", "00N0", "00N0", "00N0", "00N0", "00N0", "01B9", "05B9", "05B9", "08B9", "00N0", "00N0", "00N0", "00N0", "00N0", "02B0", "09B0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01B9", "05B9", "05B9", "08B9", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "02B0", "09B0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "08B9", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01B0", "05B0", "05B0", "05B0", "05B0", "05B0", "05B0", "05B0", "05B0", "05B0", "08B0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "07B9", "08B9", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01B0", "05B0", "05B0", "05B0", "05B0", "05B0", "05B0", "05B0", "08B0", "00N0", "00N0", "02B3", "09B3", "00N0", "02B6", "09B6", "00N0", "02B9", "09B9", "00N0", "02B6", "09B6", "00N0", "02B3", "09B3", "00N0", "02B0", "09B0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "01B0", "05B0", "05B0", "05B0", "05B0", "05B0", "05B0", "05B0", "08B0", "00N0", "00N0", "02B3", "09B3", "00N0", "02B6", "09B6", "00N0", "02B9", "09B9", "00N0", "02B6", "09B6", "00N0", "02B3", "09B3", "00N0", "02B0", "09B0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "02B0", "07B0", "07B0", "07B0", "07B0", "07B0", "08B0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "00N0", "02B9", "11B9");
Symbol 4 MovieClip Frame 1
function drawtile(number, i) {
if ((i < 0) || (/:level[i] == "00N0")) {
gotoAndStop((("/tile" + number) + ":") + 10);
} else if (i >= /:level.length) {
gotoAndStop((("/tile" + number) + ":") + 7);
gotoAndStop((("/tile" + number) + "/building:") + (substring(/:level[/:level.length - 1], 3, 1)));
setProperty("/tile" + number, _y , 550 - ((substring(/:level[/:level.length - 1], 4, 1)) * 10));
} else {
gotoAndStop((("/tile" + number) + ":") + (substring(/:level[i], 1, 2)));
gotoAndStop((("/tile" + number) + "/building:") + (substring(/:level[i], 3, 1)));
setProperty("/tile" + number, _y , 550 - ((substring(/:level[i], 4, 1)) * 10));
}
Set(("/tile" + number) + ":number", i);
}
function tileloop(i) {
value = i + firsttile;
if (8 < value) {
value = value - 9;
} else if (value < 0) {
value = value + 9;
}
return(value);
}
function fallsound() {
if (20 < Math.abs(speed)) {
tellTarget ("/sound") {
gotoAndPlay ("fall2");
};
} else {
tellTarget ("/sound") {
gotoAndPlay ("fall1");
};
}
}
function grindCheck(i) {
if (((22 < (substring(/:level[i], 1, 2))) && (vertoffset == 70)) || (((19 < (substring(/:level[i], 1, 2))) && ((substring(/:level[i], 1, 2)) < 23)) && (vertoffset == 30))) {
return(1);
}
return(0);
}
function setland(i) {
setProperty("/shadow", _visible , 1);
if ((/:level[i] == "00N0") || (i < 0)) {
land = 370;
setProperty("/shadow", _visible , 0);
} else if (i >= /:level.length) {
land = 260 - ((substring(/:level[/:level.length - 1], 4, 1)) * 10);
} else if ((substring(/:level[i], 1, 2)) == 13) {
land = 240 - ((substring(/:level[i], 4, 1)) * 10);
} else if (grindCheck(i)) {
land = 230 - ((substring(/:level[i], 4, 1)) * 10);
} else {
land = 260 - ((substring(/:level[i], 4, 1)) * 10);
}
setProperty("/shadow", _y , (land + vertoffset) + 46);
if ((skatey < (land + vertoffset)) && (1 < state)) {
if (state == 20) {
state = 30;
gotoAndStop("/skater:30");
} else if (state < 4) {
state = 1;
vert = 0;
}
tellTarget ("/marker") {
gotoAndStop (1);
};
}
if (state == 1) {
if (((0 < speed) && (((substring(/:level[tile], 1, 2)) == 1) || ((substring(/:level[tile], 1, 2)) == 2))) && (BH == "")) {
BH = "F";
} else if (((0 < speed) && (((substring(/:level[tile], 1, 2)) == 8) || ((substring(/:level[tile], 1, 2)) == 9))) && (BH == "F")) {
BH = "B";
} else if (((0 < speed) && ((substring(/:level[tile], 1, 2)) == 0)) && (BH == "B")) {
BH = "";
scoreArr[scoreArr.length] = "Building Hop!";
tempscore = tempscore + 100;
} else if (((speed < 0) && (((substring(/:level[tile], 1, 2)) == 8) || ((substring(/:level[tile], 1, 2)) == 9))) && (BH == "")) {
BH = "B";
} else if (((speed < 0) && (((substring(/:level[tile], 1, 2)) == 1) || ((substring(/:level[tile], 1, 2)) == 2))) && (BH == "B")) {
BH = "F";
} else if (((speed < 0) && ((substring(/:level[tile], 1, 2)) == 0)) && (BH == "F")) {
BH = "";
scoreArr[scoreArr.length] = "Building Hop!";
tempscore = tempscore + 100;
}
}
if (((substring(/:level[tile], 1, 2)) == 6) && (ladder < tile)) {
ladder = tile;
} else if ((substring(/:level[tile], 1, 2)) == 11) {
Set("/:message", "Level Complete!");
tellTarget ("/message") {
gotoAndPlay (2);
};
points = points + (points * 0.1);
}
}
function movetiles(move) {
flag = 1;
while (flag) {
flag = 0;
if (0 < (eval (("/tile" + firsttile) + ":_x") - move)) {
drawtile(tileloop(8), eval (("/tile" + tileloop(8)) + ":number") - 9);
setProperty("/tile" + tileloop(8), _x , eval (("/tile" + firsttile) + ":_x") - 80);
firsttile = tileloop(8);
flag = 1;
} else if ((eval (("/tile" + firsttile) + ":_x") - move) < -120) {
drawtile(firsttile, eval (("/tile" + firsttile) + ":number") + 9);
setProperty("/tile" + firsttile, _x , eval (("/tile" + firsttile) + ":_x") + 720);
firsttile = tileloop(1);
flag = 1;
}
}
setProperty("/tile" + firsttile, _x , eval (("/tile" + firsttile) + ":_x") - move);
looper = 1;
while (looper < 9) {
setProperty("/tile" + tileloop(looper), _x , eval (("/tile" + firsttile) + ":_x") + (80 * looper));
looper++;
}
}
function setTileOffset(move) {
tileoffset = tileoffset + move;
flag = 1;
while (flag) {
flag = 0;
if (80 < tileoffset) {
tile++;
tileoffset = tileoffset - 80;
setland(tile);
flag = 1;
} else if (tileoffset < 0) {
tile--;
tileoffset = tileoffset + 80;
setland(tile);
flag = 1;
}
}
}
function stall(frame) {
setProperty("/skater", _rotation , 0);
gotoAndPlay("/skater:" + frame);
state = 5;
if (frame == 21) {
scoreArr[scoreArr.length] = "Handplant";
} else {
scoreArr[scoreArr.length] = "Rocky Fakie";
}
tempscore = tempscore + 20;
if (getProperty("/skater", _xscale) < 0) {
move = 15 - tileoffset;
} else {
move = 65 - tileoffset;
}
speed = 0;
time = 5;
tellTarget ("/marker") {
gotoAndStop ("handplant");
};
}
function addFlips(num) {
Tflip = Tflip + num;
if (Rflip < Tflip) {
Rflip = Tflip;
} else if (Tflip < Lflip) {
Lflip = Tflip;
}
}
function score() {
if (((getProperty("/skater", _xscale) == -100) && (40 < Tflip)) || ((getProperty("/skater", _xscale) == 100) && (Tflip < -40))) {
scoreArr[scoreArr.length] = "Insane Flipage!";
tempscore = tempscore + 300;
} else if (22 < Math.abs(Tflip)) {
scoreArr[scoreArr.length] = "The Flipster";
tempscore = tempscore + 100;
} else if ((Math.abs(Tflip) < 5) && ((state == 0) || (state == 5))) {
if ((18 < Rflip) && (getProperty("/skater", _xscale) == -100)) {
scoreArr[scoreArr.length] = (Rflip * 10) + " Kung Fu Master";
tempscore = tempscore + (Rflip * 20);
} else if ((Lflip < -18) && (getProperty("/skater", _xscale) == 100)) {
scoreArr[scoreArr.length] = (Lflip * -10) + " Kung Fu Master";
tempscore = tempscore + (Lflip * -20);
} else if ((9 < Rflip) && (getProperty("/skater", _xscale) == -100)) {
scoreArr[scoreArr.length] = (Rflip * 10) + " Kick the Sky";
tempscore = tempscore + (Rflip * 10);
} else if ((Lflip < -9) && (getProperty("/skater", _xscale) == 100)) {
scoreArr[scoreArr.length] = (Lflip * -10) + " Kick the Sky";
tempscore = tempscore + (Lflip * -10);
}
}
if (((getProperty("/skater", _currentframe) != 17) && (0 < scoreArr.length)) && ((state == 3) || (state == 0))) {
(i = 0);
(/:message = "");
while (i < scoreArr.length) {
if (0 < i) {
Set("/:message", /:message + " + ");
}
if (((i % 2) == 0) && (i != 0)) {
Set("/:message", /:message + newline);
}
Set("/:message", /:message + scoreArr[i]);
i++;
}
points = points + (tempscore * scoreArr.length);
if (tempscore >= 300) {
tellTarget ("/message") {
gotoAndPlay (2);
};
} else {
tellTarget ("/message") {
gotoAndPlay (42);
};
}
tempscore = 0;
scoreArr.length = 0;
call("/marker:reset");
}
}
function drawings() {
setProperty("/city", _x , getProperty("/city", _x) - (speed / 10));
if (-10 < getProperty("/city", _x)) {
setProperty("/city", _x , getProperty("/city", _x) - (getProperty("/city", _width) / 2));
} else if (getProperty("/city", _x) < (-10 - (getProperty("/city", _width) / 2))) {
setProperty("/city", _x , getProperty("/city", _x) + (getProperty("/city", _width) / 2));
}
if ((getProperty("/skater", _xscale) == 100) && (speed < 0)) {
setProperty("/skater", _xscale , -100);
} else if ((getProperty("/skater", _xscale) == -100) && (0 < speed)) {
setProperty("/skater", _xscale , 100);
}
}
function init() {
Set("/:level", eval ("/:level" + lvlholder));
firsttile = 0;
state = 3;
speed = 0;
limit = 60;
points = 0;
tempscore = 0;
slower = 0;
horoffset = (vertoffset = 0);
holdright = (holdleft = (holddown = (holdup = (holdspace = 0))));
Tflip = (Rflip = (Lflip = 0));
scoreArr = new Array();
BH = "";
tile = 3;
tileoffset = 60;
ladder = 3;
timeset = Math.round(getTimer() / 1000);
call("/marker:reset");
gotoAndStop("/life:1");
life = 100;
tellTarget ("/skater") {
gotoAndStop (1);
};
tellTarget ("/exit") {
gotoAndStop (1);
};
tellTarget ("/message") {
gotoAndStop (1);
};
setProperty("/skater", _xscale , 100);
setProperty("/shadow", _visible , 1);
setProperty("/skater", _rotation , 0);
i = 0;
while (i < 9) {
drawtile(i, i);
setProperty("/tile" + i, _x , i * 80);
i++;
}
tellTarget ("/sky") {
gotoAndStop(random(getProperty("/sky", _totalframes)) + 1);
};
setProperty("/skater", _y , 260 - ((substring(/:level[3], 4, 1)) * 10));
setProperty("/shadow", _y , getProperty("/skater", _y) + 46);
land = getProperty("/skater", _y);
tellTarget ("/code") {
gotoAndPlay (2);
};
if (/:music == 1) {
tellTarget ("/sound") {
gotoAndPlay ("startbg");
};
}
}
stop();
Symbol 4 MovieClip Frame 2
if (0 >= (120 - (Math.round(getTimer() / 1000) - timeset))) {
countdown = 0;
} else if (state != 10) {
countdown = 120 - (Math.round(getTimer() / 1000) - timeset);
}
if ((countdown % 60) < 10) {
showtime = (((countdown - (countdown % 60)) / 60) + ":0") + (countdown % 60);
} else {
showtime = (((countdown - (countdown % 60)) / 60) + ":") + (countdown % 60);
}
if (((((life < 10) || (countdown == 0)) || (tile >= /:level.length)) && (state == 3)) && (getProperty("/skater", _currentframe) != 17)) {
state = 10;
speed = 0;
tellTarget ("/exit") {
gotoAndPlay (2);
};
tellTarget ("/skater") {
stop();
};
}
if (Key.isDown(Key.LEFT) && (Key.isDown(Key.RIGHT))) {
if (((1 >= state) && (getProperty("/skater", _currentframe) == 1)) && (10 >= Math.abs(getProperty("/skater", _rotation)))) {
_root.skater.gotoAndPlay(80);
scoreArr[scoreArr.length] = "Shove It";
tempscore = tempscore + 10;
}
rightandleft = 1;
} else {
if (_root.skater._currentframe == 82) {
_root.skater.gotoAndStop(1);
}
rightandleft = 0;
}
if (Key.isDown(Key.RIGHT) && (!Key.isDown(Key.LEFT))) {
if ((holdright == 0) || (2 < holdright)) {
if ((Key.isDown(Key.SPACE) || (Key.isDown(Key.CONTROL))) && (10 >= Math.abs(getProperty("/skater", _rotation)))) {
if ((1 >= state) && (getProperty("/skater", _currentframe) == 1)) {
if (0 < _root.skater._xscale) {
_root.skater.gotoAndPlay(88);
scoreArr[scoreArr.length] = "Nose Grab";
} else {
_root.skater.gotoAndPlay(85);
scoreArr[scoreArr.length] = "Method";
}
tempscore = tempscore + 10;
}
} else if ((((state < 2) && (getProperty("/skater", _currentframe) != 20)) && (getProperty("/skater", _currentframe) != 29)) && (getProperty("/skater", _currentframe) < 55)) {
setProperty("/skater", _rotation , getProperty("/skater", _rotation) + 10);
addFlips(1);
} else if ((state == 3) && (getProperty("/skater", _currentframe) == 1)) {
tellTarget ("/skater") {
gotoAndPlay ("push");
};
if (limit < Math.abs(speed + 10)) {
speed = limit;
} else if ((Math.abs(speed) < limit) && (speed >= 0)) {
speed = speed + 10;
} else if (speed < 0) {
speed = speed + 10;
} else {
speed = limit;
}
} else if (state == 2) {
/marker:balance--;
}
}
if (holdright < 3) {
holdright++;
}
} else if (!Key.isDown(Key.RIGHT)) {
if (((_root.skater._currentframe == 87) && (_root.skater._xscale < 0)) || ((_root.skater._currentframe == 90) && (0 < _root.skater._xscale))) {
_root.skater.gotoAndStop(1);
}
holdright = 0;
}
if (Key.isDown(Key.LEFT) && (!Key.isDown(Key.RIGHT))) {
if ((holdleft == 0) || (2 < holdleft)) {
if ((Key.isDown(Key.SPACE) || (Key.isDown(Key.CONTROL))) && (10 >= Math.abs(getProperty("/skater", _rotation)))) {
if ((1 >= state) && (getProperty("/skater", _currentframe) == 1)) {
if (_root.skater._xscale < 0) {
_root.skater.gotoAndPlay(88);
scoreArr[scoreArr.length] = "Nose Grab";
} else {
_root.skater.gotoAndPlay(85);
scoreArr[scoreArr.length] = "Method";
}
tempscore = tempscore + 10;
}
} else if ((((state < 2) && (getProperty("/skater", _currentframe) != 20)) && (getProperty("/skater", _currentframe) != 29)) && (getProperty("/skater", _currentframe) < 55)) {
setProperty("/skater", _rotation , getProperty("/skater", _rotation) - 10);
addFlips(-1);
} else if ((getProperty("/skater", _currentframe) == 1) && (state == 3)) {
tellTarget ("/skater") {
gotoAndPlay ("push");
};
if (limit < Math.abs(speed - 10)) {
speed = -limit;
} else if ((Math.abs(speed) < limit) && (0 >= speed)) {
speed = speed - 10;
} else if (0 < speed) {
speed = speed - 10;
} else {
speed = -limit;
}
} else if (state == 2) {
/marker:balance++;
}
}
if (holdleft < 3) {
holdleft++;
}
} else if (!Key.isDown(Key.LEFT)) {
if (((_root.skater._currentframe == 90) && (_root.skater._xscale < 0)) || ((_root.skater._currentframe == 87) && (0 < _root.skater._xscale))) {
_root.skater.gotoAndStop(1);
}
holdleft = 0;
}
if (Key.isDown(Key.UP) && (Key.isDown(Key.DOWN))) {
upanddown = 1;
} else {
upanddown = 0;
}
if (Key.isDown(Key.UP) && (!Key.isDown(Key.DOWN))) {
if ((((1 < state) && (state < 4)) && (0 < vertoffset)) && ((holdup == 0) || (2 < holdup))) {
fallflag = 0;
if (grindCheck(tile)) {
fallflag = 1;
}
vertoffset = vertoffset - 10;
if (grindCheck(tile)) {
vertoffset = vertoffset + 10;
} else {
land = 260 - ((substring(/:level[tile], 4, 1)) * 10);
if (fallflag) {
state = 1;
vert = 0;
}
setProperty("/skater", _y , getProperty("/skater", _y) - 10);
setProperty("/shadow", _y , (land + vertoffset) + 46);
}
} else if (((getProperty("/skater", _currentframe) == 18) && (Math.abs(getProperty("/skater", _rotation)) < 20)) && (holdup == 0)) {
gotoAndStop("/skater:1");
} else if ((((((state < 2) && (Math.abs(getProperty("/skater", _rotation)) < 20)) && (getProperty("/skater", _currentframe) != 17)) && (getProperty("/skater", _currentframe) != 19)) && (getProperty("/skater", _currentframe) < 55)) && (holdup == 0)) {
gotoAndStop("/skater:19");
scoreArr[scoreArr.length] = "Kickflip";
tempscore = tempscore + 10;
}
if (holdup < 3) {
holdup = holdup + 1;
}
} else if (!Key.isDown(Key.UP)) {
holdup = 0;
}
if (Key.isDown(Key.DOWN) && (!Key.isDown(Key.UP))) {
if ((((1 < state) && (state < 4)) && (vertoffset < 90)) && ((holddown == 0) || (2 < holddown))) {
fallflag = 0;
if (grindCheck(tile)) {
fallflag = 1;
}
vertoffset = vertoffset + 10;
if (grindCheck(tile)) {
vertoffset = vertoffset - 10;
} else {
land = 260 - ((substring(/:level[tile], 4, 1)) * 10);
if (fallflag) {
state = 1;
vert = 0;
}
setProperty("/skater", _y , getProperty("/skater", _y) + 10);
setProperty("/shadow", _y , (land + vertoffset) + 46);
}
} else if (((getProperty("/skater", _currentframe) == 19) && (Math.abs(getProperty("/skater", _rotation)) < 20)) && (holddown == 0)) {
tellTarget ("/skater") {
gotoAndStop (1);
};
} else if (((state < 2) && (150 < Math.abs(getProperty("/skater", _rotation)))) && (holddown == 0)) {
setProperty("/skater", _rotation , 0);
if (getProperty("/skater", _currentframe) == 17) {
tellTarget ("/skater") {
gotoAndStop (1);
};
scoreArr[scoreArr.length] = "Retreat to Feet";
tempscore = tempscore + 50;
holdright = (holdleft = 1);
} else {
tellTarget ("/skater") {
gotoAndStop (17);
};
scoreArr[scoreArr.length] = "Handstand";
tempscore = tempscore + 50;
holdright = (holdleft = 1);
}
} else if ((((((state == 1) && (Math.abs(getProperty("/skater", _rotation)) < 20)) && (getProperty("/skater", _currentframe) != 17)) && (getProperty("/skater", _currentframe) != 18)) && (getProperty("/skater", _currentframe) < 55)) && (holddown == 0)) {
gotoAndStop("/skater:18");
scoreArr[scoreArr.length] = "Indy";
tempscore = tempscore + 10;
}
if (holddown < 3) {
holddown = holddown + 1;
}
} else if (!Key.isDown(Key.DOWN)) {
holddown = 0;
}
if ((Key.isDown(Key.SPACE) || (Key.isDown(Key.CONTROL))) && (holdspace == 0)) {
if ((getProperty("/skater", _currentframe) == 27) || (getProperty("/skater", _currentframe) == 28)) {
gotoAndPlay("/skater:65");
} else if ((getProperty("/skater", _currentframe) == 20) || (getProperty("/skater", _currentframe) == 29)) {
gotoAndStop("/skater:1");
} else if ((54 < getProperty("/skater", _currentframe)) && (getProperty("/skater", _currentframe) < 60)) {
gotoAndStop("/skater:1");
speed = speed / 2;
} else if (((getProperty("/skater", _currentframe) == 17) && (150 < Math.abs(getProperty("/skater", _rotation)))) && (state != 0)) {
setProperty("/skater", _rotation , 0);
gotoAndPlay("/skater:55");
speed = speed * 2;
scoreArr[scoreArr.length] = "Chopper";
tempscore = tempscore + 300;
holdleft = (holdright = 1);
} else if ((getProperty("/skater", _currentframe) == 18) && ((((-80 >= getProperty("/skater", _rotation)) && (getProperty("/skater", _rotation) >= -100)) && (getProperty("/skater", _xscale) == 100)) || (((100 >= getProperty("/skater", _rotation)) && (getProperty("/skater", _rotation) >= 80)) && (getProperty("/skater", _xscale) == -100)))) {
gotoAndStop("/skater:29");
scoreArr[scoreArr.length] = "Cannonball";
tempscore = tempscore + 300;
} else if (((state == 1) && (getProperty("/skater", _currentframe) != 17)) && ((((getProperty("/skater", _rotation) >= 80) && (100 >= getProperty("/skater", _rotation))) && (getProperty("/skater", _xscale) == 100)) || (((getProperty("/skater", _rotation) >= -100) && (-80 >= getProperty("/skater", _rotation))) && (getProperty("/skater", _xscale) == -100)))) {
gotoAndStop("/skater:20");
scoreArr[scoreArr.length] = "Supaman";
tempscore = tempscore + 100;
} else if (state == 40) {
movetiles(80 * (ladder - tile));
tile = ladder;
vertoffset = 0;
setland(ladder);
setProperty("/skater", _y , land);
setProperty("/shadow", _visible , 1);
setProperty("/skater", _xscale , 100);
speed = 0;
state = 3;
if (life < 10) {
tellTarget ("/skater") {
gotoAndStop (50);
};
} else {
tellTarget ("/skater") {
gotoAndStop (1);
};
}
} else if (((state == 2) || (state == 3)) && (getProperty("/skater", _currentframe) < 18)) {
setProperty("/skater", _rotation , 0);
if (getProperty("/skater", _currentframe) != 17) {
tellTarget ("/skater") {
gotoAndStop (1);
};
}
gotoAndStop("/marker:1");
state = 1;
vert = 6 + (0.1 * Math.abs(speed));
holdright = (holdleft = 1);
tellTarget ("/sound") {
gotoAndPlay ("jump");
};
} else if ((state == 5) && (59 < getProperty("/skater", _currentframe))) {
tellTarget ("/skater") {
gotoAndStop (1);
};
gotoAndStop("/marker:1");
if (getProperty("/skater", _xscale) < 0) {
speed = -20;
} else {
speed = 20;
}
state = 1;
vert = 6 + (0.1 * Math.abs(speed));
holdright = (holdleft = 1);
tellTarget ("/sound") {
gotoAndPlay ("jump");
};
scoreArr[scoreArr.length] = "Stollie";
tempscore = tempscore + 100;
}
holdspace = 1;
} else if ((!Key.isDown(Key.SPACE)) && (!Key.isDown(Key.CONTROL))) {
holdspace = 0;
if (_root.skater._currentframe == 71) {
_root.skater.gotoAndPlay(72);
scoreArr[scoreArr.length] = "Hangin' Out";
tempscore = tempscore + 50;
} else if ((_root.skater._currentframe == 90) || (_root.skater._currentframe == 87)) {
_root.skater.gotoAndStop(1);
}
}
slower++;
if (slower == 10) {
if (state == 5) {
time = time - 1;
} else if (getProperty("/skater", _currentframe) == 20) {
if (Math.abs(speed) < (2 * state)) {
speed = 0;
} else if (0 < speed) {
speed = speed - (2 * state);
} else if (speed < 0) {
speed = speed + (2 * state);
}
} else if (Math.abs(speed) < (1 * state)) {
speed = 0;
} else if (0 < speed) {
speed = speed - (1 * state);
} else if (speed < 0) {
speed = speed + (1 * state);
}
slower = 0;
}
if (state == 5) {
if (((getProperty("/skater", _currentframe) == 28) && (!rightandleft)) || ((getProperty("/skater", _currentframe) == 63) && (!upanddown))) {
gotoAndStop("/skater:1");
state = 3;
score();
if (0 < getProperty("/skater", _xscale)) {
speed = -20;
} else {
speed = 20;
}
tellTarget ("/sound") {
gotoAndPlay ("land");
};
call("/marker:reset");
} else if (time == 0) {
call("/marker:reset");
if (0 < getProperty("/skater", _xscale)) {
speed = 20;
} else {
speed = -20;
}
state = 20;
vert = 0;
fallsound();
tellTarget ("/skater") {
gotoAndPlay (30);
};
}
}
move = speed;
skatey = getProperty("/skater", _y);
if (((state == 2) || (state == 3)) && ((((15 < tileoffset) && (15 >= (tileoffset + speed))) && (((substring(/:level[tile], 1, 2)) == 1) || ((substring(/:level[tile], 1, 2)) == 14))) || (((tileoffset < 65) && ((tileoffset + speed) >= 65)) && (((substring(/:level[tile], 1, 2)) == 8) || ((substring(/:level[tile], 1, 2)) == 12))))) {
if (rightandleft) {
stall(21);
} else if (upanddown && (getProperty("/skater", _currentframe) != 17)) {
stall(60);
} else {
vert = 3 + (0.2 * Math.abs(speed));
tempspeed = speed;
state = 1;
if (speed < 0) {
setProperty("/skater", _rotation , 90);
if (Key.isDown(Key.LEFT) == 0) {
speed = (state = 0);
move = 15 - tileoffset;
}
} else {
setProperty("/skater", _rotation , -90);
if (Key.isDown(Key.RIGHT) == 0) {
speed = (state = 0);
move = 65 - tileoffset;
}
}
gotoAndStop("/marker:1");
}
tellTarget ("/sound") {
gotoAndPlay ("jump");
};
}
if (((state < 2) || (20 < state)) && (skatey < 600)) {
skatey = skatey - vert;
if (-20 < vert) {
if ((getProperty("/skater", _currentframe) == 20) || ((54 < getProperty("/skater", _currentframe)) && (getProperty("/skater", _currentframe) < 60))) {
vert = vert - 0.3;
} else {
vert = vert - 0.7;
}
}
}
if ((((tileoffset + speed) >= 80) && (((substring(/:level[tile + 1], 1, 2)) == 1) || ((substring(/:level[tile + 1], 1, 2)) == 2))) && (skatey >= ((260 - ((substring(/:level[tile + 1], 4, 1)) * 10)) + vertoffset))) {
move = 79 - tileoffset;
vert = (speed = 0);
state = 30;
if ((70 < getProperty("/skater", _rotation)) && (getProperty("/skater", _rotation) < 110)) {
Set("/:message", "Face Plant!");
tellTarget ("/message") {
gotoAndPlay (2);
};
gotoAndStop("/skater:46");
} else {
gotoAndStop("/skater:45");
}
setProperty("/skater", _rotation , 0);
call("/marker:reset");
fallsound();
} else if ((((tileoffset + speed) < 0) && (((substring(/:level[tile - 1], 1, 2)) == 8) || ((substring(/:level[tile - 1], 1, 2)) == 9))) && (skatey >= ((260 - ((substring(/:level[tile - 1], 4, 1)) * 10)) + vertoffset))) {
move = 1 - tileoffset;
vert = (speed = 0);
state = 30;
if ((getProperty("/skater", _rotation) < -70) && (-110 < getProperty("/skater", _rotation))) {
Set("/:message", "Face Plant!");
tellTarget ("/message") {
gotoAndPlay (2);
};
gotoAndStop("/skater:46");
} else {
gotoAndStop("/skater:45");
}
setProperty("/skater", _rotation , 0);
call("/marker:reset");
fallsound();
}
if ((((state < 2) || (state == 30)) && (vert < 0)) && (skatey >= (land + vertoffset))) {
if (getProperty("/skater", _y) < (land + vertoffset)) {
skatey = land + vertoffset;
}
if (state == 0) {
if (((((getProperty("/skater", _xscale) == -100) && (40 < getProperty("/skater", _rotation))) && (getProperty("/skater", _rotation) < 110)) || (((getProperty("/skater", _xscale) == 100) && (getProperty("/skater", _rotation) < -40)) && (-110 < getProperty("/skater", _rotation)))) && (getProperty("/skater", _currentframe) < 18)) {
setProperty("/skater", _rotation , 0);
if (upanddown && (getProperty("/skater", _currentframe) != 17)) {
state = 5;
score();
stall(60);
} else {
score();
state = 3;
move = (speed = -tempspeed);
}
} else {
speed = (move = tempspeed);
setProperty("/skater", _rotation , 0);
state = 20;
fallsound();
call("/marker:reset");
tellTarget ("/skater") {
gotoAndPlay (30);
};
}
tellTarget ("/sound") {
gotoAndPlay ("land");
};
} else if (getProperty("/shadow", _visible) == 0) {
if (getProperty("/skater", _currentframe) != 45) {
tellTarget ("/skater") {
gotoAndPlay (30);
};
}
tellTarget ("/sound") {
gotoAndPlay ("ahh");
};
setProperty("/skater", _rotation , 0);
state = 40;
call("/marker:reset");
life = life - 10;
tellTarget ("/life") {
gotoAndStop(9 - Math.round((/code:life / 100) * 8));
};
} else if (((getProperty("/skater", _rotation) < -40) && (0 < getProperty("/skater", _xscale))) || ((40 < getProperty("/skater", _rotation)) && (getProperty("/skater", _xscale) < 0))) {
tellTarget ("/skater") {
gotoAndPlay (30);
};
setProperty("/skater", _rotation , 0);
state = 20;
fallsound();
call("/marker:reset");
life = life - 5;
tellTarget ("/life") {
gotoAndStop(9 - Math.round((/code:life / 100) * 8));
};
} else if ((((40 < getProperty("/skater", _rotation)) && (0 < getProperty("/skater", _xscale))) || ((getProperty("/skater", _rotation) < -40) && (getProperty("/skater", _xscale) < 0))) || (17 < getProperty("/skater", _currentframe))) {
tellTarget ("/skater") {
gotoAndPlay (37);
};
setProperty("/skater", _rotation , 0);
state = 20;
fallsound();
call("/marker:reset");
life = life - 5;
tellTarget ("/life") {
gotoAndStop(9 - Math.round((/code:life / 100) * 8));
};
} else if ((getProperty("/skater", _rotation) >= -10) && (10 >= getProperty("/skater", _rotation))) {
setProperty("/skater", _rotation , 0);
state = 3;
score();
tellTarget ("/sound") {
gotoAndPlay ("land");
};
} else {
tellTarget ("/marker") {
gotoAndPlay (2);
};
state = 2;
if ((manual != -1) && (getProperty("/skater", _rotation) < 0)) {
Set("/marker:offset", /marker:offset * -1);
Set("/marker:balance", /marker:balance * -1);
manual = -1;
} else if ((manual != 1) && (0 < getProperty("/skater", _rotation))) {
Set("/marker:offset", /marker:offset * -1);
Set("/marker:balance", /marker:balance * -1);
manual = 1;
}
score();
scoreArr[scoreArr.length] = "Manual";
tellTarget ("/sound") {
gotoAndPlay ("land");
};
}
Tflip = (Lflip = (Rflip = 0));
BH = "";
holdup = (holddown = 1);
}
setProperty("/skater", _y , skatey);
movetiles(move);
setTileOffset(move);
drawings();
Symbol 4 MovieClip Frame 3
gotoAndPlay (2);
Symbol 14 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 3
stop();
Symbol 14 MovieClip Frame 5
stop();
Symbol 14 MovieClip Frame 7
stop();
Symbol 14 MovieClip Frame 9
stop();
Symbol 14 MovieClip Frame 11
stop();
Symbol 14 MovieClip Frame 13
stop();
Symbol 14 MovieClip Frame 15
stop();
Symbol 14 MovieClip Frame 17
stop();
Symbol 33 Button
on (release) {
getURL ("http://cgi.sikids.com/cgi-perl/postcard.cgi?op=write&categ=rooftop2001");
}
Symbol 35 Button
on (release, keyPress "<Space>") {
gotoAndStop (4);
}
Symbol 38 Button
on (release) {
gotoAndStop (6);
}
Symbol 42 Button
on (release) {
if (_root.main.player_score == 0) {
setProperty("_root.main.noscore", _visible , true);
} else {
gotoAndStop (9);
}
}
Symbol 55 Button
on (release) {
Set("/code:lvlholder", 1);
setProperty("yellow", _y , 210);
}
Symbol 56 Button
on (release) {
Set("/code:lvlholder", 2);
setProperty("yellow", _y , 230);
}
Symbol 57 Button
on (release) {
Set("/code:lvlholder", 3);
setProperty("yellow", _y , 250);
}
Symbol 58 Button
on (release) {
Set("/code:lvlholder", 4);
setProperty("yellow", _y , 270);
}
Symbol 59 Button
on (release) {
Set("/code:lvlholder", 5);
setProperty("yellow", _y , 290);
}
Symbol 60 Button
on (release) {
Set("/code:lvlholder", 0);
setProperty("yellow", _y , 190);
}
Symbol 68 MovieClip Frame 1
gotoAndStop(/:body[1]);
Symbol 74 MovieClip Frame 1
gotoAndStop(/:body[1]);
Symbol 79 MovieClip Frame 1
gotoAndStop(/:body[0]);
Symbol 85 MovieClip Frame 1
gotoAndStop(/:body[1]);
Symbol 91 MovieClip Frame 1
gotoAndStop(/:body[2]);
Symbol 97 MovieClip Frame 1
gotoAndStop(/:body[2]);
Symbol 103 MovieClip Frame 1
gotoAndStop(/:body[2]);
Symbol 109 MovieClip Frame 1
gotoAndStop(/:body[2]);
Symbol 115 MovieClip Frame 1
gotoAndStop(/:body[1]);
Symbol 121 MovieClip Frame 1
gotoAndStop(/:body[1]);
Symbol 131 MovieClip Frame 1
gotoAndStop(/:body[2]);
Symbol 132 MovieClip Frame 1
gotoAndStop(/:body[2]);
Symbol 133 MovieClip Frame 1
gotoAndStop(/:body[2]);
Symbol 134 MovieClip Frame 1
gotoAndStop(/:body[2]);
Symbol 135 MovieClip Frame 1
gotoAndStop(/:body[1]);
Symbol 136 MovieClip Frame 1
gotoAndStop(/:body[1]);
Symbol 137 MovieClip Frame 1
gotoAndStop(/:body[0]);
Symbol 138 MovieClip Frame 1
gotoAndStop(/:body[1]);
Symbol 139 MovieClip Frame 1
gotoAndStop(/:body[1]);
Symbol 140 MovieClip Frame 1
gotoAndStop(/:body[1]);
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
play();
Symbol 142 MovieClip Frame 16
gotoAndStop (1);
Symbol 142 MovieClip Frame 21
play();
Symbol 142 MovieClip Frame 28
stop();
Symbol 142 MovieClip Frame 30
/code:scoreArr.length = 0;
Set("/code:tempscore", 0);
play();
Symbol 142 MovieClip Frame 36
if ((/code:state >= 30) || (/code:speed != 0)) {
gotoAndPlay (30);
} else {
gotoAndPlay (2);
Set("/code:state", 3);
}
Symbol 142 MovieClip Frame 37
/code:scoreArr.length = 0;
Set("/code:tempscore", 0);
play();
Symbol 142 MovieClip Frame 43
if ((/code:state >= 30) || (/code:speed != 0)) {
gotoAndPlay (37);
} else {
gotoAndPlay (2);
Set("/code:state", 3);
}
Symbol 142 MovieClip Frame 45
/code:scoreArr.length = 0;
Set("/code:tempscore", 0);
stop();
Symbol 142 MovieClip Frame 46
/code:scoreArr.length = 0;
Set("/code:tempscore", 0);
stop();
Symbol 142 MovieClip Frame 50
stop();
Symbol 142 MovieClip Frame 55
play();
Symbol 142 MovieClip Frame 59
gotoAndPlay (55);
Symbol 142 MovieClip Frame 60
play();
Symbol 142 MovieClip Frame 63
stop();
Symbol 142 MovieClip Frame 65
play();
Symbol 142 MovieClip Frame 71
stop();
Symbol 142 MovieClip Frame 72
play();
Symbol 142 MovieClip Frame 74
Symbol 142 MovieClip Frame 77
gotoAndPlay (25);
Symbol 142 MovieClip Frame 80
play();
Symbol 142 MovieClip Frame 82
stop();
Symbol 142 MovieClip Frame 85
play();
Symbol 142 MovieClip Frame 87
stop();
Symbol 142 MovieClip Frame 88
play();
Symbol 142 MovieClip Frame 90
stop();
Symbol 144 MovieClip Frame 5
stop();
Symbol 145 Button
on (release) {
/:body[2]++;
if (/:body[2] == (getProperty("skater/pants", _totalframes) + 1)) {
/:body[2] = 1;
}
gotoAndPlay("skater:16");
tellTarget ("/skater") {
gotoAndPlay (16);
};
}
Symbol 147 MovieClip Frame 5
stop();
Symbol 148 Button
on (release) {
/:body[1]++;
if (/:body[1] == (getProperty("skater/shirt", _totalframes) + 1)) {
/:body[1] = 1;
}
gotoAndPlay("skater:16");
tellTarget ("/skater") {
gotoAndPlay (16);
};
}
Symbol 150 MovieClip Frame 5
stop();
Symbol 151 Button
on (release) {
/:body[0]++;
if (/:body[0] == (getProperty("skater/head", _totalframes) + 1)) {
/:body[0] = 1;
}
gotoAndPlay("skater:16");
tellTarget ("/skater") {
gotoAndPlay (16);
};
}
Symbol 170 Button
on (release, keyPress "<Space>") {
/code:init();
gotoAndStop (5);
Set("/code:holdspace", 1);
_quality = "medium";
}
Symbol 173 Button
on (release, keyPress "x") {
gotoAndStop (3);
}
Symbol 176 Button
on (release) {
/:body[0] = 2;
/:body[1] = 2;
/:body[2] = 2;
tellTarget ("skater") {
gotoAndPlay (16);
};
tellTarget ("/skater") {
gotoAndPlay (16);
};
}
Symbol 177 Button
on (release) {
/:body[0] = 3;
/:body[1] = 3;
/:body[2] = 3;
tellTarget ("skater") {
gotoAndPlay (16);
};
tellTarget ("/skater") {
gotoAndPlay (16);
};
}
Symbol 178 Button
on (release) {
/:body[0] = 4;
/:body[1] = 4;
/:body[2] = 4;
tellTarget ("skater") {
gotoAndPlay (16);
};
tellTarget ("/skater") {
gotoAndPlay (16);
};
}
Symbol 179 Button
on (release) {
/:body[0] = 1;
/:body[1] = 1;
/:body[2] = 1;
tellTarget ("skater") {
gotoAndPlay (16);
};
tellTarget ("/skater") {
gotoAndPlay (16);
};
}
Symbol 180 Button
on (release) {
/:body[0] = 5;
/:body[1] = 5;
/:body[2] = 5;
tellTarget ("skater") {
gotoAndPlay (16);
};
tellTarget ("/skater") {
gotoAndPlay (16);
};
}
Symbol 185 Button
on (release) {
if ((/code:lvlholder != "c") && (eval ("/code:high" + /code:lvlholder) < /code:points)) {
Set("/code:high" + /code:lvlholder, /code:points);
}
/code:init();
}
Symbol 188 Button
on (release, keyPress "x") {
tellTarget ("/code") {
stop();
};
tellTarget ("/sound") {
gotoAndPlay ("stopbg");
};
call("/marker:reset");
if (eval ("/code:high" + /code:lvlholder) < /code:points) {
Set("/code:high" + /code:lvlholder, /code:points);
}
gotoAndStop (4);
_quality = "high";
}
Symbol 191 Button
on (release) {
if (/:music == 0) {
Set("/:music", 1);
tellTarget ("/sound") {
gotoAndPlay ("startbg");
};
} else {
Set("/:music", 0);
tellTarget ("/sound") {
gotoAndPlay ("stopbg");
};
}
}
Symbol 201 Button
on (release) {
getURL ("http://cgi.sikids.com/cgi-perl/postcard.cgi?op=write&categ=rooftop2001", "_self");
}
Symbol 204 Button
on (release) {
gotoAndStop (8);
}
Symbol 205 Button
on (release) {
gotoAndPlay (3);
}
Symbol 209 Button
on (release) {
getURL ("http://www.sikids.com", "_blank");
}
Symbol 237 MovieClip Frame 1
stop();
Symbol 239 Button
on (release) {
tellTarget ("_root.main.trick") {
gotoAndStop ("fakey");
};
}
Symbol 240 Button
on (release) {
tellTarget ("_root.main.trick") {
gotoAndStop ("hangout");
};
}
Symbol 241 Button
on (release) {
tellTarget ("_root.main.trick") {
gotoAndStop ("handplant");
};
}
Symbol 243 Button
on (release) {
tellTarget ("_root.main.trick") {
gotoAndStop ("handstand");
};
}
Symbol 244 Button
on (release) {
tellTarget ("_root.main.trick") {
gotoAndStop ("superman");
};
}
Symbol 245 Button
on (release) {
tellTarget ("_root.main.trick") {
gotoAndStop ("tailgrab");
};
}
Symbol 246 Button
on (release) {
tellTarget ("_root.main.trick") {
gotoAndStop ("nosegrab");
};
}
Symbol 247 Button
on (release) {
tellTarget ("_root.main.trick") {
gotoAndStop ("indy");
};
}
Symbol 248 Button
on (release) {
tellTarget ("_root.main.trick") {
gotoAndStop ("kickflip");
};
}
Symbol 249 Button
on (release) {
tellTarget ("_root.main.trick") {
gotoAndStop ("chopper");
};
}
Symbol 250 Button
on (release) {
tellTarget ("_root.main.trick") {
gotoAndStop ("popshovit");
};
}
Symbol 251 Button
on (release) {
tellTarget ("_root.main.trick") {
gotoAndStop ("manual");
};
}
Symbol 255 Button
on (release) {
mykey = Number(player_score);
if (mykey < 1) {
mykey = 0;
}
key1 = substring(mykey, 0, 1);
key2 = substring(mykey, length(mykey), 1);
key3 = Number(key1) + Number(key2);
key = key1 add key3;
if (player_name eq "") {
gotoAndStop (10);
} else {
getURL ((((("http://cgi2.sikids.com/servlet/com.sikids.servlet.HighScores?key=" add key) add "&game=rooftop&name=") add player_name) add "&score=") add player_score);
gotoAndStop (11);
}
}
Symbol 267 MovieClip Frame 1
play();
Symbol 267 MovieClip Frame 2
if (getProperty("/", _totalframes) != getProperty("/", _framesloaded)) {
gotoAndPlay(_currentframe - 1);
} else {
domain = substring(_root._url, 18, 4);
if ((domain != "sifk") && (_root.protect)) {
gotoAndStop (7);
} else {
gotoAndStop (3);
}
}
Symbol 267 MovieClip Frame 3
stop();
Symbol 267 MovieClip Frame 4
setProperty(_root.main.noscore, _visible , false);
stop();
player_score = ((((Number(/code:high0) + Number(/code:high1)) + Number(/code:high2)) + Number(/code:high3)) + Number(/code:high4)) + Number(/code:high5);
Instance of Symbol 62 MovieClip "yellow" in Symbol 267 MovieClip Frame 4
onClipEvent (load) {
_y = (_y + (20 * /code:lvlholder));
}
Symbol 267 MovieClip Frame 9
stop();
Symbol 267 MovieClip Frame 10
stop();
Symbol 267 MovieClip Frame 11
stop();
Symbol 273 MovieClip Frame 6
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 6
if (/code:countdown == 0) {
gotoAndStop (7);
} else if (5 >= /code:life) {
gotoAndStop (12);
} else {
gotoAndStop (17);
}
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 2
play();
Symbol 283 MovieClip Frame 39
gotoAndStop (1);
Symbol 283 MovieClip Frame 40
play();
Symbol 283 MovieClip Frame 63
gotoAndStop (1);
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 2
play();
Symbol 284 MovieClip Frame 16
gotoAndStop (1);
Symbol 284 MovieClip Frame 21
play();
Symbol 284 MovieClip Frame 28
stop();
Symbol 284 MovieClip Frame 30
/code:scoreArr.length = 0;
Set("/code:tempscore", 0);
play();
Symbol 284 MovieClip Frame 36
if ((/code:state >= 30) || (/code:speed != 0)) {
gotoAndPlay (30);
} else {
gotoAndPlay (2);
Set("/code:state", 3);
}
Symbol 284 MovieClip Frame 37
/code:scoreArr.length = 0;
Set("/code:tempscore", 0);
play();
Symbol 284 MovieClip Frame 43
if ((/code:state >= 30) || (/code:speed != 0)) {
gotoAndPlay (37);
} else {
gotoAndPlay (2);
Set("/code:state", 3);
}
Symbol 284 MovieClip Frame 45
/code:scoreArr.length = 0;
Set("/code:tempscore", 0);
stop();
Symbol 284 MovieClip Frame 46
/code:scoreArr.length = 0;
Set("/code:tempscore", 0);
stop();
Symbol 284 MovieClip Frame 50
stop();
Symbol 284 MovieClip Frame 55
play();
Symbol 284 MovieClip Frame 59
gotoAndPlay (55);
Symbol 284 MovieClip Frame 60
play();
Symbol 284 MovieClip Frame 63
stop();
Symbol 284 MovieClip Frame 65
play();
Symbol 284 MovieClip Frame 71
stop();
Symbol 284 MovieClip Frame 72
play();
Symbol 284 MovieClip Frame 74
Symbol 284 MovieClip Frame 77
gotoAndPlay (25);
Symbol 284 MovieClip Frame 80
play();
Symbol 284 MovieClip Frame 82
stop();
Symbol 284 MovieClip Frame 85
play();
Symbol 284 MovieClip Frame 87
stop();
Symbol 284 MovieClip Frame 88
play();
Symbol 284 MovieClip Frame 90
stop();
Symbol 308 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 3
mover = random(3);
if (mover == 0) {
if (getProperty("/skater", _rotation) < 0) {
offset = offset - 1;
} else {
offset = offset + 1;
}
}
setProperty("marker", _x , (offset - balance) * 10);
if ((0 < getProperty("/skater", _rotation)) && (6 < (offset - balance))) {
if (0 < getProperty("/skater", _xscale)) {
gotoAndPlay("/skater:37");
} else {
gotoAndPlay("/skater:30");
}
/code:fallsound();
setProperty("/skater", _rotation , 0);
Set("/code:state", 20);
call("reset");
} else if ((getProperty("/skater", _rotation) < 0) && ((offset - balance) < -6)) {
if (0 < getProperty("/skater", _xscale)) {
gotoAndPlay("/skater:30");
} else {
gotoAndPlay("/skater:37");
}
/code:fallsound();
setProperty("/skater", _rotation , 0);
Set("/code:state", 20);
call("reset");
} else if (6 < Math.abs(offset - balance)) {
setProperty("/skater", _rotation , 0);
Set("/code:state", 3);
/code:score();
call("reset");
} else {
gotoAndPlay (2);
}
Symbol 308 MovieClip Frame 5
gotoAndPlay (4);
Symbol 308 MovieClip Frame 7
balance = 0;
offset = 0;
Set("/code:manual", 0);
gotoAndStop (1);
Symbol 326 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 1
stop();