Frame 1
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
pldm128947 = new LoadVars();
pldm128947.mv = _level0._url;
pldm128947.md = "f1dc455e50d6446d285982d5296004e2";
pldm128947.mid = 206;
pldm128947.sendAndLoad("http://bot.armorstudios.com/track.php", pldm128947, "POST");
Instance of Symbol 137 MovieClip in Frame 1
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
framesLoaded = Math.ceil((loaded / total) * 100);
gotoAndStop(framesLoaded);
status.text = framesLoaded + " % completed";
if (framesLoaded >= 100) {
_root.nextFrame();
}
}
Frame 2
stop();
chooser = 1;
Frame 3
stop();
Frame 4
stop();
Frame 6
stop();
Instance of Symbol 2333 MovieClip in Frame 6
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth() + 1000);
}
Frame 7
function hearts() {
if (storyMode == "short") {
bar.heart8._alpha = 0;
bar.heart9._alpha = 0;
bar.heart10._alpha = 0;
}
if (storyMode == "suddenDeath") {
bar.heart2._alpha = 0;
bar.heart3._alpha = 0;
bar.heart4._alpha = 0;
bar.heart5._alpha = 0;
bar.heart6._alpha = 0;
bar.heart7._alpha = 0;
bar.heart8._alpha = 0;
bar.heart9._alpha = 0;
bar.heart10._alpha = 0;
}
}
function runFinal() {
cstatus = 10;
subsub.removeMovieClip();
stopAllSounds();
gotoAndStop ("win");
runFine = true;
}
function initialBar() {
bar._visible = true;
b = bar.bar._width;
bwidth = b / (frameRate * timeGiven);
counter = timeGiven * frameRate;
tcounter = 100;
bar.swapDepths(barLevel);
bar.bar._x = ibx;
bar.bar._y = iby;
callRules();
bar.bar.cautionBar._alpha = 0;
bar.four.gotoAndStop(1);
bar.two.gotoAndStop(1);
bar.zero.gotoAndStop(1);
chooseGame();
callTransIn();
bar.progressBar._xscale = barActual;
}
function runningBar() {
if (tcounter <= 50) {
bar.bar.cautionBar._alpha = bar.bar.cautionBar._alpha + (bwidth / 2);
}
if (tcounter == 100) {
bar.four.play();
}
if (tcounter == 65) {
bar.two.play();
}
if (tcounter == 15) {
bar.zero.play();
}
bar.bar._x = bar.bar._x - bwidth;
tcounter--;
if ((tcounter == 0) && (beatClock == true)) {
gameOutcome(false);
}
if ((tcounter == 0) && (beatClock == false)) {
gameOutcome(true);
}
}
function callRules() {
rls = attachMovie("loadrules", "l" + k, rulesLevel);
rls._x = 275;
rls._y = 125;
}
function callResponse(cr) {
if (cr == true) {
rls = attachMovie("loadResponse", "l", k, responsesLevel);
rls._x = 275;
rls._y = 125;
responses = typeResponses[random(typeResponses.length)];
if (combo > combo4) {
w4.start();
trace("Level 4 Sound");
} else if (combo > combo3) {
w3.start();
trace("Level 3 Sound");
} else if (combo > combo2) {
w2.start();
trace("Level 2 Sound");
} else if (combo > combo1) {
w1.start();
trace("Level 1 Sound");
} else if (combo < combo1) {
trace("Level 0 Sound");
}
}
if (cr == false) {
rls = attachMovie("loadResponse", "l", k, responsesLevel);
rls._x = 275;
rls._y = 125;
responses = typeBadResponses[random(typeBadResponses.length)];
l1.start();
}
}
function callTransIn() {
temp = random(xtransin) + 1;
trace(("--Transition " + temp) + " In-->");
g.attachMovie("Transition_" + temp, ("t" + k) + 10, translevel);
}
function callTransOut() {
temp = random(xtransout) + 1;
g.attachMovie("transOut_" + temp, ("t" + k) + 10, translevel);
trace(("--Transition " + temp) + "Out-->");
}
function switchScreens() {
g.removeMovieClip();
bar._visible = false;
if ((games.length <= 0) && (bbpran == false)) {
rls = attachMovie("finalswitcher", "subsub", switcherLevel);
gameMode = "finalBoss";
bbpran = true;
trace("====Switched to Boss Mode=====");
} else if (bbpran == true) {
subsub._visible = true;
_root.continuedBoss = true;
trace("====Switched - Continued Boss Mode=====");
} else {
rls = attachMovie("switcher", ("s" + k) + 10, switcherLevel);
trace("====Switched - Regular=====");
}
}
function gameOutcome(gib) {
jumpX = 3;
if (cstatus == 1) {
if (gameMode != "finalBoss") {
barActual = barActual + barInc;
}
trace(("You have completed " + barActual) + "%");
if (gib == true) {
if (_root.gameMode == "finalBoss") {
if (bossMode == "final") {
_root["finalGame" + currentlyOn] = true;
trace((("finalGame" + currentlyOn) + " = ") + _root["finalGame" + currentlyOn]);
}
subsub.boss.top[currentlyOn].gotoAndStop(2);
subsub.boss.bottom[currentlyOn].gotoAndStop(2);
}
if ((((((((finalGame1 == true) && (finalGame2 == true)) && (finalGame3 == true)) && (finalGame4 == true)) && (finalGame5 == true)) && (finalGame6 == true)) && (finalGame7 == true)) && (finalGame8 == true)) {
trace("teethDone");
subsub.nextFrame();
finalGame1 = false;
combo++;
callResponse(true);
callTransOut();
cstatus = 0;
} else {
combo++;
callResponse(true);
callTransOut();
cstatus = 0;
}
}
if (gib == false) {
combo = 0;
loseLife();
if (lives == 0) {
cstatus = 10;
subsub.removeMovieClip();
stopAllSounds();
runFine = true;
trace("DEAD");
_root.g.removeMovieClip();
_root.bar.removeMovieClip();
gotoAndStop ("died");
} else {
callResponse(false);
callTransOut();
cstatus = 0;
}
}
}
}
function loseLife() {
lives--;
switch (lives) {
case 0 :
bar.heart.nextFrame();
return;
case 1 :
bar.heart2.nextFrame();
return;
case 2 :
bar.heart3.nextFrame();
return;
case 3 :
bar.heart4.nextFrame();
return;
case 4 :
bar.heart5.nextFrame();
return;
case 5 :
bar.heart6.nextFrame();
return;
case 6 :
bar.heart7.nextFrame();
return;
case 7 :
bar.heart8.nextFrame();
return;
case 8 :
bar.heart9.nextFrame();
return;
case 9 :
bar.heart10.nextFrame();
}
}
function chooseGame() {
if (gameMode == "finalBoss") {
attachMovie("game" + (random(totGames) + 1), "g", gameLevel);
} else {
i = random(games.length);
trace("------------------");
trace("Length of array: " + games.length);
trace(((("Array Choice: " + i) + " (Game #") + games[i]) + ")");
trace(("Element " + i) + " removed...");
gameChoice = games[i];
trace("Game loaded: game" + gameChoice);
attachMovie("game" + gameChoice, "g", gameLevel);
games.splice(i, 1);
trace(("Elements " + games) + " left");
}
}
stop();
trace("///////////////////////////////////////////////////////////");
trace("//4 Second Frenzy //");
trace("//By jmtb02, protected by copyright and the CC license //");
trace("//For more information, visit http://www.jmtb02.com/ //");
trace("//Contact John Cooney, jmtb02@gmail.com //");
trace("///////////////////////////////////////////////////////////");
trace(" ");
trace(" ");
dicko = _root.attachMovie("bar", "bar", 7);
dicko._x = -10;
var i = 0;
var frameRate = 30;
var timeGiven = 4;
var b;
var bwidth;
var counter;
var tcounter;
var k = 10;
var temp = 0;
var storyMode;
var jumpX = 1;
var cstatus = 0;
var rules;
var responses;
var typeResponses = new Array("Bodacious!", "Great!", "Awesome!", "Fantastic!", "Brilliant!", "Wicked!", "Rockin!", "Far Out!", ":)");
var badResponses;
var typeBadResponses = new Array("Lame...", "Boo!!!", "No Good!", "Awww...", "How sad!", "Pshhhhh!", "You lose!", "You awake?", ":*(");
var gameLevel = 2;
var transLevel = 3;
var rulesLevel = 4;
var transOutLevel = 5;
var responsesLevel = 6;
var barLevel = 7;
var switcherLevel = 8;
var ibx = bar.bar._x;
var iby = bar.bar._y;
var beatClock;
bbpran = false;
var w1 = new Sound();
w1.attachSound("good1");
var w2 = new Sound();
w2.attachSound("good2");
var w3 = new Sound();
w3.attachSound("good3");
var w4 = new Sound();
w4.attachSound("good4");
var l1 = new Sound();
l1.attachSound("bad");
var combo = 0;
var combo1 = 1;
var combo2 = 3;
var combo3 = 5;
var combo4 = 10;
var bossLife = 300;
var gameMode = "";
var runFine = false;
var totalTime = 0;
var currentlyOn = 1;
var pp = 300;
var totGames = 50;
var xtransin = 3;
var xtransout = 2;
var sn = 1;
var games = new Array();
Array.prototype.randomize = function () {
var _local2 = this.length;
if (_local2 == 0) {
return(undefined);
}
while (_local2-- , _local2) {
var _local3 = Math.floor(Math.random() * (_local2 + 1));
var _local5 = this[_local2];
var _local4 = this[_local3];
this[_local2] = _local4;
this[_local3] = _local5;
}
return(this);
};
i = 1;
while (i <= totGames) {
games.push(i);
sn++;
i++;
}
games.randomize();
i = 0;
while (i < (totGames - xgames)) {
games.pop();
i++;
}
trace("Loading games: " + games);
trace(" ");
trace("Begin Game----------------->");
initialBar();
var barInc = (100 / xgames);
bar.progressBar._xscale = 0;
var barActual = 0;
onEnterFrame = function () {
if (cstatus == 1) {
bar.progressBar._xscale = barActual;
runningBar();
hearts();
}
if (bar.progressBar._xscale < barActual) {
bar.progressBar._xscale++;
}
if ((gameMode == "finalBoss") && (runFine == false)) {
_root.subsub.chump.life.bar._height = bossLife;
if (bossLife <= 0) {
runFinal();
}
}
if (runFine == false) {
totalTime++;
}
};
stop();
Symbol 18 MovieClip [gunRock] Frame 6
this.removeMovieClip();
Symbol 26 MovieClip [switcher] Frame 50
_root.initialBar();
this.removeMovieClip();
Instance of Symbol 28 MovieClip "l" in Symbol 29 MovieClip [gline] Frame 1
onClipEvent (load) {
_width = 0;
var colorful = new Color("_parent.l");
colorful.setRGB(Math.random() * 16777215);
speed = 8 + (Math.random() * 8);
}
onClipEvent (enterFrame) {
if (_width < 1100) {
_width = (_width + speed);
}
}
Symbol 36 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 2
pop = new Sound();
pop.attachSound("Dep4_pop");
pop.start();
Symbol 48 MovieClip Frame 12
stop();
this._x = -1000;
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 20
stop();
Symbol 53 MovieClip [game1] Frame 1
_root.rules = "Crack the Eggs!";
_root.beatClock = true;
launched = false;
bang = new Sound();
bang.attachSound("Dep4_bang");
oldrotation = turret._rotation;
onEnterFrame = function () {
if (_root.cstatus == 1) {
bal1._rotation = bal1._rotation + 5;
bal2._rotation = bal2._rotation - 5;
bal3._rotation = bal3._rotation + 10;
bal4._rotation = bal4._rotation - 10;
if (Key.isDown(38) || (Key.isDown(37))) {
turret._rotation = turret._rotation - 10;
}
if (Key.isDown(40) || (Key.isDown(39))) {
if (turret._rotation < oldrotation) {
turret._rotation = turret._rotation + 10;
}
}
if (Key.isDown(32) && (_root.cstatus == 1)) {
if (launched == false) {
turret.play();
bang.start();
launched = true;
}
}
if (launched == false) {
Bomb._rotation = turret._rotation;
Bomb._x = turret._x;
Bomb._y = turret._y;
vy = 40 * Math.sin((Math.PI/180) * Bomb._rotation);
vx = 40 * Math.cos((Math.PI/180) * Bomb._rotation);
} else if (launched == true) {
Bomb._x = Bomb._x + vx;
Bomb._y = Bomb._y + vy;
vy = vy + 1;
}
if ((((Bomb._x > 560) || (Bomb._x < -10)) || (Bomb._y < -10)) || (Bomb._y > 410)) {
Bomb._x = turret._x;
Bomb._y = turret._y;
launched = false;
}
if (Bomb.hitTest(bal1)) {
launched = false;
bal1.play();
hit1 = true;
}
if (Bomb.hitTest(bal2)) {
launched = false;
bal2.play();
hit2 = true;
}
if (Bomb.hitTest(bal3)) {
launched = false;
bal3.play();
hit3 = true;
}
if (Bomb.hitTest(bal4)) {
launched = false;
bal4.play();
hit4 = true;
}
if (((hit1 && (hit2)) && (hit3)) && (hit4)) {
_root.gameOutcome(true);
win.play();
}
}
};
Symbol 66 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 1
_root.bossMode = "final";
Symbol 73 MovieClip Frame 15
_root.currentlyOn = 1;
if (_root.finalGame1 == false) {
stop();
_root.initialBar();
_parent._visible = false;
this.onEnterFrame = function () {
if (_root.continuedBoss == true) {
_root.continuedBoss = false;
if (_root.finalGame2 == false) {
this.play();
} else if (_root.finalGame3 == false) {
this.gotoAndPlay("a3");
} else if (_root.finalGame4 == false) {
this.gotoAndPlay("a4");
} else if (_root.finalGame5 == false) {
this.gotoAndPlay("a5");
} else if (_root.finalGame6 == false) {
this.gotoAndPlay("a6");
} else if (_root.finalGame7 == false) {
this.gotoAndPlay("a7");
} else if (_root.finalGame8 == false) {
this.gotoAndPlay("a8");
} else if (_root.finalGame1 == false) {
this.gotoAndPlay("a1");
}
}
};
}
Symbol 73 MovieClip Frame 75
_root.currentlyOn = 2;
if (_root.finalGame2 == false) {
stop();
_root.initialBar();
_parent._visible = false;
this.onEnterFrame = function () {
if (_root.continuedBoss == true) {
_root.continuedBoss = false;
if (_root.finalGame3 == false) {
this.play();
} else if (_root.finalGame4 == false) {
this.gotoAndPlay("a4");
} else if (_root.finalGame5 == false) {
this.gotoAndPlay("a5");
} else if (_root.finalGame6 == false) {
this.gotoAndPlay("a6");
} else if (_root.finalGame7 == false) {
this.gotoAndPlay("a7");
} else if (_root.finalGame8 == false) {
this.gotoAndPlay("a8");
} else if (_root.finalGame1 == false) {
this.gotoAndPlay("a1");
} else if (_root.finalGame2 == false) {
this.gotoAndPlay("a2");
}
}
};
}
Symbol 73 MovieClip Frame 135
_root.currentlyOn = 3;
if (_root.finalGame3 == false) {
stop();
_root.initialBar();
_parent._visible = false;
this.onEnterFrame = function () {
if (_root.continuedBoss == true) {
_root.continuedBoss = false;
if (_root.finalGame4 == false) {
this.play();
} else if (_root.finalGame5 == false) {
this.gotoAndPlay("a5");
} else if (_root.finalGame6 == false) {
this.gotoAndPlay("a6");
} else if (_root.finalGame7 == false) {
this.gotoAndPlay("a7");
} else if (_root.finalGame8 == false) {
this.gotoAndPlay("a8");
} else if (_root.finalGame1 == false) {
this.gotoAndPlay("a1");
} else if (_root.finalGame2 == false) {
this.gotoAndPlay("a2");
} else if (_root.finalGame3 == false) {
this.gotoAndPlay("a3");
}
}
};
}
Symbol 73 MovieClip Frame 180
_root.currentlyOn = 4;
if (_root.finalGame4 == false) {
stop();
_root.initialBar();
_parent._visible = false;
this.onEnterFrame = function () {
if (_root.continuedBoss == true) {
_root.continuedBoss = false;
if (_root.finalGame5 == false) {
this.play();
} else if (_root.finalGame6 == false) {
this.gotoAndPlay("a6");
} else if (_root.finalGame7 == false) {
this.gotoAndPlay("a7");
} else if (_root.finalGame8 == false) {
this.gotoAndPlay("a8");
} else if (_root.finalGame1 == false) {
this.gotoAndPlay("a1");
} else if (_root.finalGame2 == false) {
this.gotoAndPlay("a2");
} else if (_root.finalGame3 == false) {
this.gotoAndPlay("a3");
} else if (_root.finalGame4 == false) {
this.gotoAndPlay("a4");
}
}
};
}
Symbol 73 MovieClip Frame 240
_root.currentlyOn = 5;
if (_root.finalGame5 == false) {
stop();
_root.initialBar();
_parent._visible = false;
this.onEnterFrame = function () {
if (_root.continuedBoss == true) {
_root.continuedBoss = false;
if (_root.finalGame6 == false) {
this.play();
} else if (_root.finalGame7 == false) {
this.gotoAndPlay("a7");
} else if (_root.finalGame8 == false) {
this.gotoAndPlay("a8");
} else if (_root.finalGame1 == false) {
this.gotoAndPlay("a1");
} else if (_root.finalGame2 == false) {
this.gotoAndPlay("a2");
} else if (_root.finalGame3 == false) {
this.gotoAndPlay("a3");
} else if (_root.finalGame4 == false) {
this.gotoAndPlay("a4");
} else if (_root.finalGame5 == false) {
this.gotoAndPlay("a5");
}
}
};
}
Symbol 73 MovieClip Frame 300
_root.currentlyOn = 6;
if (_root.finalGame6 == false) {
stop();
_root.initialBar();
_parent._visible = false;
this.onEnterFrame = function () {
if (_root.continuedBoss == true) {
_root.continuedBoss = false;
if (_root.finalGame7 == false) {
this.play();
} else if (_root.finalGame8 == false) {
this.gotoAndPlay("a8");
} else if (_root.finalGame1 == false) {
this.gotoAndPlay("a1");
} else if (_root.finalGame2 == false) {
this.gotoAndPlay("a2");
} else if (_root.finalGame3 == false) {
this.gotoAndPlay("a3");
} else if (_root.finalGame4 == false) {
this.gotoAndPlay("a4");
} else if (_root.finalGame5 == false) {
this.gotoAndPlay("a5");
} else if (_root.finalGame6 == false) {
this.gotoAndPlay("a6");
}
}
};
}
Symbol 73 MovieClip Frame 360
_root.currentlyOn = 7;
if (_root.finalGame7 == false) {
stop();
_root.initialBar();
_parent._visible = false;
this.onEnterFrame = function () {
if (_root.continuedBoss == true) {
_root.continuedBoss = false;
if (_root.finalGame8 == false) {
this.play();
} else if (_root.finalGame1 == false) {
this.gotoAndPlay("a1");
} else if (_root.finalGame2 == false) {
this.gotoAndPlay("a2");
} else if (_root.finalGame3 == false) {
this.gotoAndPlay("a3");
} else if (_root.finalGame4 == false) {
this.gotoAndPlay("a4");
} else if (_root.finalGame5 == false) {
this.gotoAndPlay("a5");
} else if (_root.finalGame6 == false) {
this.gotoAndPlay("a6");
} else if (_root.finalGame7 == false) {
this.gotoAndPlay("a7");
}
}
};
}
Symbol 73 MovieClip Frame 420
_root.currentlyOn = 8;
if (_root.finalGame8 == false) {
stop();
_root.initialBar();
_parent._visible = false;
this.onEnterFrame = function () {
if (_root.continuedBoss == true) {
_root.continuedBoss = false;
if (_root.finalGame1 == false) {
this.play();
} else if (_root.finalGame2 == false) {
this.gotoAndPlay("a2");
} else if (_root.finalGame3 == false) {
this.gotoAndPlay("a3");
} else if (_root.finalGame4 == false) {
this.gotoAndPlay("a4");
} else if (_root.finalGame5 == false) {
this.gotoAndPlay("a5");
} else if (_root.finalGame6 == false) {
this.gotoAndPlay("a6");
} else if (_root.finalGame7 == false) {
this.gotoAndPlay("a7");
} else if (_root.finalGame8 == false) {
this.gotoAndPlay("a8");
}
}
};
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
crossHairStatus = true;
damage = 1;
speed = 10;
ta = 4;
_root.jumpX = 1;
onEnterFrame = function () {
if (_root.pp <= 0) {
_root.runFinal();
this.removeMovieClip();
}
if (crossHairStatus == true) {
if (Key.isDown(37) && (crossHair._x > 0)) {
crossHair._x = crossHair._x - speed;
}
if (Key.isDown(39) && (crossHair._x < 500)) {
crossHair._x = crossHair._x + speed;
}
if (Key.isDown(38) && (crossHair._y > 0)) {
crossHair._y = crossHair._y - speed;
}
if (Key.isDown(40) && (crossHair._y < 375)) {
crossHair._y = crossHair._y + speed;
}
if (Key.isDown(32)) {
tt = attachMovie("gunRock", "gunRock" + ta, this.getNextHighestDepth());
ta++;
tt._x = (crossHair._x - 8) + random(16);
tt._y = (crossHair._y - 8) + random(16);
tt._xscale = 50 + random(50);
tt._yscale = tt._xscale;
if (crossHair.hitArea.hitTest(boss.eye1)) {
boss.eye1.play();
numnum.play();
_root.pp = _root.pp - damage;
}
if (crossHair.hitArea.hitTest(boss.eye2)) {
boss.eye2.play();
numnum.play();
_root.pp = _root.pp - damage;
}
}
}
};
Symbol 104 MovieClip Frame 196
crossHairStatus = false;
Symbol 104 MovieClip Frame 197
stop();
crossHairStatus = false;
_root.initialBar();
_parent._visible = false;
this.onEnterFrame = function () {
if (_root.jumpX == 3) {
this.play();
_root.jumpX = 1;
}
};
Symbol 104 MovieClip Frame 198
crossHairStatus = true;
Symbol 104 MovieClip Frame 199
crossHairStatus = true;
Symbol 104 MovieClip Frame 200
crossHairStatus = true;
Symbol 105 MovieClip [finalswitcher] Frame 125
stopAllSounds();
Symbol 105 MovieClip [finalswitcher] Frame 127
var my_sound = new Sound();
my_sound.attachSound("NG55624");
my_sound.start();
Symbol 105 MovieClip [finalswitcher] Frame 396
stop();
_root.finalGame1 = false;
_root.finalGame2 = false;
_root.finalGame3 = false;
_root.finalGame4 = false;
_root.finalGame5 = false;
_root.finalGame6 = false;
_root.finalGame7 = false;
_root.finalGame8 = false;
Symbol 105 MovieClip [finalswitcher] Frame 397
play();
Symbol 105 MovieClip [finalswitcher] Frame 459
onEnterFrame = function () {
car = 5;
};
Symbol 105 MovieClip [finalswitcher] Frame 561
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 11
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 11
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 11
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 100
stop();
Symbol 166 Button
on (release) {
catch22 = chank.text;
play();
}
Instance of Symbol 199 MovieClip "box" in Symbol 201 MovieClip [ball] Frame 1
onClipEvent (enterFrame) {
this._rotation = 360 - _root.ball._rotation;
}
Symbol 202 MovieClip [ballDeath (wall)] Frame 4
_root.resetCoconuts = false;
Symbol 202 MovieClip [ballDeath (wall)] Frame 11
stop();
Symbol 211 MovieClip [game2] Frame 1
xvel = 0;
yvel = 0;
gravity = 0;
ballspeed = 0.5;
_root.rules = "To the light!";
_root.beatClock = true;
Nic1_troop._x = 102;
Nic1_troop._y = 265;
onEnterFrame = function () {
if (_root.cstatus == 1) {
Nic1_troop._y = Nic1_troop._y + gravity;
gravity = gravity + 0.2;
Nic1_troop._x = Nic1_troop._x + xvel;
Nic1_troop._y = Nic1_troop._y + yvel;
if (Key.isDown(38)) {
yvel = yvel - ballspeed;
}
if (Key.isDown(37)) {
xvel = xvel - ballspeed;
Nic1_troop._rotation = Nic1_troop._rotation - 5;
}
if (Key.isDown(39)) {
xvel = xvel + ballspeed;
Nic1_troop._rotation = Nic1_troop._rotation + 5;
}
if (Key.isDown(40)) {
gravity = gravity + ballspeed;
}
if (Nic1_troop._x > 550) {
trace("out");
_root.gameOutcome(false);
}
if (Nic1_troop._x < 0) {
trace("out");
_root.gameOutcome(false);
}
if (Nic1_troop._y > 400) {
trace("out");
_root.gameOutcome(false);
}
if (Nic1_troop._y < 0) {
trace("out");
_root.gameOutcome(false);
}
}
};
Instance of Symbol 209 MovieClip "Nic1_glowball" in Symbol 211 MovieClip [game2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_parent.Nic1_troop) && (_root.cstatus == 1)) {
_root.gameOutcome(true);
}
}
Symbol 218 MovieClip Frame 1
stop();
Symbol 226 MovieClip [game3] Frame 1
function starDo() {
this._x = this._x + this.x;
this._y = this._y + this.y;
this._rotation++;
starCounter = 2;
this._x = this._x - (oldX - player._x);
this._y = this._y - (oldY - player._y);
if (player.hitTest(this._x, this._y, true) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
player.play();
} else if ((((this._x < 0) || (this._x > 550)) || (this._y < -20)) || (this._y > 420)) {
this.removeMovieClip();
}
}
function attachStar() {
angle = Math.floor(Math.random() * 360);
angle2 = (angle + 160) + Math.floor(Math.random() * 40);
ini._x = 275 + (Math.cos((angle * Math.PI) / 180) * startDist);
ini._y = 200 + (Math.sin((angle * Math.PI) / 180) * startDist);
ini._rotation = angle;
ini.x = Math.cos((angle2 * Math.PI) / 180) * starSpeed;
ini.y = Math.sin((angle2 * Math.PI) / 180) * starSpeed;
rtf.attachMovie("rtz_star", "rtz_star_instance" + starNum, starNum, ini);
starNum++;
}
function removeStars() {
for (var _local2 in this) {
if (_local2.indexOf("rtz_star_instance", 0) > -1) {
this[_local2].removeMovieClip();
}
}
}
_root.rules = "Dodge 'em!";
_root.beatClock = false;
var youAcc = 0.2;
var youDec = 0.2;
var youSpeed = 0;
var youMaxSpeed = 5;
var starNum = 1;
var starSpeed = 5;
var startDist = 200;
var angle = 0;
var angle2 = 0;
var deltaX = 0;
var ccounter = 0;
var deltaY = 0;
var ini = {_x:0, _y:0, _rotation:0, x:0, y:0, onEnterFrame:starDo};
var started = false;
cstatus = 1;
onEnterFrame = function () {
if (_root.cstatus == 1) {
ccounter++;
if (ccounter == 8) {
attachStar();
ccounter = 0;
trace("attached");
}
if (Key.isDown(38)) {
youSpeed = Math.min(youMaxSpeed, youSpeed + youAcc);
} else {
youSpeed = Math.max(0, youSpeed - youDec);
}
player._rotation = player._rotation + ((Key.isDown(39) - Key.isDown(37)) * 7);
xC = Math.cos((player._rotation * Math.PI) / 180) * youSpeed;
yC = Math.sin((player._rotation * Math.PI) / 180) * youSpeed;
player._x = player._x + xC;
player._y = player._y + yC;
oldX = player._x;
oldY = player._y;
deltaX = (player._x + xC) - 275;
deltaY = (player._y + yC) - 200;
if (Math.sqrt((deltaX * deltaX) + (deltaY * deltaY)) > 50) {
ang = Math.atan2(deltaY, deltaX);
player._x = 275 + (50 * Math.cos(ang));
player._y = 200 + (50 * Math.sin(ang));
bg._x = bg._x - (oldX - player._x);
bg._y = bg._y - (oldY - player._y);
}
if (bg._x > 75) {
bg._x = bg._x - 200;
} else if (bg._x < -125) {
bg._x = bg._x + 200;
}
if (bg._y > 0) {
bg._y = bg._y - 200;
} else if (bg._y < -200) {
bg._y = bg._y + 200;
}
}
};
Symbol 238 MovieClip Frame 1
play();
Symbol 238 MovieClip Frame 18
stop();
Symbol 238 MovieClip Frame 19
play();
_root.g.happysgone++;
Symbol 238 MovieClip Frame 35
gotoAndPlay ("spawn");
this._y = random(225);
this._x = random(550);
Symbol 241 MovieClip Frame 1
stop();
Symbol 243 MovieClip [game4] Frame 1
_root.rules = "Save 2 happys!";
_root.beatClock = true;
follow = false;
handspeed = 20;
happysgone = 2;
happy._y = random(375);
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (follow == true) {
happy._x = hand._x;
happy._y = hand._y;
}
if (Key.isDown(37) && (hand._x >= 0)) {
hand._x = hand._x - handspeed;
}
if (Key.isDown(39) && (hand._x <= 550)) {
hand._x = hand._x + handspeed;
}
if (Key.isDown(38) && (hand._y >= 0)) {
hand._y = hand._y - handspeed;
}
if (Key.isDown(40) && (hand._y <= 400)) {
hand._y = hand._y + handspeed;
}
if (Key.isDown(32) && (hand.hitTest(happy))) {
follow = true;
hand.gotoAndStop("handclosed");
}
if (!Key.isDown(32)) {
follow = false;
hand.gotoAndStop("handopen");
}
if (happy.hitTest(portal.portalcenter)) {
follow = false;
happy.nextFrame();
hand.gotoAndStop("handopen");
}
if (happysgone >= 4) {
_root.gameOutcome(true);
}
}
};
Symbol 251 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 1
stop();
Symbol 263 MovieClip [game5] Frame 1
_root.rules = "Make him happy!";
_root.beatClock = true;
defaultbar = bar._xscale;
halfbar = defaultbar / 2;
threequarterbar = halfbar / 2;
greenbar = halfbar + threequarterbar;
bar._xscale = 0;
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (Key.isDown(32) && (!space_down)) {
bar._xscale = bar._xscale + 9;
space_down = true;
} else if (!Key.isDown(32)) {
space_down = false;
}
if (bar._xscale <= 0) {
bar._xscale = 0;
}
if (bar._xscale >= defaultbar) {
bar._xscale = defaultbar;
}
if (bar._xscale >= halfbar) {
bar.gotoAndStop(3);
face.gotoAndStop(3);
}
if ((bar._xscale >= threequarterbar) && (bar._xscale <= halfbar)) {
bar.gotoAndStop(2);
face.gotoAndStop(2);
}
if (bar._xscale >= greenbar) {
bar.gotoAndStop(4);
face.gotoAndStop(4);
}
if (bar._xscale == defaultbar) {
bar.gotoAndStop(5);
_root.gameOutcome(true);
} else {
bar._xscale = bar._xscale - 0.2;
}
}
};
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 2
stop();
Symbol 267 MovieClip Frame 3
stop();
Symbol 270 MovieClip [game6] Frame 1
_root.rules = "Odd one out";
_root.beatClock = true;
Wait = 1;
onEnterFrame = function () {
if (Wait == 1) {
Wait = 0;
row = random(4) + 1;
one = random(3) + 1;
two = random(3) + 1;
three = random(3) + 1;
four = random(3) + 1;
right = new Array(one, two, three, four);
odd = new Array(one, two, three, four);
off = random(3) + 1;
whi = random(4);
sel = 1;
movd = false;
while (odd[whi] == off) {
off = random(3) + 1;
}
odd[whi] = off;
i = 0;
while (i < 5) {
_root.g["arby_a" + (i + 1)].gotoAndStop(right[i]);
if (row == 1) {
_root.g["arby_a" + (i + 1)].gotoAndStop(odd[i]);
}
i++;
}
i = 0;
while (i < 5) {
_root.g["arby_b" + (i + 1)].gotoAndStop(right[i]);
if (row == 2) {
_root.g["arby_b" + (i + 1)].gotoAndStop(odd[i]);
}
i++;
}
i = 0;
while (i < 5) {
_root.g["arby_c" + (i + 1)].gotoAndStop(right[i]);
if (row == 3) {
_root.g["arby_c" + (i + 1)].gotoAndStop(odd[i]);
}
i++;
}
i = 0;
while (i < 5) {
_root.g["arby_d" + (i + 1)].gotoAndStop(right[i]);
if (row == 4) {
_root.g["arby_d" + (i + 1)].gotoAndStop(odd[i]);
}
i++;
}
}
if (_root.cstatus == 1) {
if (Key.isDown(32)) {
if (sel == row) {
_root.gameOutcome(true);
} else {
_root.gameOutcome(false);
}
}
if (Key.isDown(40) && (movd == false)) {
if (sel < 4) {
sel = sel + 1;
movd = true;
}
}
if (Key.isDown(38) && (movd == false)) {
if (sel > 1) {
sel = sel - 1;
movd = true;
}
}
if ((!Key.isDown(40)) && (!Key.isDown(38))) {
movd = false;
}
}
if (sel == 1) {
arby_lol._y = 20;
}
if (sel == 2) {
arby_lol._y = 115;
}
if (sel == 3) {
arby_lol._y = 210;
}
if (sel == 4) {
arby_lol._y = 305;
}
};
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 9
stop();
Symbol 290 MovieClip Frame 14
stop();
Symbol 292 MovieClip [game7] Frame 1
function testKey(thenum) {
if (pressing == false) {
pressing = true;
if (eval ("key" + waitingforkey) == thenum) {
waitingforkey++;
if (waitingforkey > 2) {
_root.gameOutcome(true);
stillplaying = false;
signal.gotoAndPlay("win");
}
} else {
_root.gameOutcome(false);
stillplaying = false;
signal.gotoAndPlay("lose");
}
}
}
_root.rules = "Obey!";
_root.beatClock = true;
_root.cstatus = 1;
key1 = random(4);
key2 = random(4);
dont = key1;
while ((dont == key1) || (dont == key2)) {
dont = random(4);
}
arrangement = random(4);
if (arrangement == 0) {
sign1.arrowpulser.arrow.gotoAndStop(key1 + 1);
sign1.instructions.gotoAndStop("press");
sign2.arrowpulser.arrow.gotoAndStop(key2 + 1);
sign2.instructions.gotoAndStop("then");
sign3.arrowpulser.arrow.gotoAndStop(dont + 1);
sign3.instructions.gotoAndStop("dont");
} else if (arrangement == 1) {
sign1.arrowpulser.arrow.gotoAndStop(dont + 1);
sign1.instructions.gotoAndStop("dont");
sign2.arrowpulser.arrow.gotoAndStop(key2 + 1);
sign2.instructions.gotoAndStop("press");
sign3.arrowpulser.arrow.gotoAndStop(key1 + 1);
sign3.instructions.gotoAndStop("first");
} else if (arrangement == 2) {
sign1.arrowpulser.arrow.gotoAndStop(dont + 1);
sign1.instructions.gotoAndStop("dont");
sign2.arrowpulser.arrow.gotoAndStop(key1 + 1);
sign2.instructions.gotoAndStop("press");
sign3.arrowpulser.arrow.gotoAndStop(key2 + 1);
sign3.instructions.gotoAndStop("then");
} else {
sign1.arrowpulser.arrow.gotoAndStop(key2 + 1);
sign1.instructions.gotoAndStop("press");
sign2.arrowpulser.arrow.gotoAndStop(key1 + 1);
sign2.instructions.gotoAndStop("first");
sign3.arrowpulser.arrow.gotoAndStop(dont + 1);
sign3.instructions.gotoAndStop("dont");
}
pressing = false;
waitingforkey = 1;
stillplaying = true;
onEnterFrame = function () {
if ((_root.cstatus == 1) && (stillplaying == true)) {
if (Key.isDown(37)) {
testKey(3);
} else if (Key.isDown(39)) {
testKey(1);
} else if (Key.isDown(38)) {
testKey(0);
} else if (Key.isDown(40)) {
testKey(2);
} else {
pressing = false;
}
}
};
Symbol 310 MovieClip [game8] Frame 1
_root.rules = "Avoid Smash!";
_root.beatClock = false;
fly.stop();
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (fly._currentframe == 1) {
if (Key.isDown(38) && (fly._y > 0)) {
fly._y = fly._y - 15;
} else if (Key.isDown(40) && (fly._y < 400)) {
fly._y = fly._y + 15;
}
if (Key.isDown(39) && (fly._x < 550)) {
fly._x = fly._x + 15;
} else if (Key.isDown(37) && (fly._x > 0)) {
fly._x = fly._x - 15;
}
if (swatter._y < fly._y) {
swatter._y = swatter._y + 6.5;
}
if (swatter._y > fly._y) {
swatter._y = swatter._y - 6.5;
}
if (swatter._x < fly._x) {
swatter._x = swatter._x + 6.5;
}
if (swatter._x > fly._x) {
swatter._x = swatter._x - 6.5;
}
if (fly.hitTest(swatter.swatter_shapeflag) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
fly.nextFrame();
swatter.gotoAndStop(1);
}
}
}
};
Symbol 335 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 351 MovieClip [game9] Frame 1
_root.rules = "Make him cool";
_root.beatClock = true;
started = false;
lost = true;
onEnterFrame = function () {
if (_root.cstatus == 1) {
started = true;
}
if ((_root.cstatus != 1) && (started == false)) {
guy.gotoAndStop("you");
}
if (tube.tube2.hit.hitTest(guy.hit) && (_root.cstatus == 1)) {
_root.gameOutcome(true);
guy.gotoAndStop("lo");
lost = false;
}
if (((_root.cstatus == 0) && (lost == true)) && (started == true)) {
guy.gotoAndStop("sonnenbrand");
}
};
Instance of Symbol 349 MovieClip "tube" in Symbol 351 MovieClip [game9] Frame 1
onClipEvent (load) {
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
if (Key.isDown(38)) {
this._y = this._y + (-speed);
this.gotoAndStop("UP");
}
if (Key.isDown(40)) {
this._y = this._y + speed;
this.gotoAndStop("UP");
}
if (Key.isDown(37)) {
this._x = this._x + (-speed);
this.gotoAndStop("LEFT");
}
if (Key.isDown(39)) {
this._x = this._x + speed;
this.gotoAndStop("RIGHT");
}
}
}
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 2
stop();
Symbol 361 MovieClip [game10] Frame 1
_root.rules = "Click Space!";
_root.beatClock = true;
var startT = getTimer();
onEnterFrame = function () {
if (_root.cstatus == 1) {
if ((getTimer() - startT) > 3500) {
clickMC.gotoAndStop(2);
}
if (Key.isDown(32)) {
if ((getTimer() - startT) > 3500) {
_root.gameOutcome(true);
} else {
_root.gameOutcome(false);
}
}
}
};
Symbol 369 MovieClip [game11] Frame 1
function cla2_BHT() {
return(((((((course.hitTest(ball._x - (ball._width / 2), ball._y - (ball._height / 2), true) || (course.hitTest(ball._x + (ball._width / 2), ball._y - (ball._height / 2), true))) || (course.hitTest(ball._x - (ball._width / 2), ball._y + (ball._height / 2), true))) || (course.hitTest(ball._x + (ball._width / 2), ball._y + (ball._height / 2), true))) || (course.hitTest(ball._x + (ball._width / 2), ball._y, true))) || (course.hitTest(ball._x - (ball._width / 2), ball._y, true))) || (course.hitTest(ball._x, ball._y + (ball._height / 2), true))) || (course.hitTest(ball._x, ball._y - (ball._height / 2), true)));
}
_root.rules = "To the end!";
_root.beatClock = true;
var speed = 5;
cstatus = 1;
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (Key.isDown(37)) {
ball._x = ball._x - speed;
if (cla2_BHT()) {
while (cla2_BHT()) {
ball._x++;
}
}
}
if (Key.isDown(39)) {
ball._x = ball._x + speed;
if (cla2_BHT()) {
while (cla2_BHT()) {
ball._x--;
}
}
}
if (Key.isDown(38)) {
ball._y = ball._y - speed;
if (cla2_BHT()) {
while (cla2_BHT()) {
ball._y++;
}
}
}
if (Key.isDown(40)) {
ball._y = ball._y + speed;
if (cla2_BHT()) {
while (cla2_BHT()) {
ball._y--;
}
}
}
if (ball.hitTest(end)) {
_root.gameOutcome(true);
ball._x = 9999;
}
}
};
Symbol 372 MovieClip [game12] Frame 1
_root.rules = "Fall down";
_root.beatClock = false;
Wait = 1;
onEnterFrame = function () {
if (Wait == 1) {
Wait = 0;
createEmptyMovieClip("arby_back", 1);
holes = new Array(20);
i = 0;
while (i < 20) {
holes[i] = random(10);
i++;
}
arby_back._y = 400;
with (arby_back) {
lineStyle(5, 0, 100);
i = 0;
while (i < 20) {
moveTo(0, i * 150);
lineTo((holes[i] * 55) - 20, i * 150);
moveTo(550, i * 150);
lineTo((holes[i] * 55) + 75, i * 150);
i++;
}
}
}
if (_root.cstatus == 1) {
if (arby_you._y <= 0) {
_root.gameOutcome(false);
}
thole = (((arby_you._y + 40) - arby_back._y) - (((arby_you._y + 40) - arby_back._y) % 150)) / 150;
if ((((arby_you._y + 40) - arby_back._y) >= -40) && ((((arby_you._y + 40) - arby_back._y) % 150) <= 20)) {
if (((arby_you._x - 40) < ((holes[thole] * 55) + 75)) && (arby_you._x > ((holes[thole] * 55) - 20))) {
arby_you._y = arby_you._y + 10;
} else {
arby_you._y = arby_you._y - (((arby_you._y + 40) - arby_back._y) % 150);
arby_you._y = arby_you._y - 10;
}
} else {
arby_you._y = arby_you._y + 10;
}
arby_back._y = arby_back._y - 10;
if (Key.isDown(39)) {
arby_you._x = arby_you._x + 40;
}
if (Key.isDown(37)) {
arby_you._x = arby_you._x - 40;
}
if (arby_you._x < 0) {
arby_you._x = 0;
}
if (arby_you._x > 510) {
arby_you._x = 510;
}
}
};
Symbol 378 MovieClip Frame 1
stop();
Symbol 382 MovieClip [game13] Frame 1
_root.rules = "Bounce across!";
_root.beatClock = true;
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (ball.hitTest(goal)) {
_root.gameOutcome(true);
}
}
};
Instance of Symbol 378 MovieClip "ball" in Symbol 382 MovieClip [game13] Frame 1
onClipEvent (load) {
gravity = 0;
speed = 5;
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
if (Key.isDown(38)) {
_y = (_y - speed);
}
if (this._y >= 450) {
_root.gameOutcome(false);
}
_y = (_y + gravity);
gravity = gravity + 2;
if (hitTest(_root.g.platform)) {
gravity = -30;
gotoAndPlay (2);
}
if (hitTest(_root.g.platform2)) {
gravity = -30;
gotoAndPlay (2);
}
if (hitTest(_root.g.platform3)) {
gravity = -30;
gotoAndPlay (2);
}
}
}
Symbol 396 MovieClip [game14] Frame 1
_root.rules = "Mow the grass!";
_root.beatClock = true;
Instance of Symbol 390 MovieClip in Symbol 396 MovieClip [game14] Frame 1
onClipEvent (load) {
spd = 0;
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
this.mask._x = this.mask._x + spd;
if (Key.isDown(39)) {
if (spd < 8) {
spd++;
}
} else if (spd > 0) {
spd--;
}
}
}
Instance of Symbol 395 MovieClip in Symbol 396 MovieClip [game14] Frame 1
onClipEvent (load) {
spd = 0;
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
this._x = this._x + spd;
if (Key.isDown(39)) {
if (spd < 8) {
spd++;
}
this.wheel.play();
} else {
this.wheel.stop();
if (spd > 0) {
spd--;
}
}
if (this._x > 550) {
_root.gameOutcome(true);
}
}
}
Symbol 405 MovieClip Frame 1
this.zombie = false;
this.player = false;
stop();
Symbol 405 MovieClip Frame 15
this.zombie = true;
this.player = false;
stop();
Symbol 405 MovieClip Frame 26
gotoAndStop ("human");
Symbol 405 MovieClip Frame 27
this.zombie = false;
this.player = true;
stop();
Symbol 405 MovieClip Frame 35
this.zombie = true;
this.player = false;
_root.gameOutcome(false);
stop();
Symbol 407 MovieClip Frame 1
Instance of Symbol 405 MovieClip "z0" in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
CALMSPEED = 3;
xvel = (Math.random() * 4) - 1;
yvel = (Math.random() * 4) - 1;
diameter = _width;
zombie = false;
player = false;
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
if (!zombie) {
if (!player) {
xvel = xvel + (random(3) - 1);
yvel = yvel + (random(3) - 1);
v = Math.sqrt(Math.pow(xvel, 2) + Math.pow(yvel, 2));
if (v > CALMSPEED) {
xvel = (xvel / v) * CALMSPEED;
yvel = (yvel / v) * CALMSPEED;
}
} else {
if (Key.isDown(40)) {
yvel = yvel + 1;
}
if (Key.isDown(38)) {
yvel = yvel - 1;
}
if (Key.isDown(39)) {
xvel = xvel + 1;
}
if (Key.isDown(37)) {
xvel = xvel - 1;
}
v = Math.sqrt(Math.pow(xvel, 2) + Math.pow(yvel, 2));
if (v > CALMSPEED) {
xvel = (xvel / v) * CALMSPEED;
yvel = (yvel / v) * CALMSPEED;
}
}
}
if (((_x + xvel) > _parent.br._x) or ((_x + xvel) < _parent.tl._x)) {
xvel = xvel * -1;
}
if (((_y + yvel) > _parent.br._y) or ((_y + yvel) < _parent.tl._y)) {
yvel = yvel * -1;
}
_x = (_x + xvel);
_y = (_y + yvel);
}
}
Symbol 409 MovieClip [game15] Frame 1
Instance of Symbol 407 MovieClip "g" in Symbol 409 MovieClip [game15] Frame 1
onClipEvent (load) {
function quadrantHelp(q) {
num = 0;
while (num < q.length) {
num2 = num + 1;
while (num2 < q.length) {
p1 = {x:q[num]._x, y:q[num]._y};
p2 = {x:q[num2]._x, y:q[num2]._y};
this.localToGlobal(p1);
this.localToGlobal(p2);
if (zdistance(p1, p2) < 15) {
if (q[num].zombie or q[num2].zombie) {
zombify(q[num]);
zombify(q[num2]);
}
collision(q[num], q[num2]);
}
num2++;
}
num++;
}
}
function intervene(z) {
z.gotoAndStop("player");
player = true;
}
function zombify(z) {
if (!z.zombie) {
z.play();
}
}
function zdistance(pt1, pt2) {
return(Math.sqrt(Math.pow(pt1.x - pt2.x, 2) + Math.pow(pt1.y - pt2.y, 2)));
}
function collision(c1, c2) {
dx = c2._x - c1._x;
dy = c2._y - c1._y;
d = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2));
dx = dx / d;
dy = dy / d;
v1dx = ((c1.xvel * dx) + (c1.yvel * dy)) * dx;
v1dy = ((c1.xvel * dx) + (c1.yvel * dy)) * dy;
v2dx = ((c2.xvel * dx) + (c2.yvel * dy)) * dx;
v2dy = ((c2.xvel * dx) + (c2.yvel * dy)) * dy;
v1px = c1.xvel - v1dx;
v1py = c1.yvel - v1dy;
v2px = c2.xvel - v2dx;
v2py = c2.yvel - v2dy;
c1.xvel = v2dx + v1px;
c1.yvel = v2dy + v1py;
c2.xvel = v1dx + v2px;
c2.yvel = v1dy + v2py;
c1._x = c1._x + c1.xvel;
c1._y = c1._y + c1.yvel;
c2._x = c2._x + c2.xvel;
c2._y = c2._y + c2.yvel;
}
_root.rules = "Avoid!";
_root.beatClock = false;
start = true;
number = 50;
pz = 0.5;
stop();
player = false;
playerN = null;
q1 = new Array();
q2 = new Array();
q3 = new Array();
q4 = new Array();
i = 1;
while (i < number) {
if (Math.random() > 0.5) {
qx = 1;
} else {
qx = -1;
}
if (Math.random() > 0.5) {
qy = 1;
} else {
qy = -1;
}
this.z0.duplicateMovieClip("z" + i, i, {_x:z0._x + (qx * ((min._x - z0._x) + (Math.random() * (max._x - min._x)))), _y:z0._y + (qy * ((min._y - z0._y) + (Math.random() * (max._y - min._y)))), _alpha:(Math.random() * 50) + 50});
i++;
}
intervene(this.z0);
i = 2;
while (i < (number * pz)) {
this["z" + i].gotoAndStop("zombie");
i++;
}
}
onClipEvent (enterFrame) {
if (start) {
start = false;
this.z0.xvel = 0;
this.z0.yvel = 0;
}
if (_root.cstatus == 1) {
q1 = new Array();
q2 = new Array();
q3 = new Array();
q4 = new Array();
i = 0;
while (i < number) {
p = {x:this["z" + i]._x, y:this["z" + i]._y};
this.localToGlobal(p);
if ((p.x <= 290) and (p.y <= 215)) {
q1.push(this["z" + i]);
}
if ((p.x > 275) and (p.y <= 215)) {
q2.push(this["z" + i]);
}
if ((p.x <= 290) and (p.y > 200)) {
q3.push(this["z" + i]);
}
if ((p.x > 275) and (p.y > 200)) {
q4.push(this["z" + i]);
}
i++;
}
quadrantHelp(q1);
quadrantHelp(q2);
quadrantHelp(q3);
quadrantHelp(q4);
}
}
Symbol 424 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 1
stop();
Instance of Symbol 418 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 418 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 418 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 418 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 430 MovieClip Frame 10
_root.gameOutcome(false);
Symbol 430 MovieClip Frame 40
_root.player1 = false;
_root.gameOutcome(false);
stop();
Symbol 437 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 1
stop();
Instance of Symbol 433 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 433 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 433 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(87)) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 433 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 442 MovieClip Frame 10
_root.gameOutcome(false);
Symbol 442 MovieClip Frame 40
_parent.player2 = false;
stop();
Instance of Symbol 413 MovieClip in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
numlines = 0;
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
if (Math.random() > _parent.prob) {
numlines++;
_parent.b.attachMovie("gline", "g" + numlines, numlines, {_x:Math.random() * 550, _y:Math.random() * 400, _rotation:Math.random() * 180});
}
hit = false;
if (_parent.player1) {
for (i in _parent.p1.perim) {
p = {x:_parent.p1.perim[i]._x, y:_parent.p1.perim[i]._y};
_parent.p1.perim.localToGlobal(p);
if (_parent.b.hitTest(p.x, p.y, true)) {
_parent.p1.d.play();
hit = true;
if (_parent.p1.health == 0) {
_parent.p1.play();
}
}
}
}
if ((_parent.p1.health > 0) and hit) {
_parent.p1.health--;
}
hit = false;
if (_parent.player2) {
for (i in _parent.p2.perim) {
p = {x:_parent.p2.perim[i]._x, y:_parent.p2.perim[i]._y};
_parent.p2.perim.localToGlobal(p);
if (_parent.b.hitTest(p.x, p.y, true)) {
_parent.p2.d.play();
hit = true;
if (_parent.p2.health == 0) {
_parent.p2.play();
}
}
}
}
if ((_parent.p2.health > 0) and hit) {
_parent.p2.health--;
}
trace(((!_parent.player1) + " ") + (!_parent.player2));
_parent.p1score = Math.floor(_parent.p1scored);
_parent.p2score = Math.floor(_parent.p2scored);
if ((!_parent.player1) and (!_parent.player2)) {
_root.gameOutcome(false);
}
}
}
Instance of Symbol 430 MovieClip "p1" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
if (_parent.player1) {
_parent.p1scored = 0;
xvel = 0;
yvel = 0;
friction = 0.9;
health = _parent.maxHealth;
speed = _parent.speed;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
if (_parent.player1 and (health > 0)) {
_parent.p1scored = _parent.p1scored + (health / _parent.maxHealth);
if (Key.isDown(37)) {
xvel = xvel - speed;
}
if (Key.isDown(39)) {
xvel = xvel + speed;
}
if (Key.isDown(38)) {
yvel = yvel - speed;
}
if (Key.isDown(40)) {
yvel = yvel + speed;
}
_x = (_x + xvel);
_y = (_y + yvel);
xvel = xvel * friction;
yvel = yvel * friction;
} else if (!_parent.player1) {
_visible = false;
}
}
}
Instance of Symbol 442 MovieClip "p2" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
if (_parent.player2) {
_parent.p2scored = 0;
xvel = 0;
yvel = 0;
friction = 0.9;
health = _parent.maxHealth;
speed = _parent.speed;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
if (_parent.player2 and (health > 0)) {
_parent.p2scored = _parent.p2scored + (health / _parent.maxHealth);
if (Key.isDown(37)) {
xvel = xvel - speed;
}
if (Key.isDown(39)) {
xvel = xvel + speed;
}
if (Key.isDown(38)) {
yvel = yvel - speed;
}
if (Key.isDown(40)) {
yvel = yvel + speed;
}
_x = (_x + xvel);
_y = (_y + yvel);
xvel = xvel * friction;
yvel = yvel * friction;
} else if (!_parent.player2) {
_visible = false;
}
}
}
Instance of Symbol 444 MovieClip in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
if (!_parent.player2) {
_visible = false;
}
scale = _width / _parent.p2.health;
}
onClipEvent (enterFrame) {
_width = (scale * _parent.p2.health);
}
Instance of Symbol 446 MovieClip in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
if (!_parent.player1) {
_visible = false;
}
scale = _width / _parent.p1.health;
}
onClipEvent (enterFrame) {
_width = (scale * _parent.p1.health);
}
Instance of Symbol 448 MovieClip "g" in Symbol 449 MovieClip [game16] Frame 1
onClipEvent (load) {
_root.rules = "Avoid lines!";
_root.beatClock = false;
prob = 0.9;
maxHealth = 10;
speed = 0.5;
if (Math.random() > 0.5) {
player1 = true;
player2 = false;
} else {
player2 = true;
player1 = false;
}
}
Symbol 452 MovieClip Frame 1
onEnterFrame = function () {
this._x = this._x + 0.7;
};
Symbol 461 MovieClip Frame 1
drift = 20;
xdir = (random(20) / 100) - 0.1;
ydir = -(random(30) / 100);
onEnterFrame = function () {
this._x = this._x + xdir;
this._y = this._y + ydir;
drift--;
if (drift < 0) {
xdir = (random(20) / 100) - 0.1;
ydir = -(random(30) / 100);
drift = random(15) + 10;
}
};
Symbol 464 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 2
stop();
Symbol 470 MovieClip [game17] Frame 1
_root.rules = "Park!";
_root.beatClock = true;
speed = 0;
accel = 3;
stillplaying = true;
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (stillplaying) {
if (Key.isDown(39)) {
speed = speed + accel;
}
if (Key.isDown(37)) {
speed = speed - accel;
}
if (Key.isDown(32)) {
trace(car._x);
}
if (speed != 0) {
if (speed > 0) {
speed = speed - 0.8;
if (speed < 0) {
speed = 0;
}
}
if (speed < 0) {
speed = speed + 0.8;
if (speed > 0) {
speed = 0;
}
}
}
car._x = car._x + speed;
car.wheel1._rotation = car.wheel1._rotation + speed;
car.wheel2._rotation = car.wheel2._rotation + speed;
if (car.hitTest(wallright)) {
car.gotoAndPlay("frontcrash");
car._x = (wallright._x - car._width) + 5;
_root.gameOutcome(false);
stillplaying = false;
}
if (((car._x >= 221.25) && (car._x <= 260.25)) && (speed == 0)) {
stillplaying = false;
_root.gameOutcome(true);
}
}
}
};
Symbol 476 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 2
_root.atn1_shipmove.atn1_filters.visible = true;
Symbol 476 MovieClip Frame 48
stop();
Symbol 477 MovieClip Frame 1
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 2
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 3
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 4
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 5
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 6
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 7
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 8
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 9
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 10
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 11
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 12
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 13
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 14
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 15
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 16
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 17
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 18
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 19
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 20
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 21
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 22
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 23
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 24
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 25
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 26
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 27
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 28
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 29
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 30
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 31
if (Key.isDown(32) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 32
if (Key.isDown(32)) {
_root.gameOutcome(false);
stop();
}
Symbol 477 MovieClip Frame 33
if (Key.isDown(32)) {
_root.gameOutcome(true);
stop();
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
_root.atn1_shipmove.atn1_filters.visible = true;
}
Symbol 477 MovieClip Frame 34
if (Key.isDown(32)) {
_root.gameOutcome(true);
stop();
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
_root.atn1_shipmove.atn1_filters.visible = true;
}
Symbol 477 MovieClip Frame 35
if (Key.isDown(32)) {
_root.gameOutcome(true);
stop();
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
_root.atn1_shipmove.atn1_filters.visible = true;
}
Symbol 477 MovieClip Frame 36
if (Key.isDown(32)) {
_root.gameOutcome(true);
stop();
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
_root.atn1_shipmove.atn1_filters.visible = true;
}
Symbol 477 MovieClip Frame 37
if (Key.isDown(32)) {
_root.gameOutcome(true);
stop();
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
_root.atn1_shipmove.atn1_filters.visible = true;
}
Symbol 477 MovieClip Frame 38
if (Key.isDown(32)) {
_root.gameOutcome(true);
stop();
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
_root.atn1_shipmove.atn1_filters.visible = true;
}
Symbol 477 MovieClip Frame 39
if (Key.isDown(32)) {
_root.gameOutcome(true);
stop();
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
_root.atn1_shipmove.atn1_filters.visible = true;
}
Symbol 477 MovieClip Frame 40
if (Key.isDown(32)) {
_root.gameOutcome(true);
stop();
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
_root.atn1_shipmove.atn1_filters.visible = true;
}
Symbol 477 MovieClip Frame 41
if (Key.isDown(32)) {
_root.gameOutcome(true);
stop();
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
_root.atn1_shipmove.atn1_filters.visible = true;
}
Symbol 477 MovieClip Frame 42
if (Key.isDown(32)) {
_root.gameOutcome(true);
stop();
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
_root.atn1_shipmove.atn1_filters.visible = true;
}
Symbol 477 MovieClip Frame 43
if (Key.isDown(32)) {
_root.gameOutcome(true);
stop();
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
_root.atn1_shipmove.atn1_filters.visible = true;
}
Symbol 477 MovieClip Frame 44
if (Key.isDown(32)) {
_root.gameOutcome(true);
stop();
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
_root.atn1_shipmove.atn1_filters.visible = true;
}
Symbol 477 MovieClip Frame 45
stop();
if (Key.isDown(32)) {
_root.gameOutcome(false);
_root.atn1_shipmove.atn1_snap.gotoAndPlay(2);
}
Symbol 481 MovieClip [game18] Frame 1
_root.rules = "Take a photo!";
_root.beatClock = true;
onEnterFrame = function () {
if (_root.cstatus == 1) {
}
};
Symbol 493 MovieClip [game19] Frame 1
_root.rules = "Dodge!";
_root.beatClock = false;
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (ball.hitTest(platform)) {
_root.gameOutcome(false);
}
if (ball.hitTest(platform2)) {
_root.gameOutcome(false);
}
if (ball.hitTest(wall)) {
_root.gameOutcome(false);
}
if (ball.hitTest(wall2)) {
_root.gameOutcome(false);
}
}
};
Instance of Symbol 487 MovieClip "ball" in Symbol 493 MovieClip [game19] Frame 1
onClipEvent (load) {
gravity = 0;
speed = 5;
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
if ((this._y >= 550) && (_root.cstatus == 1)) {
_root.gameOutcome(true);
}
if (Key.isDown(37)) {
this._x = this._x - speed;
}
if (Key.isDown(39)) {
this._x = this._x + speed;
}
this._y = this._y + gravity;
gravity = gravity + 0.5;
if (hitTest(_root.platform)) {
gravity = 0;
}
if (hitTest(_root.platform2)) {
this._y = this._y + ((gravity = 0));
}
if (hitTest(_root.wall)) {
this._y = this._y + ((gravity = 0));
}
if (hitTest(_root.wall2)) {
this._x = this._x - ((gravity = 0));
}
}
}
Symbol 511 MovieClip Frame 1
gotoAndPlay(random(2) + 2);
Symbol 511 MovieClip Frame 2
gotoAndPlay ("Level01");
Symbol 511 MovieClip Frame 3
gotoAndPlay ("Level04");
Symbol 511 MovieClip Frame 29
gotoAndPlay ("Level01");
Symbol 511 MovieClip Frame 109
gotoAndPlay ("Level02");
Symbol 511 MovieClip Frame 111
gotoAndPlay ("Level04");
Symbol 511 MovieClip Frame 232
gotoAndPlay ("Level05");
Symbol 511 MovieClip Frame 313
gotoAndPlay ("Level03");
Instance of Symbol 511 MovieClip "Level" in Symbol 512 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.JustStarted) {
this.gotoAndPlay(1);
_parent._parent.JustStarted = false;
}
}
Symbol 518 MovieClip Frame 1
this.hitArea;
Symbol 518 MovieClip Frame 20
gotoAndPlay ("Rest");
Symbol 518 MovieClip Frame 40
gotoAndPlay ("Up");
gotoAndPlay ("Up");
gotoAndPlay ("Up");
gotoAndPlay ("Up");
gotoAndPlay ("Up");
Symbol 518 MovieClip Frame 48
stop();
_root.gameOutcome(false);
Instance of Symbol 512 MovieClip "walls" in Symbol 519 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.walls.Level.hitArea;
}
Instance of Symbol 518 MovieClip "Player" in Symbol 519 MovieClip Frame 1
onClipEvent (load) {
Xspeed = 0;
Yspeed = 0;
StartUp = 0;
hit = 0;
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
if (hit == 1) {
hit = 3;
this.gotoAndPlay("boom");
}
for (i in _parent.walls) {
for (j in this.Perim) {
this.Perim.localToGlobal((p = {x:this.Perim[j]._x, y:this.Perim[j]._y}));
if (_parent.walls[i].hitTest(p.x, p.y, true) && (hit == 0)) {
hit = 1;
}
}
}
if (hit == 0) {
Yspeed = Yspeed - 0.3;
_x = (_x + Xspeed);
_y = (_y - Yspeed);
}
hit = hit + 0;
if (StartUp == 1) {
this.gotoAndPlay("Up");
StartUp = 2;
}
if (Key.isDown(40)) {
Xspeed = Xspeed * 0.8;
Yspeed = Yspeed * 0.8;
}
if (Key.isDown(39)) {
_rotation = (_rotation + 5);
}
if (Key.isDown(38)) {
if ((StartUp == 0) && (hit == 0)) {
StartUp = 1;
}
Xspeed = Xspeed + Math.sin((_rotation * Math.PI) / 180);
Yspeed = Yspeed + Math.cos((_rotation * Math.PI) / 180);
} else {
StartUp = 0;
if (hit == 0) {
this.gotoAndPlay("Rest");
}
}
if (Key.isDown(37)) {
_rotation = (_rotation - 5);
}
if (_x < 0) {
_x = 1;
Xspeed = 0;
}
if (_x > 550) {
_x = 549;
Xspeed = 0;
}
if (_y > 400) {
_y = 399;
Yspeed = -0.4;
}
if (_y < 0) {
_y = 1;
Yspeed = 0;
}
}
}
Symbol 520 MovieClip [game20] Frame 1
cstatus = 1;
Instance of Symbol 519 MovieClip "g" in Symbol 520 MovieClip [game20] Frame 1
onClipEvent (load) {
_root.rules = "Fly to Right!";
_root.beatClock = true;
cLevel = Math.floor(Math.random() * 5) + 1;
trace(cLevel);
NewLevel = cLevel;
JustStarted = 1;
XShip = 70;
YShip = 350;
}
onClipEvent (enterFrame) {
if ((this.Player._x > 530) and (_root.cstatus == 1)) {
_root.gameOutcome(true);
trace(":)");
}
}
Symbol 538 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 1
stop();
Symbol 571 MovieClip [game21] Frame 1
function init() {
speed = 10;
beep = new Sound(this);
beep.attachSound("Joh1_beep");
i = 0;
while (i < diff) {
var _local3 = Math.floor(Math.random() * 10);
codeNum[i] = _local3;
var _local5 = _root.g["code" + i];
var _local4 = _local3 + 1;
_local5.gotoAndStop(_local4);
i++;
}
}
function determine() {
j = 0;
while (j < diff) {
if (codeNum[j] == numEntered[j]) {
matchCount++;
}
j++;
}
if (matchCount >= diff) {
_root.gameOutcome(true);
} else {
_root.gameOutcome(false);
}
}
function toDisplay(num) {
var _local3 = _root.g["display" + enterCount];
var _local2 = num + 2;
_local3.gotoAndStop(_local2);
}
function buttonResults(butVar) {
numEntered.push(butVar);
toDisplay(butVar);
eval ("button" + butVar)._alpha = 40;
beep.start(0, 1);
enterCount++;
}
_root.rules = "Enter the code!";
_root.beatClock = true;
codeNum = [];
numEntered = [];
enterCount = 0;
diff = 4;
matchCount = 0;
speed = 0;
beenPressed = false;
init();
onEnterFrame = function () {
if (_root.cstatus == 1) {
i = 0;
while (i < 10) {
eval ("button" + i)._alpha = eval ("button" + i)._alpha - 10;
i++;
}
if (Key.isDown(40)) {
hand._y = hand._y + speed;
}
if (Key.isDown(38)) {
hand._y = hand._y - speed;
}
if (Key.isDown(37)) {
hand._x = hand._x - speed;
}
if (Key.isDown(39)) {
hand._x = hand._x + speed;
}
if (!Key.isDown(32)) {
beenPressed = false;
}
if ((button1.hitTest(hand._x, hand._y, true) && (Key.isDown(32))) && (!beenPressed)) {
buttonResults(1);
beenPressed = true;
}
if ((button2.hitTest(hand._x, hand._y, true) && (Key.isDown(32))) && (!beenPressed)) {
buttonResults(2);
beenPressed = true;
}
if ((button3.hitTest(hand._x, hand._y, true) && (Key.isDown(32))) && (!beenPressed)) {
buttonResults(3);
beenPressed = true;
}
if ((button4.hitTest(hand._x, hand._y, true) && (Key.isDown(32))) && (!beenPressed)) {
buttonResults(4);
beenPressed = true;
}
if ((button5.hitTest(hand._x, hand._y, true) && (Key.isDown(32))) && (!beenPressed)) {
buttonResults(5);
beenPressed = true;
}
if ((button6.hitTest(hand._x, hand._y, true) && (Key.isDown(32))) && (!beenPressed)) {
buttonResults(6);
beenPressed = true;
}
if ((button7.hitTest(hand._x, hand._y, true) && (Key.isDown(32))) && (!beenPressed)) {
buttonResults(7);
beenPressed = true;
}
if ((button8.hitTest(hand._x, hand._y, true) && (Key.isDown(32))) && (!beenPressed)) {
buttonResults(8);
beenPressed = true;
}
if ((button9.hitTest(hand._x, hand._y, true) && (Key.isDown(32))) && (!beenPressed)) {
buttonResults(9);
beenPressed = true;
}
if ((button0.hitTest(hand._x, hand._y, true) && (Key.isDown(32))) && (!beenPressed)) {
buttonResults(0);
beenPressed = true;
}
if ((enterBut.hitTest(hand._x, hand._y, true) && (Key.isDown(32))) && (!beenPressed)) {
determine();
beenPressed = true;
}
}
};
Symbol 579 MovieClip Frame 1
trace(_parent._parent.clevel);
if (_parent._parent.clevel == 1) {
gotoAndPlay ("l1");
}
if (_parent._parent.clevel == 2) {
gotoAndPlay ("l2");
}
if (_parent._parent.clevel == 3) {
gotoAndPlay ("l3");
}
if (_parent._parent.clevel == 4) {
gotoAndPlay ("l4");
}
Symbol 579 MovieClip Frame 50
gotoAndPlay ("l1");
Symbol 579 MovieClip Frame 90
gotoAndPlay ("l2");
Symbol 579 MovieClip Frame 98
gotoAndPlay ("l3");
Symbol 579 MovieClip Frame 151
gotoAndPlay ("l4");
Symbol 580 MovieClip Frame 1
stop();
Symbol 587 MovieClip Frame 1
stop();
Symbol 587 MovieClip Frame 2
stop();
Instance of Symbol 587 MovieClip "p1" in Symbol 588 MovieClip Frame 1
onClipEvent (load) {
yvel = 0;
yacc = 1;
xvel = 0;
xspeed = 5;
onground = false;
hit = false;
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
if (this._x > _root.g.bar._x) {
_root.gameOutcome(true);
}
if (_y > _parent.e._y) {
_root.gameOutcome(false);
}
_y = (_y + yvel);
yvel = yvel + yacc;
_x = (_x + xvel);
if (Key.isDown(37)) {
xvel = -xspeed;
w._rotation = w._rotation - 6;
this.gotoAndStop("left");
} else if (Key.isDown(39)) {
xvel = xspeed;
w._rotation = w._rotation + 6;
this.gotoAndStop("right");
} else {
xvel = 0;
}
hit = false;
for (i in perim) {
perim.localToGlobal((p = {x:perim[i]._x, y:perim[i]._y}));
if (_parent.level.solid.hitTest(p.x, p.y, true)) {
hit = true;
}
}
while (hit) {
yvel = 0;
_y = (_y - 1);
hit = false;
for (i in perim) {
perim.localToGlobal((p = {x:perim[i]._x, y:perim[i]._y}));
if (_parent.level.solid.hitTest(p.x, p.y, true)) {
hit = true;
}
}
}
hit = false;
for (i in perim2) {
perim2.localToGlobal((p = {x:perim2[i]._x, y:perim2[i]._y}));
if (_parent.level.solid.hitTest(p.x, p.y, true)) {
hit = true;
}
}
if (Key.isDown(38) and hit) {
yvel = -11;
}
}
}
Symbol 590 MovieClip [game22] Frame 1
Instance of Symbol 588 MovieClip "g" in Symbol 590 MovieClip [game22] Frame 1
onClipEvent (load) {
clevel = Math.floor(Math.random() * 4) + 1;
_root.rules = "Go Right!";
_root.beatClock = true;
}
Symbol 607 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 2
stop();
Symbol 607 MovieClip Frame 3
stop();
Symbol 607 MovieClip Frame 4
stop();
Symbol 607 MovieClip Frame 5
stop();
Symbol 607 MovieClip Frame 6
stop();
Symbol 607 MovieClip Frame 7
stop();
Symbol 607 MovieClip Frame 8
stop();
Symbol 607 MovieClip Frame 9
stop();
Symbol 607 MovieClip Frame 10
stop();
Symbol 607 MovieClip Frame 11
stop();
Symbol 607 MovieClip Frame 12
stop();
_root.gameOutcome(true);
Symbol 607 MovieClip Frame 13
stop();
Symbol 607 MovieClip Frame 14
stop();
Symbol 607 MovieClip Frame 15
stop();
Symbol 607 MovieClip Frame 16
stop();
Symbol 607 MovieClip Frame 17
stop();
Symbol 623 MovieClip [game23] Frame 1
_root.rules = "Fill The Balloon!";
_root.beatClock = true;
ym = 3;
xm = 4;
speed = 5;
mth._x = random(550);
mth._y = 0;
onEnterFrame = function () {
if (_root.cstatus == 1) {
shot._y = inv._y;
shot._x = inv._x;
if (Key.isDown(38)) {
inv._y = inv._y - speed;
gun._y = gun._y - speed;
}
if (Key.isDown(40)) {
inv._y = inv._y + speed;
gun._y = gun._y + speed;
}
if (Key.isDown(39)) {
inv._x = inv._x + speed;
gun._x = gun._x + speed;
}
if (Key.isDown(37)) {
gun._x = gun._x - speed;
inv._x = inv._x - speed;
}
if (inv.hitTest(mth.tgt) && (mth.bal._currentframe <= 12)) {
trace("hit");
mth.bal.play();
}
if (mth.bal._currentframe <= 12) {
trace("sdfe");
}
}
};
mth.onEnterFrame = function () {
if (_root.cstatus == 1) {
this._y = this._y + ym;
this._x = this._x + xm;
this._rotation = this._rotation + rm;
if (this._y > 254) {
ym = random(2) - 4;
xm = random(4);
}
if (this._x > 300) {
xm = random(2) - 4;
ym = random(4);
}
if (this._y < 0) {
ym = random(2);
xm = random(4) + 2;
}
if (this._x < 0) {
xm = random(2);
ym = random(4) + 2;
}
}
};
Symbol 647 MovieClip Frame 1
stop();
Symbol 647 MovieClip Frame 2
stop();
Symbol 647 MovieClip Frame 3
stop();
Symbol 647 MovieClip Frame 4
stop();
Symbol 647 MovieClip Frame 5
stop();
Instance of Symbol 646 MovieClip in Symbol 647 MovieClip Frame 5
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
gotoAndStop (1);
}
}
Symbol 647 MovieClip Frame 6
stop();
Instance of Symbol 646 MovieClip in Symbol 647 MovieClip Frame 6
onClipEvent (enterFrame) {
if (!Key.isDown(40)) {
gotoAndStop (2);
}
}
Symbol 647 MovieClip Frame 7
stop();
Instance of Symbol 646 MovieClip in Symbol 647 MovieClip Frame 7
onClipEvent (enterFrame) {
if (!Key.isDown(39)) {
gotoAndStop (3);
}
}
Symbol 647 MovieClip Frame 8
stop();
Instance of Symbol 646 MovieClip in Symbol 647 MovieClip Frame 8
onClipEvent (enterFrame) {
if (!Key.isDown(37)) {
gotoAndStop (4);
}
}
Symbol 652 MovieClip [game24] Frame 1
_root.rules = "To the teleporter!";
_root.beatClock = true;
Instance of Symbol 631 MovieClip "Zpa6_porter" in Symbol 652 MovieClip [game24] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.g.Zpa6_player) && (_root.cstatus == 1)) {
_root.gameOutcome(true);
}
}
Instance of Symbol 647 MovieClip "Zpa6_player" in Symbol 652 MovieClip [game24] Frame 1
onClipEvent (load) {
speed = 15;
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
if (Key.isDown(38)) {
this._y = this._y - speed;
this.gotoAndStop(5);
}
if (Key.isDown(40)) {
this._y = this._y + speed;
this.gotoAndStop(6);
}
if (Key.isDown(39)) {
this._x = this._x + speed;
this.gotoAndStop(7);
}
if (Key.isDown(37)) {
this._x = this._x - speed;
this.gotoAndStop(8);
}
if (this.hitTest(_root.Zpa6_porter)) {
_root.gameOutcome(true);
trace("You have won.");
}
}
}
Instance of Symbol 651 MovieClip in Symbol 652 MovieClip [game24] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.g.Zpa6_player) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
trace("you touched the lava");
}
}
Instance of Symbol 651 MovieClip in Symbol 652 MovieClip [game24] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.g.Zpa6_player) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
trace("you touched the lava");
}
}
Instance of Symbol 651 MovieClip in Symbol 652 MovieClip [game24] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.g.Zpa6_player) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
trace("you touched the lava");
}
}
Instance of Symbol 651 MovieClip in Symbol 652 MovieClip [game24] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.g.Zpa6_player) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
trace("you touched the lava");
}
}
Instance of Symbol 651 MovieClip in Symbol 652 MovieClip [game24] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.g.Zpa6_player) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
trace("you touched the lava");
}
}
Instance of Symbol 651 MovieClip in Symbol 652 MovieClip [game24] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.g.Zpa6_player) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
trace("you touched the lava");
}
}
Instance of Symbol 651 MovieClip in Symbol 652 MovieClip [game24] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.g.Zpa6_player) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
trace("you touched the lava");
}
}
Instance of Symbol 651 MovieClip in Symbol 652 MovieClip [game24] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.g.Zpa6_player) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
trace("you touched the lava");
}
}
Instance of Symbol 651 MovieClip in Symbol 652 MovieClip [game24] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.g.Zpa6_player) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
trace("you touched the lava");
}
}
Symbol 682 MovieClip [game25] Frame 1
_root.rules = "Steal Treasure!";
_root.beatClock = true;
onEnterFrame = function () {
if (_root.cstatus == 1) {
}
};
Instance of Symbol 676 MovieClip "dragon" in Symbol 682 MovieClip [game25] Frame 1
onClipEvent (load) {
spd = 3;
}
onClipEvent (enterFrame) {
Xdiff = _parent.knight._x - _x;
Ydiff = _parent.knight._y - _y;
radAngle = Math.atan2(Ydiff, Xdiff);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
if (this.hitTest(_parent.knight)) {
} else if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
}
Instance of Symbol 680 MovieClip "knight" in Symbol 682 MovieClip [game25] Frame 1
onClipEvent (load) {
function radtodeg(deg) {
return((deg / 180) * Math.PI);
}
downCapture = new Object();
downCapture.onKeyDown = function () {
switch (Key.getCode()) {
case 37 :
left = true;
return;
case 39 :
right = true;
return;
case 38 :
up = true;
return;
case 40 :
down = true;
}
};
Key.addListener(downCapture);
upCapture = new Object();
upCapture.onKeyUp = function () {
switch (Key.getCode()) {
case 37 :
left = false;
return;
case 39 :
right = false;
return;
case 38 :
up = false;
return;
case 40 :
down = false;
}
};
Key.addListener(upCapture);
rotateBy = 9;
accelleration = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.g.dragon.hitArea) && (_root.cstatus == 1)) {
trace("hit");
_root.gameOutcome(false);
}
if (this.hitTest(_root.g.treasHit) && (_root.cstatus == 1)) {
trace("WIN");
_root.gameOutcome(true);
}
if (_root.cstatus == 1) {
if (left) {
_rotation = (_rotation - rotateBy);
}
if (right) {
_rotation = (_rotation + rotateBy);
}
if (up) {
if (accelleration < 10) {
accelleration++;
}
angle = _rotation;
angle = radtodeg(angle - 90);
}
if (!_root.cave.hitTest(_x, _y, true)) {
by_x = accelleration * Math.cos(angle);
by_y = accelleration * Math.sin(angle);
_x = (_x + by_x);
_y = (_y + by_y);
}
if (_root.cave.hitTest(_x, _y, true)) {
by_x = (accelleration - 20) * Math.cos(angle);
by_y = (accelleration - 20) * Math.sin(angle);
_x = (_x + by_x);
_y = (_y + by_y);
}
}
if (this._y > 400) {
this._y = 400;
}
if (this._y < 0) {
this._y = 0;
}
if (this._x > 550) {
this._x = 550;
}
if (this._x < 0) {
this._x = 0;
}
}
Symbol 695 MovieClip Frame 5
gotoAndPlay (1);
Symbol 711 MovieClip [game26] Frame 1
_root.rules = "Avoid Smash!";
_root.beatClock = false;
alive = true;
onEnterFrame = function () {
if (_root.cstatus == 1) {
alien._x = alien._x - 2.75;
if (alien.hitTest(smasher.smasher2)) {
alien.gotoAndStop("dead");
alive = false;
_root.gameOutcome(false);
}
if (alive == true) {
if (Key.isDown(39) && (!rdown)) {
alien._x = alien._x + 10;
rdown = true;
} else if (!Key.isDown(39)) {
rdown = false;
}
}
}
};
Symbol 736 MovieClip Frame 39
_root.gameOutcome(false);
Instance of Symbol 718 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.cry1_roid1)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid2)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid3)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid4)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid11)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid33)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid44)) {
_root.cry1_spaceship.gotoAndStop(37);
}
}
Instance of Symbol 720 MovieClip in Symbol 737 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.cry1_roid1)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid2)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid3)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid4)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid11)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid33)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid44)) {
_root.cry1_spaceship.gotoAndStop(37);
}
}
Instance of Symbol 718 MovieClip in Symbol 737 MovieClip Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.cry1_roid1)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid2)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid3)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid4)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid11)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid33)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid44)) {
_root.cry1_spaceship.gotoAndStop(37);
}
}
Instance of Symbol 720 MovieClip in Symbol 737 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.cry1_roid1)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid2)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid3)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid4)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid11)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid33)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid44)) {
_root.cry1_spaceship.gotoAndStop(37);
}
}
Instance of Symbol 718 MovieClip in Symbol 737 MovieClip Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.cry1_roid1)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid2)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid3)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid4)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid11)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid33)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid44)) {
_root.cry1_spaceship.gotoAndStop(37);
}
}
Instance of Symbol 720 MovieClip in Symbol 737 MovieClip Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.cry1_roid1)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid2)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid3)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid4)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid11)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid33)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid44)) {
_root.cry1_spaceship.gotoAndStop(37);
}
}
Instance of Symbol 718 MovieClip in Symbol 737 MovieClip Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.cry1_roid1)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid2)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid3)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid4)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid11)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid33)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid44)) {
_root.cry1_spaceship.gotoAndStop(37);
}
}
Instance of Symbol 720 MovieClip in Symbol 737 MovieClip Frame 22
onClipEvent (enterFrame) {
if (this.hitTest(_root.cry1_roid1)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid2)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid3)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid4)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid11)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid33)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid44)) {
_root.cry1_spaceship.gotoAndStop(37);
}
}
Instance of Symbol 718 MovieClip in Symbol 737 MovieClip Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.cry1_roid1)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid2)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid3)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid4)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid11)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid33)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid44)) {
_root.cry1_spaceship.gotoAndStop(37);
}
}
Instance of Symbol 720 MovieClip in Symbol 737 MovieClip Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.cry1_roid1)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid2)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid3)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid4)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid11)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid33)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid44)) {
_root.cry1_spaceship.gotoAndStop(37);
}
}
Instance of Symbol 718 MovieClip in Symbol 737 MovieClip Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.cry1_roid1)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid2)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid3)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid4)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid11)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid33)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid44)) {
_root.cry1_spaceship.gotoAndStop(37);
}
}
Instance of Symbol 720 MovieClip in Symbol 737 MovieClip Frame 34
onClipEvent (enterFrame) {
if (this.hitTest(_root.cry1_roid1)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid2)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid3)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid4)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid11)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid33)) {
_root.cry1_spaceship.gotoAndStop(37);
}
if (this.hitTest(_root.cry1_roid44)) {
_root.cry1_spaceship.gotoAndStop(37);
}
}
Symbol 737 MovieClip Frame 36
gotoAndPlay (1);
Symbol 737 MovieClip Frame 37
stop();
Symbol 747 MovieClip [game27] Frame 1
_root.rules = "Dodge!";
_root.beatClock = false;
onEnterFrame = function () {
if (_root.cstatus == 1) {
}
};
Instance of Symbol 714 MovieClip "cry1_mainstars" in Symbol 747 MovieClip [game27] Frame 1
onClipEvent (load) {
stars.duplicateMovieClip("stars2", 1000);
stars2._x = stars._x + stars._width;
starsStartx = this._x;
}
onClipEvent (enterFrame) {
this._x = this._x - 18;
if (this._x <= (starsStartx - stars._width)) {
this._x = starsStartx - 18;
}
}
Instance of Symbol 716 MovieClip in Symbol 747 MovieClip [game27] Frame 1
onClipEvent (enterFrame) {
this._y = 356.8;
this._x = this._x - 18;
if (this._x <= -600) {
this._x = 600;
}
}
Instance of Symbol 716 MovieClip in Symbol 747 MovieClip [game27] Frame 1
onClipEvent (enterFrame) {
this._y = 356.8;
this._x = this._x - 18;
if (this._x <= -600) {
this._x = 600;
}
}
Instance of Symbol 714 MovieClip "cry1_mainstars" in Symbol 747 MovieClip [game27] Frame 1
onClipEvent (load) {
stars.duplicateMovieClip("stars2", 1000);
stars2._x = stars._x + stars._width;
starsStartx = this._x;
}
onClipEvent (enterFrame) {
this._x = this._x - 18;
if (this._x <= (starsStartx - stars._width)) {
this._x = starsStartx - 18;
}
}
Instance of Symbol 737 MovieClip "cry1_spaceship" in Symbol 747 MovieClip [game27] Frame 1
onClipEvent (load) {
moveSpeed = 10;
scrollStart = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(38)) {
this._y = this._y - moveSpeed;
}
if (Key.isDown(39)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(37)) {
this._x = this._x - moveSpeed;
}
if (this._y <= 10) {
this._y = 10;
}
if (this._y >= 370) {
this._y = 370;
}
if (this._x <= 5) {
this._x = 5;
}
if (this._x >= 150) {
this._x = 150;
}
if (_root.cstatus == 1) {
i = 0;
while (i < 7) {
if (this.hitTest(_root.g["cry1_roid" + i])) {
_root.gameOutcome(false);
this.gotoAndStop(37);
}
i++;
}
}
}
Instance of Symbol 739 MovieClip "cry1_roid0" in Symbol 747 MovieClip [game27] Frame 1
onClipEvent (load) {
function reset() {
this._x = 600 + random(400);
this._y = random(370);
this.gotoAndPlay(random(250));
}
reset();
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
this._x = this._x - (15 + random(3));
if (this._x < -10) {
reset();
}
}
}
Instance of Symbol 741 MovieClip "cry1_roid1" in Symbol 747 MovieClip [game27] Frame 1
onClipEvent (load) {
function reset() {
this._x = 600 + random(400);
this._y = random(370);
this.gotoAndPlay(random(250));
}
reset();
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
this._x = this._x - (15 + random(3));
if (this._x < -10) {
reset();
}
}
}
Instance of Symbol 743 MovieClip "cry1_roid2" in Symbol 747 MovieClip [game27] Frame 1
onClipEvent (load) {
function reset() {
this._x = 600 + random(400);
this._y = random(370);
this.gotoAndPlay(random(250));
}
reset();
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
this._x = this._x - (15 + random(3));
if (this._x < -10) {
reset();
}
}
}
Instance of Symbol 745 MovieClip "cry1_roid3" in Symbol 747 MovieClip [game27] Frame 1
onClipEvent (load) {
function reset() {
this._x = 600 + random(400);
this._y = random(370);
this.gotoAndPlay(random(250));
}
reset();
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
this._x = this._x - (15 + random(3));
if (this._x < -10) {
reset();
}
}
}
Instance of Symbol 741 MovieClip "cry1_roid4" in Symbol 747 MovieClip [game27] Frame 1
onClipEvent (load) {
function reset() {
this._x = 600 + random(400);
this._y = random(370);
this.gotoAndPlay(random(250));
}
reset();
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
this._x = this._x - (15 + random(3));
if (this._x < -10) {
reset();
}
}
}
Instance of Symbol 743 MovieClip "cry1_roid5" in Symbol 747 MovieClip [game27] Frame 1
onClipEvent (load) {
function reset() {
this._x = 600 + random(400);
this._y = random(370);
this.gotoAndPlay(random(250));
}
reset();
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
this._x = this._x - (15 + random(3));
if (this._x < -10) {
reset();
}
}
}
Instance of Symbol 745 MovieClip "cry1_roid6" in Symbol 747 MovieClip [game27] Frame 1
onClipEvent (load) {
function reset() {
this._x = 600 + random(400);
this._y = random(370);
this.gotoAndPlay(random(250));
}
reset();
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
this._x = this._x - (15 + random(3));
if (this._x < -10) {
reset();
}
}
}
Symbol 786 MovieClip Frame 1
stop();
Symbol 786 MovieClip Frame 2
stop();
Symbol 786 MovieClip Frame 16
stop();
Symbol 786 MovieClip Frame 31
stop();
Symbol 788 MovieClip [game28] Frame 1
_root.rules = "Be Buff!";
_root.beatClock = true;
Tweight = Math.round((Math.random() * 200) + 200);
Dweight = 0;
Left = true;
Right = false;
strength = 14;
onEnterFrame = function () {
if (_root.cstatus == 1) {
leftA.onEnterFrame = function () {
if (Dweight < Tweight) {
if (Left == true) {
this._visible = true;
} else {
this._visible = false;
}
} else {
this._visible = false;
}
};
rightA.onEnterFrame = function () {
if (Dweight < Tweight) {
if (Right == true) {
this._visible = true;
} else {
this._visible = false;
}
} else {
this._visible = false;
}
};
weightProp.weightRead = Tweight + "lb";
weightProp._xscale = (weightProp._yscale = (Tweight / 400) * 100);
if (Dweight < Tweight) {
bar._yscale = (Dweight / Tweight) * 100;
} else {
bar._yscale = 100;
}
if ((Dweight > 0) and (Dweight < (Tweight / 2))) {
buffman.gotoAndStop(2);
}
if (((Dweight > (Tweight / 2)) and (Dweight < Tweight)) and (buffman._currentframe < 3)) {
buffman.gotoAndPlay(3);
}
if (Left == true) {
if (Key.isDown(37) and (!Key.isDown(39))) {
Dweight = Dweight + strength;
Right = true;
Left = false;
}
}
if (Right == true) {
if (Key.isDown(39) and (!Key.isDown(37))) {
Dweight = Dweight + strength;
Left = true;
Right = false;
}
}
if (Dweight >= Tweight) {
buffman.gotoAndPlay(17);
_root.gameOutcome(true);
}
}
};
Symbol 791 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 5
stop();
Symbol 807 MovieClip Frame 1
stop();
Symbol 808 MovieClip Frame 1
stop();
Symbol 809 MovieClip [game29] Frame 1
_root.rules = "Shoot a Target";
speed = 15;
hit._y = random(300);
hit._x = random(Stage.width - 50);
cont.onEnterFrame = function () {
if (_root.cstatus == 1) {
gun._x = gun._x + ((this._x - gun._x) / 5);
if (gun._x > (Stage.width / 2)) {
gun.gotoAndStop(2);
}
if (gun._x < (Stage.width / 2)) {
gun.gotoAndStop(1);
}
if (Key.isDown(38)) {
this._y = this._y - speed;
gun._y = gun._y - speed;
}
if (Key.isDown(40)) {
this._y = this._y + speed;
gun._y = gun._y + speed;
}
if (Key.isDown(39)) {
this._x = this._x + speed;
}
if (Key.isDown(37)) {
this._x = this._x - speed;
}
if (Key.isDown(32)) {
this.play();
gun.thing.play();
}
if (this.hitTest(hit) && (Key.isDown(32))) {
hit.play();
_root.gameOutcome(true);
}
}
};
Symbol 826 MovieClip [game30] Frame 1
_root.rules = "To the sky!";
_root.beatClock = true;
xvel = 0;
yvel = 0;
gravity = 0;
ballspeed = 0.5;
left = false;
upspeed = 2;
onEnterFrame = function () {
if (_root.cstatus == 1) {
Nic2_balloon._y = Nic2_balloon._y + gravity;
gravity = gravity + 0.2;
Nic2_balloon._x = Nic2_balloon._x + xvel;
Nic2_balloon._y = Nic2_balloon._y + yvel;
if (Nic2_balloon._y < 0) {
_root.gameOutcome(true);
}
}
if (Key.isDown(37)) {
if (left == false) {
left = true;
yvel = yvel - (ballspeed * upspeed);
}
}
if (Key.isDown(39)) {
if (_root.cstatus == 1) {
if (left == true) {
left = false;
yvel = yvel - (ballspeed * upspeed);
}
}
}
};
Symbol 857 MovieClip [game31] Frame 1
_root.rules = "Blow them out!";
_root.beatClock = true;
var candles = 8;
var i = 1;
while (i <= 8) {
this["can" + i].onEnterFrame = function () {
if ((_root.cstatus == 1) && (blow.hitTest(this._x, this._y, true))) {
this.fire._yscale = this.fire._yscale + 15;
if (this.fire._yscale >= 300) {
this.fire._visible = false;
if (!(--candles)) {
_root.gameOutcome(true);
}
delete this.onEnterFrame;
}
}
};
i++;
}
Instance of Symbol 839 MovieClip in Symbol 857 MovieClip [game31] Frame 1
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
_y = Math.max(297, Math.min(_y + ((Key.isDown(40) - Key.isDown(38)) * 2), 327));
_rotation = Math.max(-14, Math.min(_rotation + ((Key.isDown(39) - Key.isDown(37)) * 2), 14));
rotRad = ((_rotation - 90) * Math.PI) / 180;
(_parent.blow._x = _x + (Math.cos(rotRad) * 85));
(_parent.blow._y = _y + (Math.sin(rotRad) * 85));
(_parent.blow._rotation = _rotation);
}
}
Symbol 881 MovieClip Frame 7
gotoAndPlay (1);
Symbol 881 MovieClip Frame 35
this._parent.firing = false;
Symbol 885 MovieClip Frame 1
stop();
Symbol 885 MovieClip Frame 4
gotoAndPlay (2);
Symbol 891 MovieClip Frame 1
stop();
Symbol 891 MovieClip Frame 4
gotoAndPlay (2);
Symbol 895 MovieClip Frame 1
stop();
Symbol 895 MovieClip Frame 4
gotoAndPlay (2);
Symbol 899 MovieClip Frame 1
stop();
Symbol 899 MovieClip Frame 4
gotoAndPlay (2);
Symbol 900 MovieClip [game32] Frame 1
_root.rules = "Fry Everything!";
_root.beatClock = false;
speed = 20;
firing = false;
firingsnd = new Sound();
firingsnd.attachSound("dep1_bang");
movesnd = new Sound();
movesnd.attachSound("dep1_hit");
sizlesnd = new Sound();
sizlesnd.attachSound("dep1_sizle");
onEnterFrame = function () {
if (_root.cstatus == 1) {
house._x = house._x - speed;
if (cursor.hitTest(house)) {
house.gotoAndPlay(2);
hit1 = true;
sizlesnd.start();
}
if (cursor.hitTest(pig)) {
pig.gotoAndPlay(2);
hit2 = true;
sizlesnd.start();
}
if (cursor.hitTest(smiley)) {
smiley.gotoAndPlay(2);
hit3 = true;
sizlesnd.start();
}
if (cursor.hitTest(poop)) {
poop.gotoAndPlay(2);
hit4 = true;
sizlesnd.start();
}
if (house._x <= 0) {
pig._x = pig._x - speed;
}
if (pig._x <= 0) {
smiley._x = smiley._x - speed;
}
if (smiley._x <= 0) {
poop._x = poop._x - speed;
}
if (((hit1 && (hit2)) && (hit3)) && (hit4)) {
_root.gameOutcome(true);
}
if (((((house._x <= 0) && (!hit1)) || ((pig._x <= 0) && (!hit2))) || ((smiley._x <= 0) && (!hit3))) || ((poop._x <= 0) && (!hit4))) {
_root.gameOutcome(false);
}
if (Key.isDown(37)) {
movesnd.start();
cursor._x = cursor._x - 5;
}
if (Key.isDown(39)) {
movesnd.start();
cursor._x = cursor._x + 5;
}
if (Key.isDown(32) && (!firing)) {
firingsnd.start();
firing = true;
cursor.gotoAndPlay(12);
}
}
};
Symbol 908 MovieClip Frame 17
gotoAndPlay (1);
Symbol 924 MovieClip Frame 1
stop();
Symbol 924 MovieClip Frame 2
stop();
Symbol 928 MovieClip Frame 1
stop();
Symbol 928 MovieClip Frame 30
stop();
Symbol 929 MovieClip [game33] Frame 1
_root.rules = "Lower!";
_root.beatClock = true;
keypressed = 0;
distanceDown = 0;
down = 12;
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (Key.isDown(37) && (keypressed == 0)) {
flag._y = flag._y + down;
distanceDown++;
arms.nextFrame();
keypressed = 1;
}
if (Key.isDown(38) && (keypressed == 1)) {
flag._y = flag._y + down;
distanceDown++;
arms.prevFrame();
keypressed = 2;
}
if (Key.isDown(39) && (keypressed == 2)) {
flag._y = flag._y + down;
distanceDown++;
arms.nextFrame();
keypressed = 3;
}
if (Key.isDown(40) && (keypressed == 3)) {
flag._y = flag._y + down;
distanceDown++;
arms.prevFrame();
keypressed = 0;
}
if (distanceDown >= 17) {
_root.gameOutcome(true);
keypressed = 4;
head.nextFrame();
arrows._visible = false;
}
}
};
Symbol 937 MovieClip [game34] Frame 1
_root.rules = "Use the head!";
_root.beatClock = true;
var sol = (Math.floor(Math.random() * 9) + 1);
var ad = (Math.random() > 0.5);
if (ad) {
n2 = Math.floor(Math.random() * (sol - 1)) + 1;
eq_txt.text = ((sol - n2) + " + ") + n2;
} else {
n2 = Math.floor(Math.random() * (sol - 1)) + 1;
eq_txt.text = ((sol + n2) + " - ") + n2;
}
c1 = sol;
c2 = sol;
while (c1 == sol) {
c1 = Math.floor(Math.random() * 9) + 1;
}
while ((c2 == sol) || (c2 == c1)) {
c2 = Math.floor(Math.random() * 9) + 1;
}
at = Math.floor(Math.random() * 3) + 1;
if (at == 1) {
a1.txt.text = sol;
a2.txt.text = c1;
a3.txt.text = c2;
}
if (at == 2) {
a1.txt.text = c1;
a2.txt.text = sol;
a3.txt.text = c2;
}
if (at == 3) {
a1.txt.text = c1;
a2.txt.text = c2;
a3.txt.text = sol;
}
a2.box._visible = (a3.box._visible = false);
cc = 1;
lp = (rp = false);
cstatus = 1;
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (Key.isDown(37)) {
if (lp == false) {
lp = true;
cc--;
((cc == 0) ? ((cc = 3)) : 0);
a1.box._visible = (a2.box._visible = (a3.box._visible = false));
this["a" + cc].box._visible = true;
}
} else {
lp = false;
}
if (Key.isDown(39)) {
if (rp == false) {
rp = true;
cc++;
((cc == 4) ? ((cc = 1)) : 0);
a1.box._visible = (a2.box._visible = (a3.box._visible = false));
this["a" + cc].box._visible = true;
}
} else {
rp = false;
}
if (Key.isDown(32)) {
if (cc == at) {
_root.gameOutcome(true);
} else {
_root.gameOutcome(false);
}
}
}
};
Symbol 951 MovieClip [game35] Frame 1
function BHT(course) {
return(((((((course.hitTest(ball._x - (ball._width / 2), ball._y - (ball._height / 2), true) || (course.hitTest(ball._x + (ball._width / 2), ball._y - (ball._height / 2), true))) || (course.hitTest(ball._x - (ball._width / 2), ball._y + (ball._height / 2), true))) || (course.hitTest(ball._x + (ball._width / 2), ball._y + (ball._height / 2), true))) || (course.hitTest(ball._x + (ball._width / 2), ball._y, true))) || (course.hitTest(ball._x - (ball._width / 2), ball._y, true))) || (course.hitTest(ball._x, ball._y + (ball._height / 2), true))) || (course.hitTest(ball._x, ball._y - (ball._height / 2), true)));
}
_root.rules = "Jump the tops!";
_root.beatClock = true;
var xspeed = 0;
var yspeed = 0;
var acc = 2.5;
var air = false;
var fric = 0.7;
var grav = 0.7;
var jump = -12;
var curFrm = 0;
var cc = 0;
oldx = (oldy = 0);
onEnterFrame = function () {
if (_root.cstatus == 1) {
cc++;
air = true;
if (Key.isDown(37)) {
xspeed = xspeed - acc;
}
if (Key.isDown(39)) {
xspeed = xspeed + acc;
}
yspeed = yspeed + grav;
xspeed = xspeed * fric;
((yspeed > 20) ? ((yspeed = 20)) : (((yspeed < -20) ? ((yspeed = -20)) : 0)));
ball._y = ball._y + yspeed;
ball.wheel._rotation = ball.wheel._rotation + (xspeed * 2);
if (BHT(course)) {
if (yspeed > 0) {
air = false;
}
while (BHT(course)) {
((yspeed < 0) ? ((ball._y = ball._y + grav)) : ((ball._y = ball._y - grav)));
}
yspeed = 0;
}
if (moving && (BHT(moving))) {
var _local3 = 0;
while (moving["mov" + _local3]) {
if (moving["mov" + _local3].hitTest(ball)) {
if (moving["mov" + _local3].oldy > oldy) {
air = false;
yspeed = 0;
ball._y = (moving["mov" + _local3]._y + moving._y) - ((moving["mov" + _local3]._height / 2) + (ball._height / 2));
ball._x = ball._x + ((moving["mov" + _local3]._x + moving._x) - moving["mov" + _local3].oldx);
if (moving["mov" + _local3].oldy <= (moving["mov" + _local3]._y + moving._y)) {
yspeed = 5;
}
if (BHT(course) && (moving["mov" + _local3].oldx == (moving["mov" + _local3]._x + moving._x))) {
xspeed = (yspeed = 0);
box.play();
ball.swapDepths(534);
removeMovieClip(ball);
dead = true;
setTimeout(function () {
this.dead = false;
this.curFrm = this._currentframe;
this.gotoAndStop(this.curFrm - 1);
this.gotoAndStop(this.curFrm);
this["ball" + this._currentframe]._name = "ball";
}, 1);
}
} else {
ball._y = (moving["mov" + _local3]._y + moving._y) + ((moving["mov" + _local3]._height / 2) + (ball._height / 2));
yspeed = yspeed * -1;
}
}
_local3++;
}
}
var _local3 = 0;
while (moving["mov" + _local3]) {
if ((((moving["mov" + _local3].oldy > oldy) && ((moving["mov" + _local3]._y + moving._y) < ball._y)) && (Math.abs(oldx - moving["mov" + _local3].oldx) < ((ball._width / 2) + (moving["mov" + _local3]._width / 2)))) && (Math.abs(ball._x - (moving["mov" + _local3]._x + moving._x)) < ((ball._width / 2) + (moving["mov" + _local3]._width / 2)))) {
trace("loool");
ball._y = ((moving._y + moving["mov" + _local3]._y) - (moving["mov" + _local3]._height / 2)) - 5;
}
_local3++;
}
ball._x = ball._x + xspeed;
if (BHT(moving)) {
_local3 = 0;
while (moving["mov" + _local3]) {
if (moving["mov" + _local3].hitTest(ball) && (Math.abs(oldx - moving["mov" + _local3].oldx) >= ((ball._width / 2) + (moving["mov" + _local3]._width / 2)))) {
if (moving["mov" + _local3].oldx > oldx) {
ball._x = (moving["mov" + _local3]._x + moving._x) - ((moving["mov" + _local3]._width / 2) + (ball._width / 2));
} else {
ball._x = ((moving["mov" + _local3]._x + moving._x) + ((moving["mov" + _local3]._width / 2) + (ball._width / 2))) + 1;
}
}
_local3++;
}
}
if (BHT(course)) {
while (BHT(course)) {
((ball._x < oldx) ? ((ball._x = ball._x + grav)) : ((ball._x = ball._x - grav)));
}
xspeed = 0;
}
if ((Key.isDown(32) || (Key.isDown(38))) && (air == false)) {
yspeed = jump;
}
if (moving) {
_local3 = 0;
while (moving["mov" + _local3]) {
moving["mov" + _local3].oldx = moving["mov" + _local3]._x + moving._x;
moving["mov" + _local3].oldy = moving["mov" + _local3]._y + moving._y;
_local3++;
}
}
oldx = ball._x;
oldy = ball._y;
if (ball.hitTest(end)) {
_root.gameOutcome(true);
trace(getTimer());
}
if (BHT(evil)) {
_root.gameOutcome(false);
trace("lool");
}
}
};
Symbol 966 MovieClip [game36] Frame 1
_root.rules = "Iron wrinkles!";
_root.beatClock = true;
wrinkles = 6;
speed = 10;
onEnterFrame = function () {
if (iron.hitTest(one) and (one._visible == true)) {
one._visible = false;
wrinkles = wrinkles - 1;
trace(wrinkles);
}
if (iron.hitTest(two) and (two._visible == true)) {
two._visible = false;
wrinkles = wrinkles - 1;
trace(wrinkles);
}
if (iron.hitTest(three) and (three._visible == true)) {
three._visible = false;
wrinkles = wrinkles - 1;
trace(wrinkles);
}
if (iron.hitTest(four) and (four._visible == true)) {
four._visible = false;
wrinkles = wrinkles - 1;
trace(wrinkles);
}
if (iron.hitTest(five) and (five._visible == true)) {
five._visible = false;
wrinkles = wrinkles - 1;
trace(wrinkles);
}
if (iron.hitTest(six) and (six._visible == true)) {
six._visible = false;
wrinkles = wrinkles - 1;
trace(wrinkles);
}
if ((wrinkles == 0) && (_root.cstatus == 1)) {
_root.gameOutcome(true);
trace("win");
}
if (_root.cstatus == 1) {
if (Key.isDown(37)) {
iron._rotation = iron._rotation - (speed + 5);
}
if (Key.isDown(39)) {
iron._rotation = iron._rotation + (speed + 5);
}
xz = Math.sin(iron._rotation * (Math.PI/180)) * speed;
yz = (Math.cos(iron._rotation * (Math.PI/180)) * speed) * -1;
if (Key.isDown(38)) {
iron._x = iron._x + xz;
iron._y = iron._y + yz;
}
if (Key.isDown(40)) {
iron._x = iron._x - xz;
iron._y = iron._y - yz;
}
if (iron._x >= 430) {
iron._x = 430;
}
if (iron._x <= 120) {
iron._x = 120;
}
if (iron._y <= 0) {
iron._y = 0;
}
if (iron._y >= 400) {
iron._y = 400;
}
}
};
Symbol 972 MovieClip [game37] Frame 1
_root.rules = "Take Position";
_root.beatClock = false;
time = 0;
block._y = block._y + (random(350) - 175);
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (time != 48) {
time++;
}
if (Key.isDown(40)) {
ch._y = ch._y + 10;
ch._rotation = ch._rotation + 10;
}
if (Key.isDown(38)) {
ch._y = ch._y - 10;
ch._rotation = ch._rotation - 10;
}
if ((time == 48) && (block._x > 0)) {
time = 48;
trace("go");
block._x = block._x - 90;
}
}
ch.onEnterFrame = function () {
if (block.hitTest(this._x, this._y + (this._height / 2), true) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
}
if (block.hitTest(this._x, this._y - (this._height / 2), true) && (_root.cstatus == 1)) {
_root.gameOutcome(false);
}
};
};
Instance of Symbol 969 MovieClip "ch" in Symbol 972 MovieClip [game37] Frame 1
onClipEvent (load) {
_y = random(Stage.height);
}
Symbol 1025 MovieClip Frame 1
stop();
Symbol 1025 MovieClip Frame 2
stop();
Symbol 1025 MovieClip Frame 31
gotoAndStop (1);
Symbol 1025 MovieClip Frame 32
stop();
Symbol 1026 MovieClip [game38] Frame 1
_root.rules = "Cross to Safety";
_root.beatClock = true;
jump = false;
speed = 10;
live = true;
onEnterFrame = function () {
if (_root.cstatus == 1) {
localToGlobal(guy._x);
if (live == true) {
if (((Key.isDown(38) or Key.isDown(32)) and (jump == false)) && (_root.cstatus == 1)) {
guy.gotoAndPlay(3);
jump = true;
}
if (Key.isDown(39) && (_root.cstatus == 1)) {
if (jump == false) {
guy.gotoAndStop(2);
}
guy._xscale = 100;
guy._x = guy._x + speed;
}
if (Key.isDown(37) && (_root.cstatus == 1)) {
if (jump == false) {
guy.gotoAndStop(2);
}
guy._xscale = -100;
guy._x = guy._x - speed;
}
if (((guy._currentframe == 1) or (guy._currentframe == 2)) or (guy._currentframe == 32)) {
jump = false;
}
if (((!Key.isDown(39)) and (!Key.isDown(37))) and (jump == false)) {
guy.gotoAndStop(1);
}
}
if (guy._x >= 550) {
_root.gameOutcome(true);
}
if (guy.hitTest(lavaH)) {
guy.gotoAndStop(32);
live = false;
_root.gameOutcome(false);
}
}
};
Symbol 1034 MovieClip [game39] Frame 1
_root.rules = "Avoid the walls!";
_root.beatClock = false;
onEnterFrame = function () {
sun._rotation = sun._rotation + 5;
if (_root.cstatus == 1) {
leaf._y = leaf._y + 2.5;
leaf._x = leaf._x + 4;
if (Key.isDown(37)) {
leaf._x = leaf._x - 14;
}
if (Key.isDown(39)) {
leaf._x = leaf._x + 2.5;
}
if (wall1.hitTest(leaf._x, leaf._y, true)) {
trace("lose");
_root.gameOutcome(false);
}
if (wall2.hitTest(leaf._x, leaf._y, true)) {
trace("lose");
_root.gameOutcome(false);
}
if (leaf._x >= 550) {
trace("win");
_root.gameOutcome(true);
}
}
};
Symbol 1040 MovieClip Frame 1
stop();
Symbol 1040 MovieClip Frame 2
if (_parent.cutN == 2) {
_root.gameOutcome(true);
_parent.timer.gotoAndStop(123);
}
if (_parent.cutN == 1) {
if (_parent.b != 0) {
_parent.timer.gotoAndStop(122);
_root.gameOutcome(false);
}
_parent.cutN++;
}
if (_parent.cutN == 0) {
if (_parent.a != 0) {
_parent.timer.gotoAndStop(122);
_root.gameOutcome(false);
}
_parent.cutN++;
}
Symbol 1043 MovieClip Frame 1
stop();
Symbol 1043 MovieClip Frame 2
if (_parent.cutN == 2) {
_root.gameOutcome(true);
_parent.timer.gotoAndStop(123);
}
if (_parent.cutN == 1) {
if (_parent.b != 1) {
_parent.timer.gotoAndStop(122);
_root.gameOutcome(false);
}
_parent.cutN++;
}
if (_parent.cutN == 0) {
if (_parent.a != 1) {
_parent.timer.gotoAndStop(122);
_root.gameOutcome(false);
}
_parent.cutN++;
}
Symbol 1046 MovieClip Frame 1
stop();
Symbol 1046 MovieClip Frame 2
if (_parent.cutN == 2) {
_root.gameOutcome(true);
_parent.timer.gotoAndStop(123);
}
if (_parent.cutN == 1) {
if (_parent.b != 2) {
_parent.timer.gotoAndStop(122);
_root.gameOutcome(false);
}
_parent.cutN++;
}
if (_parent.cutN == 0) {
if (_parent.a != 2) {
_parent.timer.gotoAndStop(122);
_root.gameOutcome(false);
}
_parent.cutN++;
}
Symbol 1056 MovieClip Frame 122
stop();
Symbol 1062 MovieClip Frame 1
stop();
Instance of Symbol 1062 MovieClip in Symbol 1063 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.a + 1);
}
Instance of Symbol 1062 MovieClip in Symbol 1063 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.c + 1);
}
Instance of Symbol 1062 MovieClip in Symbol 1063 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.b + 1);
}
Symbol 1068 MovieClip Frame 1
stop();
Symbol 1069 MovieClip Frame 1
stop();
Instance of Symbol 1068 MovieClip "scis" in Symbol 1069 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.nextFrame();
_parent._parent.Rwire.nextFrame();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1068 MovieClip "scis" in Symbol 1069 MovieClip Frame 4
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.nextFrame();
_parent._parent.Bwire.nextFrame();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1068 MovieClip "scis" in Symbol 1069 MovieClip Frame 7
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.nextFrame();
_parent._parent.Gwire.nextFrame();
} else {
this.gotoAndStop(1);
}
}
Symbol 1070 MovieClip [game40] Frame 1
_root.rules = "Defuse it!";
_root.beatClock = true;
a = Math.floor(Math.random() * 3);
bTest = true;
cTest = true;
cutN = 0;
onEnterFrame = function () {
if (bTest == true) {
b = Math.floor(Math.random() * 3);
if ((b != a) and (b != c)) {
bTest = false;
}
}
if (cTest == true) {
c = Math.floor(Math.random() * 3);
if ((c != a) and (c != b)) {
cTest = false;
}
}
};
Instance of Symbol 1069 MovieClip in Symbol 1070 MovieClip [game40] Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this.prevFrame();
}
if (Key.isDown(39)) {
this.nextFrame();
}
}
Symbol 1091 MovieClip Frame 25
stop();
Symbol 1092 MovieClip Frame 1
stop();
Symbol 1092 MovieClip Frame 2
stop();
_root.gameOutcome(true);
Symbol 1096 MovieClip Frame 1
stop();
Symbol 1096 MovieClip Frame 2
stop();
Symbol 1098 MovieClip [game41] Frame 1
_root.rules = "Spread the love";
_root.beatClock = true;
onEnterFrame = function () {
if (_root.cstatus == 1) {
}
};
onEnterFrame = function () {
if (mc1.hitTest(guy)) {
mc1.gotoAndStop(2);
}
if (mc1._currentframe == 2) {
if (mc1.hitTest(gal)) {
love.gotoAndStop(2);
}
}
};
Instance of Symbol 1096 MovieClip "mc1" in Symbol 1098 MovieClip [game41] Frame 1
onClipEvent (load) {
speed = 6;
stop();
}
onClipEvent (enterFrame) {
_x = (_x + (Key.isDown(39) * speed));
_x = (_x - (Key.isDown(37) * speed));
_y = (_y + (Key.isDown(40) * speed));
_y = (_y - (Key.isDown(38) * speed));
}
Symbol 1158 MovieClip Frame 1
b3nwin = false;
stop();
Symbol 1158 MovieClip Frame 26
play();
_root.gameOutcome(true);
Symbol 1158 MovieClip Frame 27
play();
Symbol 1158 MovieClip Frame 28
play();
Symbol 1158 MovieClip Frame 29
play();
Symbol 1158 MovieClip Frame 30
play();
Symbol 1158 MovieClip Frame 31
play();
Symbol 1158 MovieClip Frame 32
play();
Symbol 1158 MovieClip Frame 33
play();
Symbol 1158 MovieClip Frame 34
play();
Symbol 1158 MovieClip Frame 35
play();
Symbol 1158 MovieClip Frame 36
play();
Symbol 1158 MovieClip Frame 37
play();
Symbol 1158 MovieClip Frame 38
play();
Symbol 1158 MovieClip Frame 39
stop();
Symbol 1158 MovieClip Frame 57
stop();
Symbol 1158 MovieClip Frame 58
prevFrame();
Symbol 1160 MovieClip [game42] Frame 1
_root.rules = "Drink teh booze!";
_root.beatClock = true;
onEnterFrame = function () {
if (_root.cstatus == 1) {
}
};
Instance of Symbol 1158 MovieClip "hero" in Symbol 1160 MovieClip [game42] Frame 1
onClipEvent (load) {
left = false;
}
onClipEvent (enterFrame) {
down = false;
if (_root.cstatus == 1) {
if (Key.isDown(37) && (down == false)) {
if (left == false) {
left = true;
down = true;
this.nextFrame();
}
}
if (Key.isDown(39) && (down == false)) {
if (left == true) {
left = false;
down = true;
this.nextFrame();
}
}
}
}
Symbol 1173 MovieClip Frame 1
stop();
Symbol 1173 MovieClip Frame 12
stop();
Symbol 1174 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.cstatus == 1) {
this.play();
}
};
Symbol 1174 MovieClip Frame 64
stop();
_root.gameOutcome(false);
Symbol 1178 MovieClip [game43] Frame 1
_root.g.atn2_moving._y = random(200) + 100;
_root.rules = "Shoot it!";
_root.beatClock = true;
onEnterFrame = function () {
if (_root.cstatus == 1) {
}
};
Instance of Symbol 1176 MovieClip "atn2_target" in Symbol 1178 MovieClip [game43] Frame 1
onClipEvent (load) {
speed = 15;
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
if (Key.isDown(38)) {
this._y = this._y - 4;
}
if (Key.isDown(40)) {
this._y = this._y + 4;
}
if (Key.isDown(37)) {
this._x = this._x - 4;
}
if (Key.isDown(39)) {
this._x = this._x + 4;
}
if (Key.isDown(32) && (!this.hitTest(_root.g.atn2_moving.atn2_mover))) {
_root.gameOutcome(false);
}
if (Key.isDown(32) && (this.hitTest(_root.g.atn2_moving.atn2_mover))) {
_root.gameOutcome(true);
_root.g.atn2_moving.atn2_mover.gotoAndPlay(2);
_root.g.atn2_moving.stop();
}
}
}
Symbol 1185 MovieClip Frame 1
stop();
Instance of Symbol 1189 MovieClip "ttarget" in Symbol 1192 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1198 MovieClip Frame 1
stop();
Symbol 1198 MovieClip Frame 11
if (Key.isDown(32)) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 1204 MovieClip Frame 1
stop();
Symbol 1205 MovieClip [game44] Frame 1
_root.rules = "Q the Cow";
_root.beatClock = true;
Instance of Symbol 1192 MovieClip "ttarget" in Symbol 1205 MovieClip [game44] Frame 1
onClipEvent (load) {
this._x = (Math.random() * 185) + 165;
this._y = (Math.random() * 90) + 105;
}
Instance of Symbol 1198 MovieClip in Symbol 1205 MovieClip [game44] Frame 1
onClipEvent (load) {
sizzle = new Sound();
speed = 10;
}
onClipEvent (enterFrame) {
if (_root.cstatus == 1) {
if (Key.isDown(37) and (this._x > 50)) {
this._x = this._x - speed;
}
if (Key.isDown(39) and (this._x < 530)) {
this._x = this._x + speed;
}
if (Key.isDown(38) and (this._y > 30)) {
this._y = this._y - speed;
}
if (Key.isDown(40) and (this._y < 360)) {
this._y = this._y + speed;
}
if (Key.isDown(32) and (!this.bt.hitTest(_parent.cow))) {
this.gotoAndPlay(2);
}
if ((Key.isDown(32) and this.bt.hitTest(_parent.cow)) and (!this.bt.hitTest(_parent.ttarget.ttarget))) {
sizzle.attachSound("MLPsizz");
sizzle.start(0.5, 1);
this.gotoAndPlay(2);
this._visible = false;
_parent.ttarget._visible = false;
_parent.brand._x = this._x;
_parent.brand._y = this._y;
_parent.cowAnim.gotoAndStop(2);
_parent.cowAnim2.gotoAndStop(2);
_root.gameOutcome(false);
}
if ((Key.isDown(32) and this.bt.hitTest(_parent.cow)) and this.bt.hitTest(_parent.ttarget.ttarget)) {
sizzle.attachSound("MLPsizz");
sizzle.start(0.5, 1);
this.gotoAndPlay(2);
this._visible = false;
_parent.ttarget._visible = false;
_parent.cowAnim.gotoAndStop(2);
_parent.cowAnim2.gotoAndStop(3);
_parent.brand._x = this._x;
_parent.brand._y = this._y;
_root.gameOutcome(true);
}
}
}
Symbol 1211 MovieClip Frame 1
stop();
Symbol 1211 MovieClip Frame 2
_root.g.fill = true;
Symbol 1214 MovieClip Frame 1
stop();
Symbol 1232 MovieClip [game45] Frame 1
_root.rules = "Fetch water!";
_root.beatClock = true;
fill = false;
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (bucket.hitTest(water)) {
bucket.bucket2.gotoAndStop("fill");
}
if ((fill == true) && (bucket.bucket2.hitTest(top))) {
_root.gameOutcome(true);
trace("win");
}
if (Key.isDown(40) and (bucket._y <= -550)) {
bucket._y = bucket._y + 10;
}
if (Key.isDown(38)) {
bucket._y = bucket._y - 10;
}
}
};
Instance of Symbol 1214 MovieClip "bucket" in Symbol 1232 MovieClip [game45] Frame 1
/* no clip actions */
Symbol 1245 MovieClip Frame 1
stop();
Symbol 1245 MovieClip Frame 36
stop();
Symbol 1250 MovieClip Frame 1
stop();
Symbol 1250 MovieClip Frame 25
stop();
Symbol 1253 MovieClip Frame 1
stop();
Symbol 1253 MovieClip Frame 30
stop();
Symbol 1256 MovieClip Frame 1
stop();
Symbol 1256 MovieClip Frame 27
stop();
Symbol 1258 MovieClip Frame 75
gotoAndPlay (1);
Symbol 1264 MovieClip [game46] Frame 1
_root.rules = "Slash a Zombie";
_root.beatClock = true;
sawCut = new Sound();
sawCut.attachSound("sawCut");
rightDown = false;
leftDown = false;
cutCounter = 0;
raCounter = 6;
laCounter = 12;
headCounter = 18;
bodyCounter = 24;
raGone = false;
laGone = false;
headGone = false;
bodyGone = false;
limbsGone = 0;
soundPlay = false;
soundCounter = 0;
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (Key.isDown(39) && (rightDown == false)) {
chainsaw.gotoAndPlay(76);
if (soundCounter == 0) {
sawCut.start(0, 1);
soundCounter = 7;
}
if (limbsGone == 0) {
chainsaw._x = 180;
chainsaw._y = 150;
}
if (limbsGone == 1) {
chainsaw._x = 370;
chainsaw._y = 145;
}
if (limbsGone == 2) {
chainsaw._x = 265;
chainsaw._y = 110;
}
if (limbsGone == 3) {
chainsaw._x = 278;
chainsaw._y = 220;
}
cutCounter++;
rightDown = true;
}
if (Key.isDown(37) && (leftDown == false)) {
chainsaw.gotoAndPlay(76);
if (soundCounter == 0) {
sawCut.start(0, 1);
soundCounter = 7;
}
if (limbsGone == 0) {
chainsaw._x = 180;
chainsaw._y = 150;
}
if (limbsGone == 1) {
chainsaw._x = 370;
chainsaw._y = 145;
}
if (limbsGone == 2) {
chainsaw._x = 265;
chainsaw._y = 110;
}
if (limbsGone == 3) {
chainsaw._x = 278;
chainsaw._y = 220;
}
cutCounter++;
leftDown = true;
}
if (!Key.isDown(39)) {
rightDown = false;
}
if (!Key.isDown(37)) {
leftDown = false;
}
soundCounter--;
if (soundCounter <= 0) {
soundCounter = 0;
}
if ((cutCounter > raCounter) && (!raGone)) {
rightArm.play();
raGone = true;
limbsGone = 1;
}
if ((cutCounter > laCounter) && (!laGone)) {
leftArm.play();
laGone = true;
limbsGone = 2;
}
if ((cutCounter > headCounter) && (!headGone)) {
head.play();
headGone = true;
limbsGone = 3;
}
if ((cutCounter > bodyCounter) && (!bodyGone)) {
body.play();
bodyGone = true;
rightBlood._visible = false;
leftBlood._visible = false;
_root.gameOutcome(true);
}
}
};
Symbol 1288 MovieClip Frame 1
stop();
Symbol 1288 MovieClip Frame 15
stop();
if (_parent.win == false) {
trace("lose");
_root.gameOutcome(false);
}
Symbol 1303 MovieClip Frame 10
stop();
Symbol 1305 MovieClip Frame 1
var scale = (random(50) + 30);
setProperty(_target, _x , (_parent.firex + random(12)) - 6);
setProperty(_target, _yscale , scale);
Symbol 1306 MovieClip Frame 1
var i = 1;
var max = 60;
var firex = getProperty("fire", _x);
Symbol 1306 MovieClip Frame 2
if (i <= max) {
duplicateMovieClip ("fire", "fire" + i, i);
i++;
}
Symbol 1306 MovieClip Frame 3
if (i <= max) {
duplicateMovieClip ("fire", "fire" + i, i);
i++;
}
gotoAndPlay (2);
Symbol 1307 MovieClip Frame 1
_root.rules = "Strike it!";
_root.beatClock = true;
win = false;
onEnterFrame = function () {
if (_root.cstatus == 1) {
if (Key.isDown(32)) {
matches.stop();
match2.play();
}
if (match2.match3.match4.head.hitTest(matches.hit)) {
win = true;
play();
trace("win");
_root.gameOutcome(true);
}
}
};
stop();
Symbol 1307 MovieClip Frame 11
stop();
Symbol 1330 MovieClip Frame 1
stop();
Symbol 1332 MovieClip [game48] Frame 1
_root.beatClock = true;
_root.rules = "Destroy earth!";
i = 1;
while (i <= 3) {
this[i + "x"] = -0.1 * ((this[i]._x - earth._x) / 2);
this[i + "y"] = -0.1 * ((this[i]._y - earth._y) / 2);
this[i + "totx"] = 0;
this[i + "toty"] = 0;
trace((this[i + "x"] + "/") + this[i + "y"]);
i++;
}
g = 1;
onEnterFrame = function () {
if ((this["1"].hitTest(earth) && (this["2"].hitTest(earth))) && (this["3"].hitTest(earth))) {
tag = space.attachMovie("circ", "circ" + g, g++);
tag._x = (earth._x + random(20)) - 10;
tag._y = (earth._y + random(20)) - 10;
tag._xscale = random(500);
tag._yscale = tag._xscale;
}
if (_root.cstatus == 1) {
if ((this["1"].hitTest(earth) && (this["2"].hitTest(earth))) && (this["3"].hitTest(earth))) {
trace("good");
_root.gameOutcome(true);
}
t = 1;
while (t <= 3) {
this[t]._x = this[t]._x + this[t + "totx"];
this[t]._y = this[t]._y + this[t + "toty"];
this[t + "totx"] = this[t + "totx"] / 2;
this[t + "toty"] = this[t + "toty"] / 2;
if (this[t].hitTest(earth)) {
tag = space.attachMovie("circ", "circ" + g, g++);
tag._x = (this[t]._x + random(8)) - 4;
tag._y = (this[t]._y + random(8)) - 4;
tag._xscale = random(150);
tag._yscale = tag._xscale;
}
t++;
}
if (Key.isDown(39)) {
tractorbeam._rotation = tractorbeam._rotation + 5;
} else if (Key.isDown(37)) {
tractorbeam._rotation = tractorbeam._rotation - 5;
}
if (Key.isDown(32)) {
tractorbeam.gotoAndStop(2);
i = 1;
while (i < 4) {
j = 1;
while (j < 13) {
if (this[i].hitTest(tractorbeam[j])) {
this[i + "totx"] = this[i + "totx"] + this[i + "x"];
this[i + "toty"] = this[i + "toty"] + this[i + "y"];
}
j++;
}
i++;
}
} else {
tractorbeam.gotoAndStop(1);
}
}
};
Symbol 1348 MovieClip Frame 1
stop();
Symbol 1348 MovieClip Frame 2
stop();
Symbol 1351 MovieClip Frame 1
stop();
Symbol 1351 MovieClip Frame 2
stop();
Symbol 1356 MovieClip Frame 1
stop();
Symbol 1356 MovieClip Frame 2
stop();
Symbol 1357 MovieClip Frame 1
function keyIsDown(keyd) {
if (_root.cstatus == 1) {
if ((curstat > 0) && (keyd == 39)) {
this["txt" + curstat].gotoAndStop(1);
curstat--;
this["txt" + curstat].gotoAndStop(2);
} else if ((curstat < 3) && (keyd == 37)) {
this["txt" + curstat].gotoAndStop(1);
curstat++;
this["txt" + curstat].gotoAndStop(2);
}
if (keyd == 32) {
this["nl" + curstat].onstat = !this["nl" + curstat].onstat;
if (this["nl" + curstat].onstat == false) {
this["nl" + curstat].gotoAndStop(1);
val = val - Math.pow(2, curstat);
} else {
this["nl" + curstat].gotoAndStop(2);
val = val + Math.pow(2, curstat);
}
}
}
}
var weight = (Math.floor(Math.random() * 15) + 1);
weightobj.txt = weight;
_root.rules = weight + "-inate it!";
_root.beatClock = true;
var i = 0;
while (i <= 3) {
this["nl" + i].onstat = false;
i++;
}
var i = 0;
while (i <= 3) {
this["txt" + i].txt = Math.pow(2, i);
i++;
}
var val = 0;
var curstat = 0;
this["txt" + curstat].gotoAndStop(2);
onEnterFrame = function () {
if ((val == weight) && (_root.cstatus == 1)) {
light.gotoAndStop(2);
_root.gameOutcome(true);
}
};
Instance of Symbol 1356 MovieClip "light" in Symbol 1357 MovieClip Frame 1
onClipEvent (keyUp) {
_parent.keyIsDown(Key.getCode());
}
Symbol 1360 MovieClip [game49] Frame 1
function gameOutcome(outcome) {
if ((outcome == true) && (_root.cstatus == 1)) {
statext = "Win!";
} else {
statext = "Lose!";
}
}
Symbol 1437 MovieClip Frame 50
counter = 0;
speed = 20;
k = 0;
onEnterFrame = function () {
if (_root.cstatus == 1) {
counter++;
if (counter == 6) {
tt = _root.g.loader.attachMovie("jm_star", "jmtb_star" + k, k++);
tt._x = random(550);
tt._y = -10;
tt._xscale = random(100) + 50;
tt._yscale = tt._xscale;
counter = 0;
}
if (Key.isDown(37)) {
red._x = red._x - speed;
}
if (Key.isDown(39)) {
red._x = red._x + speed;
}
}
};
Symbol 1440 MovieClip [game50] Frame 1
starsCaught = 0;
_root.rules = "Catch 4!";
_root.beatClock = true;
onEnterFrame = function () {
if ((starsCaught >= 4) && (_root.cstatus == 1)) {
_root.gameOutcome(true);
}
};
Symbol 1443 MovieClip [jm_star] Frame 1
speed = random(20);
onEnterFrame = function () {
star._rotation = star._rotation + speed;
star._y = star._y + 20;
if (_root.cstatus == 1) {
if (this.hitTest(_root.g.h.red.head)) {
_root.g.starsCaught++;
trace("hit");
trace(_root.g.starsCaught);
i = 0;
while (i < 10) {
ee = _root.g.loader.attachMovie("jm_starExplode", "jm_starExplode" + _root.g.h.k, _root.g.h.k++);
ee._x = this._x;
ee._y = this._y + 300;
ee._xscale = random(200);
ee._yscale = ee._xscale;
ee._rotation = random(360);
i++;
}
this.removeMovieClip();
}
}
};
Symbol 1443 MovieClip [jm_star] Frame 40
this.removeMovieClip();
Symbol 1445 MovieClip [jm_starExplode] Frame 7
this.removeMovieClip();
Symbol 1451 MovieClip [loadResponse] Frame 40
this.removeMovieClip();
Symbol 1455 MovieClip [loadrules] Frame 40
this.removeMovieClip();
Symbol 1462 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 1464 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 1467 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 1469 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 1472 MovieClip [Defaults] Frame 1
#initclip 25
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 1473 MovieClip [UIObjectExtensions] Frame 1
#initclip 26
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 1474 MovieClip [UIObject] Frame 1
#initclip 27
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 1477 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 1478 MovieClip Frame 1
#initclip 28
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 1479 MovieClip [FocusRect] Frame 1
#initclip 29
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 1480 MovieClip [FocusManager] Frame 1
#initclip 30
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 1481 MovieClip [UIComponentExtensions] Frame 1
#initclip 31
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 1482 MovieClip [UIComponent] Frame 1
#initclip 32
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 1483 MovieClip [SimpleButton] Frame 1
#initclip 33
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 1486 MovieClip [Border] Frame 1
#initclip 34
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 1487 MovieClip [RectBorder] Frame 1
#initclip 35
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 1488 MovieClip [TextInput] Frame 1
#initclip 36
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 1495 MovieClip [StepThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1507 MovieClip [NumericStepper] Frame 1
#initclip 37
Object.registerClass("NumericStepper", mx.controls.NumericStepper);
#endinitclip
stop();
Instance of Symbol 1483 MovieClip [SimpleButton] in Symbol 1507 MovieClip [NumericStepper] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1488 MovieClip [TextInput] in Symbol 1507 MovieClip [NumericStepper] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1531 MovieClip [rtz_star] Frame 1
gotoAndStop(Math.ceil(Math.random() * 6));
Symbol 1533 MovieClip [shot] Frame 1
if (this.hitTest(_root.subsub.chump.shield)) {
var ee1 = new Sound();
ee1.attachSound("dink");
ee1.start();
t = attachMovie("woot", "w" + _root.k, _root.k++);
t._rotation = random(360);
t._xscale = 50;
t._yscale = 50;
}
if (this.hitTest(_root.subsub.chump.shade) && (!this.hitTest(_root.subsub.chump.shield))) {
_root.subsub.chump.shade.play();
_root.bossLife--;
}
Symbol 1533 MovieClip [shot] Frame 10
this.removeMovieClip();
Symbol 1536 MovieClip [spawn2] Frame 30
this.removeMovieClip();
Symbol 1537 MovieClip [swirlIn] Frame 30
_root.nextLevel();
this.unloadMovie();
Symbol 1540 MovieClip Frame 6
stop();
Symbol 1542 MovieClip [Transition_1] Frame 39
_root.cstatus = 1;
this.removeMovieClip();
Symbol 1543 MovieClip [Transition_2] Frame 25
_root.cstatus = 1;
this.removeMovieClip();
Symbol 1544 MovieClip [Transition_3] Frame 28
_root.cstatus = 1;
this.removeMovieClip();
Symbol 1546 MovieClip [transOut_1] Frame 29
_root.switchScreens();
this.removeMovieClip();
Symbol 1547 MovieClip [transOut_2] Frame 29
_root.switchScreens();
this.removeMovieClip();
Symbol 1548 MovieClip [woot] Frame 10
this.removeMovieClip();
Symbol 1559 MovieClip Frame 1
stop();
gotoAndStop(random(3) + 2);
Symbol 1560 MovieClip [circ] Frame 10
this.removeMovieClip();
Symbol 1576 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 1577 MovieClip Frame 81
_root.play();
_root.play();
Symbol 1579 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 1580 MovieClip Frame 169
stop();
Symbol 1588 MovieClip Frame 10
stop();
Symbol 1602 Button
on (release) {
nextFrame();
}
Symbol 1605 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(3);
}
Symbol 1614 Button
on (release) {
getURL ("http://www.jmtb02.com", "_blank");
}
Symbol 1620 Button
on (release) {
prevFrame();
}
Symbol 1627 Button
on (release) {
getURL ("http://maxto.bdsflash.com", "_blank");
}
Symbol 1636 Button
on (release) {
getURL ("http://www.pontushorn.com", "_blank");
}
Symbol 1646 Button
on (release) {
getURL ("http://www.kinsmangames.com", "_blank");
}
Symbol 1656 Button
on (release) {
getURL ("http://www.rykscripts.com", "_blank");
}
Symbol 1669 Button
on (release) {
getURL ("http://www.spacemanattack.com", "_blank");
}
Symbol 1677 Button
on (release) {
getURL ("http://www.depredation.com", "_blank");
}
Symbol 1687 Button
on (release) {
getURL ("http://wonchop.sheezyart.com", "_blank");
}
Symbol 1696 Button
on (release) {
getURL ("http://www.dingoeatingfuzz.com", "_blank");
}
Symbol 1703 Button
on (release) {
getURL ("http://www.zmarzian.com", "_blank");
}
Symbol 1711 Button
on (release) {
getURL ("http://www.melonbush.com", "_blank");
}
Symbol 1724 Button
on (release) {
getURL ("http://www.heartfreezemedia.co.nr", "_blank");
}
Symbol 1732 Button
on (release) {
getURL ("http://www.bdsflash.com", "_blank");
}
Symbol 1740 Button
on (release) {
getURL ("http://www.robot-creations.de.vu", "_blank");
}
Symbol 1748 Button
on (release) {
getURL ("http://www.live-portal.co.uk", "_blank");
}
Symbol 1761 Button
on (release) {
getURL ("http://www.claxor.com", "_blank");
}
Symbol 1770 Button
on (release) {
getURL ("http://www.uberneashir.com", "_blank");
}
Symbol 1779 Button
on (release) {
getURL ("http://www.heartlessgeeks.com", "_blank");
}
Symbol 1786 Button
on (release) {
getURL ("http://www.angelfire.com/space2/froggy618157725", "_blank");
}
Symbol 1797 MovieClip Frame 1
stop();
Symbol 1800 Button
on (release) {
getURL ("http://www.jmtb02.com/", "_blank");
stopAllSounds();
}
Symbol 1844 Button
on (release) {
getURL ("http://www.jmtb02.com/", "_blank");
}
Symbol 1853 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 1854 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("intro");
}
Symbol 1858 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
stopAllSounds();
}
Symbol 1859 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
stopAllSounds();
}
Symbol 1862 MovieClip Frame 1
_root.endTime = Math.floor(_root.totalTime / 30) + " seconds!";
_root.finalTime = Math.floor(_root.totalTime / 30);
Symbol 1862 MovieClip Frame 20
stop();
submit.onRelease = function () {
pldm128948 = new LoadVars();
pldm128948.namevar = _root.finalName;
pldm128948.scorevar = _root.finalTime;
pldm128948.mid = 130;
pldm128948.pro = "a4a9c56bbf6cae0bf06d5e98b23b3b70";
pldm128948.sendAndLoad("http://bot.armorstudios.com/hs.php", pldm128948, "POST");
submit._x = 5000;
sent._alpha = 100;
getURL ("http://bot.armorstudios.com/highscores.php?id=130", "_blank");
};
Symbol 1873 MovieClip Frame 1
counter = 0;
goal = 2;
onEnterFrame = function () {
counter++;
if (counter == goal) {
counter = 0;
tt = random(300);
attachMovie("spawn2", "s2" + _root.k, _root.k++, {_x:random(550), _y:random(400), _yscale:tt, _xscale:tt});
}
};
Symbol 1873 MovieClip Frame 120
onEnterFrame = function () {
};
Symbol 1873 MovieClip Frame 343
_root.nextFrame();
Symbol 1890 Button
on (release) {
getURL ("http://bot.armorstudios.com/highscores.php?id=130", "_blank");
stopAllSounds();
}
Symbol 1894 Button
on (release) {
getURL ("http://www.armorgames.com/tutorials/foursecondfrenzy-tutorial.html", "_blank");
stopAllSounds();
}
Symbol 1895 Button
on (release) {
getURL ("http://www.jmtb02.com/highscores/frenzy.htm", "_blank");
stopAllSounds();
}
Symbol 1896 MovieClip Frame 1
_root.endTime = Math.floor(_root.totalTime / 30) + " seconds!";
Symbol 1896 MovieClip Frame 20
stop();
Symbol 1903 MovieClip Frame 10
stop();
Instance of Symbol 1563 MovieClip "ground2" in Symbol 1915 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hobbit.feet)) {
_root.hobbitY = "stopped";
}
}
Instance of Symbol 1563 MovieClip "sider1" in Symbol 1915 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hobbit.feet)) {
_root.hobbitY = "falling";
}
}
Instance of Symbol 1563 MovieClip "sider2" in Symbol 1915 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hobbit.feet)) {
_root.hobbitY = "falling";
}
}
Instance of Symbol 1563 MovieClip "sider3" in Symbol 1915 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hobbit.feet)) {
_root.attackGround = true;
}
if (this.hitTest(_root.hobbit.hobbit1.hobbit9.weapon.hitArea)) {
if (_root.debrisIs == "on") {
mov = _root.attachMovie("fireGround4", "fg" + _root.k, _root.k++);
mov._x = (((_root.hobbit._x + _root.hobbit.hobbit1._x) + _root.hobbit.hobbit1.hobbit9._x) + _root.hobbit.hobbit1.hobbit9.weapon._x) + _root.hobbit.hobbit1.hobbit9.weapon.hitArea._x;
mov._y = _root.hobbit._y + _root.hobbit.feet._y;
}
}
}
Symbol 1922 MovieClip Frame 10
stop();
Symbol 1923 MovieClip Frame 10
stop();
Symbol 1938 Button
on (release) {
gotoAndPlay (285);
}
Symbol 1941 Button
on (release) {
_root.xgames = 50;
_root.lives = 10;
_root.storyMode = "long";
_root.gotoAndStop("gameStart");
trace("LIVES = 10 and GAMES = 50");
}
Symbol 1947 MovieClip Frame 10
stop();
Symbol 1949 Button
on (release) {
_root.xgames = 50;
_root.lives = 1;
_root.storyMode = "sd";
_root.gotoAndStop("gameStart");
trace("LIVES = 1 and GAMES = 50");
}
Symbol 1950 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 1951 Button
on (release) {
_root.xgames = 20;
_root.lives = 7;
_root.storyMode = "short";
trace(_root.xgames);
trace(_root.lives);
trace("LIVES = 7 and GAMES = 20");
_root.gotoAndStop("gameStart");
}
Symbol 1957 MovieClip Frame 10
stop();
Symbol 1958 Button
on (release) {
_root.xgames = 20;
_root.lives = 5;
_root.storyMode = "short";
trace(_root.xgames);
trace(_root.lives);
trace("LIVES = 5 and GAMES = 20");
_root.gotoAndStop("gameStart");
}
Symbol 1959 Button
on (release) {
_root.nextFrame();
}
Symbol 1960 Button
on (release) {
_root.xgames = 50;
_root.lives = 1;
_root.storyMode = "suddenDeath";
_root.gotoAndStop("gameStart");
trace("LIVES = 1 and GAMES = 50");
}
Symbol 1961 Button
on (release) {
getURL ("http://www.armorgames.com/tutorials/foursecondfrenzy-tutorial.html", "_blank");
}
Symbol 1962 MovieClip Frame 1114
stop();
Symbol 1986 MovieClip Frame 1
stop();
Instance of Symbol 1994 MovieClip in Symbol 2243 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.cstatus != 1) {
if (Key.isDown(37) && ((this._x + 260) >= 0)) {
this._x = this._x - 10;
}
if (Key.isDown(40) && ((this._y + 160) <= 400)) {
this._y = this._y + 10;
}
if (Key.isDown(39) && ((this._x + 260) <= 550)) {
this._x = this._x + 10;
}
if (Key.isDown(38) && ((this._y + 160) >= 0)) {
this._y = this._y - 10;
}
if (Key.isDown(32)) {
mov = _root.attachMovie("shot", "shot" + _root.k, _root.k++);
mov._x = ((this._x + 260) + random(30)) - 15;
mov._y = ((this._y + 160) + random(30)) - 15;
mov._xscale = random(100);
mov._yscale = mov._xscale;
}
}
}
Symbol 2243 MovieClip Frame 116
stop();
_root.initialBar();
_parent._visible = false;
this.onEnterFrame = function () {
if (_root.continuedBoss == true) {
this.play();
_root.continuedBoss = false;
}
};
Symbol 2254 MovieClip Frame 50
this.stop();
Symbol 2261 MovieClip Frame 186
_root.nextFrame();
Symbol 2266 MovieClip Frame 1
var wd1 = new Sound();
wd1.attachSound("Anaconda");
wd1.start(0, 99);
Symbol 2266 MovieClip Frame 342
_root.play();
Symbol 2269 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 2270 Button
on (release) {
play();
}
Symbol 2271 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
stopAllSounds();
}
Symbol 2274 Button
on (release) {
getURL ("http://www.jmtb02.com/", "_blank");
stopAllSounds();
}
Symbol 2277 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
stopAllSounds();
}
Symbol 2278 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
stopAllSounds();
}
Symbol 2279 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
stopAllSounds();
}
Symbol 2280 Button
on (release) {
_root.play();
stopAllSounds();
}
Symbol 2281 MovieClip Frame 53
stop();
Symbol 2298 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 2299 Button
on (release) {
_root.play();
}
Symbol 2300 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 2300 MovieClip Frame 2
gotoAndPlay (1);
Symbol 2332 Button
on (press) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Symbol 2346 MovieClip Frame 1
stop();
Symbol 2346 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 2351 MovieClip Frame 1
stop();
trace("ClipsLoaded");
Instance of Symbol 1507 MovieClip [NumericStepper] in Symbol 2351 MovieClip Frame 15
//component parameters
onClipEvent (construct) {
maximum = 10;
minimum = 0;
stepSize = 1;
value = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1456 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 1457 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 1458 MovieClip [__Packages.mx.controls.NumericStepper] Frame 0
class mx.controls.NumericStepper extends mx.core.UIComponent
{
var boundingBox_mc, _visible, tabEnabled, tabChildren, nextButton_mc, __width, prevButton_mc, __height, inputField, StepTrack_mc, focusTextField, createObject, enabled, __set__visible, setSize, createClassObject, __maxChars, dispatchEvent;
function NumericStepper () {
super();
}
function init() {
super.init();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
_visible = false;
tabEnabled = false;
tabChildren = true;
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
if (initializing) {
__visible = x;
}
}
function layoutControl() {
nextButton_mc._x = __width - nextButton_mc.__width;
nextButton_mc._y = 0;
prevButton_mc._x = __width - prevButton_mc.__width;
prevButton_mc._y = __height - prevButton_mc.__height;
inputField.setSize(__width - nextButton_mc.__width, __height);
StepTrack_mc._width = Math.max(nextButton_mc.__width, prevButton_mc.__width);
StepTrack_mc._x = __width - StepTrack_mc._width;
StepTrack_mc._height = __height - (nextButton_mc._height + prevButton_mc._height);
StepTrack_mc._y = nextButton_mc.__height;
}
function createChildren() {
super.createChildren();
addAsset("nextButton_mc", skinIDUpArrow);
addAsset("prevButton_mc", skinIDDownArrow);
addAsset("inputField", skinIDInput);
focusTextField = inputField.label;
createObject("StepTrack", "StepTrack_mc", 2);
size();
}
function draw() {
prevButton_mc.enabled = enabled;
nextButton_mc.enabled = enabled;
inputField.enabled = enabled;
size();
initializing = false;
__set__visible(__visible);
}
function size() {
var _local2 = calcMinHeight();
var _local3 = calcMinWidth();
if (__height < _local2) {
setSize(__width, _local2);
}
if (__width < _local3) {
setSize(_local3, __height);
}
layoutControl();
}
function calcMinHeight() {
return(22);
}
function calcMinWidth() {
return(40);
}
function addAsset(id, skinID) {
var _local2 = new Object();
_local2.styleName = this;
if (skinID == 10) {
_local2.falseUpSkin = upArrowUp;
_local2.falseOverSkin = upArrowOver;
_local2.falseDownSkin = upArrowDown;
_local2.falseDisabledSkin = upArrowDisabled;
createClassObject(mx.controls.SimpleButton, id, skinID, _local2);
var _local5 = nextButton_mc;
_local5.tabEnabled = false;
_local5.styleName = this;
_local5._x = __width - _local5.__width;
_local5._y = 0;
_local5.owner = this;
_local5.autoRepeat = true;
_local5.clickHandler = function () {
Selection.setSelection(0, 0);
};
_local5.buttonDownHandler = function () {
this.owner.buttonPress(this);
};
} else if (skinID == 11) {
_local2.falseUpSkin = downArrowUp;
_local2.falseOverSkin = downArrowOver;
_local2.falseDownSkin = downArrowDown;
_local2.falseDisabledSkin = downArrowDisabled;
createClassObject(mx.controls.SimpleButton, id, skinID, _local2);
var _local3 = prevButton_mc;
_local3.tabEnabled = false;
_local3.styleName = this;
_local3._x = __width - _local3.__width;
_local3._y = __height - _local3.__height;
_local3.owner = this;
_local3.autoRepeat = true;
_local3.clickHandler = function () {
Selection.setSelection(0, 0);
};
_local3.buttonDownHandler = function () {
this.owner.buttonPress(this);
};
} else if (skinID == 9) {
createClassObject(mx.controls.TextInput, id, skinID);
var _local4 = inputField;
_local4.styleName = this;
_local4.setSize(__width - nextButton_mc.__width, __height);
_local4.restrict = "0-9\\-\\.\\,";
_local4.maxChars = __maxChars;
_local4.text = value;
_local4.onSetFocus = function () {
this._parent.onSetFocus();
};
_local4.onKillFocus = function () {
this._parent.onKillFocus();
};
_local4.drawFocus = function (b) {
this._parent.drawFocus(b);
};
_local4.onKeyDown = function () {
this._parent.onFieldKeyDown();
};
}
}
function setFocus() {
Selection.setFocus(inputField);
}
function onKillFocus() {
mx.managers.SystemManager.form.focusManager.defaultPushButtonEnabled = true;
super.onKillFocus();
Key.removeListener(inputField);
if (Number(inputField.text) != value) {
var _local3 = checkValidValue(Number(inputField.text));
inputField.text = _local3;
value = (_local3);
dispatchEvent({type:"change"});
}
}
function onSetFocus() {
super.onSetFocus();
Key.addListener(inputField);
mx.managers.SystemManager.form.focusManager.defaultPushButtonEnabled = false;
}
function onFieldKeyDown() {
var _local2 = value;
switch (Key.getCode()) {
case 40 :
var _local3 = value - stepSize;
value = (_local3);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 38 :
_local3 = stepSize + value;
value = (_local3);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 36 :
inputField.text = minimum;
value = (minimum);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 35 :
inputField.text = maximum;
value = (maximum);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 13 :
value = (Number(inputField.text));
if (_local2 == value) {
break;
}
dispatchEvent({type:"change"});
}
}
function get nextValue() {
if (checkRange(value + stepSize)) {
__nextValue = value + stepSize;
return(__nextValue);
}
}
function get previousValue() {
if (checkRange(__value - stepSize)) {
__previousValue = value - stepSize;
return(__previousValue);
}
}
function set maxChars(num) {
__maxChars = num;
inputField.maxChars = __maxChars;
//return(maxChars);
}
function get maxChars() {
return(__maxChars);
}
function get value() {
return(__value);
}
function set value(v) {
var _local2 = checkValidValue(v);
if (_local2 == __value) {
return;
}
inputField.text = (__value = _local2);
//return(value);
}
function get minimum() {
return(__minimum);
}
function set minimum(v) {
__minimum = v;
//return(minimum);
}
function get maximum() {
return(__maximum);
}
function set maximum(v) {
__maximum = v;
//return(maximum);
}
function get stepSize() {
return(__stepSize);
}
function set stepSize(v) {
__stepSize = v;
//return(stepSize);
}
function onFocus() {
}
function buttonPress(button) {
var _local2 = value;
if (button._name == "nextButton_mc") {
value = value + stepSize;
} else {
value = value - stepSize;
}
if (_local2 != value) {
dispatchEvent({type:"change"});
Selection.setSelection(0, 0);
}
}
function checkRange(v) {
return((v >= minimum) and (v <= maximum));
}
function checkValidValue(val) {
var _local7 = val / stepSize;
var _local9 = Math.floor(_local7);
var _local2 = stepSize;
var _local6 = minimum;
var _local5 = maximum;
if ((val > _local6) and (val < _local5)) {
if ((_local7 - _local9) == 0) {
return(val);
}
var _local8 = Math.floor(val / _local2);
var _local4 = _local8 * _local2;
if (((((val - _local4) >= (_local2 / 2)) && (_local5 >= (_local4 + _local2))) && (_local6 <= (_local4 - _local2))) || (((val + _local2) == _local5) && (((_local5 - _local4) - _local2) > 1E-14))) {
_local4 = _local4 + _local2;
}
return(_local4);
}
if (val >= _local5) {
return(_local5);
}
return(_local6);
}
function onLabelChanged(o) {
var _local2 = checkValidValue(Number(o.__get__text()));
o.__set__text(_local2);
value = (_local2);
}
function get tabIndex() {
return(inputField.tabIndex);
}
function set tabIndex(w) {
inputField.tabIndex = w;
//return(tabIndex);
}
static var symbolName = "NumericStepper";
static var symbolOwner = mx.controls.NumericStepper;
static var version = "2.0.2.126";
var className = "NumericStepper";
var upArrowUp = "StepUpArrowUp";
var upArrowDown = "StepUpArrowDown";
var upArrowOver = "StepUpArrowOver";
var upArrowDisabled = "StepUpArrowDisabled";
var downArrowUp = "StepDownArrowUp";
var downArrowDown = "StepDownArrowDown";
var downArrowOver = "StepDownArrowOver";
var downArrowDisabled = "StepDownArrowDisabled";
var skinIDUpArrow = 10;
var skinIDDownArrow = 11;
var skinIDInput = 9;
var initializing = true;
var __visible = true;
var __minimum = 0;
var __maximum = 10;
var __stepSize = 1;
var __value = 0;
var __nextValue = 0;
var __previousValue = 0;
var clipParameters = {minimum:1, maximum:1, stepSize:1, value:1, maxChars:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.NumericStepper.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
}
Symbol 1508 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 1509 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 1510 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 1511 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 1512 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 1513 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 1514 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 1515 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.126";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 1516 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 1517 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 1518 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 1519 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 1520 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 1521 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 1522 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 1523 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.126";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 1524 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 1525 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 1526 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 1527 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 1528 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.126";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 2361 Button
on (release) {
var insert_lv = new LoadVars();
if (_url.indexOf("http") != 0) {
filepath = "http://jmtb02.com/highscores/";
} else {
filepath = "../highscores/";
}
if (nickname_ti.text == "") {
} else if ((isNaN(_root.finalTime) || (Number(_root.finalTime) < 0)) || (Number(_root.finalTime) > 65000)) {
} else {
insert_lv.nickname = named;
insert_lv.score = _root.finalTime;
insert_lv.dateposted = comment;
if (_root.storyMode == "short") {
insert_lv.sendAndLoad(filepath + "insertscorefsfa.php", insert_lv, "GET");
getURL ("http://www.jmtb02.com/highscores/frenzy.htm#1", "_blank");
add_btn._x = add_btn._x + 500000;
} else if (_root.storyMode == "long") {
insert_lv.sendAndLoad(filepath + "insertscorefsfb.php", insert_lv, "GET");
getURL ("http://www.jmtb02.com/highscores/frenzy.htm#2", "_blank");
add_btn._x = add_btn._x + 500000;
} else if (_root.storyMode == "suddenDeath") {
insert_lv.sendAndLoad(filepath + "insertscorefsfc.php", insert_lv, "GET");
getURL ("http://www.jmtb02.com/highscores/frenzy.htm#3", "_blank");
add_btn._x = add_btn._x + 500000;
}
}
}
Symbol 2370 MovieClip Frame 1
stop();
Symbol 2371 Button
on (release) {
_root.gotoAndStop("intro");
}
Symbol 2372 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 2382 MovieClip Frame 1
_root.endTime = Math.floor(_root.totalTime / 30) + " seconds!";
_root.finalTime = Math.floor(_root.totalTime / 30);
Instance of Symbol 2357 MovieClip in Symbol 2382 MovieClip Frame 1
onClipEvent (enterFrame) {
tt = _root.attachMovie("circ", "circ" + _root.k, _root.k++);
tt._x = (this._x - (this._width / 2)) + random(this._width);
tt._y = (this._y - (this._height / 2)) + random(this._height);
tt._xscale = 100 + random(300);
tt._yscale = tt._xscale;
}
Symbol 2382 MovieClip Frame 255
i = 0;
while (i < 10) {
tt = _root.attachMovie("circ", "circ" + _root.k, _root.k++);
tt._x = random(550);
tt._y = random(400);
tt._xscale = 100 + random(600);
tt._yscale = tt._xscale;
i++;
}
Symbol 2382 MovieClip Frame 256
i = 0;
while (i < 30) {
tt = _root.attachMovie("circ", "circ" + _root.k, _root.k++);
tt._x = random(550);
tt._y = random(400);
tt._xscale = 100 + random(600);
tt._yscale = tt._xscale;
i++;
}
Symbol 2382 MovieClip Frame 1079
stop();