Frame 1
Set("#423", "_ Copyright \u00D4\u00F8\u03A9 2006 Teagames Limited. All rights reserved. ");
Set("#419", "_ TERMS OF USE: http://www.teagames.com/gameterms/index.php ");
Set("#58", 0);
Set("#227", #58++);
Set("#219", #58++);
Set("#223", #58++);
Set("#7", #227);
_prIn = function () {
if (#323() == false) {
attachMovie("_flash7", "#431", 100);
stop();
return(undefined);
}
attachMovie("_preloaderClock", "#107", 100);
#107._x = 288;
#107._y = 208;
#107["#101"] = 0;
setPreloaderClock(0);
};
Set("#317", function () {
#107.removeMovieClip();
});
Set("#323", function () {
var _local2 = System.capabilities.version;
var _local1 = _local2.split(String.fromCharCode(44));
var _local3 = _local1[0].indexOf(String.fromCharCode(32)) + 1;
var _local4 = Number(_local1[0].substr(_local3));
if (_local4 < 7) {
return(false);
}
return(true);
});
setPreloaderClock = function (_arg4) {
var _local1 = #107;
_local1["#377"] = _arg4;
_local1["#101"] = _local1["#101"] + ((_local1["#377"] - _local1["#101"]) * 0.1);
var _local3 = 0;
var _local2 = 0;
_local3 = Math.min(500, _local1["#101"]) / 500;
if (_local1["#101"] > 500) {
_local2 = (_local1["#101"] - 500) / 500;
_local1._slice2._visible = true;
} else {
_local1._slice2._visible = false;
}
_local1._slice1._rotation = 180 + (180 * _local3);
_local1._slice2._rotation = 0 + (180 * _local2);
};
_prMa = function () {
var _local3 = _root.getBytesLoaded();
var _local2 = _root.getBytesTotal();
if (_local2 <= 4) {
return(false);
}
var _local4 = (_local3 / _local2) * 1000;
setPreloaderClock(_local4);
if (_local3 == _local2) {
#317();
return(true);
}
return(false);
};
_ma = function () {
switch (#7) {
case #227 :
_root["#96"]._alpha = Math.min(100, #96._alpha + 5);
if (_root["#96"]._alpha == 100) {
Set("#161", 60);
Set("#7", #219);
}
break;
case #219 :
#161--;
if (#161 == 0) {
Set("#7", #223);
}
break;
case #223 :
_root["#96"]._alpha = Math.max(0, #96._alpha - 5);
if (_root["#96"]._alpha != 0) {
break;
}
gotoAndStop ("#285");
}
};
Frame 2
_prIn();
Frame 3
if (_prMa() == true) {
gotoAndPlay ("_prDo");
}
Frame 4
gotoAndPlay ("_prLp");
Frame 10
_ma();
Frame 11
gotoAndPlay ("_maLp");
Frame 12
Set("#146", false);
Set("#381", 20011349) /* 0x1315955 */;
if (#146 == true) {
Set("#168", [1995, 2000, 2001, 2006, 1949, 1927, 1926, 1990, 1988, 1999, 1996, 1986, 1991, 2015, 1986, 1990, 1948, 1984, 2000, 2007, 2000, 2009, 2004, 2015, 1992, 2019, 1995, 1930, 1936, 1959, 1952, 1967, 1958, 1975, 2026, 1952, 1966, 1978, 1964, 1955, 1983, 1977, 1981, 2017]);
} else {
Set("#168", []);
}
Set("#222", [1985, 1989, 1990, 1997, 1986, 1990, 1997, 1924, 2011, 1988, 2013]);
Set("#235", [2031, 1995, 1988, 1986, 2033, 1993, 2011, 2009]);
Set("#444", [1996, 1999]);
Set("#239", [1984, 1995, 1992, 1995, 1990, 1990, 1997]);
Set("#418", [2001, 1985, 2006, 2003, 1995, 2012]);
Set("#325", [1990, 1994, 1985, 1985, 1990, 1989, 1996]);
Set("#306", [1988, 1985, 2001, 1991, 2003, 2012, 2011, 1987, 1993, 2015]);
Set("#324", [1986, 2000, 2001, 2004, 1998, 1994, 1945]);
Set("#411", [1986, 2000, 2001, 2004, 1998, 1994, 1944]);
Set("#412", [1986, 2000, 2001, 2004, 1998, 1994, 1947]);
Set("#247", [1996, 1994, 2025, 1993, 1990, 1996]);
Set("#226", [1948, 2006, 1944]);
Set("#217", [2000, 1985, 1995, 1986, 2022, 1990, 1997, 2022, 1988, 1997, 1993]);
Set("#267", [2035, 2027, 2038, 2034]);
Set("#388", [2011]);
Set("#31", null);
Set("#207", 0);
Set("#85", true);
Set("#136", true);
Set("#133", 0);
Set("#257", -1);
Set("#379", function () {
var _local3 = 10000;
Set("#207", Math.floor((Math.random() * _local3) * _local3));
if (#146 == false) {
var _local2 = #428(#406);
_root.createEmptyMovieClip("#373", #275++);
loadMovie (_local2, _root["#373"]);
}
});
Set("#434", function (s) {
var _local4 = 87;
var _local1;
var _local3;
_local3 = "";
_local1 = 0;
while (_local1 < s.length) {
_local3 = _local3 + String.fromCharCode(s[_local1] ^ _local4);
_local1++;
}
return(_local3);
});
Set("#309", function () {
delete #31;
var #106 = eval (#19(#235));
Set("#31", new #106());
#31[#19(#247)] = #294;
#31[#19(#239)] = #19(#306);
var s = (#19(#168) + #19(#222));
if (#146 == false) {
s = s + (#19(#226) + #207);
}
Set("#85", false);
#31[#19(#217)](s, #31, #19(#267));
});
Set("#294", function (_arg1) {
if (_arg1 != true) {
Set("#85", true);
Set("#136", false);
return(undefined);
}
Set("#257", Number(#31[#19(#324)]));
Set("#85", true);
Set("#136", true);
});
Set("#48", function (b) {
var _local1;
var _local2;
b = b ^ #133;
_local1 = (b >> 4) & 15;
if (_local1 < 10) {
_local1 = _local1 + 48;
} else {
_local1 = _local1 + 87;
}
_local2 = String.fromCharCode(_local1);
_local1 = (b >> 0) & 15;
if (_local1 < 10) {
_local1 = _local1 + 48;
} else {
_local1 = _local1 + 87;
}
_local2 = _local2 + String.fromCharCode(_local1);
return(_local2);
});
Set("#302", function (_arg2, score) {
var _local3 = "";
Set("#133", 182);
Set("#133", #133 - 17);
var _local4 = 0;
var _local1;
_local1 = 0;
while (_local1 < _arg2.length) {
_local4 = _local4 + _arg2.charCodeAt(_local1);
_local1++;
}
_local4 = _local4 + ((score >> 24) & 255);
_local4 = _local4 + ((score >> 16) & 255);
_local4 = _local4 + ((score >> 8) & 255);
_local4 = _local4 + ((score >> 0) & 255);
_local3 = _local3 + #48(2);
_local3 = _local3 + #48((_local4 >> 8) & 255);
_local3 = _local3 + #48((_local4 >> 0) & 255);
_local3 = _local3 + #48(_arg2.length);
_local1 = 0;
while (_local1 < _arg2.length) {
_local3 = _local3 + #48(_arg2.charCodeAt(_local1));
_local1++;
}
_local3 = _local3 + #48(4);
_local3 = _local3 + #48((score >> 24) & 255);
_local3 = _local3 + #48((score >> 16) & 255);
_local3 = _local3 + #48((score >> 8) & 255);
_local3 = _local3 + #48((score >> 0) & 255);
return(_local3);
});
_global["#320"] = function (#141, score) {
var s;
delete #31;
var #106 = eval (#19(#235));
Set("#31", new #106());
#31[#19(#247)] = #296;
#31[#19(#239)] = #19(#325);
#31[#19(#388)] = #302(#141, score);
s = #19(#168) + #19(#222);
if (#146 == false) {
s = s + (#19(#226) + #207);
}
Set("#85", false);
#31[#19(#217)](s, #31, #19(#267));
};
Set("#296", function (_arg1) {
if (_arg1 != true) {
Set("#85", true);
Set("#136", false);
return(undefined);
}
Set("#85", true);
Set("#136", true);
});
Set("#19", function (s) {
var _local1;
var _local4 = "";
var _local2 = 1955;
_local1 = 0;
while (_local1 < s.length) {
_local4 = _local4 + String.fromCharCode(s[_local1] ^ _local2);
_local2++;
_local1++;
}
return(_local4);
});
#379();
#309();
#1.getInstance().setupButtons(_root["#72"], _root["#71"]);
#51.setup();
if (!_root["#4"]) {
_root["#300"].text = "#9";
_root["#141"] = "#415";
} else {
_root["#300"].text = _root["#141"];
}
Frame 22
stop();
#1.getInstance().setupButtons(_root["#72"], _root["#71"]);
if (!#4) {
var #4 = new #5();
}
if (#4["#7"] == #4["#122"]) {
_root["#4"].#8(_root["#4"]["#150"]);
}
Frame 32
#1.getInstance().setupButtons(_root["#72"], _root["#71"]);
stop();
Symbol 19 Button [#242]
on (press) {
_root.gotoAndStop("#5");
stop();
}
Symbol 503 MovieClip [__Packages.#51] Frame 0
class #51
{
function #51 () {
}
static function setup() {
var _local2 = (("p {font-family: Arial; font-size: 11; font-weight: bold;} " + ".heading {font-family: Arial; font-size: 12; font-weight: bold; color: #F9D17F;}") + ".key {font-family: Courier New; font-size: 12; font-weight: bold; color: #FFFFCC;}") + ".highlight {font-family: Arial; font-size: 11; font-weight: bold; color: #FCDCC7;}";
var _local4 = new TextField.StyleSheet();
_local4.parseCSS(_local2);
_root["#169"].html = true;
_root["#169"].styleSheet = _local4;
_local2 = (("p {font-family: Arial; font-size: 11; font-weight: bold;} " + ".heading {font-family: Arial; font-size: 12; font-weight: bold;}") + ".key {font-family: Courier New; font-size: 12; font-weight: bold;}") + ".highlight {font-family: Arial; font-size: 11; font-weight: bold;}";
var _local3 = new TextField.StyleSheet();
_local3.parseCSS(_local2);
_root["#158"].html = true;
_root["#158"].styleSheet = _local3;
#208(1);
}
static function #208(_param1) {
_root["#169"].text = #51["PAGE" + #83];
_root["#158"].text = #51["PAGE" + #83];
var _local2 = true;
if (#83 == 1) {
_local2 = false;
_root["#180"].onRelease = null;
} else {
_local2 = true;
_root["#180"].onRelease = function () {
#51.#208(#83 - 1);
};
}
_root["#180"]._visible = _local2;
_root["#343"]._visible = _local2;
_root["#371"]._visible = _local2;
if (#83 == PAGES) {
_local2 = false;
_root["#179"].onRelease = null;
} else {
_local2 = true;
_root["#179"].onRelease = function () {
#51.#208(#83 + 1);
};
}
_root["#179"]._visible = _local2;
_root["#341"]._visible = _local2;
_root["#369"]._visible = _local2;
}
static var PAGES = 4;
static var PAGE1 = "<p>Score points by making baskets from the <span class='highlight'>Hot Spot</span> (the moving, blue circle). Baskets only count if your player shoots from the Hot Spot.<br> </p><p class='heading'>MOVING</p><p>Use the <span class='key'>Up</span>, <span class='key'>Down</span>, <span class='key'>Left</span> and <span class='key'>Right</span> arrow keys.<br> </p><p class='heading'>SHOOTING</p><p>Press and hold the <span class='key'>Space Bar</span> to being shooting.<br>Release the <span class='key'>Space Bar</span> as your player approaches the high point of his jump.<br>Don't hold on for too long! Shots released after your player reaches the highest point of his jump will miss.<br> </p>";
static var PAGE2 = "<p class='heading'>SCORING</p><p>Normal shots are worth 2 points.<br>Shots from beyond the arc are worth 3 points.<br> </p><p class='heading'>ACCURACY COUNTS</p><p>Make all the shots required in a round and receive one bonus point for each basket.<br> </p><p>Miss a basket and lose 5 seconds from the time allocated for the round.<br> </p><p class='heading'>TIME BONUS</p><p>Complete a round before time runs out and receive one bonus point for every second left on the clock.<br> </p>";
static var PAGE3 = "<p class='heading'>PRESSURE SHOTS</p><p>Occasionally the Coach will give you a <span class='highlight'>Pressure Shot</span> (indicated by a P on the Hot Spot). Pressure shots are worth 3X the shot's normal value.<br> </p><p class='heading'>ON FIRE</p><p>Make 5 baskets in a row and you're <span class='highlight'>on fire</span>! Shots made while on fire are worth 2X their normal value.<br> </p><p>If you make a pressure shot while on fire, you will earn 5X its normal value.</p>";
static var PAGE4 = "<p class='heading'>STREAKS</p><p>Make 15 baskets in a row and go on a <span class='highlight'>streak</span>. Baskets made on a streak get you:<br> </p><p> 15-19: 1 extra point</p><p> 20-24: 2 extra points</p><p> 25-29: 3 extra points</p><p> 30-34: 4 extra points</p><p> 35-39: 5 extra points</p><p> 40-44: 6 extra points</p><p> 45-49: 7 extra points</p><p> 50-54: 8 extra points</p><p> 55-59: 9 extra points</p><p> 60-64: 10 extra points</p><p> 65-69: 11 extra points<br> </p><p>Streak bonuses add up in addition to any other bonuses.</p>";
}
Symbol 504 MovieClip [__Packages.#26] Frame 0
class #26
{
static var instance;
var #12, #15, #38, #66;
function #26 (_arg3) {
instance = this;
_root.createEmptyMovieClip("sfxMC", _root.getNextHighestDepth());
_root.createEmptyMovieClip("musicMC", _root.getNextHighestDepth());
if (#95) {
#0.log((#2() + "created ") + toString());
}
if (_arg3 != undefined) {
#339(_arg3);
}
}
static function getInstance() {
if (instance == null) {
instance = new #26();
}
return(instance);
}
function #2() {
return("SoundManager: ");
}
function toString(_arg3) {
var _local2 = "[SoundManager ";
_local2 = _local2 + ("sfx: " + #77);
if (#32) {
_local2 = _local2 + "(muted) ";
}
_local2 = _local2 + (", music: " + musicVolume);
if (#39) {
_local2 = _local2 + "(muted) ";
}
_local2 = _local2 + (", sounds: " + #12.length);
if (_arg3) {
_local2 = _local2 + "\nMusic:";
_local2 = _local2 + (("\n " + #15.join("\n ")) + newline);
_local2 = _local2 + "\nSound:";
_local2 = _local2 + (("\n " + #12.join("\n ")) + newline);
}
_local2 = _local2 + "]";
return(_local2);
}
function #339(names, _arg7, append) {
if ((names == undefined) || (names.length < 1)) {
return(undefined);
}
if (_arg7 == undefined) {
_arg7 = "#385";
}
var _local6 = new Array(names.length);
var _local3 = 0;
while (_local3 < names.length) {
_local6[_local3] = new #27(_root.sfxMC);
var _local4 = (#32 ? 0 : (#77));
_local6[_local3].loadSound(_arg7, names[_local3], _local4);
_local3++;
}
if (append) {
#12 = #12.concat(_local6);
#38 = #38.concat(names);
} else {
#12 = _local6;
#38 = names;
}
}
function #316(names, append) {
if ((names == undefined) || (names.length < 1)) {
return(undefined);
}
var _local6 = new Array(names.length);
var _local3 = 0;
while (_local3 < names.length) {
_local6[_local3] = new #27(_root.sfxMC);
var _local4 = (#32 ? 0 : (#77));
_local6[_local3].attachSound(names[_local3], _local4);
_local3++;
}
if (append && (#12 != undefined)) {
#12 = #12.concat(_local6);
#38 = #38.concat(names);
} else {
#12 = _local6;
#38 = names;
}
if (#95) {
#0.log((#2() + "attached sounds: ") + toString(true));
}
}
function #427(names, _arg7, append) {
if ((names == undefined) || (names.length < 1)) {
return(undefined);
}
if (_arg7 == undefined) {
_arg7 = "music";
}
var _local6 = new Array(names.length);
var _local3 = 0;
while (_local3 < names.length) {
_local6[_local3] = new #27(_root.musicMC);
var _local4 = (#39 ? 0 : (musicVolume));
_local6[_local3].loadSound(_arg7, names[_local3], _local4);
_local3++;
}
if (append) {
#15 = #15.concat(_local6);
#66 = #66.concat(names);
} else {
#15 = _local6;
#66 = names;
}
}
function #322(names, append) {
if ((names == undefined) || (names.length < 1)) {
return(undefined);
}
var _local6 = new Array(names.length);
var _local3 = 0;
while (_local3 < names.length) {
_local6[_local3] = new #27(_root.musicMC);
var _local4 = (#39 ? 0 : (musicVolume));
_local6[_local3].attachSound(names[_local3], _local4);
_local3++;
}
if (append && (#12 != undefined)) {
#15 = #15.concat(_local6);
#66 = #66.concat(names);
} else {
#15 = _local6;
#66 = names;
}
}
function setSoundVolume(_arg3) {
_arg3 = Math.round(_arg3);
if (_arg3 < 0) {
_arg3 = 0;
} else if (_arg3 > 100) {
_arg3 = 100;
}
#77 = _arg3;
if (!#32) {
var _local2 = 0;
while (_local2 < #12.length) {
#12[_local2].setVolume(_arg3);
_local2++;
}
}
}
function getSoundVolume() {
if (#32) {
return(0);
}
return(#77);
}
function setMusicVolume(_arg2) {
_arg2 = Math.round(_arg2);
if (_arg2 < 0) {
_arg2 = 0;
} else if (_arg2 > 100) {
_arg2 = 100;
}
musicVolume = _arg2;
if (!#39) {
#15[currentMusic].setVolume(_arg2);
}
}
function getMusicVolume() {
if (#39) {
return(0);
}
return(musicVolume);
}
function #353(_arg3) {
#32 = true;
var _local2 = 0;
while (_local2 < #12.length) {
if (#12[_local2]["#34"] && (#12[_local2].getVolume() > 0)) {
#12[_local2].#64(0, _arg3);
}
_local2++;
}
}
function #352(_arg3) {
#39 = true;
var _local2 = 0;
while (_local2 < #15.length) {
if (#15[_local2]["#34"] && (#15[_local2].getVolume() > 0)) {
#15[_local2].#64(0, _arg3);
}
_local2++;
}
}
function #332(_arg3) {
#32 = false;
var _local2 = 0;
while (_local2 < #12.length) {
if (#12[_local2]["#34"]) {
#12[_local2].#64(#77, _arg3);
}
_local2++;
}
}
function #331(_arg3) {
#39 = false;
var _local2 = 0;
while (_local2 < #15.length) {
if (#15[_local2]["#34"]) {
#15[_local2].#64(musicVolume, _arg3);
}
_local2++;
}
}
function #187(_arg2, _arg3, _arg4) {
if (#32) {
return(undefined);
}
if (#12[_arg2] == undefined) {
#0.log((((#2() + "undefined sound ") + _arg2) + ": ") + #38[_arg2]);
} else {
if (#95) {
#0.log(((((((((#2() + "playing sound ") + _arg2) + ": ") + #38[_arg2]) + ", volume ") + getSoundVolume()) + ", ") + _arg3) + " loops");
}
if ((_arg3 == undefined) || (_arg3 < 1)) {
_arg3 = 1;
}
if (((_arg4 == undefined) || (_arg4 <= 0)) || (#32)) {
#12[_arg2].setVolume(getSoundVolume());
#12[_arg2].start(0, _arg3);
} else {
#12[_arg2].setVolume(0);
#12[_arg2].start(0, _arg3);
#12[_arg2].#64(getSoundVolume(), _arg4);
}
}
}
function #399(_arg4, _arg2, _arg3) {
if (#32) {
return(undefined);
}
#187(getSoundIDForName(_arg4), _arg2, _arg3);
}
function #263(_arg2, _arg3) {
if (#12[_arg2] == undefined) {
#0.log((((#2() + "undefined sound ") + _arg2) + ": ") + #38[_arg2]);
} else {
if (!#12[_arg2]["#34"]) {
return(undefined);
}
if (#95) {
#0.log(((((((((#2() + "stopping sound ") + _arg2) + ": ") + #38[_arg2]) + ", volume ") + #12[_arg2].getVolume()) + " (") + #12[0].getVolume()) + ")");
}
if ((_arg3 == undefined) || (_arg3 <= 0)) {
#12[_arg2].stop();
} else {
#12[_arg2].#64(0, _arg3);
}
}
}
function #400(_arg3, _arg2) {
#263(getSoundIDForName(_arg3), _arg2);
}
function stopAllSounds(_arg3) {
var _local2 = 0;
while (_local2 < #38.length) {
#263(_local2, _arg3);
_local2++;
}
}
function getSoundIDForName(_arg3) {
var _local2 = 0;
while (_local2 < #38.length) {
if (#38[_local2] == _arg3) {
return(_local2);
}
_local2++;
}
if (#95) {
#0.log((#2() + "getSoundIDForName couldn't find sound ") + _arg3);
}
return(undefined);
}
function getSoundForName(_arg2) {
return(#12[getSoundIDForName(_arg2)]);
}
function #354(_arg2) {
if (#15[currentMusic] == undefined) {
#0.log(#2() + "SoundManager: current music is undefined");
return(undefined);
}
if (#95) {
#0.log((((#2() + "playing music #") + currentMusic) + " at volume ") + getMusicVolume());
}
if (((_arg2 == undefined) || (_arg2 <= 0)) || (#39)) {
#15[currentMusic].setVolume(getMusicVolume());
#15[currentMusic].start(0, 9999);
} else {
#15[currentMusic].setVolume(0);
#15[currentMusic].start(0, 9999);
#15[currentMusic].#64(musicVolume, _arg2);
}
}
function #261(_arg2) {
if ((_arg2 == undefined) || (_arg2 <= 0)) {
#15[currentMusic].stop();
} else {
#15[currentMusic].#64(0, _arg2, true);
}
}
function setMusicByName(_arg2) {
setMusic(getMusicIDForName(_arg2));
}
function setMusic(_arg2) {
currentMusic = _arg2;
}
function #329(_arg3, _arg2) {
#261(_arg3, _arg2);
setMusic(_arg3);
#354(_arg2);
}
function getCurrentMusic() {
return(#15[currentMusic]);
}
function getMusicIDForName(_arg3) {
var _local2 = 0;
while (_local2 < #66.length) {
if (#66[_local2] == _arg3) {
return(_local2);
}
_local2++;
}
#0.log((#2() + "SoundManager: getMusicIDForName couldn't find music ") + _arg3);
return(undefined);
}
function getMusicForName(_arg2) {
return(#15[getMusicIDForName(_arg2)]);
}
static var #95 = false;
var currentMusic = 0;
var #77 = 50;
var musicVolume = 50;
var #32 = false;
var #39 = false;
}
Symbol 505 MovieClip [__Packages.#0] Frame 0
class #0
{
function #0 () {
}
static function log(message) {
if (#3) {
message = (("[" + #359(getTimer())) + "] ") + message;
trace(message);
}
}
static function #359(time) {
if (time == undefined) {
return("undefined");
}
var _local2 = time % 1000;
if (_local2 < 10) {
_local2 = "00" + _local2;
} else if (_local2 < 100) {
_local2 = "0" + _local2;
}
time = Math.floor(time / 1000);
var _local3 = time % 60;
if (_local3 < 10) {
_local3 = "0" + _local3;
}
time = Math.floor(time / 60);
var _local4 = time % 60;
if (_local4 < 10) {
_local4 = "0" + _local4;
}
time = Math.floor(time / 60);
return((((((time + ":") + _local4) + ":") + _local3) + ".") + _local2);
}
static function #424() {
var _local3 = new Date();
var _local4 = _local3.getHours();
if (_local4 < 10) {
_local4 = "0" + _local4;
}
var _local5 = _local3.getMinutes();
if (_local5 < 10) {
_local5 = "0" + _local5;
}
var _local2 = _local3.getSeconds();
if (_local2 < 10) {
_local2 = "0" + _local2;
}
var _local1 = _local3.getMilliseconds();
if (_local1 < 10) {
_local1 = "00" + _local1;
} else if (_local1 < 100) {
_local1 = "0" + _local1;
}
return((((((_local4 + ":") + _local5) + ":") + _local2) + ".") + _local1);
}
static function #396(mc) {
if (mc == undefined) {
return("[MovieClip undefined]");
}
var _local2 = ("[MovieClip " + mc._name) + " ";
_local2 = _local2 + (((("frame=" + mc._currentframe) + "/") + mc._totalframes) + " ");
_local2 = _local2 + (((((((("x=" + mc._x) + " y=") + mc._y) + " w=") + mc._width) + " h=") + mc._height) + " ");
_local2 = _local2 + (((("alpha=" + mc._alpha) + " visible=") + mc._visible) + " ");
_local2 = _local2 + (("depth=" + mc.getDepth()) + " ");
_local2 = _local2 + (("url=" + mc._url) + " ");
_local2 = _local2 + "]";
return(_local2);
}
static var #3 = false;
}
Symbol 506 MovieClip [__Packages.#27] Frame 0
class #27
{
var #34, #192, #17, name, #28, #22, #131, #228;
function #27 (context) {
#34 = false;
#192 = 1;
#17 = new Sound(context);
}
function #2() {
return(("SoundWrapper (" + name) + "): ");
}
function loadSound(_arg4, name, volume, offset, _param5) {
this.name = name;
if (volume == undefined) {
volume = 100;
}
#28 = volume;
#22 = volume;
#17["#43"] = this;
#17.onLoad = function (success) {
if (success) {
this["#43"].setVolume(this["#43"]["#28"]);
if (offset != undefined) {
this["#43"].start(offset, #120);
}
this["#43"].onLoad();
} else {
#0.log("failed to load " + this["#43"]);
}
};
#17.onSoundComplete = function () {
if (#27["#3"]) {
#0.log(this["#43"] + " complete");
}
this["#43"]["#34"] = false;
this["#43"].onSoundComplete();
};
#17.loadSound((_arg4 + "/") + name, false);
}
function attachSound(name, volume, offset, _arg5) {
this.name = name;
#17.attachSound(name);
if (volume == undefined) {
volume = 100;
}
#28 = volume;
#22 = volume;
#17.setVolume(volume);
if (offset != undefined) {
#17.start(offset, _arg5);
}
#17["#43"] = this;
#17.onSoundComplete = function () {
if (#27["#3"]) {
#0.log(this["#43"] + " complete");
}
this["#43"]["#34"] = false;
this["#43"].onSoundComplete();
};
if (#3) {
#0.log((#2() + "attached ") + toString());
}
}
function start(offset, _arg3) {
if (#3) {
#0.log(((((#2() + "starting ") + toString()) + ", ") + _arg3) + " loops");
}
#34 = true;
#17.start(offset, _arg3);
if (#22 != #28) {
#131 = _global.setInterval(this, "#167", 100);
}
}
function stop() {
if (#3) {
#0.log((#2() + "stopping ") + toString());
}
#34 = false;
#17.stop();
}
function getVolume() {
return(#28);
}
function setVolume(volume) {
if (#3) {
#0.log((#2() + "setting volume to ") + volume);
}
#28 = volume;
#22 = volume;
#17.setVolume(volume);
}
function #64(_arg2, time, _arg5) {
if (_arg2 < 0) {
#0.log(((#2() + "bad fade target ") + _arg2) + ", setting to 0");
_arg2 = 0;
} else if (_arg2 > 100) {
#0.log(((#2() + "bad fade target ") + _arg2) + ", setting to 100");
_arg2 = 100;
}
if (#3) {
#0.log(((((((#2() + "fading ") + toString()) + "'s volume to ") + _arg2) + " over ") + time) + "#476");
}
#22 = #17.getVolume();
#28 = _arg2;
var _local3 = _arg2 - #22;
#192 = Math.abs((_local3 / time) * 250);
if (!#34) {
#34 = true;
#17.start();
}
#228 = _arg5;
clearInterval(#131);
#131 = setInterval(this, "#167", 250);
#167();
}
function #167() {
if (!#34) {
clearInterval(#131);
}
if (#22 < #28) {
#22 = #22 + #192;
if (#22 > #28) {
#22 = #28;
}
} else {
#22 = #22 - #192;
if (#22 < #28) {
#22 = #28;
}
}
if (#3) {
#0.log((((#2() + "targetVolume = ") + #28) + ", fadeVolume = ") + #22);
}
#17.setVolume(#22);
if (#22 == #28) {
clearInterval(#131);
if (#228) {
stop();
}
}
}
function toString() {
var _local2 = ((((((((((("[SoundWrapper name: \"" + name) + "\"") + ", volume: ") + #17.getVolume()) + "/") + #28) + ", pan: ") + #17.getPan()) + ", duration: ") + #17.duration) + ", position: ") + #17.position;
if (#17.getBytesLoaded() != undefined) {
_local2 = _local2 + (((", bytes: " + #17.getBytesLoaded()) + "/") + #17.getBytesTotal());
}
_local2 = _local2 + "]";
return(_local2);
}
static var #3 = false;
}
Symbol 507 MovieClip [__Packages.#1] Frame 0
class #1 extends #26
{
static var instance;
var musicVolume, #77, #32, #39, #188, #316, #259, #322, #241;
function #1 () {
super();
instance = this;
musicVolume = 25;
#77 = 33;
#32 = true;
#39 = true;
#188 = new Array();
var _local3 = #62[#202];
while (_local3 < #62[#390]) {
if (_local3 < 10) {
#188[_local3] = ("FIUB_0" + _local3) + ".mp3";
} else {
#188[_local3] = ("FIUB_" + _local3) + ".mp3";
}
_local3++;
}
#316(#188, false);
#259 = new Array();
#259[1] = "BGM1.mp3";
#322(#259, false);
#241 = getTimer();
}
static function getInstance() {
if (instance == null) {
instance = new #1();
}
return(instance);
}
function #2() {
return("BSoundManager: ");
}
function setupButtons(_arg4, _arg3) {
if (#32) {
_arg4.gotoAndStop(2);
} else {
_arg4.gotoAndStop(1);
}
_arg4.onRelease = function () {
var _local2 = #1.getInstance();
if (_local2["#32"]) {
_local2.#332(1000);
this.gotoAndStop(1);
} else {
_local2.#353(1000);
this.gotoAndStop(2);
}
if (#1["#3"]) {
#0.log((_local2.#2() + "clicked sound button, mute=") + _local2["#32"]);
}
};
if (#39) {
_arg3.gotoAndStop(2);
} else {
_arg3.gotoAndStop(1);
}
_arg3.onRelease = function () {
var _local2 = #1.getInstance();
if (_local2["#39"]) {
_local2.#331(1000);
this.gotoAndStop(1);
} else {
_local2.#352(1000);
this.gotoAndStop(2);
}
if (#1["#3"]) {
#0.log((_local2.#2() + "clicked music button, mute=") + _local2["#39"]);
}
};
}
function #20(_arg3) {
switch (_arg3) {
case #202 :
case #380 :
case #270 :
case #251 :
case #252 :
case #277 :
case #347 :
case #196 :
case #253 :
case #244 :
if (#3) {
#0.log((((#2() + "playing sound ") + #62[_arg3]) + " for event ") + _arg3);
}
super.#187(#62[_arg3]);
break;
case #281 :
case #389 :
case #201 :
case #265 :
if (#3) {
#0.log((#2() + "playing random sound for event ") + _arg3);
}
case #195 :
#218(#62[_arg3], #62[_arg3 + 1]);
break;
case #116 :
var _local4 = getTimer();
if ((_local4 - #241) > 700) {
#241 = _local4;
#218(#62[_arg3], #62[_arg3 + 1]);
}
break;
case #360 :
if (#3) {
#0.log(#2() + "no sound for this event");
}
break;
default :
#0.log((#2() + "tried to play sound for bad event: ") + _arg3);
}
}
function #218(first, _arg4) {
var _local2 = random(_arg4 - first) + first;
super.#187(_local2);
}
static var #3 = false;
static var #202 = 0;
static var #281 = 1;
static var MISSING = 2;
static var #389 = 3;
static var #201 = 4;
static var #265 = 5;
static var #244 = 6;
static var #253 = 7;
static var #380 = 8;
static var #270 = 9;
static var #195 = 10;
static var #116 = 11;
static var #251 = 12;
static var #252 = 13;
static var #277 = 14;
static var #347 = 15;
static var #196 = 16;
static var #390 = 17;
static var #62 = [1, 2, 16, 17, 30, 48, 50, 51, 52, 53, 54, 57, 60, 61, 62, 63, 64, 65];
static var #360 = -1;
static var #430 = -1;
}
Symbol 508 MovieClip [__Packages.#5] Frame 0
class #5
{
var #138, #102, bonusX2, bonusX3, bonusX5, bonusDisplay, #199, #44, #112, #326, #413, #35, #191, #59, #9, #60, #338;
function #5 () {
if (#3) {
_root.createEmptyMovieClip("fps", 1000);
_root.fps.loadMovie("#462.swf");
}
_quality = "#464";
Stage.showMenu = false;
scale = _root.background._width / 702;
if (#3) {
#0.log((("width: " + _root.background._width) + ", game scale: ") + scale);
}
#138 = #1.getInstance();
#138.setupButtons(_root["#72"], _root["#71"]);
#36 = getTimer();
#178 = #36;
#8(#122);
#102 = new #37();
bonusX2 = new #68("bonusX2", "x2", 142 * scale, 21 * scale, -100);
bonusX3 = new #68("bonusX3", "x3", 152 * scale, 21 * scale, -110);
bonusX5 = new #68("bonusX5", "x5", 162 * scale, 21 * scale, -120);
bonusDisplay = new #68("bonusBonus", "bonus", 143 * scale, 30 * scale, -130);
_root["#327"] = true;
_root.onEnterFrame = #393;
if (#3) {
#0.log((((#2() + "created game, player id: ") + #56) + ", bounds: ") + Bounds.toString());
}
}
function #2() {
return(((("Game s" + #7) + " l") + level) + ": ");
}
function #393() {
_root["#4"].#383();
}
function #82() {
#52 = 0;
#355 = [];
#199 = 0;
#44 = 0;
level = 0;
#112 = 0;
#326 = 0;
#413 = 0;
#356 = false;
#185();
_root["#35"].#8(#35["#33"]);
#191 = 0;
#297 = false;
#59 = false;
_root.onFire.gotoAndStop("#142");
_root["#278"].gotoAndStop("#142");
#102 = new #37();
}
function #45() {
#9.#135();
#134 = false;
bonusX2.hide();
bonusX3.hide();
bonusX5.hide();
bonusDisplay.hide();
}
function #394() {
#199++;
#44 = 0;
#52 = #52 - 0.0833333333333333;
if (_root["#24"].#203()) {
#102.#271(false, 0);
_root["#24"].#147();
} else if (#37["#3"]) {
var _local3 = "miss from outside shot point";
_root["#143"].text = _local3;
#0.log(#2() + _local3);
}
if (!_root["#24"].#163()) {
_root["#18"].#8(_root["#18"]["#61"]);
}
#9.#135();
}
function getPlayerNetDistance() {
var _local4 = #9._x - _root["#35"]._x;
var _local3 = #9._y - _root["#35"]._y;
var _local9 = Math.round(Math.sqrt((_local4 * _local4) + (_local3 * _local3)));
var _local6 = Bounds.getXMin() - _root["#35"]._x;
var _local5 = Bounds.getYMax() - _root["#35"]._y;
var _local7 = Math.round(Math.sqrt((_local6 * _local6) + (_local5 * _local5)));
var _local8 = 100 - Math.round(((_local7 - _local9) / _local7) * 100);
return(_local8);
}
function #318() {
_root["#237"].text = "";
var _local3 = Math.floor((getTimer() - #36) / 1000);
var _local4 = (#52 * 60) - _local3;
#9.#344();
if (#60.#236()) {
if (#3) {
#0.log(#2() + "hits complete");
}
_root["#4"].#185();
}
}
function #185() {
if (#3) {
#0.log(#2() + "next level");
}
if (level > 0) {
var _local4 = Math.floor((getTimer() - #36) / 1000);
var _local3 = (#52 * 60) - _local4;
if (_local3 < 0) {
_local3 = 0;
}
#102.#361(level, _local3);
#52 = (_local3 / 60) + #243[level];
} else {
#52 = #243[level];
}
#36 = getTimer();
level++;
var _local6 = Math.floor(#52);
var _local5 = Math.floor(#52 * 60) % 60;
_root.levelDisplay.draw(level);
#60.#82(5 * level);
_root["#24"].setScale(level);
if (level >= 6) {
if (#3) {
#0.log(((#2() + "level ") + level) + ", going to game over");
}
level = 5;
#8(#152);
} else {
_root["#24"]["#246"] = 2.5 + (level / 6);
_root.levelComplete.number.gotoAndStop(level);
_root.levelComplete.play();
#7 = #150;
}
}
function #4#286() {
}
function #8(_arg3) {
if (#7 == _arg3) {
if (#3) {
#0.log((#2() + "already in state ") + #7);
}
return(undefined);
}
if (_arg3 == #150) {
if (#3) {
#0.log(#2() + "Switching to GAME state");
}
#60 = new #137(10);
#134 = false;
_root.gotoAndStop("#5");
#82();
#36 = getTimer();
_root["#327"] = false;
#9 = _root["#370"];
#9.setID(#56);
_root["#250"].setColor(#81);
_root["#176"].setColor(#81);
_root["#170"].setColor(#81);
_root.levelDisplay.setColor(#200);
bonusX2.show();
bonusX3.show();
bonusX5.show();
bonusDisplay.show();
#138.#329(1, 3000);
#138.#20(#1["#202"]);
} else if (_arg3 == #122) {
if (#3) {
#0.log(#2() + "Switching to MENU state");
}
#340 = false;
#45();
} else if (_arg3 == #152) {
if (#3) {
#0.log(#2() + "Switching to OVER state");
}
_root.gotoAndStop("#286");
#138.#261(3000);
#102.#357();
#45();
}
#7 = _arg3;
}
function score() {
if (_root["#11"]["#206"]) {
#1.getInstance().#20(#1["#251"]);
} else {
#1.getInstance().#20(#1["#252"]);
}
_root["#35"].#8(_root["#35"]["#164"]);
if (!_root["#24"].#203()) {
if (#37["#3"]) {
var _local3 = "score from outside shot point";
_root["#143"].text = _local3;
#0.log(#2() + _local3);
}
#44 = 0;
#9.#135();
_root["#18"].#8(_root["#18"]["#61"]);
return(undefined);
}
#199 = 0;
#44++;
#102.#271(true, #44);
_root["#24"].#147();
if (#44 == 5) {
_root.onFire.play();
}
if (#44 == 15) {
_root["#278"].play();
_root["#193"].#254("You're on a streak!");
}
if (#44 >= 5) {
#9.#307();
_root["#18"].#8(_root["#18"]["#233"]);
} else {
_root["#18"].#8(_root["#18"]["#90"]);
}
}
function #383() {
if ((#7 == #150) || (#7 == #145)) {
if (!#134) {
_root["#24"].#147();
#134 = true;
}
#349();
if (#9.hitTest(_root["#24"])) {
_root["#24"].#8(_root["#24"]["#183"]);
} else {
_root["#24"].#8(_root["#24"]["#165"]);
}
_root["#193"].setVisible(true);
#333();
if ((#191 < getTimer()) && (#7 == #145)) {
if (#3) {
#0.log(#2() + "time up");
}
#185();
}
if ((#338 < getTimer()) && (#59)) {
bonusDisplay.#111();
bonusX2.#111();
bonusX3.#111();
bonusX5.#111();
#59 = false;
}
#9.update(getTimer() - #178);
_root["#18"].update();
#60.update();
_root["#451"].update();
#178 = getTimer() - #36;
} else if (#7 == #152) {
} else if (#7 == #122) {
#350();
}
}
function #403(n) {
if (n == 1) {
return("#470");
}
if (n == 2) {
return("#471");
}
return("#454");
}
function #420(#426) {
return(true);
}
function #333() {
var _local6 = Math.floor((getTimer() - #36) / 1000);
var _local5 = (#52 * 60) - _local6;
var _local4 = Math.floor(_local5 / 60);
var _local3 = Math.floor(_local5 - (_local4 * 60));
if (_local4 < 0) {
_local4 = 0;
_local3 = 0;
}
_root["#250"].draw(_local4);
if (_local3 <= 0) {
_root["#176"].draw(0);
} else {
_root["#176"].draw(#14.getDigit(_local3, 1));
}
if (_local3 < 10) {
_root["#170"].draw(0);
} else {
_root["#170"].draw(#14.getDigit(_local3, 2));
}
if ((_local5 <= 0) && (#7 != #145)) {
#1.getInstance().#20(#1["#196"]);
if (#9["#47"]) {
#191 = getTimer() + 2000;
} else {
#191 = getTimer();
}
#8(#145);
}
}
function #350() {
}
function #349() {
var _local3 = false;
if (Key.isDown(32) || (Key.isDown(13))) {
if (((!#9["#47"]) && (!#9["#57"])) && (#9["#11"]._visible)) {
_root["#4"]["#9"].#392();
_local3 = true;
return(undefined);
}
} else {
#9.#205#10();
}
if (#9["#47"]) {
return(undefined);
}
if (Key.isDown(39)) {
_root["#4"]["#9"].#351(Key.isDown(38) || (Key.isDown(40)));
_local3 = true;
} else if (Key.isDown(37)) {
_root["#4"]["#9"].#368(Key.isDown(38) || (Key.isDown(40)));
_local3 = true;
}
if (Key.isDown(38)) {
_root["#4"]["#9"].#382(Key.isDown(37) || (Key.isDown(39)));
_local3 = true;
} else if (Key.isDown(40)) {
_root["#4"]["#9"].#367(Key.isDown(37) || (Key.isDown(39)));
_local3 = true;
} else if (Key.isDown(27)) {
_root["#4"].#8(#152);
}
if (!_local3) {
_root["#4"]["#9"].#391();
}
}
static var #3 = false;
static var #249 = true;
static var #446 = false;
static var #364 = false;
var #122 = 1;
var #150 = 2;
var #145 = 3;
var #152 = 4;
static var #81 = 15636787;
static var #291 = 16724736;
static var #200 = 52224;
var #52 = 2;
var #36 = 0;
var #178 = 0;
var #7 = 1;
var #56 = 2;
var #342 = 4;
var #328 = 5;
var #414 = 3;
var level = 0;
var #134 = false;
var #356 = false;
static var scale = 1;
var #355 = [];
var #243 = [0.5, 0.75, 1.166667, 1.583333, 2.083333];
var #340 = false;
var #297 = false;
}
Symbol 509 MovieClip [__Packages.#21] Frame 0
class #21 extends MovieClip
{
var _totalframes, _currentframe, _name, _height, _width, _y, _x, _yscale, _xscale, _visible, _alpha, getDepth, _url;
function #21 () {
super();
}
function __resolve(name) {
var _local3 = ((#2() + "can't resolve method or property \"") + name) + "\"";
arguments.shift();
if (arguments.length > 0) {
_local3 = _local3 + ((" with arguments [" + arguments.join(", ")) + "]");
}
#0.log(_local3);
}
function #2() {
return(((((((("MovieClipWrapper (" + _name) + "f") + _currentframe) + "/") + _totalframes) + " p") + _playing) + "): ");
}
function toString() {
var _local3 = ("[MovieClipWrapper " + _name) + " ";
_local3 = _local3 + (((("frame=" + _currentframe) + "/") + _totalframes) + " ");
_local3 = _local3 + (((((((("x=" + _x) + " y=") + _y) + " w=") + _width) + " h=") + _height) + " ");
_local3 = _local3 + ((("xscale=" + _xscale) + " yscale=") + _yscale);
_local3 = _local3 + (((("alpha=" + _alpha) + " visible=") + _visible) + " ");
_local3 = _local3 + (("depth=" + getDepth()) + " ");
if (_url != _root._url) {
_local3 = _local3 + (("url=" + _url) + " ");
}
_local3 = _local3 + "]";
return(_local3);
}
function #311() {
if (#53) {
#0.log(#2() + "#311");
}
_x = Math.round(_x);
_y = Math.round(_y);
}
function #458(_arg2) {
if (!_flippedX) {
_flippedX = true;
_xscale = _xscale * -1;
if (_arg2) {
_x = _x * -1;
}
if (#53) {
#0.log((#2() + "flipX: ") + _xscale);
}
}
}
function #439(_arg2) {
if (_flippedX) {
_flippedX = false;
_xscale = _xscale * -1;
if (_arg2) {
_x = _x * -1;
}
if (#53) {
#0.log((#2() + "unflipX: ") + _xscale);
}
}
}
function #459(_arg2) {
if (!_flippedY) {
_flippedY = true;
_yscale = _yscale * -1;
if (_arg2) {
_y = _y * -1;
}
if (#53) {
#0.log((#2() + "flipY: ") + _xscale);
}
}
}
function #440(_arg2) {
if (_flippedY) {
_flippedY = false;
_yscale = _yscale * -1;
if (_arg2) {
_y = _y * -1;
}
if (#53) {
#0.log((#2() + "unflipY: ") + _xscale);
}
}
}
function play() {
super.play();
if (!_playing) {
onPlay();
}
_playing = true;
if (#53) {
#0.log(#2() + "play");
}
}
function gotoAndPlay(_arg3) {
if (!#229(_arg3)) {
return(undefined);
}
super.gotoAndPlay(_arg3);
if (!_playing) {
onPlay();
}
_playing = true;
if (#53) {
#0.log(((#2() + "gotoAndPlay(") + _arg3) + ")");
}
}
function stop() {
super.stop();
if (_playing) {
onStop();
}
_playing = false;
if (#53) {
#0.log(#2() + "stop");
}
}
function gotoAndStop(_arg3) {
if (!#229(_arg3)) {
return(undefined);
}
super.gotoAndStop(_arg3);
if (_playing) {
onStop();
}
_playing = false;
if (#53) {
#0.log(((#2() + "gotoAndStop(") + _arg3) + ")");
}
}
function #34() {
return(_playing);
}
function #229(_arg2) {
if (typeof(_arg2) == "number") {
if ((_arg2 < 1) || (_arg2 > _totalframes)) {
#0.log((#2() + "invalid frame number ") + _arg2);
return(false);
}
return(true);
}
return(true);
}
function onPlay() {
}
function onStop() {
}
function getFrameForLabel(label) {
if (label == undefined) {
return(undefined);
}
var _local3 = _currentframe;
super.gotoAndStop(label);
var _local4 = _currentframe;
if (_playing) {
super.gotoAndPlay(_local3);
} else {
super.gotoAndStop(_local3);
}
return(_local4);
}
function getOffsetFromLabel(label) {
if (label == undefined) {
return(undefined);
}
var _local2 = getFrameForLabel(label);
return(_currentframe - _local2);
}
function removeMovieClip() {
if (#53) {
#0.log(#2() + "removeMovieClip");
}
onRemove();
super.removeMovieClip();
}
function onRemove() {
}
static var #53 = false;
var _playing = true;
var _flippedX = false;
var _flippedY = false;
}
Symbol 510 MovieClip [__Packages.#6] Frame 0
class #6 extends #21
{
var #149, _x, #100, _y, #34, _totalframes, _currentframe, y, x, #56, s, _xscale, removeMovieClip, numbers, #11, onFire, tint, #98, localToGlobal, stop, #255, _yscale, getOffsetFromLabel, getFrameForLabel, gotoAndPlay;
function #6 () {
super();
#149 = _x;
#100 = _y;
_root["#11"]._visible = false;
}
function #2() {
return(((((((("Player (f" + _currentframe) + "/") + _totalframes) + " s") + #7) + " ") + #34()) + "): ");
}
function toString() {
return((((((((((((((((((((((("[Player id: " + #56) + "(") + #269[#56]) + ")") + ", x: ") + x) + ", y: ") + y) + ", state: ") + #7) + ", jumping: ") + #47) + ", startJump: ") + #94) + ", holding: ") + #57) + ", lastMove: ") + #114) + ", frame: ") + _currentframe) + "/") + _totalframes) + "]");
}
function setID(_arg2) {
if (#3) {
#0.log((#2() + "set player id to ") + _arg2);
}
#56 = _arg2;
s = getSpeed();
#135();
#82();
if (_arg2 == 3) {
size = 1.12;
}
#99();
if (#3) {
#0.log((#2() + "set player scale to ") + _xscale);
}
#13 = new #140(10);
if (#3) {
#0.log("created " + toString());
}
}
function getSpeed() {
return(7 + _root["#4"]["#328"]);
}
function getShot() {
return(_root["#4"]["#342"]);
}
function getPower() {
if (#56 == 1) {
return(0.046);
}
if (#56 == 2) {
return(0.05);
}
return(0.06);
}
function #45() {
removeMovieClip();
}
function update(_param1) {
if (numbers != undefined) {
var _local3 = #269[#56];
if ((#7 == #215) || (#7 == #220)) {
_local3 = _local3 + " left";
} else if ((#7 == #157) || (#7 == #160)) {
_local3 = _local3 + " right";
} else {
_local3 = _local3 + " center";
}
numbers.gotoAndStop(_local3);
}
var _local5 = Bounds.#119(x, y);
if (_local5 == undefined) {
#0.log(#2() + "y bound is undefined");
} else {
y = _local5;
}
_y = y;
var _local6 = Bounds.#118(x, y);
if (_local6 == undefined) {
#0.log(#2() + "x bound is undefined");
} else {
x = _local6;
}
_x = x;
var _local8 = #100 - Bounds.getYMin();
var _local7 = #100 - _y;
scale = #139 - ((#139 - 100) * (_local7 / _local8));
#99();
if (#11._visible) {
#11.update();
var _local4 = getBallLocation();
#13.update(_local4.x, _local4.y, #11._alpha);
} else {
_root["#11"].update();
#13.update(_root["#11"]._x, _root["#11"]._y, _root["#11"]._alpha);
}
}
function #449() {
if (onFire) {
tint = tint + #98;
if (tint > #264) {
tint = #264;
#98 = -#98;
} else if (tint < 0) {
tint = 0;
#98 = -#98;
}
setTint(#11, tint);
}
}
function setTint(_arg4, d) {
var _local2 = new Color(_arg4);
var _local1 = new Object();
_local1.rb = (1 - d) * 255;
_local1.gb = d * 180;
_local2.setTransform(_local1);
}
function #422(_arg5) {
var _local2 = new Color(_arg5);
var _local1 = {rb:0, gb:0};
_local2.setTransform(_local1);
}
function setSkinColor(_arg12, d) {
var _local3 = new Color(_arg12);
var _local2 = {rb:d, gb:d, bb:d, ab:0, ra:100, ga:100, ba:100, aa:100};
_local3.setTransform(_local2);
}
function getBallLocation() {
var _local2 = {x:#11._x, y:#11._y};
localToGlobal(_local2);
return(_local2);
}
function #129() {
#1.getInstance().#20(#1["#195"]);
}
function #113() {
#194 = getTimer();
if (#3) {
#0.log((#2() + "reached top of jump at time ") + #194);
}
}
function #307() {
if (!onFire) {
if (#3) {
#0.log(#2() + "start hot streak");
}
_root["#193"].#254("You're on fire!");
}
onFire = true;
#98 = 0.1;
tint = 0;
#13.#345();
#11.gotoAndPlay("Fire");
_root["#11"].gotoAndPlay("Fire");
}
function #135() {
if (#3) {
#0.log(#2() + "stop hot streak");
}
onFire = false;
tint = 0;
#98 = 0;
#13.#262();
#11.gotoAndStop("#276");
_root["#11"].gotoAndStop("#276");
}
function #117() {
if (#3) {
#0.log(#2() + "end jump");
}
stop();
}
function hitTest(clip) {
return(#255.hitTest(clip));
}
function #344() {
if (#3) {
#0.log(#2() + "return ball");
}
#47 = false;
#94 = false;
#57 = false;
_root["#11"]._visible = false;
#11._visible = true;
#8(#33);
}
function #82() {
_x = #149;
_y = #100;
x = #149;
y = #100;
scale = #139;
#99();
}
function #99() {
_xscale = scale * size;
_yscale = scale * size;
}
function #382(_arg2) {
y = y - s;
#8(#310);
if (_arg2) {
return(undefined);
}
#1.getInstance().#20(#1["#116"]);
#114 = getTimer();
}
function #367(_arg2) {
y = y + s;
#8(#335);
if (_arg2) {
return(undefined);
}
#1.getInstance().#20(#1["#116"]);
#114 = getTimer();
}
function #368(_param1) {
#8(#336);
#1.getInstance().#20(#1["#116"]);
x = x - s;
#114 = getTimer();
}
function #391() {
if (!#47) {
#8(#33);
}
}
function #351(_param1) {
#8(#171);
#1.getInstance().#20(#1["#116"]);
x = x + s;
#114 = getTimer();
}
function #392() {
if (!#47) {
#47 = true;
#94 = true;
#57 = true;
} else {
if (#3) {
#0.log(#2() + "already jumping");
}
return(undefined);
}
#55 = #14.getAngle(_x, _y, _root["#35"]._x, Bounds.getYMin() - 10);
#55 = #14.#299(#55) - 180;
var _local6 = 15;
var _local4 = 45;
if (((#55 < _local4) || (#55 > (180 - _local4))) && (_y < (Bounds.getYMin() + (100 * #5.scale)))) {
var _local3 = _root["#4"]["#9"]._x - _root["#42"]._x;
var _local5 = (_root["#4"]["#9"]._width * #5.scale) / 2;
if (Math.abs(_local3) < _local5) {
if (#3) {
#0.log((("too close to net: " + _local3) + "/") + _local5);
}
if (_local3 < 0) {
x = x - (_local5 + _local3);
} else {
x = x + (_local5 - _local3);
}
}
}
if (#55 < _local6) {
#8(#160);
} else if (#55 < _local4) {
#8(#157);
} else if (#55 < (180 - _local4)) {
#8(#159);
} else if (#55 < (180 - _local6)) {
#8(#215);
} else {
#8(#220);
}
}
function #205#10() {
if ((#94 && (#47)) && (#57)) {
#175 = getTimer();
if (#3) {
#0.log((#2() + "released space bar at time ") + #175);
}
_root["#4"]["#112"]++;
#57 = false;
#94 = false;
}
}
function #115() {
if (#3) {
#0.log(#2() + "shooting ball now");
}
var _local3 = getBallLocation();
_root["#11"]._x = _local3.x;
_root["#11"]._y = _local3.y;
#11._visible = false;
_root["#11"]._visible = true;
_root["#11"].#8(#10["#172"]);
if (#57) {
_root["#4"]["#112"]++;
#57 = false;
#94 = false;
}
}
function #8(_arg2) {
if (_arg2 == #7) {
return(undefined);
}
if (#3 && ((#7 > #171) || (_arg2 > #171))) {
#0.log((((#2() + "changing to state ") + _arg2) + ": ") + #148[_arg2]);
}
if ((#7 < #159) && (_arg2 < #159)) {
var _local5 = getOffsetFromLabel(#148[#7]);
var _local3 = getFrameForLabel(#148[_arg2]);
var _local4 = _local3 + _local5;
gotoAndPlay(_local4);
} else {
gotoAndPlay(#148[_arg2]);
}
if ((_arg2 == #157) || (_arg2 == #160)) {
#274 = true;
} else {
#274 = false;
}
#7 = _arg2;
}
static var #3 = false;
static var #33 = 0;
static var #310 = 1;
static var #335 = 2;
static var #336 = 3;
static var #171 = 4;
static var #159 = 5;
static var #215 = 6;
static var #220 = 7;
static var #157 = 8;
static var #160 = 9;
static var #148 = ["#151", "Walk Y", "Walk Y", "Walk left", "Walk right", "Center jump", "Left angle jump", "Left side jump", "Right angle jump", "Right side jump"];
var #7 = 0;
static var #269 = [undefined, "22", "42", "53"];
var #264 = 0.6;
static var #139 = 125;
var #398 = 50;
var #402 = 24;
var #432 = 4;
var #47 = false;
var #94 = false;
var #57 = false;
var #114 = 0;
var #274 = false;
var #194 = 0;
var #175 = 0;
var size = 1;
var scale = #139;
var #55 = 0;
var #13 = undefined;
}
Symbol 511 MovieClip [__Packages.#140] Frame 0
class #140
{
function #140 (l) {
#41 = 0;
#124 = l;
var _local3 = 0;
while (_local3 < #124) {
#13[_local3] = _root.attachMovie("#283", "#283" + _local3, 22 + _local3);
#13[_local3]._visible = false;
_local3++;
}
#262();
}
function #45() {
var _local2 = 0;
while (_local2 < #13.length) {
#13[_local2].unloadMovie();
_local2++;
}
}
function #262() {
var _local2 = 0;
while (_local2 < #13.length) {
#13[_local2]._visible = false;
_local2++;
}
#184 = true;
}
function #345() {
var _local2 = 0;
while (_local2 < #124) {
#13[_local2]._visible = false;
_local2++;
}
#184 = false;
}
function update(x, y, alpha) {
if (#184) {
return(undefined);
}
#13[#41]._x = x;
#13[#41]._y = y;
#13[#41]._visible = true;
#13[#41]._alpha = alpha * 0.4;
#13[#41]._xscale = 100;
#13[#41]._yscale = 100;
#13[#41]._rotation = 2;
var _local2 = 0;
while (_local2 < #124) {
#13[_local2]._alpha = #13[_local2]._alpha - 4;
#13[_local2]._xscale = #13[_local2]._xscale - 4;
#13[_local2]._yscale = #13[_local2]._yscale - 4;
#13[_local2]._rotation = #13[_local2]._rotation * 2;
_local2++;
}
#41++;
if (#41 == #124) {
#41 = 0;
}
}
var #13 = new Array();
var #41 = 0;
var #124 = 0;
var #184 = true;
}
Symbol 512 MovieClip [__Packages.Bounds] Frame 0
class Bounds
{
static var xmin, xmax, ymin, ymax;
function Bounds () {
}
static function getXMin() {
if (xmin == undefined) {
xmin = Math.round(_root.bounds.getBounds(_root).xMin);
}
return(xmin);
}
static function getXMax() {
if (xmax == undefined) {
xmax = Math.round(_root.bounds.getBounds(_root).xMax);
}
return(xmax);
}
static function getYMin() {
if (ymin == undefined) {
ymin = Math.round(_root.bounds.getBounds(_root).yMin);
}
return(ymin);
}
static function getYMax() {
if (ymax == undefined) {
ymax = Math.round(_root.bounds.getBounds(_root).yMax);
}
return(ymax);
}
static function toString() {
var _local2 = _root.bounds.getBounds(_root);
return((((((("xMin=" + Math.round(_local2.xMin)) + ", xMax=") + Math.round(_local2.xMax)) + ", yMin=") + Math.round(_local2.yMin)) + ", yMax=") + Math.round(_local2.yMax));
}
static function #469() {
var _local4 = new Object();
_local4.onMouseDown = function () {
var _local3 = _root._xmouse;
var _local2 = _root._ymouse;
#0.log((((((((("mouse x=" + _local3) + ", y=") + _local2) + ", in bounds: ") + Bounds.#366(_local3, _local2)) + ", x bound: ") + Bounds.#118(_local3, _local2)) + ", y bound: ") + Bounds.#119(_local3, _local2));
};
Mouse.addListener(_local4);
}
static function #366(x, y) {
return(_root.bounds.hitTest(x, y, true));
}
static function #177(mc) {
var _local3 = mc.getBounds(_root).xMin;
var _local2 = mc.getBounds(_root).yMin;
if (!_root.bounds.hitTest(_local3, _local2, true)) {
return(false);
}
_local3 = mc.getBounds(_root).xMax;
_local2 = mc.getBounds(_root).yMax;
if (!_root.bounds.hitTest(_local3, _local2, true)) {
return(false);
}
return(true);
}
static function #216(mc) {
if (#177(mc)) {
return(undefined);
}
var _local2 = mc.getBounds(_root);
_local2["#289"] = (_local2.xMin + _local2.xMax) / 2;
_local2["#290"] = (_local2.yMin + _local2.yMax) / 2;
var _local3 = #119(_local2["#289"], _local2.yMin);
if (_local2.yMin < _local3) {
mc._y = mc._y + (_local3 - _local2.yMin);
}
_local3 = #119(_local2["#289"], _local2.yMax);
if (_local2.yMax > _local3) {
mc._y = mc._y + (_local3 - _local2.yMax);
}
_local3 = #118(_local2.xMin, _local2["#290"]);
if (_local2.xMin < _local3) {
mc._x = mc._x + (_local3 - _local2.xMin);
}
_local3 = #118(_local2.xMax, _local2["#290"]);
if (_local2.xMax > _local3) {
mc._x = mc._x + (_local3 - _local2.xMax);
}
}
static function #118(x, y) {
var _local6 = getYMin();
if (y < _local6) {
y = _local6 + 1;
}
var _local5 = getYMax();
if (y > _local5) {
y = _local5 - 1;
}
var _local3 = _root.background._width / 2;
while (!_root.bounds.hitTest(x, y, true)) {
if (x > _local3) {
x = x - #29;
if (x <= _local3) {
return(undefined);
}
} else {
x = x + #29;
if (x >= _local3) {
return(undefined);
}
}
}
return(x);
}
static function #119(x, y) {
var _local6 = getXMin();
if (x < _local6) {
x = _local6 + 1;
}
var _local5 = getXMax();
if (x > _local5) {
x = _local5 - 1;
}
var _local3 = _root.background._height * 0.8;
while (!_root.bounds.hitTest(x, y, true)) {
if (y > _local3) {
y = y - #29;
if (y <= _local3) {
return(undefined);
}
} else {
y = y + #29;
if (y >= _local3) {
return(undefined);
}
}
}
return(y);
}
static var #29 = 1;
}
Symbol 513 MovieClip [__Packages.#14] Frame 0
class #14
{
function #14 () {
}
static function #397(_arg1) {
return((_arg1 * Math.PI) / 180);
}
static function #299(_arg1) {
return((_arg1 * 180) / Math.PI);
}
static function getAngle(_arg7, _arg5, x2, _arg4) {
var _local3 = x2 - _arg7;
var _local2 = _arg4 - _arg5;
var _local1 = 0;
if (_local3 == 0) {
if (_local2 == 0) {
_local1 = 0;
} else if (_local2 > 0) {
_local1 = (Math.PI/2);
} else {
_local1 = 4.71238898038469;
}
} else if (_local2 == 0) {
if (_local3 > 0) {
_local1 = 0;
} else {
_local1 = Math.PI;
}
} else if (_local3 < 0) {
_local1 = Math.atan(_local2 / _local3) + Math.PI;
} else if (_local2 < 0) {
_local1 = Math.atan(_local2 / _local3) + (Math.PI*2);
} else {
_local1 = Math.atan(_local2 / _local3);
}
return(_local1);
}
static function getDistance(_arg6, _arg4, x2, _arg3) {
var _local2 = x2 - _arg6;
var _local1 = _arg3 - _arg4;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
static function getRandom(min, max, _arg1) {
if (_arg1 == undefined) {
_arg1 = 1;
}
_arg1 = Math.abs(_arg1);
var _local3 = Math.abs((max - min) / _arg1);
var _local2 = (random(_local3) * _arg1) + min;
return(_local2);
}
static function getRandomSign() {
var _local1 = random(2);
if (_local1 == 0) {
_local1 = -1;
}
return(_local1);
}
static function round(number, _arg2) {
if (_arg2 == undefined) {
_arg2 = 1;
}
var _local1 = Math.pow(10, _arg2);
return(Math.round(number * _local1) / _local1);
}
static function getDigit(number, _arg3) {
var _local1 = Math.pow(10, _arg3 - 1);
number = Math.abs(number);
if (number < _local1) {
return(undefined);
}
return(Math.floor(number / _local1) % 10);
}
}
Symbol 514 MovieClip [__Packages.#10] Frame 0
class #10 extends #21
{
var _y, _x, _totalframes, _currentframe, _alpha, _xscale, _yscale, swapDepths, #23, #29, #206;
function #10 () {
super();
}
function #2() {
return(((("Ball (" + this) + ", ") + #197[#7]) + "): ");
}
function toString() {
return(((((((((((("[Ball " + this) + " state: ") + #197[#7]) + " frame: ") + _currentframe) + "/") + _totalframes) + " location: ") + _x) + ",") + _y) + "]");
}
function #8(_arg3) {
if (#3) {
#0.log((#2() + "changing to state ") + #197[_arg3]);
}
if (#7 == _arg3) {
return(undefined);
}
if (_arg3 != #61) {
_alpha = 100;
}
switch (_arg3) {
case #172 :
#16 = 0;
#181 = _root["#4"]["#9"]._xscale;
#99();
#205();
break;
case #61 :
#268();
_root["#4"].#394();
#16 = 0;
#358();
break;
case #90 :
#268();
_root["#4"].score();
#16 = 0;
#363();
}
#7 = _arg3;
}
function update() {
switch (#7) {
case #172 :
#99();
if (#103#10()) {
#8(#186);
}
break;
case #61 :
case #90 :
if (#103#10()) {
if (#3) {
#0.log(#2() + "done moving ball for miss or score");
}
#8(#238);
_root["#4"].#318();
} else {
_alpha = _alpha - 8;
}
}
}
function #99() {
var _local2 = #181 - ((#181 - #182) * #16);
_xscale = _local2;
_yscale = _local2;
}
function #268() {
_xscale = #182;
_yscale = #182;
}
function #205() {
if (#3) {
#0.log(#2() + "shooting ball");
}
swapDepths(_root["#35"]);
var _local3 = 0;
var _local7 = 0;
var _local4 = _root["#4"].getPlayerNetDistance();
#23 = #257;
if (_local4 < 50) {
#23 = #23 * 1;
} else if (_local4 < 75) {
#23 = #23 * 0.666666666666667;
} else {
#23 = #23 * 0.5;
}
r = 3.75 / _local4;
if (#5["#249"]) {
#23 = Math.round(#23 / _root["#24"]["#246"]);
}
if (#5["#364"]) {
#23 = #23 * 2;
}
#29 = Math.abs(_root["#4"]["#9"]["#175"] - _root["#4"]["#9"]["#194"]);
if (#29 < #23) {
if (#3) {
#0.log((((#2() + "made shot, accuracy: ") + #29) + "/") + #23);
}
#186 = #90;
if (#29 < (#23 / 2)) {
#206 = true;
} else {
#206 = false;
}
} else {
if (#3) {
#0.log((((#2() + "missed shot, accuracy: ") + #29) + "/") + #23);
}
_local7 = -5;
var _local5 = _root["#42"]._width / 2;
var _local6 = _root["#4"]["#9"]._x - _root["#42"]._x;
if (Math.abs(_local6) < (150 * #5.scale)) {
if (_local6 < 0) {
_local3 = _local5;
} else {
_local3 = -_local5;
}
} else {
_local3 = #14.getRandomSign() * _local5;
}
#186 = #61;
}
#234(_root["#42"]._x + _local3, _root["#42"]._y + _local7);
}
function #234(_arg5, _arg4) {
#65 = _x;
#84 = _y;
x3 = _arg5;
#212 = _arg4;
if (#3) {
#0.log((((((((#2() + "computing arc from ") + #65) + ",") + #84) + " to ") + x3) + ",") + #212);
}
#104 = #65;
#105 = #84;
var _local3 = _x - _arg5;
var _local2 = _y - _arg4;
_local3 = _local3 / 3;
_local2 = (-_local2) / 6;
#104 = #65 - _local3;
#105 = _local2;
x2 = x3 + _local3;
#156 = _local2;
#214 = (#292 = 100);
#125 = 3 * (#104 - #65);
#153 = (3 * (x2 - #104)) - #125;
#209 = ((x3 - #65) - #125) - #153;
#126 = 3 * (#105 - #84);
#154 = (3 * (#156 - #105)) - #126;
#210 = ((#212 - #84) - #126) - #154;
#127 = 3 * (#214 - #213);
#155 = (3 * (#292 - #214)) - #127;
#211 = ((#395 - #213) - #127) - #155;
}
function #448(_arg1, _arg2, speed) {
if (_arg1 < _arg2) {
_arg1 = _arg1 + speed;
if (_arg1 > _arg2) {
_arg1 = _arg2;
}
} else if (_arg1 > _arg2) {
_arg1 = _arg1 - speed;
if (_arg1 < _arg2) {
_arg1 = _arg2;
}
}
return(_arg1);
}
function #103#10() {
if (#7 == #238) {
#0.log(#2() + "can't move ball in still state");
return(true);
}
#16 = #16 + r;
if (#16 >= 1) {
#16 = 1;
}
var _local2 = #16 * #16;
var _local3 = #16 * _local2;
x = (((#209 * _local3) + (#153 * _local2)) + (#125 * #16)) + #65;
y = (((#210 * _local3) + (#154 * _local2)) + (#126 * #16)) + #84;
#293 = (((#211 * _local3) + (#155 * _local2)) + (#127 * #16)) + #213;
_x = x;
_y = y;
if (#16 >= 1) {
return(true);
}
return(false);
}
function #358() {
if (#3) {
#0.log(#2() + "throw ball (miss)");
}
swapDepths(_root["#35"]);
var _local3;
var _local4 = _root["#4"]["#9"]._x - _root["#42"]._x;
if (Math.abs(_local4) < (200 * #5.scale)) {
if (_local4 < 0) {
_local3 = #14.getRandom(_root["#42"]._x, _root["#42"]._x * 1.5);
} else {
_local3 = #14.getRandom(_root["#42"]._x * 0.5, _root["#42"]._x);
}
} else {
_local3 = #14.getRandom(_root["#42"]._x * 0.5, _root["#42"]._x * 1.5);
}
var _local5 = #14.getRandom(Bounds.getYMin() * 1.25, Bounds.getYMax() * 0.75);
#1.getInstance().#20(#1["#277"]);
r = #230 * 1.6;
#234(_local3, _local5);
}
function #363() {
if (#3) {
#0.log(#2() + "drop ball (score)");
}
swapDepths(_root["#35"]);
r = #230 * 1.5;
#65 = _x;
#84 = _y;
#209 = (#210 = (#211 = 0));
#153 = (#154 = (#155 = 0));
#125 = (#127 = 0);
#126 = (Bounds.getYMin() * 1.15) - _y;
}
function #409() {
#1.getInstance().#20(#1["#195"]);
}
static var #3 = false;
static var #238 = 0;
static var #164 = 1;
static var #172 = 2;
static var #61 = 3;
static var #90 = 4;
static var #197 = ["#386", "#441", "#452", "#465", "Score"];
var #230 = 0.046;
var #416 = 0.046;
var FPS = 18;
var #186 = 0;
var #7 = 0;
var #181 = 100;
var #182 = 95;
var x = 0;
var y = 0;
var #293 = 0;
var #65 = 0;
var #84 = 0;
var #213 = 0;
var #104 = 0;
var #105 = 0;
var #214 = 0;
var x2 = 0;
var #156 = 0;
var #292 = 0;
var x3 = 0;
var #212 = 0;
var #395 = 0;
var #209 = 0;
var #210 = 0;
var #211 = 0;
var #153 = 0;
var #154 = 0;
var #155 = 0;
var #125 = 0;
var #126 = 0;
var #127 = 0;
var #16 = 0;
var r = 0;
}
Symbol 515 MovieClip [__Packages.#123] Frame 0
class #123 extends MovieClip
{
var gotoAndPlay;
function #123 () {
super();
}
function #8(_arg2) {
if (_arg2 == #7) {
return(undefined);
}
if (_arg2 == #33) {
gotoAndPlay(#334);
} else if (_arg2 == #164) {
gotoAndPlay(#314);
}
#7 = _arg2;
}
var #334 = 1;
var #314 = 5;
var #33 = 0;
var #164 = 1;
var #7 = 0;
}
Symbol 516 MovieClip [__Packages.#137] Frame 0
class #137
{
function #137 (depth) {
#30 = 0;
#73 = 0;
#79 = 0;
_root["#166"].setColor(#5["#291"]);
_root["#174"].setColor(#5["#291"]);
_root["#221"].setColor(#5["#200"]);
_root["#225"].setColor(#5["#200"]);
_root["#128"].setColor(#5["#81"]);
_root["#130"].setColor(#5["#81"]);
_root["#132"].setColor(#5["#81"]);
}
function getScore() {
return(#30);
}
function #8(_arg2) {
if (_arg2 == #7) {
return(undefined);
}
#7 = _arg2;
}
function #82(_arg3) {
#79 = 0;
#144 = _arg3;
_root["#166"].draw("");
_root["#174"].draw(0);
_root["#225"].draw(#14.getDigit(#144, 1));
_root["#221"].draw(#14.getDigit(#144, 2));
_root["#128"].draw("");
_root["#130"].draw("");
_root["#132"].draw(0);
}
function shot(_arg3) {
if (_arg3) {
#79++;
_root["#174"].draw(#14.getDigit(#79, 1));
_root["#166"].draw(#14.getDigit(#79, 2));
}
}
function #236() {
return(#79 == #144);
}
function update() {
if (#30 <= 0) {
_root["#132"].draw(0);
_root["#130"].draw("");
_root["#128"].draw("");
} else {
_root["#132"].draw(#14.getDigit(#30, 1));
_root["#130"].draw(#14.getDigit(#30, 2));
_root["#128"].draw(#14.getDigit(#30, 3));
}
if (#30 < #73) {
#30 = #30 + Math.ceil((#73 - #30) / 4);
if (#30 > #73) {
#30 = #73;
}
}
}
function score(n, _arg2) {
#73 = #73 + Math.floor(n);
shot(_arg2);
}
var #33 = 0;
var #417 = 1;
var #7 = 0;
var #30 = 0;
var #73 = 0;
var #79 = 0;
var #144 = 0;
}
Symbol 517 MovieClip [__Packages.#68] Frame 0
class #68
{
var x, y, name, type, #204, #59, bonusObject;
function #68 (name, type, x, y, _arg3) {
this.x = x;
this.y = y;
this.name = name;
this.type = type;
#204 = _arg3;
#59 = true;
#111();
bonusObject._visible = false;
}
function #450() {
bonusObject._visible = false;
bonusObject.unloadMovie();
}
function #45() {
bonusObject._visible = false;
bonusObject.unloadMovie();
bonusObject = null;
}
function hide() {
bonusObject._visible = false;
}
function show() {
bonusObject._visible = true;
}
function #111() {
if (#59) {
if (bonusObject != null) {
#45();
}
bonusObject = _root.attachMovie(("bonus_" + type) + "_dark", ((name + "_") + type) + "_dark", #204);
bonusObject._x = x;
bonusObject._y = y;
#59 = false;
}
}
function #273() {
if (!#59) {
if (bonusObject != null) {
#45();
}
bonusObject = _root.attachMovie(("bonus_" + type) + "_lit", ((name + "_") + type) + "_lit", #204);
bonusObject._x = x;
bonusObject._y = y;
#59 = true;
}
}
function #460() {
return(#59);
}
}
Symbol 518 MovieClip [__Packages.#37] Frame 0
class #37
{
var #29, #224, levelStats;
function #37 () {
#29 = new Array();
#224 = new Array();
levelStats = new Array();
if (#3) {
#0.log(#2() + "created stats object");
}
}
function #2() {
return("Stats: ");
}
function #271(success, _arg10) {
var _local6 = #25.#163();
var _local7 = _root["#24"].#248();
var _local8 = _root["#4"]["#9"].onFire;
#121++;
if (!success) {
if (#3) {
var _local9 = (((((((((("shots: " + #121) + ", targets: ") + #80) + ", baskets: ") + #78) + newline) + "missed shot\n") + "accuracy: ") + _root["#11"]["#29"]) + "/") + _root["#11"]["#23"];
_root["#143"].text = _local9;
}
return(undefined);
}
#78++;
if (_local7) {
#91++;
} else {
#92++;
}
if (_local6) {
#93++;
}
#29.push(_root["#11"]["#29"]);
#224.push(_root["#11"]["#23"]);
var _local4 = ((_arg10 < 15) ? 0 : (Math.floor((_arg10 - 10) / 5)));
var _local3 = 0;
if (_local8 || (_local6)) {
_root["#4"]["#59"] = true;
_root["#4"].bonusDisplay.#273();
_root["#4"]["#338"] = getTimer() + 1000;
if (_local8) {
_local3 = _local3 + 2;
}
if (_local6) {
_local3 = _local3 + 3;
}
_root["#4"]["bonusX" + _local3].#273();
} else {
_local3 = 1;
}
var _local5 = (_local7 ? 2 : 3);
_local5 = _local5 * _local3;
score = score + (_local5 + _local4);
#108 = #108 + _local4;
_root["#4"]["#60"].score(_local5, true);
_root["#4"]["#60"].score(_local4, false);
_root["#237"].text = _local5 + _local4;
if (#3) {
var _local9 = ((((((((((((((((((("shots: " + #121) + ", targets: ") + #80) + ", baskets: ") + #78) + newline) + "points for this basket: ") + _local5) + " x") + _local3) + newline) + "consecutive baskets: ") + _arg10) + ", streak bonus: ") + _local4) + newline) + "accuracy: ") + _root["#11"]["#29"]) + "/") + _root["#11"]["#23"];
_root["#143"].text = _local9;
}
}
function #337() {
var _local3 = #25.#163();
var _local4 = _root["#24"].#248();
#80++;
if (_local4) {
#87++;
} else {
#88++;
}
if (_local3) {
#89++;
}
}
function #361(level, time) {
var _local4 = 0;
time = Math.round(time);
if (time > 0) {
_local4 = level * 5;
score = score + (_local4 + time);
_root["#4"]["#60"].score(_local4, false);
_root["#4"]["#60"].score(time, false);
}
if (#3) {
#0.log(((((((((#2() + "adding level stats: ") + time) + ", ") + #108) + ", ") + _local4) + " (") + (_local4 + time)) + " bonus points)");
}
levelStats[level] = [time, #108, _local4];
#108 = 0;
}
function #357() {
_root["#30"].text = score;
_root["#313"].text = ((((#91 + " / ") + #87) + " (") + #63(#91, #87)) + "%)";
_root["#301"].text = ((((#92 + " / ") + #88) + " (") + #63(#92, #88)) + "%)";
_root["#86"].text = ((((#93 + " / ") + #89) + " (") + #63(#93, #89)) + "%)";
_root["#362"].text = ((((#78 + " / ") + #80) + " (") + #63(#78, #80)) + "%)";
var _local7 = 0;
var _local6 = 0;
var _local5 = 0;
var _local4 = 1;
while (_local4 < levelStats.length) {
_root[("level" + _local4) + "_time"].text = Math.floor(levelStats[_local4][0]);
_local7 = _local7 + Math.floor(levelStats[_local4][0]);
_root[("level" + _local4) + "_streak"].text = levelStats[_local4][1];
_local6 = _local6 + levelStats[_local4][1];
_root[("level" + _local4) + "_complete"].text = levelStats[_local4][2];
_local5 = _local5 + levelStats[_local4][2];
_local4++;
}
_root["#346"].text = _local7;
_root["#319"].text = _local6;
_root["#308"].text = _local5;
if (#3) {
#0.log((#2() + newline) + toString());
}
if (#5["#249"]) {
_root["#67"].text = "";
_root["#67"]._visible = true;
Selection.setFocus(_root["#67"]);
var _local8 = new Object();
_local8.score = score;
_local8.onKeyDown = function () {
if (Key.isDown(13)) {
if (#37["#3"]) {
#0.log((("saving score " + this.score) + " for player ") + _root["#67"].text);
}
_global.#320(_root["#67"].text, this.score ^ _global["#381"]);
_root["#67"].text = "";
_root["#67"]._visible = false;
_root["#295"].text = "Your score has been saved.";
Key.removeListener(this);
}
};
Key.addListener(_local8);
}
}
function toString() {
var _local4 = "";
_local4 = _local4 + (("Score: " + score) + newline);
_local4 = _local4 + (("Shots: " + #121) + newline);
_local4 = _local4 + (("Baskets: " + #78) + newline);
_local4 = _local4 + (("Targets: " + #80) + newline);
_local4 = _local4 + (("Shooting %: " + #63(_root["#4"]["#326"], _root["#4"]["#112"])) + newline);
_local4 = _local4 + (((("Average accuracy: " + #272(#29)) + "/") + #272(#224)) + newline);
_local4 = _local4 + ((((((("2 point shots: " + #91) + "/") + #87) + " (") + #63(#91, #87)) + "%)") + newline);
_local4 = _local4 + ((((((("3 point shots: " + #92) + "/") + #88) + " (") + #63(#92, #88)) + "%)") + newline);
_local4 = _local4 + ((((((("Pressure shots: " + #93) + "/") + #89) + " (") + #63(#93, #89)) + "%)") + newline);
var _local3 = 1;
while (_local3 < levelStats.length) {
_local4 = _local4 + (((((((("Level " + _local3) + ": time bonus = ") + Math.floor(levelStats[_local3][0])) + ", streak bonus = ") + levelStats[_local3][1]) + ", completion bonus = ") + levelStats[_local3][2]) + newline);
_local3++;
}
return(_local4);
}
function #63(_arg2, _arg1) {
return(Math.floor((_arg2 / _arg1) * 100));
}
function #272(_arg2) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < _arg2.length) {
_local3 = _local3 + _arg2[_local1];
_local1++;
}
return(Math.round(_local3 / _arg2.length));
}
static var #3 = false;
var score = 0;
var #121 = 0;
var #78 = 0;
var #80 = 0;
var #92 = 0;
var #88 = 0;
var #91 = 0;
var #87 = 0;
var #93 = 0;
var #89 = 0;
var #108 = 0;
var #401 = 0;
}
Symbol 519 MovieClip [__Packages.#25] Frame 0
class #25 extends MovieClip
{
var _currentframe, gotoAndStop, gotoAndPlay, _x, _y, #149, #100, #256, #305, speed, #16, _xscale, _yscale, #266;
function #25 () {
super();
if (_root.bounds != undefined) {
#279 = _root.bounds._width / 250;
#280 = _root.bounds._height / 250;
}
}
function #2() {
return("ShotPoint: ");
}
function getRandom(min, max) {
return(Math.round(Math.random() * (max - min)) + min);
}
function #8(_arg3) {
if ((_arg3 == #7) && (#258 == #75)) {
return(undefined);
}
var _local2 = _currentframe;
if (_arg3 == #165) {
if (#75) {
if (#69) {
_local2 = #298;
} else {
_local2 = #303;
}
} else if (#69) {
_local2 = #304;
} else {
_local2 = #315;
}
} else if (_arg3 == #183) {
if (#75) {
_local2 = #321;
} else {
_local2 = #348;
}
}
if (#282) {
gotoAndStop(_local2);
} else {
gotoAndPlay(_local2);
}
#7 = _arg3;
#258 = #75;
}
function #436(x, y) {
if ((((_x <= (x + 50)) && (_x >= (x - 50))) && (_y <= (y + 30))) && (_y >= (x - 30))) {
return(true);
}
return(false);
}
static function #163() {
return(#69);
}
function #248() {
var _local3 = _root["#330"].hitTest(_x, _y, true);
return(_local3);
}
function #147() {
_root["#4"]["#102"].#337();
var _local4 = getRandom(-1, 1);
var _local3 = getRandom(0, 1);
if (_local3 == 0) {
_local3 = -1;
}
if (_local4 == 0) {
_local3 = _local3 * 1.5;
}
var _local5 = 12 * #5.scale;
if (_local3 != 0) {
var _local7 = ((_local5 * #279) * (_root["#4"].level + 2)) * _local3;
_x = _x + _local7;
if (!Bounds.#177(this)) {
_x = Bounds.#118(_x - (_local7 * 2), _y);
}
}
if (_local4 != 0) {
var _local6 = ((_local5 * #280) * (_root["#4"].level + 2)) * _local4;
_y = _y + _local6;
if (!Bounds.#177(this)) {
_y = Bounds.#119(_x, _y - (_local6 * 2));
}
}
Bounds.#216(this);
_root["#49"]._x = _x;
_root["#49"]._y = _x;
#149 = _x;
#100 = _y;
var _local9 = _root.center._x + (#5.scale * #14.getRandom(-100, 100));
var _local8 = _root.center._y + (#5.scale * #14.getRandom(-50, 50));
#256 = #14.getAngle(_x, _y, _local9, _local8);
#305 = ((random(2) == 0) ? -1 : 1);
speed = ((#14.getRandom(25, 75) * #5.scale) * (_root["#4"].level + 2)) / 3;
#16 = 0;
#36 = getTimer();
#75 = false;
if (_root["#410"].#442()) {
#69 = false;
} else {
#69 = getRandom(1, 100) < (_root["#4"].level * 10);
}
if (#86 > 2) {
#69 = false;
}
if (#69) {
#36 = #36 - #232;
if (_root["#4"]["#44"] != 5) {
_root["#18"].#8(_root["#18"]["#162"]);
}
_root["#49"]._x = _x;
_root["#49"]._y = _y;
_root["#49"]._visible = true;
#86++;
} else {
_root["#49"]._visible = false;
#86 = 0;
}
#8(#165);
}
function #203() {
return(#7 == #183);
}
function #376() {
#75 = true;
#8(#7);
}
function setScale(level) {
var _local3;
if (level == 0) {
_local3 = 100;
} else if (level == 1) {
_local3 = 87.5;
} else if (level == 2) {
_local3 = 75;
} else if (level == 3) {
_local3 = 62.5;
} else {
_local3 = 50;
}
_xscale = _local3;
_yscale = _local3;
_root["#49"]._xscale = _local3;
_root["#49"]._yscale = _local3;
}
function onEnterFrame() {
var _local3 = getTimer() - #36;
if (#75) {
if (((_local3 > #231) && (!_root["#4"]["#9"]["#47"])) && (!_root["#4"]["#9"]["#57"])) {
#1.getInstance().#20(#1["#196"]);
#147();
return(undefined);
}
} else if (_local3 > #232) {
#376();
}
if (#282 && (!(_root["#4"]["#9"]["#47"] && (#203())))) {
#387();
}
}
function #387() {
if (!#198) {
#16 = #16 + (74 / #231);
var _local3 = Math.cos((#16 * Math.PI) / 2);
_local3 = _local3 * (Math.PI*2);
_local3 = _local3 * #305;
_local3 = _local3 / 10;
var _local5 = Math.cos(#256 + _local3);
var _local4 = Math.sin(#256 + _local3);
_x = #149 + ((#16 * speed) * _local5);
_y = #100 + ((#16 * speed) * _local4);
}
Bounds.#216(this);
_root["#49"]._x = _x;
_root["#49"]._y = _y;
return(undefined);
}
function #443(time) {
#0.log(("freezing for " + time) + " seconds");
clearInterval(#266);
#266 = setInterval(this, "#372", time * 1000);
#198 = true;
}
function #372() {
clearInterval(#266);
#198 = false;
}
var #231 = 5000;
var #232 = 2000;
var #282 = true;
var #279 = 2.5;
var #280 = 1.5;
var #165 = 1;
var #183 = 15;
var #162 = 50;
var #315 = 1;
var #303 = 30;
var #348 = 15;
var #321 = 40;
var #304 = 50;
var #298 = 64;
var #7 = 1;
var #36 = 0;
var #258 = false;
static var #69 = false;
var #86 = 0;
var #75 = false;
var #198 = false;
var #246 = 1;
}
Symbol 520 MovieClip [__Packages.#109] Frame 0
class #109 extends MovieClip
{
var #245, marqueeWidth, _width, #50, #312, getNextHighestDepth, attachMovie;
function #109 () {
super();
#245 = 0;
marqueeWidth = _width;
#50 = new Array();
#82();
}
function #82() {
#45();
}
function #45() {
#312 = "";
var _local2;
while (#50.length > 0) {
_local2 = #50.pop();
_local2.removeMovieClip();
}
}
function #254(_arg3) {
#312 = _arg3;
#45();
var _local2 = 0;
while (_local2 < _arg3.length) {
addLetter(_arg3.charAt(_local2));
_local2++;
}
}
function addLetter(letter) {
var _local3 = getNextHighestDepth();
var _local2 = attachMovie("Scoreboard Letter MC", (("letter_" + _local3) + "_") + letter, _local3);
_local2.setColor(#5["#81"]);
_local2.draw(letter);
_local2._x = marqueeWidth + (#50.length * letterWidth);
#50.push(_local2);
}
function setVisible(_arg4) {
if (!_arg4) {
#45();
return(undefined);
}
if (#50.length > 0) {
if ((#245 + 25) < getTimer()) {
#245 = getTimer();
var _local3 = #50.length;
var _local2 = 0;
while (_local2 < _local3) {
#50[_local2]._x = #50[_local2]._x - speed;
_local2++;
}
if (#50[_local3 - 1]._x < (-#50[_local3 - 1]._width)) {
#45();
}
}
}
}
var speed = 6;
var letterWidth = 11;
}
Symbol 521 MovieClip [__Packages.#70] Frame 0
class #70 extends #21
{
var gotoAndStop;
function #70 () {
super();
}
function #8(_arg3) {
#378 = 80;
#173 = 0;
switch (_arg3) {
case #33 :
gotoAndStop("#151");
break;
case #90 :
#40++;
if (#40 > 1) {
#40 = 0;
if (random(6) < 2) {
#1.getInstance().#20(#1["#201"]);
gotoAndStop("Score " + #14.getRandom(1, 3));
}
break;
}
#8(#33);
return(undefined);
case #61 :
#40++;
if (#40 > 1) {
#40 = 0;
if (random(6) < 2) {
#1.getInstance().#20(#1["#281"]);
if (random(2) == 0) {
gotoAndStop("Score " + #14.getRandom(1, 3));
} else {
gotoAndStop("Angry " + #14.getRandom(1, 3));
}
}
}
break;
case #233 :
#40++;
if (_root["#4"]["#60"].#236()) {
#8(#33);
return(undefined);
}
if (_root["#4"]["#44"] == 5) {
#1.getInstance().#20(#1["#270"]);
if (random(2) == 0) {
#1.getInstance().#20(#1["#244"]);
gotoAndStop("Score 2");
}
} else if (_root["#4"]["#44"] == 15) {
#1.getInstance().#20(#1["#253"]);
gotoAndStop("Score 2");
} else if (#40 > 1) {
#40 = 0;
if (_root["#11"]["#206"]) {
if (random(6) < 2) {
#1.getInstance().#20(#1["#265"]);
gotoAndStop("Score 2");
}
} else if (random(6) < 2) {
#1.getInstance().#20(#1["#201"]);
gotoAndStop("Score " + #14.getRandom(1, 3));
}
} else {
#8(#33);
return(undefined);
}
break;
case #162 :
}
#7 = _arg3;
}
function update() {
#173++;
}
function #425() {
#287 = true;
#8(#33);
}
function #54() {
#287 = true;
#8(#33);
}
var #33 = 0;
var #90 = 1;
var #61 = 2;
var #233 = 3;
var #162 = 4;
var #7 = 0;
var #40 = 1;
var #173 = 0;
var #378 = 50;
var #287 = false;
}
Symbol 522 MovieClip [__Packages.#76] Frame 0
class #76 extends MovieClip
{
var _currentframe, _name, _visible, gotoAndStop;
function #76 () {
super();
draw();
if (#3) {
#0.log("created " + toString());
}
}
function toString() {
return((((((((("[ImageFont " + _name) + ": ") + "\"f") + display) + "\"/") + _currentframe) + " 0x") + color.toString(16)) + "]");
}
function hide() {
_visible = false;
}
function show() {
_visible = true;
}
function draw(display) {
if (display == this.display) {
return(undefined);
}
this.display = display;
if (((display == "") || (display == " ")) || (display == undefined)) {
gotoAndStop("blank");
} else if (typeof(display) == "number") {
gotoAndStop("f" + display);
} else {
gotoAndStop(display);
}
}
function setColor(color) {
this.color = color;
var _local2 = #110.#365(color);
var _local3 = _local2.r * 100;
var _local5 = _local2.g * 100;
var _local4 = _local2.b * 100;
if (#3) {
#0.log((((((("setting color of " + this) + " to ") + _local3) + ",") + _local5) + ",") + _local4);
}
var _local6 = new Color(this);
var _local7 = {ra:_local3, ga:_local5, ba:_local4};
_local6.setTransform(_local7);
}
static var #3 = false;
var color = 16777215;
var display = "";
}
Symbol 523 MovieClip [__Packages.#110] Frame 0
class #110
{
function #110 () {
}
static function #365(color) {
if (color == undefined) {
#0.log("ColorUtil: passed undefined color to hexToRGB, returning black");
return([0, 0, 0]);
}
var _local3 = color >> 16;
var _local4 = (color >> 8) & 255;
var _local2 = color & 255;
if (#3) {
#0.log(((((((("ColorUtil: converting hex color 0x" + color.toString(16)) + " to rgb color ") + _local3) + "/255, ") + _local4) + "/255, ") + _local2) + "/255");
}
return({r:_local3 / 255, g:_local4 / 255, b:_local2 / 255});
}
static var #3 = false;
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 136 MovieClip [#408] Frame 1
stop();
Symbol 136 MovieClip [#408] Frame 2
stop();
Symbol 139 MovieClip [#421] Frame 1
stop();
Symbol 139 MovieClip [#421] Frame 2
stop();
Symbol 152 MovieClip Frame 30
stop();
Symbol 154 MovieClip Frame 30
stop();
Symbol 156 MovieClip Frame 30
stop();
Symbol 158 MovieClip [Scoreboard Letter MC] Frame 1
#initclip 28
Object.registerClass("Scoreboard Letter MC", #76);
#endinitclip
Symbol 161 MovieClip [Marquee] Frame 1
#initclip 22
Object.registerClass("Marquee", #109);
#endinitclip
Symbol 171 MovieClip Frame 40
_root["#18"].#54();
Symbol 173 MovieClip Frame 32
_root["#18"].#54();
Symbol 176 MovieClip Frame 38
_root["#18"].#54();
Symbol 179 MovieClip Frame 47
_root["#18"].#54();
Symbol 182 MovieClip Frame 39
_root["#18"].#54();
Symbol 187 MovieClip Frame 20
_root["#18"].#54();
Symbol 188 MovieClip Frame 36
_root["#18"].#54();
Symbol 191 MovieClip Frame 42
_root["#18"].#54();
Symbol 197 MovieClip Frame 53
_root["#18"].#54();
Symbol 203 MovieClip Frame 17
_root["#18"].#54();
Symbol 204 MovieClip [#70] Frame 1
#initclip 23
Object.registerClass("#70", #70);
#endinitclip
stop();
Symbol 204 MovieClip [#70] Frame 2
stop();
Symbol 204 MovieClip [#70] Frame 3
stop();
Symbol 204 MovieClip [#70] Frame 4
stop();
Symbol 204 MovieClip [#70] Frame 5
stop();
Symbol 204 MovieClip [#70] Frame 6
stop();
Symbol 204 MovieClip [#70] Frame 7
stop();
Symbol 204 MovieClip [#70] Frame 8
stop();
Symbol 204 MovieClip [#70] Frame 9
stop();
Symbol 204 MovieClip [#70] Frame 10
stop();
Symbol 204 MovieClip [#70] Frame 11
stop();
Symbol 213 MovieClip [#25] Frame 1
#initclip 24
Object.registerClass("#25", #25);
#endinitclip
Symbol 213 MovieClip [#25] Frame 11
gotoAndPlay (1);
Symbol 213 MovieClip [#25] Frame 25
gotoAndPlay (15);
Symbol 213 MovieClip [#25] Frame 36
gotoAndPlay (30);
Symbol 213 MovieClip [#25] Frame 46
gotoAndPlay (40);
Symbol 213 MovieClip [#25] Frame 60
gotoAndPlay (50);
Symbol 213 MovieClip [#25] Frame 70
gotoAndPlay (65);
Symbol 223 MovieClip [Ball 2 MC] Frame 1
#initclip 25
Object.registerClass("Ball 2 MC", #10);
#endinitclip
Symbol 223 MovieClip [Ball 2 MC] Frame 10
stop();
Symbol 232 MovieClip [net] Frame 1
#initclip 26
Object.registerClass("net", #123);
#endinitclip
_root["#35"].#8(_root["#35"]["#33"]);
stop();
Symbol 232 MovieClip [net] Frame 12
gotoAndStop (1);
Symbol 249 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 451 MovieClip [Player MC] Frame 1
#initclip 27
Object.registerClass("Player MC", #6);
#endinitclip
Symbol 451 MovieClip [Player MC] Frame 8
#129();
Symbol 451 MovieClip [Player MC] Frame 11
gotoAndPlay ("#151");
Symbol 451 MovieClip [Player MC] Frame 19
#129();
Symbol 451 MovieClip [Player MC] Frame 22
gotoAndPlay ("Walk Y");
Symbol 451 MovieClip [Player MC] Frame 30
#129();
Symbol 451 MovieClip [Player MC] Frame 33
gotoAndPlay ("Walk left");
Symbol 451 MovieClip [Player MC] Frame 41
#129();
Symbol 451 MovieClip [Player MC] Frame 44
gotoAndPlay ("Walk right");
Symbol 451 MovieClip [Player MC] Frame 60
#113();
Symbol 451 MovieClip [Player MC] Frame 63
#115();
Symbol 451 MovieClip [Player MC] Frame 76
#117();
Symbol 451 MovieClip [Player MC] Frame 91
#113();
Symbol 451 MovieClip [Player MC] Frame 94
#115();
Symbol 451 MovieClip [Player MC] Frame 107
#117();
Symbol 451 MovieClip [Player MC] Frame 122
#113();
Symbol 451 MovieClip [Player MC] Frame 125
#115();
Symbol 451 MovieClip [Player MC] Frame 138
#117();
Symbol 451 MovieClip [Player MC] Frame 153
#113();
Symbol 451 MovieClip [Player MC] Frame 156
#115();
Symbol 451 MovieClip [Player MC] Frame 169
#117();
Symbol 451 MovieClip [Player MC] Frame 184
#113();
Symbol 451 MovieClip [Player MC] Frame 187
#115();
Symbol 451 MovieClip [Player MC] Frame 200
#117();
Symbol 459 Button
on (press) {
_root["#4"]["#7"] = _root["#4"]["#122"];
_root.gotoAndStop("#285");
}