Frame 1
whereis._width = 5;
whereis._height = 5;
whereis._x = -5;
whereis._y = -5;
whereis._alpha = 0;
this._quality = "BEST";
GAMEZ.attachMovie("square", "square", 99);
GAMEZ.square._x = 141.1;
GAMEZ.square._y = 147.3;
GAMEZ.attachMovie("Ii", "Ii", 500);
GAMEZ.Ii._x = 40;
GAMEZ.Ii._y = 40;
GAMEZ.attachMovie("PostIt", "PostIt", 999);
GAMEZ.PostIt._x = 0;
GAMEZ.PostIt._y = 0;
Instance of Symbol 461 MovieClip "tacke" in Frame 1
onClipEvent (load) {
pauseCool = 0;
_root.SND = new Sound();
_root.SND.setVolume(100);
_root.MUSIK = new Sound();
_root.MUSIKATTSPELA = "main music: Daft Punk - Revolution 909";
vollen = 100;
lastKeyPressed = 0;
lastKeyUpped = 0;
aListener = new Object();
aListener.onKeyDown = function () {
lastCode = Key.getCode();
lastKeyPressed = Key.getAscii();
};
aListener.onKeyUp = function () {
lastKeyUpped = Key.getAscii();
};
Key.addListener(aListener);
Ignore = 0;
showTime = 0;
_parent.autoPause = 0;
backspacen = 0;
AmbientChanged = false;
tTap = 0;
tTapped = 0;
permanent = 0;
konamiCode = "";
lastCode = 0;
lazyCode = "";
beenLazy = 0;
volInc = 1;
volStop = 0;
hudden = 1;
quickPostIt = 0;
_root.NoReturnNow = false;
_root.roundsmode = 1;
_root.roundssorting = 1;
_root.StOpPeD = false;
_root.currentTie = 0;
_root.droool = 0;
_root.framesStill = 0;
}
onClipEvent (enterFrame) {
if (_root.GAMEZ.OhShit == false) {
if (hudden != 1) {
if (hudden > 1) {
_parent.GAMEZ._alpha = 100 - ((hudden - 1) * 20);
hudden++;
if (hudden == 7) {
_parent.GAMEZ._x = -400;
_parent.GAMEZ._y = -400;
_parent.GAMEZ._xscale = 10;
_parent.GAMEZ._yscale = 10;
_parent.GAMEZ._alpha = 0;
hudden = -1;
}
} else if (hudden < -1) {
if (hudden == -2) {
_parent.GAMEZ._x = 0;
_parent.GAMEZ._y = 0;
_parent.GAMEZ._xscale = 100;
_parent.GAMEZ._yscale = 100;
}
_parent.GAMEZ._alpha = ((hudden * -1) - 1) * 20;
hudden--;
if (hudden == -7) {
_parent.GAMEZ._alpha = 100;
hudden = 1;
}
}
}
ok = 1;
if (lastCode != 0) {
konamiCode = konamiCode + ("" + lastCode);
if (("~~38384040373937396665".indexOf("~~" + konamiCode) != -1) && (konamiCode.length <= 20)) {
if (konamiCode == "38384040373937396665") {
ok = 2;
konamiCode = "";
} else if (konamiCode == "383840403739373966") {
ok = 0;
}
} else {
konamiCode = "";
}
lazyCode = lazyCode + ("" + lastCode);
if (("~~767976".indexOf("~~" + lazyCode) != -1) && (lazyCode.length <= 6)) {
if (lazyCode == "767976") {
ok = 3;
lazyCode = "";
} else {
ok = 0;
}
} else {
lazyCode = "";
}
}
if (ok == 2) {
nuvarande = _parent.theanon.anon.anon.anon._currentframe;
if (_parent.theanon.anon.anon._currentframe == 1) {
_parent.theanon.anon.anon.gotoAndStop(2);
_parent.GAMEZ.ljud("sndYehaw.wav");
} else {
_parent.theanon.anon.anon.gotoAndStop(1);
_parent.GAMEZ.ljud("sndUtasterisk.wav");
}
_parent.theanon.anon.anon.anon.gotoAndPlay(nuvarande);
} else if ((ok == 3) && (Ignore == 0)) {
if (beenLazy == 0) {
if (this._currentframe != 7) {
this.gotoAndPlay(3);
}
_parent.GAMEZ.GFXOn = true;
_parent.GAMEZ.SoundOn = true;
_parent.GAMEZ.AmbientOn = true;
permanent = 1;
beenLazy = 1;
_parent.GAMEZ.ljud("sndLuigisMansionKeyGet.wav");
} else {
_parent.GAMEZ.ljud("sndMusques.wav");
if (this._currentframe == 7) {
this.gotoAndPlay(8);
}
_parent.GAMEZ.GFXOn = false;
_parent.GAMEZ.SoundOn = false;
_parent.GAMEZ.AmbientOn = false;
permanent = 0;
beenLazy = 0;
}
}
if ((lastCode != 0) && (_root.NoReturnNow != 0)) {
_parent.GAMEZ.DoShit(-1);
} else if (ok == 1) {
if (Ignore == 0) {
if ((((lastKeyPressed == 82) || (lastKeyPressed == 114)) || (lastKeyPressed == 27)) && (_parent.GAMEZ.Ii._currentframe == 1)) {
if ((lastKeyPressed != 27) || (_root.rounds._currentframe == 11)) {
_root.rounds.play();
}
}
if ((lastKeyPressed == 79) || (lastKeyPressed == 111)) {
if ((quickPostIt == 0) && (_parent.GAMEZ.Ii._currentframe == 1)) {
_parent.GAMEZ.Ii.gotoAndStop(2);
_parent.GAMEZ.PostIt.play();
quickPostIt = 1;
} else if ((quickPostIt == 1) && (_parent.GAMEZ.PostIt._currentframe == 10)) {
_parent.GAMEZ.PostIt.play();
}
}
if (lastKeyPressed == 48) {
if (hudden == 1) {
hudden++;
_parent.GAMEZ.ljud("sndLightSwitch1.wav");
_parent.GAMEZ.noMouseModeChange = 1;
Mouse.show();
} else if (hudden == -1) {
hudden--;
_parent.GAMEZ.ljud("sndLightSwitch2.wav");
Mouse.hide();
_parent.GAMEZ.noMouseModeChange = 0;
}
}
if ((lastKeyPressed == 71) || (lastKeyPressed == 103)) {
if (_parent.GAMEZ.GFXOn == true) {
_parent.GAMEZ.GFXOn = false;
_parent.GAMEZ.showSymbol(-2);
_parent.GAMEZ.ljud("sndAgeOfEmpires1breatheOut.wav");
} else {
_parent.GAMEZ.GFXOn = true;
_parent.GAMEZ.showSymbol(2);
_parent.GAMEZ.ljud("sndAgeOfEmpires1breatheIn.wav");
}
}
if ((lastKeyPressed == 65) || (lastKeyPressed == 97)) {
AmbientChanged = true;
if (_parent.GAMEZ.AmbientOn == true) {
_parent.GAMEZ.AmbientOn = false;
_parent.GAMEZ.ljud("sndBubbles.wav");
_parent.GAMEZ.showSymbol(-3);
} else {
_parent.GAMEZ.AmbientOn = true;
_parent.GAMEZ.ljud("sndWaterSplash.wav");
_parent.GAMEZ.showSymbol(3);
}
}
if (lastKeyPressed == 8) {
backspacen++;
if (backspacen == 5) {
_parent.GAMEZ.themusic.newMusic(1);
}
}
if (lastKeyUpped == 8) {
if (backspacen == 1) {
_parent.GAMEZ.themusic.newMusic(0);
}
backspacen = 0;
}
if ((lastKeyPressed == 83) || (lastKeyPressed == 115)) {
if (_parent.GAMEZ.SoundOn == true) {
_parent.GAMEZ.ljud("sndOff.wav");
_parent.GAMEZ.SoundOn = false;
if (AmbientChanged == false) {
_parent.GAMEZ.AmbientOn = false;
}
_parent.GAMEZ.showSymbol(-5);
} else {
_parent.GAMEZ.SoundOn = true;
if (AmbientChanged == false) {
_parent.GAMEZ.AmbientOn = true;
}
_parent.GAMEZ.ljud("sndDeepNoteShort.wav");
_parent.GAMEZ.showSymbol(5);
}
}
if ((lastKeyPressed == 88) || (lastKeyPressed == 120)) {
if (_parent.autoPause == 1) {
_parent.autoPause = 0;
_parent.ram.gotoAndPlay(6);
} else {
_parent.autoPause = 1;
_parent.ram.gotoAndPlay(16);
}
}
if ((lastKeyPressed == 84) || (lastKeyPressed == 116)) {
showTime = 1;
if (tTapped == 0) {
tTap = tTap + 20;
tTapped = 1;
}
if (tTap > 81) {
if (permanent == 0) {
_parent.GAMEZ.ljud("sndArrow.wav");
}
permanent = 1;
tTap = 85;
} else {
permanent = 0;
}
} else if (tTap > 0) {
tTap--;
}
if (lastKeyUpped != 0) {
showTime = 0;
tTapped = 0;
}
if (lastKeyPressed == 32) {
this.play();
}
if ((lastKeyPressed == 77) || (lastKeyPressed == 109)) {
_parent.GAMEZ.themusic.play();
}
if ((lastKeyPressed == 86) || (lastKeyPressed == 118)) {
if (volStop == 0) {
if (vollen == 100) {
vollen = 0;
} else {
vollen = vollen + volInc;
}
if (volInc < 20) {
volInc = volInc + 6;
}
if (vollen >= 100) {
vollen = 100;
volStop = 3;
volInc = 1;
}
_parent.vOllen.gotoAndStop(vollen + 1);
_root.SND.setVolume(vollen);
} else {
volStop = 3;
}
if (_parent.vOllen.steg == -1) {
_parent.vOllen.doItFaggot = 1;
}
_parent.vOllen.fagdelay = _parent.vOllen.fagdelay + 10;
if (_parent.vOllen.fagdelay > 15) {
_parent.vOllen.fagdelay = 15;
}
} else if ((volInc > 1) || (volStop != 0)) {
if (volInc > 1) {
volInc--;
}
if (volStop > 0) {
volStop--;
}
}
if ((lastKeyPressed == 100) || (lastKeyPressed == 68)) {
if (_parent.GAMEZ.regretCycle <= 60) {
_parent.GAMEZ.regretCycle = 61;
_parent.GAMEZ.BONUSDENY();
}
}
if (pauseCool == 0) {
if ((lastKeyPressed == 80) || (lastKeyPressed == 112)) {
if (_parent.GAMEZ.PAUSE <= -1) {
_parent.GAMEZ.PAUSE = 1;
if (_root.GAMEZ.ohshitted == true) {
_root.GAMEZ.ljud("sndRest.wav");
_root.rest.gotoAndStop(2);
} else {
_root.GAMEZ.ljud("sndDungeonKeeperFreeze.wav");
}
} else {
_parent.GAMEZ.PAUSE = 0;
pauseCool = 5;
if (_root.GAMEZ.ohshitted == true) {
_root.GAMEZ.ljud("sndDinkSmallwoodSecret.wav");
_root.rest.gotoAndStop(1);
} else {
_root.GAMEZ.ljud("sndTwo.wav");
}
}
}
} else {
pauseCool--;
}
if ((((lastKeyPressed == 73) || (lastKeyPressed == 105)) || (lastKeyPressed == 27)) && (_root.rounds._currentframe == 1)) {
if (quickPostIt == 1) {
_parent.GAMEZ.PostIt.gotoAndPlay(11);
}
if ((lastKeyPressed != 27) || (_parent.GAMEZ.Ii._currentframe == 8)) {
_parent.GAMEZ.Ii.play();
}
}
} else if (lastKeyPressed == 27) {
_parent.GAMEZ.Ii.play();
Ignore = 0;
} else {
showTime = 0;
tTapped = 0;
}
}
}
lastCode = 0;
lastKeyPressed = 0;
lastKeyUpped = 0;
}
Instance of Symbol 466 MovieClip "vOllen" in Frame 1
onClipEvent (load) {
this.gotoAndStop(100);
doItFaggot = 0;
fagdelay = 0;
steg = 0;
}
onClipEvent (enterFrame) {
if (steg >= 0) {
if (steg > 20) {
this._x = 515 + (63 * ((steg - 21) / 4));
} else if (steg > 3) {
if (fagdelay > 0) {
steg++;
fagdelay--;
}
} else if (steg > 0) {
this._y = 290 + (111 * (1 - ((steg - 1) / 3)));
} else if (steg == 0) {
doItFaggot = 0;
this._x = 578;
this._y = 290;
}
steg--;
} else if (doItFaggot == 1) {
steg = 24;
}
}
Instance of Symbol 631 MovieClip "GAMEZ" in Frame 1
onClipEvent (mouseDown) {
autoPaused = 1;
musner = true;
}
onClipEvent (mouseUp) {
autoPaused = 0;
musner = false;
}
Frame 28
gotoAndPlay (2);
Symbol 179 MovieClip Frame 1
function TJO() {
if (_root.GAMEZ.OhShit == true) {
gotoAndPlay (7);
} else if ((_root.GAMEZ.themusic._currentframe > 6) && (_root.GAMEZ.themusic._currentframe < 12)) {
gotoAndPlay (5);
} else if (_root.MUSIKATTSPELA == "main music: Daft Punk - Revolution 909") {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
if ((((_root._xmouse >= 0) && (_root._xmouse <= 550)) && (_root._ymouse >= 0)) && (_root._ymouse <= 400)) {
vissa.selectable = false;
} else {
vissa.selectable = true;
}
}
Symbol 179 MovieClip Frame 2
TJO();
Symbol 179 MovieClip Frame 3
TJO();
vissa.text = (substring(_root.MUSIKATTSPELA, 8, 400)).split("sic: ").join("");
Symbol 179 MovieClip Frame 4
TJO();
Symbol 179 MovieClip Frame 6
TJO();
Symbol 179 MovieClip Frame 8
TJO();
Symbol 181 Button
on (press) {
startDrag (this);
}
on (release) {
stopDrag();
}
Symbol 182 MovieClip [firstcred] Frame 6
if (_root.GAMEZ.PAUSE == 1) {
gotoAndPlay (7);
} else {
gotoAndPlay (1);
}
Symbol 182 MovieClip [firstcred] Frame 12
if (_root.GAMEZ.PAUSE == 1) {
gotoAndPlay (7);
} else {
gotoAndPlay (1);
}
Symbol 194 MovieClip Frame 8
stop();
Symbol 195 MovieClip [PostIt] Frame 1
stop();
_root.tacke.quickPostIt = 0;
Symbol 195 MovieClip [PostIt] Frame 2
lstefkttkncpy = _parent.LastEffectTaken;
if (lstefkttkncpy == "AIDS") {
lstefkttkncpy = "AIDSAMAGAD";
}
snabbtexten = _parent.Ii.istep.processThisShit(lstefkttkncpy.split("!").join("").split(" +1").join("")).toLowerCase().split("<i>").join("").split("</i>").join("");
Symbol 195 MovieClip [PostIt] Frame 3
scaleen = _parent.between(70, 85);
lappen._xscale = scaleen;
lappen._yscale = scaleen;
lappen._rotation = _parent.between(2, 7);
lappen._x = _parent.between(69, 100);
lappen._y = _parent.between(34, 60);
_parent.Ii.gotoAndStop(1);
_parent.ljud("sndPaperRip.wav");
Symbol 195 MovieClip [PostIt] Frame 10
stop();
Symbol 195 MovieClip [PostIt] Frame 11
lappen.play();
_parent.ljud("sndPaperWaddedUp.wav");
Symbol 195 MovieClip [PostIt] Frame 17
gotoAndStop (1);
Symbol 199 MovieClip Frame 20
gotoAndPlay (1);
Symbol 201 MovieClip Frame 20
gotoAndPlay (1);
Symbol 202 MovieClip [circle] Frame 1
stop();
Symbol 210 MovieClip [Defaults] Frame 1
#initclip 35
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 211 MovieClip [UIObjectExtensions] Frame 1
#initclip 36
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 212 MovieClip [UIObject] Frame 1
#initclip 37
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 213 MovieClip [Border] Frame 1
#initclip 38
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 214 MovieClip [RectBorder] Frame 1
#initclip 39
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 217 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 218 MovieClip Frame 1
#initclip 40
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 221 MovieClip [FocusRect] Frame 1
#initclip 41
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 222 MovieClip [FocusManager] Frame 1
#initclip 42
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 223 MovieClip [UIComponentExtensions] Frame 1
#initclip 43
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 224 MovieClip [UIComponent] Frame 1
#initclip 44
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 225 MovieClip [TextInput] Frame 1
#initclip 45
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 290 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 292 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 295 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 297 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 300 MovieClip [SimpleButton] Frame 1
#initclip 46
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 301 MovieClip [ButtonSkin] Frame 1
#initclip 47
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 302 MovieClip [Button] Frame 1
#initclip 48
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 300 MovieClip [SimpleButton] in Symbol 302 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 303 MovieClip [CustomBorder] Frame 1
#initclip 49
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 315 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 317 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 328 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 330 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 337 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 358 MovieClip [BtnDownArrow] Frame 1
#initclip 50
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 359 MovieClip [BtnUpArrow] Frame 1
#initclip 51
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 361 MovieClip [HScrollBar] Frame 1
#initclip 52
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 302 MovieClip [Button] in Symbol 361 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 300 MovieClip [SimpleButton] in Symbol 361 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 362 MovieClip [VScrollBar] Frame 1
#initclip 53
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 302 MovieClip [Button] in Symbol 362 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 300 MovieClip [SimpleButton] in Symbol 362 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 363 MovieClip [View] Frame 1
#initclip 54
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 364 MovieClip [ScrollView] Frame 1
#initclip 55
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 361 MovieClip [HScrollBar] in Symbol 364 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 362 MovieClip [VScrollBar] in Symbol 364 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 365 MovieClip [TextArea] Frame 1
#initclip 56
Object.registerClass("TextArea", mx.controls.TextArea);
#endinitclip
stop();
Symbol 378 Button
on (release) {
nextFrame();
if (_parent._parent.kopimi != undefined) {
svarboxen.selectable = true;
}
}
Symbol 381 Button
on (release) {
prevFrame();
if (_parent._parent.kopimi != undefined) {
svarboxen.selectable = true;
}
}
Symbol 391 Button
on (release) {
_root.GAMEZ.DoShit(-1);
}
Symbol 408 MovieClip Frame 1
MovieClip90.tabIndex = 1;
function processThisShit(fraganInQuestion) {
answer = "";
question = ("~~" + fraganInQuestion.toLowerCase().split(" ").join("")) + "~~";
i = 0;
while (i < DB.length) {
if (question == (("~~" + DB[i][0]) + "~~")) {
answer = DB[i][1];
break;
}
i++;
}
if (answer == "") {
i = 0;
while (i < DB.length) {
if (question.indexOf(DB[i][0]) != -1) {
answer = DB[i][1];
break;
}
i++;
}
}
if (answer == "") {
answer = "Your pathetic attempts to communicate means nothing to me.";
}
return(answer);
}
function db(qqq, aaa) {
if (aaa == undefined) {
aaa = forra;
}
DB[qwe] = new Array(qqq, aaa);
forra = aaa;
qwe++;
}
stop();
question = "";
answer = "";
DB = new Array();
qwe = 0;
forra = "";
q1 = "Welcome, welcome!";
q2 = "You have successfully haxXo4r3d this flash.";
q3 = "I can tell cuz I've seen quite a lot of successful haxXo4r3d flashes in my days.";
q4 = "Now suck on the sweet tit of mother success...";
db("help", "You control the green rotating square.\n\nDodge red squares, catch black squares.\n\nBlack circles are good, red circles are bad.\n\nThere might be other stuff too!\n\nIf your health reaches 0 you lose.\n\nSurvive.");
db("halp");
db("instruction");
db("quit", "Wanna stop talking to me?\nDid you try pressing ESC?");
db("exit");
db("stop");
db("~~i~~");
db("luckplusone", "Bonus: LUCK +1!\nPermanent\n\nWill make you luckier! In this game that is.");
db("luck+1");
db("luck+one");
db("luckplus1");
db("luckminusone", "Trap: LUCK -1\nPermanent\n\nWill make you unluckier. This goes for your real life too.");
db("luck-1");
db("luck-one");
db("luckminus1");
db("plus", "Some effects can have +# or -# after them.\n\nThis can mean:\nA) It's a follow-up effect to something you previously got.\nB) It increases/decreases a value in the game.\nC) It's a more powerful effect than the same without the plus/minus.\nD) It lasts longer.\n\nYou should be able to figure out which by the effect's name. Maybe.");
db("minus");
db("+");
db("-");
db("anonymous", "The author of this game is Anonymous.\n\nHe's really cool.\n\nMuch cooler than other people.\n\nIn fact he is so cool that he makes other people uncool.\n\nWhich is about the coolest thing ever.");
db("author");
db("anon");
db("about", 1337);
db("filesize");
db("original");
db("genuine");
db("modify");
db("alter");
db("file");
db("date");
db("year");
db("name");
db("current");
db("release");
db("version");
db("history");
db("changelog");
db("~~log~~");
db("changes");
db("production");
db("making");
db("scorebonus", 8);
db("pointbonus");
db("bonusscore");
db("bonuspoint");
db("scoreincrease");
db("pointincrease");
db("scoreboost");
db("pointboost");
db("dare", "Your life points will increase if you dare to stay close to a bloodthirsty enemy.\n\nThe closer you position your square to a red square without taking damage, the more points you will earn.\n\nThe faster the red square is moving the more points you will get from the dare.\n\n(To be clear: This only works on the red squares.)");
db("lifepoint", "Life points is the flow of points you get the longer you stay alive.\n\n- They increase with time.\n- They are relative to your health.\n- The longer you stay away from harm the more points you will get.\n- Avoiding bonuses will increase the flow of points.\n- The more you dare, the more you earn.\n- Danger zones gives you more life points.\n- Halved when you take damage.");
db("lifescore");
db("nobonus");
db("flow");
db("timepoint");
db("timescore");
db("topscore", "When the first game round ends you will notice how your score will start moving. That's the score being saved as your current personal best.\n\nIf you play again and manage to beat your own record the new top score will be saved in the same manner.");
db("record");
db("highscore");
db("best");
db("score", "Those big numbers in the background are your current score. They are sorta the whole purpose of this game.\n\nYou get points to build up your score from staying alive (\"Life Points\") and from catching black squares. A lot of things affects how many points you earn, even your game's frame rate. Once gained you can never lose a point though.\n\nYour top score will be saved only as long as the game remains open.");
db("point");
db("number");
db("danger", "Your life points will increase if you stay close to the edge of the game area, in the so-called \"danger zones\".\n\nThe closer you are to the edge of the game area the more you will be rewarded.\n\nPartying out of sight behind anon will also earn you some additional points.");
db("zone", "Some people are not Anonymous and never will be. That's saying a lot.");
db("fps", "The game is designed for running in 20 frames per second.\n The game will NOT drop frames on computers that cannot reach such a frame rate, their game will in fact run slower thus become a little easier.\n Instead I have chosen to make the score suffer at lower frame rates; if you for example only have 15 fps you will also only earn three quarters of your real score. 0 fps equals 0 points for that second.\n Try to lower the flash's quality setting if you have horrible FPS.");
db("framerate");
db("damage", "When you take damage:\n- Your health bar will decrease.\n- Your square will show a red symbol inside itself.\n- Your life point flow will be affected.\n\nTaking damage is bad. If you take too much damage it will ultimately lead to your demise.\n The closer a red square get to your squares' center the more damage you will take. You will also take more damage the faster the red square that hit you is moving.");
db("pain");
db("enemysquare", "The squares you wanna watch out for in this game are red.");
db("enemy", "This game has a couple of different enemies, mostly squares tho.\n\nRule: If it's red, it's dangerous.");
db("enemies");
db("~~cred", 2);
db("redsquare", "The red squares are your most normal AND feared enemy for they are the only ones that can actually kill you.\n\n* The closer they get to your square's center, the more damage they give.\n* The faster they move, the more they hurt (you that is).\n* They deal damage over time so don't linger inside of them.\n* With time they will gain perks.\n\nStay close to a red square without taking damage to earn dare points!");
db("reds");
db("demise", "As your health reaches zero your square will die and the round will end.\n\nWhen the round ends your score will be saved if it's a new record.\n\nA few seconds after a round ends a new round will begin and the game starts anew.");
db("gameover");
db("death");
db("die");
db("health", "Your square has a certain amount of health which will decrease when you take damage. Without health you can't have life and without life you will die.\n\nThe bar below your score is your current health.\n\nIt is possible to gain back health that you have lost, and it is possible to go over the amount of health you start with.");
db("life");
db("heal");
db("bar", "The game uses different bars to measure stuff. Mostly time.\n\nBut your health is also measured through a bar: The bigger that bar is the more health you have.\n\nIf there is no bar you do not have anything left of the thing represented by the bar, for that is how bars work most of the time in games.");
db("restart", "To restart the game (without quitting it and starting it again, which would reset any highscore) you have to take suicide.\n\nIt'll be over quickly.");
db("suicide", "An hero.");
db("hero", "Suicide.");
db("framespersecond");
db("frames/second");
db("rate");
db("frame", "This flash has more than two frames.");
db("desu", "DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU");
db("mudkip", "Mudkip? I LOVE MUDKIP!");
db("party", "I always party hard. You should too.");
db("stolen", "If you find this flash file on the Internet it has been STOLEN! Call the sheriff!");
db("internet");
db("key", "A key can unlock something or be pushed down.\n\nThere are some keys that can be pushed down in this game.\n\nBut nobody knows about them.\n\n\n\"I'm not a cheat!\"");
db("control", "Use the mouse and the keyboard.\n\nThe game also utilize hightly advanced features supported only through the use of a webcam and/or mic, however it's not enabled by default and I forgot to make a way to activate it. :(");
db("mouse");
db("keyboard");
db("\u0CA0_\u0CA0", 1);
db("candlejack", "Look, I won't include anything \"witty\" or \"funny\" about the Candle Jack meme, it's stupid.\n\nI wish everybody would just stop doing it, old memes are boring and have been done to death already so if we all could just move on that would be gre");
db("easteregg", "\u03A3(\u309C\u0434\u309C;)");
db("cake", "This is delicious!\n\nOM NOM NOM NOM NOW :3");
db("greensquare", "The green rotating square is you.\n\nIt moves to where you point your mouse (indicated by a tiny black crosshair). It does not move there immediately, your square have a maximum travel speed and also a certain acceleration.\n\nIncrease those two values through bonuses to move faster.\n\nBtw the bigger your square is the slower it rotates.");
db("rotating");
db("~~me~~");
db("player");
db("acceleration");
db("movement");
db("speed");
db("playa");
db("star", "Bright and shiney.\n\nSometimes twinkles.\n\nAn image of the past.");
db("trap", "However similar to bonuses, these red circles are NOT your friends.\n\nIf you happen to run into one of these \"traps\" your gaming experience will be a little less pleasant because a negative effect will be invoked.\n\nTrap effects will increase the difficulty in some random way.\n\nSome trap effects can be nullified by claiming a bonus of a similar nature.");
db("redcircle");
db("powerdown");
db("redring");
db("bonus", "Black circles are your friends for when you catch them they provide you with a bonus effect (unless you deny).\n\nRumor has it that forms other than circles also have been known to give bonuses, but nobody knows what they look like.\n\nBonus given is selected at random.\nThere are in total over 9000 bonuses.\n\nThe opposite of a bonus would be a \"trap\".");
db("blackcircle");
db("powerup");
db("blackring");
db("square", "This game sure has a lot of squares.\n\nLike a green square. A red square. Or a black square. Maybe even more!\n\nNah.");
db("rhombi", "Just write \"square\" instead.");
db("rectangle", "A square is a sort of rectangle, amirite?");
db("cube", "I would dig it. IN 3D PERHAPS!");
db("qube");
db("quadrilateral", "You're over doing it.");
db("circle", "Now when you mention \"circle\" my mind always wander off to black and red circles.");
db("oval", "Is dat sum circle?!");
db("ring");
db("triangle", "Red triangle enemies are smaller than red squares and always travel at the same pace.\n\nThey always spawn so that they will collide with you unless you move out of the way. If you're hit they will disappear, taking a fixed amount of your health from you.");
db("pyramid");
db("polygon", "Yeah but what's the polygon's name?");
db("blacksquare", "Take these and earn a fixed amount of points. Nothing more to it, works all the time. Feed your score today!\n\n\"Around blacks, increase your score!\"\n\nNote: As you eat you grow.");
db("blacks");
db("growth", "Notice how big your square is getting sometimes? That's because you can't stop eating fat tits!\n\nAs you collect black squares your size will indeed increase.\n\nGet some proper exercise to reduce yourself to your former self, OR discover new and exciting miracle diets in our bonuses!");
db("grow");
db("size");
db("big");
db("exercise", "Sweat away those unnecessary pixels by moving around a lot: The more you move the thinner your square will get.\n\nFor the lazy people out there we also have weight loss methods stored in our bonuses.");
db("reducesize");
db("small");
db("exersize");
db("weight");
db("~~black~~", "Black is a color. It's what the souls of human beings would be like if there is such a thing.");
db("~~red~~", "Red is a color. A EVIL color. Of fire and hate.");
db("~~green~~", "Green is what Anonymous is.");
db("~~blue~~", "The sky is blue and so is the sea.");
db("~~yellow~~", "Small children use this color when they draw small circles over and over again to represent the sun.");
db("~~white~~", "If you ever find snow that are absolute white, take a picture. It'll last longer.");
db("~~gray~~", "Not quite white but not quite black either. Isn't it wonderful?");
db("nigger", "Only if you say so.");
db("goal", "The object of the game is to collect points in order to build up your score and then beat your own personal best, or your friends' records.\n\nIf you reach a score of 1000000 I guess you can say that you went through the goal.\n\nBut it doesn't stop at that.\n\nsky=/=limit");
db("object");
db("quickpause", "Left-clicking will pause the game while you press down the button, and unpause it when you release the button. Actually this is more of a game engine freeze that I implemented to fix a weird bug that wasn't supposed to happen.\n\nWhen you perform a quick pause your frame rate will drop, giving you less score. Also a pause penalty will build up from 1-60 frames in the first half second while the game is frozen.");
db("click");
db("improvedreactiontime", "What I mean with \"improved reaction time\" is that you have more time to think of a place to take your cube while the game is frozen.\n\nBut since it cost you a lot of points to pause it's not very useful (except maybe to keep you alive...).");
db("weirdbug", "Ah, when clicking at just the right time before it could prevent things like ghosts from spawn, or making red squares stop in movement while becoming harmless. Also your green square would move strange if you clicked a lot, this is fixed now with the quick pause thingy. -- I've seen a square/circle leaving a \"ghost image\" of itself once after I've implemented the above, however it's rare (I wasn't doing something normal in the game) so I won't address it. Also if it happens it'll fix itself after a while.");
db("teleport", "If your square can move fast enough, you can teleport. Actually you and every other object in the game teleport all the time - just in such small distances that it seems like they are not. -- So, if the object is moving fast enough it can move through stuff. Just like in old games where you used this exploit to travel through walls. -- The exploit can be fixed by calculating every pixel, or 10 pixels, of distance one by one, but I didn't make it like that cuz I feel the game runs slow enough as it is.");
db("penalty", "This game has a pause penalty invoked for 60 frames after you unpaused the game. Since the game FPS should be 20 this means that 60 frames of PP usually equals 3 seconds.\n\nDuring the pause penalty all your incoming points are halved and also you cannot pick up bonuses or blacks.\n\nI put the PP in the game so that pausing wouldn't be so exploitable (\"improved reaction time\").");
db("~~pp~~");
db("pause", "You can pause in three ways: Pressing P, moving your mouse outside of the play area (if enabled) and left-click with your mouse (quick pause).\n\nWhen you pause the game your FPS will be reduced for the next second which will cost you some points.\n\nOn top of that there is also a pause penalty for 60 frames after you unpause the game.");
db("sage", "*shameless bump*");
db("~~u~~", "NO U");
db("ohshi", "I divided by zero.");
db("ohshi-");
db("volume", "There is a way to change the volume in the game. As many as sex different volume settings exists!\n\nPress V to change between them.\n\n(First press will set the volume to zero.)");
db("loud");
db("lower");
db("sound", "There are lots of sound effects in this game, press S to enable them.\n\nToo many for me to write sauce of them all here, decompile the game and poke around if you really want to know more about a sound (maybe the sound's linkage identifier will tell you something?).\n If you have not manually enabled/disabled the ambience in the game, turning on/off the sound will also turn on/off the ambient noices.");
db("sfx");
db("graphic", "This game requires a heavy computer to run in 20 FPS due to heavy graphics.\n\nWell... you just shouldn't use a light computer!\n\nBtw if you press G you will toggle some additional graphics.");
db("gfx");
db("secretmusic", 3);
db("hiddenmusic");
db("hiddentrack");
db("secretsong");
db("hiddensong");
db("secrettrack");
db("extramusic");
db("extrasong");
db("extratrack");
db("music", "The music loop in this game is from:\nDaft Punk - Revolution 909\n\nWhy didn't I get more tracks? Maybe a better one? Longer one?\n\nA) This is a anon_partyhard#.swf so there is only ONE tune. (.....)\nB) The game idea is based of the old flash game \"Squares 2\" which had this music and if I removed it people might not draw the connection.\n\nPress M to turn the music on/off.");
db("song");
db("tune");
db("sauce");
db("source");
db("track");
db("daft");
db("punk");
db("revolution");
db("909");
db("mfx");
db("squares2", "Squares 2? No never heard of it.");
db("squares2!", "Ok, ok, so MAYBE I've played Squares 2. It's almost like the sauce of this game really.");
db("background", "What don't you like to party hard? *sigh* FINE.\n\nI'll let you know that there is a simple way of turning the background to a boring old white color instead of this rainbow goodness, however you have to figure out how to do it yourself.");
db("flashing");
db("stopflashing");
db("epilepsy");
db("fuck", "Yes please.");
db("sex");
db("suck");
db("blowjob");
db("scat");
db("shit");
db("gore");
db("guro");
db("headjob");
db("rimjob");
db("hotcarl");
db("hotlunch");
db("filthysanchez");
db("glassbottomedboat");
db("fisheye");
db("piledriver");
db("donkeypunch");
db("chilidog");
db("seks");
db("clit");
db("vag");
db("pussy");
db("fitta");
db("loli", "loli haet pizza");
db("lol", "Lots of laugh. All over the place.\n\n<i>Did you know \"LOL\" is a shortcut?</i>");
db("shortcut");
db("hah", "I'm glad you find something amusing. Cuz I don't.\n\nNot ever.");
db("hoh");
db("heh");
db("~~404~~", "The help you were looking for cannot be found.");
db("please", "Pretty please?");
db("prettyplease", "Yay! :D");
db("pedro", "Ha ha!\n\nEstoy usando el Internet!");
db("right-click", "Like it is with all flashes you will get a context menu from right-clicking the flash document.");
db("rightclick");
db("context");
db("menu");
db("time", "There is a way to show for how long you have played, and how long your record-round lasted.\n\nHow? Press and hold T. (To make it stay permanent you can tap T five times.)\n\nWhile those things show your \"score per second\" stat during the record-run will also be calculated for you.\n Notice that \"time\" is game-time, as in 20 shown frames = 1 second, not real time.");
db("~~sps~~");
db("s/s");
db("score/second");
db("scorepersecond");
db("konami", "What? What code? Are you a spy? I know nothing (about everything).");
db("contra");
db("code", "Hm? You want the source code of the game or something? But you already have it, remember?\n Too bad flash doesn't export commented-out text in the source though, I bet that would had come in handy when trying to understand the engine...\n Best of luck! (Btw my code is messy because, well, at first this whole thing really wasn't planned to be this big of a project. At all. In fact, all I was going to do was to just copy \"Squares 2\" straight-off.)");
db("~~imacheat~~", "Well, since you put it that way... guess I can at least tell you what keys the game do recognize (at some point or another). But you'll have to figure out what they do on your own:\n\nA, B, D, G, I, L, M, O, P, S, T, V, X, 0,\nSpace, Backspace, Arrow keys\n\nOh and the mouse-buttons. But that's not really a key isn't it?");
db("~~i'macheat");
db("cheat", "You can't possibly think of cheating in a game such as this!\n\n...\n\nI know what you're thinking, but who would wanna play a hacked version anyway?");
db("hack");
db("border", "If you want to you can make it so that when you place the cursor outside of the playarea the game will automatically pause/unpause itself (with 60 frames of pause penalty to follow).\n\nMight be useful.\n\n...\n\n...what?\n\nOh. X.");
db("autopause");
db("bounds");
db("playarea");
db("gamearea");
db("good", "This game is the ultimate battle between Good & Evil\u2122! Pretty bad-ass in other words.\n\nAnd you even get to decide what side you're on! Fantastic!");
db("evil");
db("bad");
db("donkey", "PUNCH!");
db("donkeypunch", "OW!");
db("punch", "*blocked*");
db("panch");
db("panchbuttah", "You Win! :D");
db("hello", "ITTY BITTY BABY ITTY BITTY BOAT");
db("prove");
db("confirm");
db("hi");
db("greetings");
db("salutations");
db("yo");
db("sup");
db("ittybittybabyittybittyboat", "I DON'T BELIEVE IT!");
db("idontbelieveit", "HABEEB IT");
db("habeebit", "TWINKIE HOUSE!!!");
db("twinkiehouse", "Welcome /b/rotha!");
db("twinkyhouse", "...\n\nNewfag pretending to be oldfag?");
db("welcome", ":>");
db("^_^", "-.-");
db("^^");
db("^__^");
db("^___^");
db("^____^", "No more...");
db("-.-", "_._");
db("t_t", "\uFF77\uFF80\u2501\u2501\u2501\u2501\u2501\u2501(\uFF9F\u2200\uFF9F)\u2501\u2501\u2501\u2501\u2501\u2501 !!!!");
db("peddo", "\u30DF( \u25CF \u03C9 \u25CF )\u5F61");
db("tit", "( o Y o )");
db("boob");
db("breast");
db("chest");
db(":)", "\uFF08\u3000\u00B4_\u309D`\uFF09\uFF8C\uFF70\uFF9D");
db("search", "Oh no, I'm not going to make it that easy. (I really want you to mumble things like \"gay\" etc you know.)\n\nI must admit it was really tempting to put a \"hidden\" search function in the game that lets you search for words in all my responses, but it's much more to let you try to figure out specific keywords on your own instead.");
db("gay", "Anonymous is always a little bit gay.\n\nA little bit everything actually.\n\nExcept woman.\n\nNever woman.");
db("fag");
db("homo");
db("woman", "I have a penis!\nI go pee-pee standing up!\n\nNo ladies on da net!!!!");
db("girl");
db("lady");
db("ladies");
db("bitch");
db("man", "Damn right! Ho-ha!");
db("brother", "I aint your brotha! You've gotta prove who you are to be my brotha!");
db("brotha");
db("secret", "It isn't a secret anymore when it has been found out.");
db("manticore", 9);
db("harpy", 10);
db("deny", "You can press \"D\" within three seconds after taking a bonus to deny the effect of it.\n\nIf you for some reason feel that a bonus effects your game in a negative manner you simply hit D after getting it and it will be as if you never obtained it (the \"no bonus\" life points boost will however not revert back).\n\nA text will show up confirming the deny.");
db("regret");
db("denied");
db("wouldyoukindly", "I had it removed.");
db("cruise", "I DON'T EVEN HAVE TO MAKE SENSE, YOU HEAR");
db("rotate", "Your square rotates. The bigger it gets the slower it turns, and vice versa.\n\nThere may be other ways to slow down the rotation other than growing in size...");
db("rotation");
db("turn");
db("copy", 6);
db("paste");
db("~~swe~~", "Yes, I'm from \"The Kingdom of Sweden\", aka just \"Sweden\" aka \"Sverige/Svea Rike\" (in Swedish).\n\nHej p\u00E5 dig. \u00C5\u00C4\u00D6. And such.\n\nAnyone with half a brain should be able to work this out by simply looking at the game's source code.\n\nOr by listening to some of the other anon_partyhard#'s.");
db("sweden");
db("swedish");
db("tjena");
db("hej");
db("hall\u00E5");
db("\u00E5");
db("\u00E4");
db("\u00F6");
db("svea");
db("rike");
db("hola", "NO I'M NOT FROM SPAIN, LEARN ENGLISH");
db("~~command.txt~~", "There is no cow level. ;3");
db("effect", "When you take a bonus/trap it will effect the game in some way.\n\nA text will appear and tell you what the effect is. If the text ends with \"!\" it is a positive effect, if not it is a negative effect.\n\nIf there is a bar behind the text it means that this effect is timed and will go away when the bar is no longer visible (it will shrink in size from right to left). If there is no bar the effect is permanent.");
db("status");
db("negative");
db("positive");
db("invulnerability", "Bonus: INVULNERABILITY!\n5 seconds\n\nYou will not be able to lose any health.\n\nYou will still \"take damage\", only that it will not hurt your square any.");
db("immunity", "Bonus: IMMUNITY!\n20 seconds\n\nWhen you are immune you cannot pick up traps.");
db("reluctance", "Trap: RELUCTANCE\n15 seconds\n\nYou can't pick up any bonuses.");
db("halveddamage", "Bonus: HALVED DAMAGE!\n7 seconds, stacks\n\nThis will make you take 50% less damage when taking it.\n\nThe ideal present for your loved one!");
db("doubledamage", "Trap: DOUBLE DAMAGE\n7 seconds, stacks\n\nThis will add 100% damage to what you're already taking!\n\nNot very pleasant.");
db("stack", "If a bonus/trap stacks it means that if you get two of that kind at the same time they will add to each other, as long as they both exists.\n\nExample: You have two \"Halved Damage\" bonuses at the same time. You now only take 25% of the damage you would originally take.\n\nMake a mental memo that if you get a opposite similar effect at the same time they could balance each other out entirely.");
db("duration", "Duration is how long something lasts. Duh.");
db("~~!~~", "'Tis just a box!");
db("~~x~~", "Moar like XXX I'd say.");
db("xxx", "Mm, pussy...");
db("10001", "Bonus/Trap: 10001!!!\n2 minutes\n\nCongratulations, you just rolled number 10001 out of 10001.\n\nTHIS IS YOUR RUCKY DAY:\n* You will gain 0.5 hp per second (will also increase your max hp). * You will take 25% less damage. * Your acceleration and square speed are maxed. * Your luck is maxed.\n\n<i>\"Finally a good trap!\"</i>");
db("imnotacheat", "Well get lost then!");
db("i'mnotacheat");
db("lowermaxspeed", "Trap: LOWER MAX SPEED\nPermanent\n\nWill lower your green squares' maximum speed limit. It can't travel as fast as before.");
db("worseacceleration", "Trap: WORSE ACCELERATION\nPermanent\n\nWill make your green squares' acceleration up to its max speed slower. It'll take longer to reach max speed.");
db("highermaxspeed", "Bonus: HIGHER MAX SPEED!\nPermanent\n\nWill increase your green squares' maximum speed limit. It can travel faster than before.");
db("betteracceleration", "Bonus: BETTER ACCELERATION!\nPermanent\n\nWill make your green squares' acceleration up to its max speed faster. It'll take shorter time to reach max speed.");
db("fasterspinning", "Trap: FASTER SPINNING\nPermanent\n\nWill make your square spin 60% faster.");
db("moreweightgain", "Trap: MORE WEIGHT GAIN\nPermanent\n\nYou will increase 1 pixel more in size per black square.");
db("flawedexercise", "Trap: FLAWED EXERCISE\nPermanent\n\nWill cut the weight you lose from moving around in half.\n\nIn other words it will take longer to decrease in size from moving your square.");
db("slowerspinning", "Bonus: SLOWER SPINNING!\nPermanent\n\nWill make your square spin 60% slower.");
db("lessweightgain", "Bonus: LESS WEIGHT GAIN!\nPermanent\n\nYou will increase 1 pixel less in size per black square.");
db("properexercise", "Bonus: PROPER EXERCISE!\nPermanent\n\nWill double the weight you lose from moving around.\n\nIn other words it will take shorter to decrease in size from moving your square.");
db("percent", "Percent values from effects are calculated from the original value.\n\nSay you start out with 100 in something. You gain a effect that gives you 30% more of that, which puts you at 130. If you gain that effect again you will then end up with 160 (and NOT 169).\n\n<i>Er.. efter making some changes in the game this is now only true sometimes. Hell, like it matter that much to be consistent!</i>");
db("~~%~~");
db("slowenemies", "Bonus: SLOW ENEMIES!\n8 seconds\n\nThe red squares will be slowed by 50%.\n\nAlso slowes their growing pace by 50%.");
db("fastenemies", "Trap: FAST ENEMIES\n5 seconds\n\nThe red squares's speed will increase by 50%.\n\nWill also improve their growing pace by 50%.");
db("moreblacks", "Bonus: MORE BLACKS!\nPermanent\n\nWith this one more black square will be able to spawn and be in the game at the same time.");
db("lessblacks", "Trap: LESS BLACKS\nPermanent\n\nOne fewer black square will be able to spawn. The playground won't seem so black anymore...");
db("lessreds", "Bonus: LESS REDS!\nPermanent\n\nWill remove one red square from the game.\n\nA new one will come and take its place eventually.\n\nThis effect will also delay the next red square from comming into play by five seconds.");
db("morereds", "Trap: MORE REDS\nPermanent\n\nWill add one red square to the game.\n\nHopefully there will still be room for you to exist.");
db("luck", "Luck in this game is how big chance you've got to get the really good bonuses. (Actually it's more like it decreases the chance you have of NOT getting a good bonus...)\n\n\"Luck\" will boost your good luck, but there's no help against bad luck - at least in this game there aint. ;)\n Good luck will also prevent hostile elements from spawning near you, or cause missiles to have launch failure (etc). In short a increase of luck is a good thing!");
db("god", "Close but not here.\n\nAlso there is no God.\n\nThis game is proof.");
db("modest", "Pff. What's that?");
db("bot", "No, I'm not a script. I'm really your computer communicating to you.\n\n\nPut a blanket around me, I'm cold!");
db("igod");
db("delay", "If there's a delay between taking a bonus/trap and getting the effect it's because you have already taken a lot of the effects that that bonus/trap can provide.\n\nIt's because of the lazy programming.\nSorry 'bout that. ^^;");
db("lazy", "I am lazy as hell.");
db("ambien", "To turn ambient noice on/off press A.\n\nThe game's ambient has nothing to do with anything, it was just something I threw together to experiment. I did it for the lulz.\n\nIt will simulate a distant fireworks festiv.. er, <i>battlefield</i>, and you will also hear cicadas and crickets. Annoying or soothing? I can't tell.\n\nIt plays on very low volume, music and sound effects will drown it. Will sound bad if you have low framerate.");
db("ambian");
db("firework");
db("battlefield");
db("cicada", "Cicadas (creepy winged bug) and crickets (long legs, often green) are in the game's ambiance.");
db("cricket");
db("lulz", "I do lots of things for the lulz.\n\nTake spamming of flashes for example.\n\nBut hey, it's ok! Cuz -you know the words- I did it for the lulz!");
db("raptorjesus", "OMG!!!");
db("raptor", "Jesus!");
db("jesus", "Raptor?");
db("~~endlessloop~~", "Endless Loop, n.: see Loop, Endless.");
db("~~loopendless~~", "Loop, Endless, n.: see Endless Loop.");
db("~~loop,endless~~");
db("~~crash~~", 4);
db("~~makeendlessloop~~");
db("/0");
db("dividebyzero");
db("dividedbyzero", "Nuh-huh! You did not! You can't!");
db("youcan't", "Oh, but I can.");
db("youcannot");
db("youcant");
db("youcan", "I know I can.");
db("doom", "This is not the way.");
db("didso", "Prove it.");
db("~~~~", "You give nothing, you get nothing.");
db("joke", 5);
db("omnom", ":3");
db(":3", "om nom nom nom nom");
db("lion", ">:3");
db(">:3", "JESUS CHRIST IT'S A LION GET IN THE CAR");
db("~~gg~~", "Sure, let's play again sometime.");
db("goodgame");
db("gagbonuses", "Super Trap: GAG BONUSES\nPermanent\n\nThis will unlock a series of new bonus effects! Awesome.\n\n(Never mind the fact that those effects do nothing at all and will only waste your pickup.)");
db("tickle-proof", "Gag Bonus: TICKLE-PROOF!\n5 seconds <i>(IRL)</i>\n\nFor a moment you will be immune against all tickle attacks against you in real life, no matter where you are tickled you will not laugh. Not even if someone tickles your funny bone.");
db("tickleproof");
db("goodbreath", "Gag Bonus: GOOD BREATH!\n5 seconds <i>(IRL)</i>\n\nMm, minty.\n\nWhile this effect is in effect your breath will smell nice.");
db("nofarting", "Gag Bonus: NO FARTING!\n5 seconds <i>(IRL)</i>\n\nNot you or anybody else in the entire world (and universe) will be able to let one go while you have this effect.");
db("onefreephonecall", "Gag Bonus: ONE FREE PHONE CALL!\nPermanent <i>(IRL)</i>\n\nAlthough this offer is permanent you will only get one (1) free phone call. So use it wisely.");
db("buttsecks", "Gag Bonus: BUTTSECKS!\nPermanent <i>(IRL)</i>\n\nIf you are a guy you will be able to have anal intercourse with any girl you order to have sex with you.\n\nIf you are a girl (=have found this flash on someone's hard drive, offline) you will always give anal sex to every guy you sleep with from now on (including the next guy you see this year).");
db("lesspimples", "Gag Bonus: LESS PIMPLES!\nPermanent <i>(IRL)</i>\n\nFrom this day you are ALMOST free from pimples for this awesome effect gives you a 10% reduction in pimple growth with an added -5% per every 100 days after today.");
db("biggerpenis", "Gag Bonus: BIGGER PENIS!\nPermanent <i>(IRL)</i>\n\nCongratulations, your penis will be increased in both length and thickness by 50-100% (exact percentage is randomized). It'll happen next time you fap.\n\nIf you are a girl (=have found this flash on someone's hard drive, offline) you will wake up tomorrow with an average sized penis above your cunt. You're now a dickgirl.");
db("cheapersoda", "Gag Bonus: CHEAPER SODA!\nPermanent <i>(IRL)</i>\n\nWhenever you buy soda from now on the cashier will make a mistake and charge you only half prize (does not include Jewish-owned stores).");
db("betterlooks", "Gag Bonus: BETTER LOOKS!\nPermanent <i>(IRL)</i>\n\nYour little \"look\" you've been working on over the years will go from shit to awesome all thanks to this effect.\n\nMaybe you'll be popular now?");
db("higherspermcount", "Gag Bonus: HIGHER SPERM COUNT!\nPermanent <i>(IRL)</i>\n\nActually this is better than what it sounds like, from now on you can control how much you cum with your mind. Just remember to think \"stop\" or else you'll never quit jazzin'.\n\nIf you are a girl (=have found this flash on someone's hard drive, offline) you will always get pregnant, even if protection were used. And you'll forget about all guys you sleep with.");
db("programming", "My programming is lazy. But I have tried my best to optimize the game! Yet it still runs slow on some computers older than this game. Heh, what's up with that? Lots of things to calculate each frame...\n\nRunning the game in a browser will make it even slower too!");
db("optimize");
db("slow");
db("fast", "The game caps at 20 FPS, flash sees to that. However if that is too fast for you, er, I guess you could try and, uh, keep you computer busy with other processes in the background, I guess? 0_o Your score will be less at lower FPS though.\n\nYou should be glad you can run in 20 FPS ffs.\n\nfgsfds");
db("fgsfds", "Fuck <i>dis</i>? Fuck you!");
db("nou", 7);
db("chan", "Never heard of it.");
db("kurwa", "That's one of the only two words of Polish I know the meaning of.");
db("siema");
db("perk", "The red squares can have these perks:\n\n- Diagonal moving\n- Growing size\n- Longer side\n- Speed maniac\n- Missile shooting\n- Ghost summoning\n- Mine laying\n\nBeware, one single red square can have more than one perk!");
db("special");
db("abilities");
db("equip");
db("diagonal", "Enemy perk: Diagonal moving\n\nThis means that the red square isn't just moving up or down, left or right; the bastard is moving in two of those directions at the same time!\n\nThe further on the game progress the faster the square will be able to move in the sister direction.");
db("growingsize", "Enemy perk: Growing size\n\nThe red square is growing as he travels across the screen, when it exites it'll be bigger than when it came in.\n\nThe square's sides grow at the same pace in height/width (preserved aspect ratio).");
db("longerside", "Enemy perk: Longer side\n\nOne of the red square's sides has stolen some of the length from its partner and become longer at the cost of the other side becomming shorter, making the square thinner as end result.\n\nHowever later on in the game the other side might not be as affected by this as it is early in the game.");
db("speedmaniac", "Enemy perk: Speed maniac\n\nSome red squares just never learn; when obtaining this perk it will move faster then the current maximum speed limit!\n\nAnd these youngsters just keep getting worse by the minute!");
db("missileshooting", "Enemy perk: Missile shooting\n\nArmed to the teeth some red square's will be, keep this in mind as you dare further in the game.\n\nSometimes a square will come carrying green-seeking missiles. Just one. Or... maybe even more than that!\n\nAnd if they get their hands on one you bet they will even start fiering those \"smart\" kind of missiles.");
db("smart", "Smart missiles deal the same damage as ordinary missiles, however they will lower their speed if they cannot locate you after a while.\n\nIf that don't do the trick they will reposition themselves and search for you from there.\n\nThese missiles can also target you up to three times as long as ordinary missiles.");
db("kinda~~", "Concerning ghost missile \"A\" it's just a matter of getting out of their way.\n\nAs soon as you get behind it it'll lose track of you. Or if you get too much to the side of its tip.");
db("kindb~~", "Ghost missile \"B\" is a little trickier.\n\nThis slow kind will stick around for a long time trying to get at you. But only as long as it has a lock on you.\n\nYou see the trick is getting far away from them, if you do that they will just spin around aimlessly and soon self-destruct.\n\nIt'll be easier getting out of range from it a couple of seconds after it spawns.");
db("ghostmissile", "Ghost missiles can only come into play through a ghost boss. Following the golden rule, they cannot kill but instead takes one eight of your life.\n\nThey come in two kinds:\n\n* Kind A: Fast, growing and not-so-homing.\n* Kind B: Slow, small and very homing. At least at the start.\n\nTis up to the boss which one of these he feels like throwing at you.");
db("bossmissile");
db("normalmissile", "Normal missiles are smart missiles and, uh, non-smart missiles.\n\nUnnormal missiles are ghost missiles.\n\nNeither of these will kill you but can still hurt like hell.");
db("unnormal");
db("nonsmart", "Non-smart missiles are normal missil- aw heck, didn't I do the endless loop thingy already? Where's my water?\n\n...\n\nThere. Uhh... wait... I guess ghost missiles aren't smart missiles either. But they sure ass hell arean't normal so I'll just go ahead and drop that track of thought right there!\n\nThere.");
db("non-smart");
db("not-smart");
db("notsmart");
db("missile", "Normal missiles can't kill you, but they will take away 25% of your current health if they hit you.\n\nThe missiles will lose their target after a while and fly out of sight, but be careful not to stumble into them on their way out. Those things hurt even after they have been defeated.");
db("seeking");
db("homing");
db("ordinary");
db("summon", "Enemy perk: Ghost summoning\n\nIf a red square is having trouble getting you he might sometimes call for help. That's when the ghosts come out...\n\nLuckily it's usually just one ghost.");
db("boss", "Ever seen a ring with a dot in? That ring is a \"Ghost Boss\" and that dot is his eye. Yeah.\n\nThe big difference between normal ghosts and ghost bosses I believe to be that the bosses have the ability to fire ghost missiles at you.\n\nWait a tick, that <i>is</i> the only difference! Man, I'm not as creative as I thought.");
db("ghost", "Ghosts in the game are those squareish-rings that comes flying at you. They will go away by themselves after a moment, try to avoid them in the meantime. Even though ghosts can't kill you they will do away with a third of your current health every time they hit you.\n Ghosts fade in and out from invisibility - and they will still damage you even if you can't see them!\n Sometimes if you're unlucky a ghost boss will come to deal with you himself instead of sending a minion.");
db("invisible");
db("fade");
db("minion");
db("goldenrule", "Only red squares can kill you.\n\nAs long as you stay away from them you can play forever.");
db(".....", "What? Are you calling me a <i>liar</i> sir??");
db("liar", "Well I never!");
db("hell", "Where you're going.");
db("heaven", "Where you aren't going.");
db("heck", "Awww shucks!");
db("gosh");
db("darn");
db("drats");
db("shucks", "Doesn't work any good if you don't picture that little girl huh? From a... commercial...? Was it?...");
db("aw", "You're sad. Now you make ME sad!");
db("~~never~~", "<i>Never.</i>");
db("~~ever~~", "Woa.");
db("difficult", "The game's difficulty increases with time.\n\nEnjoy the first minute.\n\nIt's normal to die between two and three minutes. If you survive for more than three minutes I congratulate you. More than four minutes = ZOMG!! Five and over? Meh, you got lucky.");
db("easy");
db("medium");
db("hard");
db("superbonuses", "Bonus: SUPER BONUSES!\nPermanent\n\nCongrats, you now have a chance to get super bonuses (rotating triangles). What you get from those are a little bit more special than what you get from normal bonuses.");
db("supertraps", "Trap: SUPER TRAPS\nPermanent\n\nLooks like you now have chance to get super traps. They will give you negative effects that are a bit worse than what you get from normal traps.");
db("transparentanon", "Super Bonus: TRANSPARENT ANON!\nPermanent\n\nYou now have the benefit of being able to see what's happening behind anon.\n\nYou will lose one danger zone but at least now you can see shit.");
db("darkness", "Super Trap: DARKNESS\n10 seconds\n\nInstead of being able to see the entire playfield you now only have a small hole you can see your square through.\n\nThe fatter your square is the more dangerous this will be.");
db("apology", "I meant to put in 3 ton of more things in this game, but reality caught up with me. You have no idea how many more ideas I have, but I can't waste any more time on a project like this. I've experiments to run and there is research to be done.\n\nThis is it.");
db("sorry");
db("incomplete");
db("lie", "You will get cake when you finsish this game.");
db("somethingyouwouldntwriteyourself", "You noticed it, didn't you? You can use this to get the last question you submitted again.");
db("somethingelseyouwouldntwriteyourself", "You noticed it, didn't you? You can use this to get the last thing you wrote before getting the last question you submitted.");
db("poison", "Super Trap: POISON\n10 seconds\n\nAs long as you have this effect you will take 1.333 damage per second. The poison cannot kill you.\n\nYou can get rid of this effect by taking a antidote.");
db("antidote", "Special Bonus: ANTIDOTE!\n5 seconds\n\nYou will automatically get this effect from a bonus if you have a poison effect on you.\n\nThis effect will weaken the poison effect by 20% for each second, after 5 seconds the poison will be nullified entirely.");
db("aidsamagad", "Special Trap: AIDS\nEnough to last a lifetime\n\nPool's closed due to aids.\n\nBut some could not be saved.\n\nEnjoy your aids.");
db("aids", "Enjoy it.");
db("moremines", "Trap: MORE MINES\nPermanent\n\nOne more mine are now allowed on the playing field.");
db("biggersquare", "Trap: BIGGER SQUARE\nPermanent\n\nYour green square will be a bit bigger.");
db("smallersquare", "Bonus: SMALLER SQUARE!\nPermanent\n\nYour green square will be a bit smaller.");
db("hugesquare", "Trap: HUGE SQUARE\nPermanent\n\nYour green square will be a lot bigger.\n\nLOL XBOX!\n\nFat-tits.");
db("tinysquare", "Bonus: TINY SQUARE!\nPermanent\n\nYour green square will be small. It'll be a lot easier to dodge stuff.");
db("greaterheal", "Super Bonus: GREATER HEAL!\n10 seconds\n\nAh. You will get back 40 health (4 per second).\n\nThis is awesome to get.");
db("heal", "Bonus: HEAL!\n10 seconds\n\nAh. You will get back 20 health (2 per second).\n\nThis is shu~weet to get.");
db("minorheal", "Bonus: MINOR HEAL!\n10 seconds\n\nAh. You will get back 10 health (1 per second).\n\nThis is great to get.");
db("noturnpenalty", "Bonus: NO TURN PENALTY!\nPermanent\n\nYour green cube can now change direction without having to decrease speed/stop. You can now continue to accelerate to maximum speed regardless of how straight you're going.");
db("morebonuses", "Bonus: MORE BONUSES!\nPermanent\n\nThis will make it possible for a new bonus to appear after much shorter time after the last one.\n\n\"More bonuses per minute.\"");
db("morefrequentbonuses", "Bonus: MORE FREQUENT BONUSES!\nPermanent\n\nWill increase the chance of a bonus spawning when it has the chance. It'll be less long gaps in time between bonuses.");
db("slowerbonuses", "Bonus: SLOWER BONUSES!\nPermanent\n\nWill make bonuses travel 25% slower so they are easier to get.");
db("perfectmovement", "Bonus: PERFECT MOVEMENT!\n10 seconds\n\nDuring this time your cube will follow the mouse pointer flawlessly with unlimited speed and acceleration.\n\nIf you are fast enough on your mouse you will teleport.");
db("lessmines", "Bonus: LESS MINES!\nPermanent\n\nThis will set the maximum allowed mine count to be the current amount of mines minus one.\n\nWill not remove any mines but it will take longer until the next mine can be deployed.");
db("slowerreds", "Bonus: SLOWER REDS!\nPermanent\n\nAll red squares will now travel 15% slower. The later in the game you get this bonus the better effect it'll have.");
db("longerbonuseffects", "Bonus: LONGER BONUS EFFECTS!\nPermanent\n\nAll bonus effects will now last 25% longer. Aww yeaa.");
db("lesssmartmissiles", "Bonus: LESS SMART MISSILES!\nPermanent\n\nWill decrease the chance of a missile spawning being smart by 10%.\n\nNot 10% of the current chance, ten from the total.");
db("fewermissiles", "Bonus: FEWER MISSILES!\nPermanent\n\nWill greatly reduce the chance of a missile being fired at you.");
db("shorterlastingmissiles", "Bonus: SHORTER LASTING MISSILES!\nPermanent\n\nMissiles will now last 0.7 seconds shorter. That's almost three quarters of a second!");
db("lessghostbosses", "Bonus: LESS GHOST BOSSES!\nPermanent\n\nWill decrease the chance of a ghost spawning being boss by 5%. Wow.\n\n(It's a lot more than you might think.)");
db("fewerghosts", "Bonus: FEWER GHOSTS!\nPermanent\n\nWill greatly reduce the chance of a ghost coming to haunt you.");
db("shorterlastingghosts", "Bonus: SHORTER LASTING GHOSTS!\nPermanent\n\nGhosts will now stay 1.5 seconds less.");
db("noreds", "Bonus: NO REDS!\n6 seconds\n\nDuring this time no red squares will spawn. For a brief moment you are free from the main enemies!");
db("noghostbosses", "Bonus: NO GHOST BOSSES!\n45 seconds\n\nThree quarters of a minute where you don't have to worry about any ghost bosses spawning.");
db("nomissiles", "Bonus: NO MISSILES!\n10 seconds\n\nTen seconds without any missile launch.");
db("noghosts", "Bonus: NO GHOSTS!\n10 seconds\n\nTen seconds without any ghost being able to spawn.");
db("laying", "Enemy perk: Mine laying\n\nIf the maximum allowed amount of mines has not yet been reached, red squares can deploy mines.\n\nThese are most often placed close to the border of the play field, however if you're unlucky they can be placed further in.\n\nThere are two types of mines:\n- Normal mines\n- Jump mines");
db("jump", "A rotating mine?\nThat's a \"Jump mine\".\n\nJump mines are like normal mines, however they have been given a small amount of AI: if you get close to a jump mine it will try to launch itself at you.\n\nThese mines are a little harder to avoid and might cause some confusion since they will change location efter a jump. Remember where they land!");
db("mine", "Only taking one tenth of your current life when you happen to run into them, mines are more for just stopping your no-damage-streak, meaning that your flow of Life Points will be reduced.\n Upon deployment the mine will set out four bars from its center. After they are out it can cloak itself (and move if it's a Jump mine).\n Mines last forever. However there can only be \"X\" amount of mines on-screen at the same time. \"X\" will increase by every minute.");
db("cloak", "Mines can cloak themselves. This means that you won't be able to see them until you get close to them.\n\nThe later in the game it is, the better all mines will be to cloak itself - even if a mine was deployed early in the game it will get better at cloaking itself the longer it has been out.");
db("drag", "The SUPER SECRET BAR THAT ONLY THE MOST ELITE KNOW ABOUT (the one below the play area that shows the current music playing) can be hidden (moved) if you want to.\n\nPause the game with \"P\" and you will be able to drag it around by holding down on its light-gray borders.");
db("move");
db("hide");
db("post-it", "If you press \"O\" you'll get a small note on screen about the last effect you got.\n\nPress 0 again to remove the note.");
db("postit");
db("lookup");
db("checkup");
db("ok", "Did you know that \"okay\" is the world's most known/recognized word?");
db("okay");
db("okej");
db("okaj");
db("trivia");
db("keepitreal", "Greets goes out to all Anonymous.");
db("monsquaz", "Greets goes out to all Anonymous (and Monsquaz).");
db("kek", "KEKEKEKEKEKEKEKEKEKEKEKEKEKEKEKE\nKEKEKEKEKEKEKEKEKEKEKEKEKEKEKEKE\nKEKEKEKEKEKEKEKEKEKEKEKEKEKEKEKE\nKEKEKEKEKEKEKEKEKEKEKEKEKEKEKEKE");
db("round", "If you would like to know more about a round you previously played go ahead and press R.\n Statistics of all your played rounds since last start have been automatically saved behind the scenes and are presented here in three easy-to-remember quantities: Short, Detailed and Shitflood.\n Copy your information and post it on your fav board! Compete with your friends! (Actually this was just an idea that stuck in my mind, don\u2019t think anyone will ever use this crap.)");
db("statistic");
db("stats");
db("shitflood");
db("short");
db("detailed");
db("shitstorm", "I know, I know, but shitflood just sounds better in this case I think.");
db("adog", "I'll buy a dog after all this is over.");
db("quality", "Changing the games quality to low/medium will probably change your FPS to the better...if you have a old computer or are running in fullscreen (slash higher than 550x400).\n I was pondering if I should make the game automatically change its quality setting judging by the average FPS over a 4 second period, but I dropped that ball since I concluded that changing the quality setting doesn't do much since it's the calculations that takes up most CPU and not the drawing. (...) Flash... :P");
db("actionscript", "This game was created in Ado.. I mean, Macromedia Flash CS3 Professional version 9.0. The file was exported to target Flash Player 8.\n\nUsed ActionScript 2.0 to create this game. Why not ActionScript 3.0? To be honest I haven't tried making anything in AS3 yet, but it's probably a lot faster than AS2. Maybe some other time.");
db("flash");
db("fullscreen");
db("550x400");
db("550400");
db("blackfiesta", "Bonus: BLACK FIESTA!\n6 seconds\n\nPut on your sombrero and get moving, for now it's a real party!\n\nDuring these few seconds a whopping 10 number of blacks are allowed on screen at the same time! Pick them as fast as you can; as soon as one is gone another one is queued for spawn (meaning a couple of lazy blacks can arrive even after the event's over).");
db("hawkeyes", "Bonus: HAWK EYES!\nPermanent\n\nYour perception eludes this world; you not only can spot a mine a mile away, you can even see through the invisibility of ghosts! Or how to say, <i>not</i> see through it...? Er. They can't fade in and out of vision now. There.");
db("minespecialist", "Bonus: MINE SPECIALIST!\nPermanent\n\nYour elite skills now make jump mines fail to jump at you 50% of the time, and if you happen to step on a mine there's a 15% chance that you remove the mine from the game without a replacement being deployed for it. If removal doesn't succeed you'll instead have a 35% chance that the mine won't explode.\n\n<i>\"How do I removed mine?\"</i>");
db("dodging", "Bonus: DODGING!\n20 seconds\n\nIt's a missile - duck and cover!\n\nDuring this period of time your square will be a lot more agile; you will have a 100% dodge chance against normal missiles, 90% chance against smart missiles & ghost missiles, and 80% chance against ghosts. You can't dodge mines though.");
db("untouchable", "Bonus: UNTOUCHABLE!\n7 seconds\n\nNothing can harm you because nothing can touch you. While you have this effect you can't hit traps and your life points will never suffer.\n\n<i>\"You can't touch this.\"</i>\n- Anon");
db("invisibility", "Bonus: INVISIBILITY!\n30 seconds\n\nYou won't get detected by jump mines, ghosts or missiles. They will still hurt like a bitch if you collide with them however so stay out of their way while they look for you.\n If you take damage or run into a trap you will blow your cloak thus revealing yourself, if that happens you will have to stay away from harm's way for 2 seconds in order to vanish again.");
db("warnings", "Bonus: WARNINGS!\nPermanent\n\nIf a red square spawns equipped with one or more missiles/ghosts, a symbol will be shown in the background and a notification of where the red square was seen will be placed.\n \"X\" = Missile(s), \"O\" = Ghost(s). The red squares will themselves also be marked with these.\n Remember that the reds might not always succeed using their perks due to your luck.");
db("prediction", "Bonus: PREDICTION!\nPermanent\n\nAs your mind leaps through time and space you... eh..\n\n...\n\nI'll just skip the dorky shit for this one: You will be able to know where the blacks will spawn next. Look for the small arrows around the screen.");
db("diet", "Bonus: DIET!\n15 seconds\n\nThis effect will help your square return to its original size within just 15 seconds!");
db("quickdiet", "Bonus: QUICK DIET!\n0.05 seconds\n\nTired of being called names at school? With Quick Diet\u2122 you will return to your original size in the blink of an eye!");
db("bug", "It's official, the dung beetle is the coolest bug. Unlike that <i>other</i> bug. :/ Or the <i>overlap</i> bug.");
db("dung");
db("beetle");
db("otherbug", "It's odd but sometimes the missiles fail to leave a part of their trail (requires additional graphics to be enabled), it will just be a gap in it at a certain angle. Most people will probably never see it and I haven't seen it for a while now. Maybe it has something to do with how flash draw things? Or maybe it has something to do with the mines... Haven't searched for a solution or cause of the problem because it's not a big deal and I have more important things to waste my life on.");
db("overlap", "Sometimes it seems like the green square is touching a red square/circle for a frame without it is being noticed by the game. I suspect this is only a visual bug however, and that the green square really isn't on the object it appears to be touching (maybe it got something to do with the rotation of the square?). I'm fairly sure this could be solved without too much effort but since it's not really a big thing (or is it?) I'm not touching it with a nine foot pole.");
db("virus", "Hi! I'm a signature virus. Copy me into your .sig to join the fun!");
db("hud", "Did you know that you can turn off the HUD (and everything else non-standard to a anon_partyhard#.swf) by pressing \"0\" (zero)?\n\nThe game will keep running still even though you can't see it so be sure to pause too if you want to truly simulate a non-game version of this flash.\n\n<i>\"I found the on/off button!\"</i>");
db("~~on~~");
db("~~off~~");
db("nojumpmines", "Bonus: NO JUMP MINES!\nPermanent\n\nMines shouldn't move around, and thanks to this from now on there won't be any new mines that can do that.");
db("clonedmines", "Trap: CLONED MINES\nPermanent\n\nWhen you take this the amount of mines currently out will be doubled.\n\nThe clones will be just like their originals and they will be placed next to each others.\n\nThe clones does not count as deployed mines and will therefore not affect how many mines that can be placed on screen.");
db("howto", "Look, it's very simple: Just write something in the box below and when you get a answer scan the text for key words. These words can be just like any other word however when you write it below and press ENTER you might get a response. You are a cool and mysterious detective jumping around collecting pieces of information!\n\nFor an example: If a story seems incomplete, think of the subject and look for the right...");
db("how-to");
db("guide");
db("shoelace", "YOUR SHOELACE IS UNTIED");
db("word", "...word. The brain works!");
db("@", "My e-mail address is general@ebaumsworld.com\n\nPlease drop me a note and we'll talk about whatever. :)");
db("mail");
q = "----->Just to be clear (in case a damn retard reads this): NO THAT IS NOT MY REAL E-MAIL, IT'S A JOKE, I HATE ERIC BAUMAN AND HIS SHITTY SITE. IF YOU DON'T ALSO HATE THE SITE PLEASE SHOOT YOURSELF. IF YOU HAVE EVER VISITED THAT SITE FOR ENJOYMENT YOU ARE FUCKED IN THE HEAD. GIVE NO CREDIT TO EBAUMSWORLD EVER FOR ANYTHING; THEY ARE TRUE CANCER OF THE WORST SORT AND I TRULY WISH FOR THAT SITE TO GET ERASED FROM HISTORY FOREVER.";
db("~~question~~", "That's not a question!");
db("endoftheline", "This is the end\nBeautiful friend\nThis is the end\nMy only friend, the end\n\nOf our elaborate plans, the end\nOf everything that stands, the end\nNo safety or surprise, the end\nIll never look into your eyes...again");
db("end", 11);
q4 = "That's all.";
q5 = "Now poast it. Go on.";
q6 = "Fulfill your desire you sick fuck!!!!";
Instance of Symbol 225 MovieClip [TextInput] "MovieClip90" in Symbol 408 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = 0;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_load(eventObj) {
aCtive = false;
}
this.addEventListener("load", __f_load);
}
onClipEvent (load) {
function __f_focusIn(eventObj) {
aCtive = true;
}
this.addEventListener("focusIn", __f_focusIn);
}
onClipEvent (load) {
function __f_enter(eventObj) {
if (this.text != "") {
_parent._parent._parent.qUestion = this.text;
_parent.question = this.text;
this.text = "";
if (_parent.question.indexOf("brosis") != -1) {
_parent.spurt.play();
} else if (_parent.question.indexOf("pedo") != -1) {
_root.pedro.play();
_root.pedro2.play();
} else if (_parent.question.indexOf("lolicat") != -1) {
_root.loli.play();
} else {
_parent.gotoAndStop(2);
}
}
}
this.addEventListener("enter", __f_enter);
}
onClipEvent (load) {
function __f_focusIn(eventObj) {
_parent._parent._parent._parent.tacke.Ignore = 1;
}
this.addEventListener("focusIn", __f_focusIn);
}
onClipEvent (load) {
function __f_keyDown(eventObj) {
if (aCtive) {
if (Key.getCode() == 38) {
if (this.text != "") {
_parent._parent._parent.tXtbuff = this.text;
}
this.text = _parent._parent._parent.qUestion;
} else if (Key.getCode() == 40) {
this.text = _parent._parent._parent.tXtbuff;
}
}
}
this.addEventListener("keyDown", __f_keyDown);
}
Symbol 408 MovieClip Frame 2
play();
Symbol 408 MovieClip Frame 3
if (question.indexOf("?") != -1) {
if (question == "?") {
if (Math.random() < 0.5) {
answer = "Here, look at the monkey. Look at the silly monkey.";
} else {
answer = "Mm hmm, well that's...very good...for a first try. You know what? I have a ball. Perhaps you'd like to bounce it?";
}
} else if (question == "question?") {
answer = "Why take diet pills when you can enjoy Ayds?";
} else {
answer = "Don't ask me a real question retard!\nI only respond to words.";
}
} else {
answer = processThisShit(question);
if (answer == 1) {
gotoAndStop (8);
} else if (answer == 2) {
gotoAndPlay (9);
answer = "</credits>";
} else if (answer == 3) {
gotoAndStop (1670);
} else if (answer == 4) {
gotoAndPlay (1671);
} else if (answer == 5) {
JoKeS = new Array("What do you call 6.9? -- A good 69 interrupted by a period....", "A bloke is in bed with his Chinese Missus, I fancy a 69 he says... -- You can get out of bed and cook it your fucking self then!", "Two old age pensioners are having a 69.-- After 5 minutes he says \"Sorry luv the smell's too bad down there - I can't carry on.\" -- \"That'll be my arthritis\" she says. -- \"What? I never heard of anyone having arthritis in thier fanny before.\" -- No she says \"It's in my arms and hands... and I can't wipe me arse.\"", "Why are books about abusive childhoods so popular? -- Because all the decent kiddie porn is illegal.", "what is 69 + 69? -- dinner for four", "Little Johnny onced asked his teacher 'Do hearts have legs?' -- The teacher answered 'Why do you ask that?' -- Little Johnny replied, 'Yesterday, I heard my dad say open your legs sweetheart'", "Wife beaters out there! When hitting your wife, get hold of a crocodile, a string of sausages and a policeman to recreate that seaside magic for the kids!", "A newly-married couple show up at a hotel and ask for the honeymoon suite. -- \"Do you have reservations?\" inquires the receptionist. -- \"Only one,\" replies the groom, \"she won't take it up the arse.\"", "How do you stop a baby choking? -- Take your dick out of its mouth.", "What do you call sex with a pregnant girl? -- A threesome.", "What's better than fucking twentyone year olds? -- Fucking twenty dead one year olds!", "A wee boy asks his mum \"why am I black and you are white?\" -- \"Don't even ask\" she replies, \"When i think back to that party, you're fucking lucky you don't bark!\"", "Why should you put sellotape around a hamster? -- It stops it splitting when you fuck it!!", "Why is there no such thing as bestialic necrophilia? -- ...'cos you'd just be flogging a dead horse.", "Did you hear what my girlfriend thinks of bestiality? -- Baaa!", "What do you do if a herd of elephants come over the hill? -- Swim for it!", "Why are sheep better at oral sex than women? -- No front teeth and no gag reflex!!", "\"Beastiality\" -- 9 out of 10 dogs said their owners prefered it!", "How do you stop a dog fucking your leg? -- Pick him up and suck him off.", "What does a picture in an art gallery and a horse have in common? -- They're both well hung.", "I like my women like I like my whiskey. -- 15 years old and mixed up with coke.", "Did you hear they found female hormones in beer? -- It's true - after 6 pints you talk bollocks and can't drive.", "What does an Essex girl use for protection during sex? -- A bus shelter.", "How do you fix a woman's watch? -- You don't. There is a clock on the oven.", "Why do women love sex? -- They love anything that involves moaning.", "What's the first thing a woman should do after she leaves the battered wives shelter? -- The dishes, if she knows what's good for her.", "As an airplane is about to crash, a female passenger frantically jumps up, removes all her clothing and announces, \"If I'm going to die, I want to die feeling like a woman. Is there anyone on this plane who is man enough?\" -- A man stands up, removes his shirt and says, \"Here, iron this.\"", "What do you say to a girl with no arms and no legs? -- Nice tits.", "What do women and KFC have in common? -- After you're done with the legs, breasts and thighs, all you have left is a greasy box, to put your bone in.", "What's 2.5 inches long and can satisfy any woman everytime? -- A credit card.", "Why do they call it Pre-Menstrual Tension? -- Because Mad Cow Disease was already taken.", "Why do women close their eyes during sex? -- They can't stand to see a man have a good time.", "What do you do when your dishwasher stops working? -- Punch her in the face.", "What do you call the useless piece of skin around a vagina? -- A woman!", "Women only have orgasms because it's another chance for them to moan.", "Scientists have discovered a food that diminishes a woman's sex drive by 90%, It's called Wedding Cake.", "Why do women have legs? -- Have you ever seen the trail a snail leaves!!", "What have women and condoms got in common? -- If they're not on your dick, they're in your wallet!", "Why do women have two sets of lips? -- So they can piss and moan at the same time.", "What's the difference between your job and your wife? -- Your job still sucks after 10 years", "Why do women fake orgasms? -- Because they think men give a shit!", "How many men does it take to wash the dishes? -- None. It's woman's work.", "Why have no women ever been sent to the moon? -- It doesn't need cleaning yet.", "Why do woman have vaginas? -- So men will talk to them.", "How do you make your girlfriend scream while you are having sex? -- Telephone and tell her.", "Wanna hear a joke? -- Women's rights!", "A blonde was admitted into hospital for having phone sex. Doctors removed 2 Nokias, 1 Samsung, 2 Motorolas, but no Siemens were found.", "What's the smartest thing to have come out of a woman's mouth? -- Einstein's cock.", "My Wife's so fat you have to slap her thigh and roll in on the ripple...", "My Wife's so fat I have to ask her to fart to give me a clue.....", "My Wife's so fat I have to peg the fat back to get in....", "My Wife's so fat I have to roll her in flour and aim for the wet spot...", "My Wife's so fat her arse rubs out her foot prints in the sand...", "At the age of 20 a woman's pussy is like a peach, nice and ripe smooth and very tasty. -- At 30 it's like an advocat, slightly over ripe but still nice. -- At 50 it's like an onion, you open it up and it makes you want to cry.", "How do you turn a fox in to an elephant? -- Marry it.", "Why don't women need to know how to ski? -- Theres no snow between the bedroom and the kitchen.", "Why are women's feet smaller than men's? -- So they can stand closer to the stove.", "Which is the odd one out? -- (A) Hoover (B) Fridge (C) Washing machine (D) Woman -- Answer: A hoover, all the others leak when they're fucked.", "Why are there so many homes for battered women? -- Because they just don't fucking listen!!", "I like my women same way I like my coffee. -- Ground up in the freezer.", "Q: What do you do if a bird shit on your car bonnet? -- A: Don't ask her out again.", "Why do women get married in white? -- So they match all the other fucking kitchen appliances.", "A mother asked her daughter what she wanted for her birthday. The little girl replied, \"I want a Barbie and a G.I. Joe.\" -- \"G.I. Joe?\" the mother asked. \"I thought Barbie comes with Ken.\" -- The daughter replied, \"No, she comes with G.I. Joe. She fakes it with Ken.\"", "What does a 9v battery and a woman's anus have in common? -- You know you shouldn't, but your tongue can't help but touch it.", "Q: What's better than seeing a woman wrestle? -- A: Seeing her box.", "What do you call a woman with no legs? -- Dirty cunt.", "Why can't women read maps? -- Because only the male mind can comprehend the concept that 1 inch is equal to a mile.", "Scientists have crossed a chicken with an onion, and finally got a cock that brings tears to a woman's eyes!", "What's the difference between a woman and a refrigerator? -- A refrigerator doesn't fart when you pull the meat out.", "How many feminists does it take to change a lightbulb? -- Two. One to change the lightbulb, the other to suck my cock.", "What do you do when your wife takes place next to you on the couch? -- Shorten her chain.", "How many men does it take to change a lightbulb? -- None - let the bitch cook in the dark!", "What's six inches long, has a head on it, and drives women wild? -- A $100 note.", "Q:What is worse than a male chauvinist pig? -- A: A woman who does not do what she's told.", "What do you call a prostutute with a very runny nose? -- Popular.", "Why do women have two holes so close together? -- In case you miss.", "Q. How do u get a fat women into bed. -- A. Piece of Cake!", "Why do women have boobs? -- So ya got somethin to look at while you're talking to em.", "What do you call a septic cunt? -- A puss-ey.", "What did the vampire say to the woman as he left? -- See you next month.", "Why do women live longer than men? -- Because God adds them more time that they wasted on parking.", "A guy gets on an lift and asks a the lady next to him, \"Can I smell your vagina?\" -- The lady looks at the guy with a disgusted look and says, \"NO!!\" -- The guys says, \"then it must be your feet\".", "What's the definition of menstruation? -- A bloody waste of fucking time.", "Why is a vagina like a coffin? -- It can only handle one stiff at a time.", "A kid goes up to his dad and says \u201CWhat\u2019s a vagina look like?\u201D -- His father says, \u201CSon, before sex, a vagina looks like a rose, with pink velvety petals, and the aroma of perfume.\u201D -- The kid says, \u201CWhat about after sex?\u201D -- His father says, \u201CHave you ever seen a bulldog eating mayonnaise?\u201D", "Why does a ballerina wear tights? -- So they won't stick to the floor when they do the splits.", "Two flys are on a fanny, which one is the druggy? -- The one on the crack.", "What's the difference between a guy on the sex offender's register and you? -- You don't get caught.", "What did the seven dwarfs say when the prince awakened snow white? -- \"Oh well, I guess its back to jerking off\".", "What's black and blue and full of semen? -- A rape victim.", "I for one am sick and tired of sexist double-standards in the workplace. In the Maltesers advert a girl flashes her bra at a male colleague, he faints and she doesn\u2019t get into trouble at all, yet when I whap my jolly tadpole-launcher out in front of the lasses in our accounts department, I get a final written warning. It sickens me, it really does.", "A mother, cleaning her son's room, finds an S&M magazine under the bed. -- Upset, she immediately shows the magazine to her husband. -- \"Well?\" his wife asks. \"What do you think we should do?\" -- \"I'm not sure,\" the father replies. \"But we certainly shouldn't spank him.\"", "A sadist and a masochist are in bed. The masochist says, \"Hurt me, please, hurt me!\" -- And the sadist says, \"No.\"", "A man takes a blow up doll back to the sex shop. He says \"There is something wrong with this. Every time i make love to her she cries.\" Man behind the counter takes the doll off him, looks at it and says \"She's not crying, she's full.\"", "Is that a gun in your pocket or are you just pleased to see me? -- Bit of both, this is a rape.", "A man walks up to a woman in a bar and says, \"You're going to get laid tonight\". -- A bit surprised, she asks, \"Really? How do you know that? Are you psychic?\" -- \"No, I'm just stronger than you\".", "Overheard in a pub last night. -- Guy 1, \"Do you know what? I could have sex with any woman in this pub\". -- Guy 2, \"Oh yeah? How's that then?\" -- Guy 1, \"I'm a rapist\".", "Heres a chat up line that will ensure success with the ladies: -- 'Don't let this rape turn into a murder'", "What has eight legs and makes women scream? -- Gang rape!", "What's the difference between rape and seduction? -- Patience.", "Remember, it's not rape if you shout \"surprise!\" first!", "What's the difference between rape and football? -- Women don't like football", "What is the worst thing about gang rape? -- Going last.", "Why is rape so good? -- Because tears make the best lubricant", "99% of women kiss with their eyes closed. -- This is why it's so difficult to identify rapists.", "When asked why she had taken three days to report being raped, the witness said she would not have made the allegation had the cheque not bounced.", "A stranger is just a friend that you haven't met yet. -- Either that or a rapist.", "Why can't you get charged for raping a police woman? -- Because you're inside the law!", "What's the best way to bring down rape crime rates? -- Make it legal", "What's the difference between sex trafficking and rape? -- Rape's free.", "We should really stop all these jokes about rape. -- Rape is NOT a laughing matter.... -- .....unless you're raping a clown!", "What's a woman's least favourite chat-up line? -- \"Get in the van.\"", "12 Irish blokes are raping a German woman. -- She screams \"NEIN! NEIN!\" so 3 of them leave the room.", "What's the worst thing about raping black girls? -- AIDS!", "What's black and blue and full of protein? -- A rape victim.", "What is it called when any man gets to fulfil his wildest sexual fantasy? -- Kiddy rape", "Two prostitutes are stood on a street corner, talking. -- One says to the other, \"have you ever been picked up by the fuzz?\" -- She replies, \"No, but I've been swung by the tits a few times.\"", "A man picks up a prostitute and goes back to her place.She strips off, but all he does is stare at her. -- She says: \"What's wrong? Is this the first pussy you've seen since you crawled out of one?!\" -- He replies: \"No, its just the first one I've seen that's big enough to crawl back into.\"", "What is the difference between a prostitute and a drug dealer? -- A prostitute can wash her crack and sell it again!!", "What do you call a prostitute with a dick in each ear? -- Anything you like, she can't hear you.", "How do you make a hormone? -- Don't pay her.", "What's the difference between a lawyer and a prostitute? -- The prostitute stops fucking you after you're dead.", "Did you hear about the prostitute that was into bondage? -- She was strapped for cash...", "What do you call a prostitute with a thousand holes? -- A selection box!", "What have prostitutes and bowling balls got in common? -- They're both found in alleys.", "Two prostitutes are in a lift. -- One says to the other \"I can smell spunk!\" -- The other replies \"Yeah, it's me, I've just burped!\"", "Hear about the whore who had an appendectomy? -- The doctor sewed up the wrong hole, so now she's making money on the side.", "How do you make a hormone? -- Kick the bitch in the cunt.", "Did you hear about the new 'morning after' pill for men? -- It works by changing your blood type.", "How do you make a Pakistani pregnant? -- Come on her shoes and let the flys do the rest!", "You know the best thing about pregnant women? -- Fucking her and getting a blow job from the baby!", "What do you get when you have sex with a pregnant woman? -- A baby with a black eye!", "How do you get a nun pregnant? -- Fuck her.", "One day a single mother was in the grocery store with her 4 kids. They were acting up. Bad little kids. They were running around grabbing items off the shelves crying and screaming all over the place. The mother grabbed all of them and shouted \"I should have swallowed all of you!!\"", "Paddy meets a girl in a disco, after buying her several drinks he says, \"Wanna go and fuck?\" -- The girl says, \"Sorry but I'm on my menstrual cycle,\" to which Paddy replies, -- \"Great! I'm on my scooter, I'll follow you home.\"", "Whats red and sits in a tree? -- A sanitary owl...", "How do you know if the waitress hates you? -- There's a string in your bloody mary!", "What do you call it when two guys are fucking a girl with a period? -- Jam sandwich.", "What does spinach and anal sex have in common? -- If you were forced to have it as a kid, you'll hate it as an adult.", "What's the biggest cause of paedophilia in this country? -- Sexy kids!", "What's the worst thing about being a paedophile? -- You just don't fit in.", "This man pulls up in his Merc beside a little boy. -- He opens the door, holds out a brown paper bag of sweets and says, \"Alright little fella - if I give you a sweetie, will you come in me car?\" -- To which the kid replies, \"Gimme the bag and I'll come in your mouth!\"", "How do you know when your sister's having her period? -- Your Dad's dick tastes foul!!", "I had my dreams crushed yesterday. -- It turns out the newspaper headline \"Village still looking for paedophile\" wasn't a vacancy.", "Whats the best thing about shagging twenty seven year olds? -- There's twenty of them.", "What's black and blue and doesn't like sex? -- The 4 year old I keep in my truck.", "What's the difference between a 13 year old girl and a washing machine? -- The washing machine doesn't follow you around for a week after you dump your load in it.", "What's the difference between a driveway and a two year old? -- The cops don't mind when you pull out of your driveway.", "Little Sally came home from school and with a smile on her face and told her mother. -- \"Frank Brown showed me his willy today!\" -- Before the mother could raise a concern, Sally went on to say, \"It reminded me of a peanut\". -- Relaxing with a hidden smile, Sally's Mum asked, \"Really small was it?\" -- Sally replied, \"No...salty\".", "Q. How do you stop little children from playing in your yard? -- A. Molest them.", "How do you stop a little girl crying? -- Put your dick back in her mouth.", "The thing I don't get about paedophilia... why the hell do kids find old men in dirty raincoats so sexy?", "My girlfriend keeps moaning that my peepee is too big for her mimsy. Maybe I should stop fucking kids.", "What do you give a paedophile who has everything? -- A bigger parish!", "Why do you put a baby in the blender feet first? -- So you can finish coming in its mouth!", "What kind of file do you need to turn a 15mm hole into a 40mm hole? -- A Paedophile.", "What's the best thing about a ten year old girl? -- Flip her over and you've got a ten year old boy.", "What do you get when you break a baby's jaw? -- Deep throat.", "What's the best thing about Paedophilia? -- Your dick looks huge in the photographs!", "Whats white, round and bobs up and down in a baby's crib? -- MY ARSE", "What's a pedophile's favorite part of a hockey game? -- Before the First Period", "Uncle Chester is at his niece's birthday party. When they are alone he says, \"my present is a surprise. You have to close your eyes and I'll put my finger in your belly button.\" -- The girl closes her eyes and then says, \"hey, that's not my belly button!\" -- \"Surprise! That's not my finger either!\"", "Whats worse then fucking a 3 year old? -- Hearing her complain she's had better.", "What did the pedophile say when he was released from prison? -- \"I feel like a kid again.\"", "What's the best thing about fucking a 7-year-old when she's just come out of the shower? -- With her hair wet she only looks 5.", "What do paedophiles pass round after dinner? -- The under eights.", "Whats the best thing about shagging a 2 year old? -- The pelvis cracking.", "What do you do when you've just had a baby? -- Put it's nappy back on .", "What's the difference between a baby and a turkey? -- You can only stuff a turkey from one end.", "They're thinking of using piglets as a way of weaning paedophiles from their affliction. -- They squeal, but not to the cops.", "Whats the difference between Scotch and Children? -- Scotch gets better with age!", "What must you do if you come across an abandoned baby? -- Try and get at least some of it in its mouth.", "So I was fucking this chick the other day. And what can I say, I got bored, so I turned her over for some anal. She turns back over in anger and says \"thats pretty damned presumptuous of you!\" -- Shocked I replied with \"Presumptuous? Now thats a big word for a 10 year old\".", "What is the difference between a mansion and 10 year old? -- I have never been inside a mansion.", "What do you get if you put a spike through a baby? -- An erection!", "Whats the difference between a baby and a bowling ball? -- You can only get 3 fingers in a bowling ball.", "What's the difference between a choirboy and a microwave oven? -- You can't brown your meat in a microwave oven.", "Whats the difference between a baby and a lamborghini? -- You cant fit three men in a lamborghini", "A paedophile is walking his latest conquest deep into the forest, when the little child looks up at him with wide, scared eyes and says \"Mister, these woods are scary!\" -- The paedophile looks down and says \"I know! Think about me though, I've got to walk back on my own!\"", "What's big, blue and fucks kids? -- Me in my lucky blue shirt.", "Paedophilia.... -- It's simply child's play.", "Q: How do you make a four-year-old cry twice? -- A: After the first time, who cares?", "What's yellow and loves kids? -- A paedophile in a \"Bob The Builder\" outfit.", "How do you get the baby back out of the blender? -- ...Doritos.", "How do you know there is a new paedophile in the neighbourhood? -- Balloons on the gate for the house warming!", "What do you call a Chinese paedophile? -- Dig Yung Poon.", "What did one nonce say to the other? -- I'll swap you two fives for a ten...", "Until I became a clown I always thought a paedophile was something you used to trim your toenails...", "What's white and goes up and down in a child's pram? -- A child molester's arse.", "What do you get when you stab a baby seventeen times? -- An erection.", "what's really the worst thing about being a paedophile ? -- ...getting caught.", "Wearing jeans in the summer is like fucking an under-age girl and telling her mother. It's unwise, uncomfortable and puts your balls at risk.", "Whats worse than having a sex offender work at a school? -- Having a sex offender who works in the delivery room.", "What's the difference between a paedophile and a pediatrician? -- The paedophile really loves children!", "Whats the worst thing about licking a bald pussy? -- Taking the dirty nappy off beforehand...", "What do you do, when you fucked a girl with a bald head? -- You lay her back in the baby buggy.", "What's the best thing about fucking a new born baby? -- You can see the end of your cock when it screams!", "How do you get your kids off nappies? -- You fuck the shit out of them!", "Why is it better to fuck a three year old than a seven year old? -- You don't have to dig as big a grave.", "What's the difference between an apple and a baby? -- You don't come in an apple before you eat it.", "Why did the baby cross the road ? -- Cos the paedophile had sweets.", "What do five-year-olds say whilst they're being shagged? -- Nothing. I always strangle them first.", "The little girl sat on Father Christmas's knee in his grotto answers his question about what she wants for Christmas by telling him she wants some hair on her tushie. -- \"Would very curly white hair be OK?\"", "What's the worst part about being a pedophile? -- Walking out of the woods alone at night.", "What's better to fuck than a two year old? -- Nothing!", "Why did the man get arrested for filming his cats having sex? -- Because it was kitty porn.", "Do you know the difference between a cock sucker and a corned beef sandwich? -- No. -- Good. Come over tomorrow for lunch.", "Do you realise that if the pilgrims had first shot a wild cat instead of turkey, we'd all be eating pussy for Christmas.", "Why is going down on a woman like being in the KGB? -- One slip of the tongue & you're in the shit.", "Whats the speed limit of sex? -- 68, because at 69 you have to turn around.", "How do you tell if your best mate is gay? -- His dick tastes of shit....", "A Wise man once said \"You should treat your women the way you treat your Vacuum cleaner - When it stops sucking.....change the bag!!\"", "What do blondes and spaghetti have in common? -- They both wriggle when you eat them.", "Mommy, Mommy! Can I go to the toilet? -- Yes Johnny I'll take you in a minute... -- Can Granny take me? -- Why? -- Her hand shakes.", "A young boy walks into his mum's bedroom as she is getting dressed, he points between her legs and says: -- \"Mummy, what's that between your legs?\" -- \"That's where your dad hit me with his axe,\" replied his mother. -- To which the lad counters, \"Fucking good shot too, right in the cunt!\"", "Whats the 4 worst things about being an egg? -- You only get laid once, -- you only get eaten once, -- you only get hard once, -- and the only one that sits on your face is your mother.", "\"Mummy, Mummy! Why do they call me spastic at school?\" -- \"Shut up and take your feet out of your pockets.\"", "Little girl:\" Mummy....is it alright if I go and play with Grandma?\" -- Mother: \"No it isn\u2019t....you\u2019ve been to that damned Cemetery three times already today!\"", "Mummy mummy, why am I going round in circles? -- Shut up or I'll nail your other foot to the floor.", "But mummy, mummy, I don't want to go to Australia! -- Shut up and keep digging.", "A girl is watching her father shower. -- She points to his penis and says, \"Daddy, when will I get one of those?\" -- He looks at his watch and says, \"When your mother leaves for work!\"", "A man walks into a chemist and asks the assistant for some birth control pills for his daughter. The assistant asks the man, -- \"Is your daughter sexually active?\" -- The man replies, \"No, she just lies there like her mother.\"", "Mommy, Mommy, why are you moaning? -- Shut up, son and keep licking!", "How do you circumcize a boy in East Anglia ? -- Kick his sister in the chin.", "What is light beer??? -- Its like eating out your sister...it tastes the same, but it just isn't quite right.", "What's the worst thing about losing your virginity? -- Seeing your dad naked.", "What's the definition of relative humidity? -- The sweat on your balls when you're fucking your sister.", "A guy rings his boss at work and says, \"look, I'm really sorry, but I can`t come to work today. I'm sick\". -- \"Sick!\" screams his boss \"Sick! This is the tenth time this month. Exactly how sick are you?\" -- \"Well\", he replies. \"I`m in bed with my 9 year old sister right now\".", "Little Timmy and his father are in the bath. -- Little Timmy points to his Dad's crotch and says \"Daddy, what's that?\" -- His Dad replies \"That's a penis Timmy and you have one too\" -- Timmy looks down at himself and back at his Dad and says \"But Daddy, why is mine different to yours?\" -- \"That's be cause mine's erect son\"", "Daddy, Daddy whats a pervert? -- Shut up and keep sucking!", "What's the worst thing about sitting on grandpa's lap? -- When you feel him getting a hard on.", "Incest, a game for the whole family!", "What do you say to a feminist with no arms and no legs? -- \"Nice tits, bitch!\"", "Why do Japanese Sumo wrestlers shave their legs? -- So you can tell them apart from feminists.", "Why are blondes better than mosquitos? -- The blonde doesn't stop sucking when you smack it.", "A man says to his wife, \"I fancy kinky sex, how about I blow my load in your ear?\" -- The wife hastily replies, \"No, I might go deaf!\" -- To which the man replies, \"I've been shooting my load in your mouth for the last 20 years and you're still fucking talking aren't you?\"", "What did Cinderella do when she got to the ball? -- Gagged.", "Most men are in favor of the Muslim full face veil. -- It solves the problem of where to wipe your dick after a blow job.", "Four words: -- Dick, blowjob, eggs, wife. -- Which word doesn\u2019t belong? -- You can beat your dick, beat eggs, you can even beat your wife, but you can\u2019t beat a BLOWJOB!", "What are the two most important holes on a women? -- Her nostrils. So that she can breathe while giving a blowjob.", "Whats the first thing to come out of a cock when its being sucked? -- All the wrinkles.", "What do you call a blonde with pig tails? -- A blow job with handlebars", "One day, a man came home and was greeted by his wife dressed in a very sexy nightie. \"Tie me up,\" she purred, \"and you can do anything you want.\" -- So he tied her up and went golfing.", "What have a pussy and a grape both got in common? -- The best ones squirt when you eat them.", "Whats brown and furry on the outside, soft moist and tastes good on the inside, begins with \"C\" and with \"T\", and have a \"U\" and an \"N\" in it? -- A Coconut!", "What's the difference between a pub and a clitoris? -- Most men can find a pub!", "Why are smear tests called smear tests? -- Women wouldn't do them if they were called cunt scrapes.", "Why did Humpty Dumpty push his girlfriend off the wall, -- He wanted to see her crack.", "Why do they call it a cunt? -- That's the sound it makes when you kick it!", "Why should you never shag a midget with learning difficulties? -- It's not big and it's not clever.", "What's better than winning a gold medal at the Special Olympics? -- Not being retarded.", "Why are mentally handicapped people always smiling? -- Cos they're always getting fucked by their carers...", "A guy starts going out with a deaf girl, and he decides that they need to organise a system so she can tell when he's feeling horny. -- He says: \"OK, here's the code: I'll stroke your left breast when I feel randy, and you pull my dick once for yes, and 150 times for no\".", "Why do self harmers always have trouble with crosswords? -- Because they always get 3 across but never 3 down!!!", "There's 1 in 255 that you don't get a joke.\n\nCongratulations.");
answer = JoKeS[random(JoKeS.length)];
JoKeS = undefined;
} else if (answer == 6) {
_parent._parent.kopimi = 1;
answer = "If you pause the game you will be able to select the \"Best: #\" text above your current score.\n\nThe neat thing about that is of course that you will be able to copy your high score to clipboard.\n\nAlso since you mentioned the word \"copy\" to me, I will now let you select the text in (most of) my replies.";
} else if (answer == 7) {
gotoAndPlay (1727);
} else if (answer == 8) {
gotoAndStop (1754);
} else if (answer == 9) {
gotoAndStop (1760);
} else if (answer == 10) {
gotoAndStop (1761);
} else if (answer == 11) {
gotoAndPlay (1762);
} else if (answer == 1337) {
gotoAndStop (1767);
}
}
if (_parent._parent.kopimi != undefined) {
svarboxen.selectable = true;
}
if (Math.random() < 0.4) {
_parent._parent.ljud("sndPaperWrite.wav");
}
_parent._parent.ljud(("sndPaperTurn" + (random(2) + 1)) + ".wav");
Symbol 408 MovieClip Frame 7
stop();
Symbol 408 MovieClip Frame 8
temp.text = "\u0CA0_\u0CA0";
Symbol 408 MovieClip Frame 9
MovieClip90.editable = false;
Symbol 408 MovieClip Frame 17
MovieClip90._x = -450;
MovieClip90._y = 450;
Symbol 408 MovieClip Frame 1669
MovieClip90._x = 0;
MovieClip90._y = 278;
MovieClip90.editable = true;
gotoAndStop (7);
Symbol 408 MovieClip Frame 1670
strangen = "";
i = 0;
while (i < _parent._parent.themusic.musicks.length) {
if (i > 0) {
strangen = strangen + "\n\n";
}
strangen = strangen + _parent._parent.themusic.musicks[i];
i++;
}
extratracks.text = strangen;
Instance of Symbol 365 MovieClip [TextArea] "extratracks" in Symbol 408 MovieClip Frame 1670
//component parameters
onClipEvent (construct) {
editable = false;
html = false;
text = "";
wordWrap = true;
maxChars = 0;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 408 MovieClip Frame 1671
SHIT = "You got it.\n";
Symbol 408 MovieClip Frame 1677
SHIT = SHIT + "1";
Symbol 408 MovieClip Frame 1680
SHIT = SHIT + "3";
Symbol 408 MovieClip Frame 1683
SHIT = SHIT + "3";
Symbol 408 MovieClip Frame 1686
SHIT = SHIT + "7";
Symbol 408 MovieClip Frame 1694
SHIT = SHIT + "/";
Symbol 408 MovieClip Frame 1712
SHIT = SHIT + "0\n\n";
Symbol 408 MovieClip Frame 1725
SHIT = SHIT + "OH SHI-";
Symbol 408 MovieClip Frame 1726
stop();
SHIT = "om";
while (true) {
SHIT = SHIT + " nom nom nom";
}
Symbol 408 MovieClip Frame 1753
stop();
_root.tacke.Ignore = 0;
_parent.play();
Symbol 408 MovieClip Frame 1754
txten = "Score from bonuses...\nYou know, this is sorta important.\n\nThere are no bonus effects that will directly give you points in any way in this game.\n\nI thought a lot about it, but it is best to leave such powerups out.\n\nWhy? Read on.";
if (_parent._parent.kopimi != undefined) {
svarboxen.selectable = true;
}
Symbol 408 MovieClip Frame 1755
txten = "I could have included timed effects that gives you double dare points for a few second, double points from catching those blacks, or +5% life points.\n\nOr maybe even bonuses that give you a permanent +1000 on your score - simply for getting a black ring!\n\nPretty tempting.";
Symbol 408 MovieClip Frame 1756
txten = "Alas I chose not to have such treasures.\n\nFor a good reason: I do not want people to get good scores simply due to luck, I want good scores to come from skill.\n\nThis is something I think is important, especially for small shitty internet games such as this one.";
Symbol 408 MovieClip Frame 1757
txten = "If you could get a good score just because you lucked out in getting a bonus there would be no point in trying to beat your own score.\n\nNo point in beating other people's score.\n\nNo point in playing the game at all.";
Symbol 408 MovieClip Frame 1758
txten = "Sure, luck is always there in this game, like when you collect dare points and the red square doesn't shoot a missile, or when you get a good bonus effect, or when you come safe out from a danger zone.\n\nBut it's how you use a element gained by luck that will make it possible for you to <i>earn</i> a good score - through your skill at playing the game, not really by obtaining the element itself.";
Symbol 408 MovieClip Frame 1759
txten = "Like in all games luck is always present, but allow luck to directly alter the game's goal and it will take away lots of purpose in why one might chose to play again.\n\nSo no score bonuses, for fair final score comparisons, and more point in actually playing.\n\nThanks for you time.";
Symbol 408 MovieClip Frame 1760
_root.NoReturnNow = 1;
Symbol 408 MovieClip Frame 1761
_root.NoReturnNow = 2;
Symbol 408 MovieClip Frame 1765
fscommand ("quit");
Symbol 408 MovieClip Frame 1766
stop();
Symbol 408 MovieClip Frame 1767
txten = "<font color=\"#006633\"><b>ANON PARTY HARD, THE GAME</b></font>\n\nThe correct name of this flash file is:\nanon_partyhard200.swf\n\nIt was released at the end of 2007.\n\n<font color=\"#006633\">December 31st, 2007.\nGame version: 1.0\nRelease 1.</font>\n\nLOL happy new year!";
if (_parent._parent.kopimi != undefined) {
svarboxen.selectable = true;
}
Symbol 408 MovieClip Frame 1768
txten = "<font color=\"#006633\">--Changelog----------------</font>\nThis is version 1.0. There haven't been any previous releases before this one so there are no changes.\n\nFrom scratch to this. Took me quite some time to make it, but it was all good fun.\n\nHave no idea if I will ever bother to continue to build on this game. But I wager <font color=\"#ff0000\">NO FUCKING CHANSE IN HELL</font>.";
Symbol 408 MovieClip Frame 1769
txten = "I started making this game on...\n2007-09-14 (14th Sep 07)\n\nAnd I finished it on...\n2007-12-31 (31st Dec 07)\n\n<b>THAT'S 109 DAYS FOR 1 GAME!!!</b>\n\n\u00AF\\(\u00BA_o)/\u00AF";
Symbol 408 MovieClip Frame 1770
txten = "Sure I haven't made changes to it every day, and sometimes I forgot about it for a several days or a week, but it would be interesting to know just how many hours I spent on this. And for what? Sage after sage after sage. But I'm not emo, I have learned a lot from this and I'm very pleased with the result. And that I had the strength to finish it on my own cuz Raptor Jesus knows I haven't received any motivation from anyone.";
Symbol 408 MovieClip Frame 1771
txten = ("K. Now, the flash file I released had this many bytes: 1552177\n\nThis one has: " + _root.getBytesTotal()) + "\n\nIf the two numbers doesn't match, chances are someone has been modifying the release. D: I mean :D\n\n<font color=\"#aaaaaa\"><i>Or maybe a couple of bytes has just been added to the file for other, more special reasons...</i></font>";
Instance of Symbol 406 MovieClip in Symbol 408 MovieClip Frame 1772
onClipEvent (load) {
farger = new Array("ff00ff", "00ffff", "ffff00", "00ff00");
lucka = 0;
}
onClipEvent (enterFrame) {
_parent.txten = ("And now one final thought:\n\n<font color=\"#" + farger[lucka]) + "\"><b>Holy shit I actually completed the game and released it on the net! And it'll be there forever! To be posted again and again! Over and over! Until you like it!! AAAHAHAHAHAHAHAHA!!!!</b></font>\n\no wow";
lucka++;
if (lucka > 2) {
lucka = 0;
}
}
onClipEvent (mouseDown) {
xxX = _parent._xmouse;
yyY = _parent._ymouse;
if ((((xxX >= 210) && (xxX < 250)) && (yyY >= 241)) && (yyY < 261)) {
_parent.nextFrame();
}
}
Symbol 408 MovieClip Frame 1773
txten = "No wait, this aint fair. I'm letting my favorite function get the last word. It's the right thing to do.\n\nTake it away <font color=\"#8800cc\">Math.random()</font>!\n\n" + Math.random();
Symbol 409 MovieClip [Ii] Frame 1
stop();
Symbol 409 MovieClip [Ii] Frame 5
_parent.ljud("sndDinkSmallwoodSave.wav");
Symbol 409 MovieClip [Ii] Frame 8
_parent.noMouseModeChange = 1;
Mouse.show();
stop();
Symbol 409 MovieClip [Ii] Frame 9
Mouse.hide();
_parent.noMouseModeChange = 0;
Symbol 409 MovieClip [Ii] Frame 17
gotoAndStop (1);
Symbol 419 MovieClip Frame 3
if (_root.GAMEZ.invis != 40) {
gotoAndPlay (12);
}
Symbol 419 MovieClip Frame 11
gotoAndStop (1);
Symbol 421 MovieClip Frame 1
function Check() {
if (_parent._parent._parent._parent.invis == 0) {
gotoAndPlay (1);
if (_parent.Invisen != 100) {
_parent._alpha = 100;
_parent.Invisen = 100;
}
_parent.didit = 0;
} else {
if (_parent.didit == 1) {
for (i in container) {
if ((Math.random() < 0.75) && (container[i]._currentframe == 1)) {
container[i].play();
}
}
} else if (_parent.didit == 0) {
_parent.didit = -1;
} else {
for (i in container) {
container[i].gotoAndPlay(random(9) + 1);
}
_parent.didit = 1;
}
gotoAndPlay (3);
if ((_parent._parent._parent._parent.invis == 40) && (_parent.Invisen != 40)) {
_parent.Invisen = _parent.Invisen * 0.75;
if (_parent.Invisen < 40) {
_parent.Invisen = 40;
}
_parent._alpha = _parent.Invisen;
} else if ((_parent._parent._parent._parent.invis < 40) && (_parent.Invisen != 100)) {
_parent.Invisen = _parent.Invisen * 2;
if (_parent.Invisen > 100) {
_parent.Invisen = 100;
}
_parent._alpha = _parent.Invisen;
}
}
}
Symbol 421 MovieClip Frame 2
Check();
Symbol 421 MovieClip Frame 4
Check();
Symbol 426 MovieClip Frame 1
Invisen = 100;
didit = 0;
stop();
Symbol 426 MovieClip Frame 6
gotoAndPlay (2);
Symbol 430 MovieClip Frame 2
if (_parent._parent._parent._parent.untouchable == true) {
gotoAndPlay (5);
} else if (_parent._parent._parent._parent.Invulnerability == 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 430 MovieClip Frame 4
if (_parent._parent._parent._parent.untouchable == true) {
gotoAndPlay (5);
} else if (_parent._parent._parent._parent.Invulnerability == 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 430 MovieClip Frame 6
if (_parent._parent._parent._parent.untouchable == true) {
gotoAndPlay (5);
} else if (_parent._parent._parent._parent.Invulnerability == 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 431 MovieClip Frame 1
function PainStuff() {
_parent._parent._parent.pain = _parent._parent._parent.pain + (_parent._parent._parent.damage * _parent._parent._parent.DamageModifyer);
if (_parent._parent._parent.health > 0) {
if (_parent._parent._parent.untouchable == true) {
pain.gotoAndPlay(5);
pain._alpha = 100;
} else if (_parent._parent._parent.pain == 0) {
_parent._parent._parent.painljud = 0;
pain._alpha = 0;
painpeek = 0;
} else if (_parent._parent._parent.damage != 0) {
painpeek = painpeek + _parent._parent._parent.damage;
pain._alpha = 100;
if (_parent._parent._parent.painljud == 0) {
Sdelayen = 5;
do {
if (painpeek < 2) {
SMARTA = ("sndDungeonKeeperImpHit" + (random(3) + 1)) + ".wav";
} else if (painpeek < 5) {
SMARTA = ("sndLieroHurt" + (random(3) + 1)) + ".wav";
} else if (painpeek < 20) {
SMARTA = ("sndBloodUuh" + (random(3) + 1)) + ".wav";
} else {
if (Math.random() < 0.5) {
SMARTA = ("sndBloodAhhh" + (random(6) + 1)) + ".wav";
} else {
SMARTA = ("sndBloodCultScream" + (random(5) + 1)) + ".wav";
}
if ((painpeek > 40) && (Math.random() < 0.5)) {
Lotto = Math.random();
if (Lotto < 0.25) {
SMARTA = "sndBloodAHItBurnsCal.wav";
Sdelayen = 10;
} else if (Lotto < 0.5) {
SMARTA = "sndBloodHelpMeee.wav";
Sdelayen = 10;
} else if (Lotto < 0.75) {
SMARTA = "sndBloodItBurnsAhAhAhCal.wav";
Sdelayen = 15;
} else {
SMARTA = "sndBloodItBurnsCult.wav";
Sdelayen = 20;
}
}
}
} while (forraSmartan == SMARTA);
forraSmartan = SMARTA;
_parent._parent._parent.ljud(SMARTA);
_parent._parent._parent.painljud = Sdelayen;
}
} else {
if ((_parent._parent._parent.pain == painpeek) && (_parent._parent._parent.Invulnerability == 0)) {
if ((_parent._parent._parent.pain >= 25) && (Math.random() < 0.2)) {
_parent._parent._parent.ljud("sndGta2ThatsGottaHurt.wav");
} else if ((_parent._parent._parent.pain >= 10) && (Math.random() < 0.1)) {
_parent._parent._parent.ljud("sndGta2OohDidThatHurt.wav");
}
}
theMinus = 5 * (5 / painpeek);
if (theMinus < 2) {
theMinus = 2;
}
_parent._parent._parent.pain = _parent._parent._parent.pain - theMinus;
pain._alpha = 100 * (_parent._parent._parent.pain / painpeek);
if (_parent._parent._parent.pain < 1) {
_parent._parent._parent.pain = 0;
}
}
} else {
gotoAndPlay (3);
}
}
if ((_parent._parent._parent.PAUSE <= 0) && (_parent._parent._parent.autoPaused == 0)) {
}
if (_parent._parent._parent.painljud > 0) {
_parent._parent._parent.painljud--;
}
Symbol 431 MovieClip Frame 2
gotoAndPlay (1);
Symbol 431 MovieClip Frame 3
pain._alpha = 100;
Symbol 431 MovieClip Frame 4
if (_parent._parent._parent.health != 0) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 431 MovieClip Frame 5
_parent._parent._parent.pain = 0;
Symbol 431 MovieClip Frame 6
if (_parent._parent._parent.health == 100) {
gotoAndPlay (1);
} else {
gotoAndPlay (5);
}
Symbol 432 MovieClip Frame 1
level1._alpha = 0;
level2._alpha = 0;
level3._alpha = 0;
Symbol 435 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 3
if (_root.framesStill < 240) {
gotoAndPlay (2);
}
Symbol 435 MovieClip Frame 11
if (_root.framesStill >= 200) {
gotoAndPlay (10);
}
Symbol 435 MovieClip Frame 16
gotoAndPlay (2);
Symbol 436 MovieClip [square] Frame 1
stop();
Symbol 436 MovieClip [square] Frame 101
gotoAndPlay (1);
Symbol 436 MovieClip [square] Frame 102
square.painholder.gotoAndStop(3);
Symbol 436 MovieClip [square] Frame 111
square.painholder.gotoAndPlay(5);
if (Math.random() < 0.1) {
_parent.ljud("sndPingPongBall.wav");
}
Symbol 436 MovieClip [square] Frame 118
_parent.square._xscale = 100;
_parent.square._yscale = 100;
_parent.ljud("sndScream.wav");
Symbol 436 MovieClip [square] Frame 140
if (_parent.OhShit == true) {
gotoAndPlay (139);
}
Symbol 436 MovieClip [square] Frame 162
if ((_parent.PAUSE <= 0) && (_parent.autoPaused == 0)) {
_parent.gotoAndPlay(2);
gotoAndPlay (1);
if (_parent.putmusikBackOn == true) {
if (_parent.themusic._currentframe <= 6) {
_parent.themusic.gotoAndPlay(1);
}
_parent.putmusikBackOn = false;
}
}
Symbol 436 MovieClip [square] Frame 163
gotoAndPlay (162);
Symbol 436 MovieClip [square] Frame 164
Symbol 438 MovieClip [takeBlack_] Frame 9
gotoAndStop (3);
Symbol 443 MovieClip [ghostTrail_] Frame 5
for (symbol in dots) {
scalan = random(70) + 29;
if (Math.random() < 0.5) {
dots[symbol]._xscale = (scalan + random(30)) + 19;
dots[symbol]._yscale = scalan;
} else {
dots[symbol]._xscale = scalan;
dots[symbol]._yscale = (scalan + random(30)) + 19;
}
dots[symbol]._x = (random(100) - 40) / 10;
dots[symbol]._y = (random(100) - 40) / 10;
dots[symbol]._alpha = random(50) + 49;
}
Symbol 443 MovieClip [ghostTrail_] Frame 15
gotoAndStop (3);
Symbol 447 MovieClip Frame 1
stop();
Symbol 450 MovieClip [takeBonus_] Frame 4
for (symbol in stars) {
stars[symbol]._rotation = random(360);
scalan = random(20) + 19;
stars[symbol]._xscale = scalan;
stars[symbol]._yscale = scalan;
stars[symbol]._x = (random(400) - 190) / 10;
stars[symbol]._y = (random(400) - 190) / 10;
stars[symbol]._alpha = random(35) + 49;
}
Symbol 450 MovieClip [takeBonus_] Frame 13
gotoAndStop (3);
Symbol 452 MovieClip [takeTrap_] Frame 4
for (symbol in stars) {
stars[symbol].gotoAndStop(2);
stars[symbol]._rotation = random(360);
scalan = random(20) + 19;
stars[symbol]._xscale = scalan;
stars[symbol]._yscale = scalan;
stars[symbol]._x = (random(400) - 190) / 10;
stars[symbol]._y = (random(400) - 190) / 10;
stars[symbol]._alpha = random(35) + 49;
}
Symbol 452 MovieClip [takeTrap_] Frame 13
gotoAndStop (3);
Symbol 457 MovieClip [missileLine_] Frame 12
gotoAndStop (3);
Symbol 457 MovieClip [missileLine_] Frame 25
gotoAndStop (3);
Symbol 457 MovieClip [missileLine_] Frame 34
gotoAndStop (3);
Symbol 461 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 2
stop();
Symbol 461 MovieClip Frame 7
stop();
Symbol 466 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 5
stop();
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 3
if (_parent.warningsKo.length == 0) {
gotoAndPlay (2);
} else {
poppat = _parent.warningsKo.pop();
if (poppat[1] < 0) {
poppat[1] = 0;
} else if (poppat[1] > 550) {
poppat[1] = 550;
}
if (poppat[2] < 0) {
poppat[2] = 0;
} else if (poppat[2] > 400) {
poppat[2] = 400;
}
if (_root.tacke.hudden == 1) {
_root.detect._x = poppat[1];
_root.detect._y = poppat[2];
_root.detect.gotoAndPlay(2);
}
if (poppat[0] == 1) {
gotoAndPlay (4);
} else {
gotoAndPlay (11);
}
_parent.ljud("sndWarning.wav");
}
Symbol 480 MovieClip Frame 10
gotoAndPlay (2);
Symbol 480 MovieClip Frame 17
gotoAndPlay (2);
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 2
_parent.ljud("sndUT2004Denied.wav");
Symbol 494 MovieClip Frame 44
gotoAndStop (1);
Symbol 500 MovieClip Frame 1
if (_parent._parent._parent.PAUSE == 1) {
gotoAndPlay (8);
}
Symbol 500 MovieClip Frame 3
if (_parent._parent._parent.PAUSE == 1) {
gotoAndPlay (8);
}
Symbol 500 MovieClip Frame 5
if (_parent._parent._parent.PAUSE == 1) {
gotoAndPlay (8);
}
Symbol 500 MovieClip Frame 7
gotoAndPlay (1);
Symbol 500 MovieClip Frame 8
if (_parent._parent._parent.PAUSE != 1) {
gotoAndPlay (10);
}
Symbol 500 MovieClip Frame 9
gotoAndPlay (8);
Symbol 500 MovieClip Frame 10
gotoAndPlay (1);
Symbol 512 MovieClip Frame 2
if ((_parent._parent._parent.tacke.showTime == 0) && (_parent._parent._parent.tacke.permanent == 0)) {
gotoAndPlay (1);
}
Symbol 512 MovieClip Frame 4
if ((_parent._parent._parent.tacke.showTime == 0) && (_parent._parent._parent.tacke.permanent == 0)) {
gotoAndPlay (1);
} else {
_parent._parent.ljud("sndTapeMeasure.wav");
gotoAndPlay (5);
}
Symbol 512 MovieClip Frame 8
if ((_parent._parent._parent.tacke.showTime != 0) || (_parent._parent._parent.tacke.permanent == 1)) {
gotoAndPlay (7);
} else {
_parent._parent.ljud("sndTapeMeasureClose.wav");
gotoAndPlay (9);
}
Symbol 512 MovieClip Frame 11
gotoAndPlay (1);
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 20
_parent._parent.ljud("sndFallout2levelup.wav");
buffer = _parent._parent.recordText;
_parent._parent.recordText = "Best: " + _parent._parent.record;
if (buffer != _parent._parent.recordText) {
Tiden = _parent._parent.timer;
_parent._parent.spsText = "Score/s: " + (Math.round((_parent._parent.record / Tiden) * 100) / 100);
_parent._parent.timeText = "Time: " + _parent._parent.makeTime(Tiden);
}
if (_parent._parent.record >= 2000) {
if (_parent._parent.record < 5000) {
_parent._parent.ljud("sndGolfClap.wav");
} else if (_parent._parent.record < 7500) {
_parent._parent.ljud("sndBoardRoomApplause.wav");
} else if (_parent._parent.record < 10000) {
_parent._parent.ljud("sndBoardRoomApplause.wav");
_parent._parent.ljud("sndNicePresentationApplause.wav");
} else if (_parent._parent.record < 15000) {
_parent._parent.ljud("sndBoardRoomApplause.wav");
_parent._parent.ljud("sndLargeCrowdApplause.wav");
} else {
_parent._parent.ljud("sndGolfClap.wav");
_parent._parent.ljud("sndBoardRoomApplause.wav");
_parent._parent.ljud("sndNicePresentationApplause.wav");
_parent._parent.ljud("sndLargeCrowdApplause.wav");
_parent._parent.ljud("sndConcertApplause.wav");
if (_parent._parent.record >= 20000) {
_parent._parent.ljud("sndUT2004holyshit.wav");
}
}
}
Instance of Symbol 515 MovieClip in Symbol 518 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.newRecord != 0) {
this.play();
_parent._parent.newRecord = 0;
}
}
Symbol 526 MovieClip Frame 1
if (Math.random() < 0.5) {
scriptkiddie._x = Math.random();
} else {
scriptkiddie._x = Math.random() * -1;
}
if (Math.random() < 0.5) {
scriptkiddie._y = Math.random();
} else {
scriptkiddie._y = Math.random() * -1;
}
Symbol 529 MovieClip Frame 17
stop();
Symbol 532 MovieClip Frame 4
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 1
this._y = -99;
Description = "";
DescriptionShow = "";
Time = 0;
TimeMax = 1;
StartTask = 0;
EndTask = 0;
varDescen = "";
timebar._alpha = 0;
StartVarde = 0;
EndVarde = 0;
ReturnTyp = 0;
ReturnStyrka = 0;
BAR = false;
Symbol 534 MovieClip Frame 2
if (_parent._parent.health > 0) {
if (((_parent._parent.PAUSE <= 0) && (_parent._parent.autoPaused == 0)) && (Time >= 0)) {
if (Time == TimeMax) {
_parent._parent.TASK(StartTask, StartVarde, ReturnTyp, ReturnStyrka);
DescriptionShow = "";
w = 0;
while (w < Description.length) {
if (w != 0) {
DescriptionShow = DescriptionShow + " ";
}
DescriptionShow = DescriptionShow + Description.substring(w, w + 1);
w++;
}
if (BAR == true) {
timebar._alpha = 10;
timebar._width = 375;
timebar._height = 7.5;
timebar._x = 0;
timebar._y = 0;
} else {
timebar._alpha = 0;
}
} else if (Time == 0) {
if (EndTask != 0) {
_parent._parent.TASK(EndTask, EndVarde, 0, 0);
}
gotoAndPlay (1);
} else if (Time == (TimeMax - 1)) {
DescriptionShow = Description;
if (BAR == true) {
timebar._alpha = 20;
timebar._width = 312.5;
timebar._height = 6.25;
timebar._x = 0;
timebar._y = 0;
}
if (Description != "(( PAUSE PENALTY ))") {
if (ReturnTyp == 2) {
_parent._parent.STATS[1]++;
} else {
_parent._parent.STATS[0]++;
}
if (Description == "SUPER BONUSES!") {
specialare.gotoAndStop(2);
} else if (Description == "SUPER TRAPS") {
specialare.gotoAndStop(3);
}
_parent._parent.EFFECTARRAY[_parent._parent.EFFECTARRAY.length] = new Array(Description, ReturnTyp, _parent._parent.timer, ((BAR == false) ? -1 : (TimeMax)));
}
} else if (Time == (TimeMax - 2)) {
if (BAR == true) {
timebar._alpha = 40;
timebar._width = 250;
timebar._height = 5;
timebar._x = 0;
timebar._y = 0;
}
} else {
timebar._width = 250 * (Time / (TimeMax - 2));
timebar._x = -125 * (1 - (Time / (TimeMax - 2)));
}
Time--;
if ((Description == "POISON") || (Description == "ANTIDOTE!")) {
if ((_parent._parent.poisonDamage <= 0) && (Time > 0)) {
Time = 0;
}
}
}
} else if (_parent._parent.deathPlay >= 15) {
gotoAndPlay (1);
} else {
bortlangd = Description.length * (_parent._parent.deathPlay / 15);
DescriptionShow = Description.substring(Math.ceil(bortlangd / 2), Description.length - Math.floor(bortlangd / 2));
}
Symbol 534 MovieClip Frame 3
gotoAndPlay (2);
Symbol 535 MovieClip Frame 1
i = 0;
while (i < _parent.timerText.length) {
if (_parent.timerText[i] != undefined) {
for (j in this) {
if ((this[j]._y == -99) && (_parent.timerText[i] != undefined)) {
this[j]._y = -98;
if (_parent.timerText[i][2] == "{gag}") {
_parent.currentGag++;
if (_parent.currentGag > 9) {
_parent.currentGag = 0;
}
gagId = _parent.gagScheme[_parent.currentGag];
if (gagId <= 2) {
this[j].BAR = true;
zetiden = 100;
} else {
this[j].BAR = false;
zetiden = 70;
}
} else {
this[j].BAR = _parent.timerText[i][0];
zetiden = Math.round(_parent.timerText[i][1] * 20);
}
if ((_parent.timerText[i][0] == true) && (_parent.timerText[i][7] == 1)) {
zetiden = Math.round(zetiden * _parent.bonusLastingMultiplyer);
}
this[j].Time = zetiden;
this[j].TimeMax = zetiden;
if (_parent.timerText[i][2] == "{luck}") {
if (_parent.lucky1 == true) {
this[j].Description = "LUCK +1!";
} else {
this[j].Description = "LUCK +2!";
}
} else if (_parent.timerText[i][2] == "{gag}") {
this[j].Description = Array("TICKLE-PROOF!", "GOOD BREATH!", "NO FARTING!", "ONE FREE PHONE CALL!", "BUTTSECKS!", "LESS PIMPLES!", "BIGGER PENIS!", "CHEAPER SODA!", "BETTER LOOKS!", "HIGHER SPERM COUNT!")[gagId];
} else {
this[j].Description = _parent.timerText[i][2];
}
this[j].StartTask = _parent.timerText[i][3];
this[j].EndTask = _parent.timerText[i][4];
this[j].StartVarde = _parent.timerText[i][5];
this[j].EndVarde = _parent.timerText[i][6];
this[j].ReturnTyp = _parent.timerText[i][7];
this[j].ReturnStyrka = _parent.timerText[i][8];
senasteTimern = this[j];
_parent.lastPickUp(this[j].Description);
_parent.timerText.splice(i);
}
}
}
i++;
}
objektNamn = new Array();
for (j in this) {
if ((this[j]._name != undefined) && (this[j]._y != -99)) {
ok = 1;
qwej = 0;
while (qwej < objektNamn.length) {
if (objektNamn[qwej] == this[j]._name) {
ok = 0;
}
qwej++;
}
if (ok == 1) {
objektNamn.push(this[j]._name);
}
}
}
jjj = objektNamn.length;
if (jjj > 0) {
jjj2 = -1;
lastName = "";
j = 0;
while (j < jjj) {
jjj2++;
if (jjj >= 5) {
if (jjj == 5) {
this[objektNamn[j]]._xscale = 80;
this[objektNamn[j]]._yscale = 80;
} else if (jjj == 6) {
this[objektNamn[j]]._xscale = 65;
this[objektNamn[j]]._yscale = 65;
} else if (jjj == 7) {
this[objektNamn[j]]._xscale = 57;
this[objektNamn[j]]._yscale = 57;
} else if (jjj == 8) {
this[objektNamn[j]]._xscale = 49;
this[objektNamn[j]]._yscale = 49;
} else if (jjj == 9) {
this[objektNamn[j]]._xscale = 42;
this[objektNamn[j]]._yscale = 42;
} else {
this[objektNamn[j]]._xscale = 38;
this[objektNamn[j]]._yscale = 38;
}
} else {
this[objektNamn[j]]._xscale = 100;
this[objektNamn[j]]._yscale = 100;
}
this[objektNamn[j]]._y = (jjj2 * this[objektNamn[j]]._height) - ((this[objektNamn[j]]._height * (jjj - 1)) / 2);
j++;
}
}
Symbol 535 MovieClip Frame 2
gotoAndPlay (1);
Symbol 541 MovieClip Frame 10
stop();
Symbol 541 MovieClip Frame 19
stop();
Symbol 541 MovieClip Frame 24
stop();
Symbol 542 MovieClip Frame 1
function Initiate(distans, hastighet) {
amount = (amountMax = Math.ceil(Math.abs(distans) / Math.abs(hastighet)));
this._alpha = 0;
pil.gotoAndPlay(1);
gotoAndPlay (1);
}
this._x = -99;
this._y = -99;
amount = 0;
amountMax = 0;
stop();
Symbol 542 MovieClip Frame 2
amount--;
alphan = 100 - (100 * (amount / amountMax));
if (alphan < 15) {
alphan = 15;
}
if ((alphan > 60) && (pil._currentframe <= 10)) {
pil.play();
}
if ((amount <= 5) && (pil._currentframe <= 19)) {
pil.play();
}
this._alpha = alphan;
Symbol 542 MovieClip Frame 3
if ((amount != 0) && (_parent.health > 0)) {
gotoAndPlay (2);
}
Symbol 545 MovieClip Frame 1
klossar._alpha = 0;
Symbol 546 MovieClip Frame 1
workarea._alpha = 0;
Symbol 549 MovieClip Frame 1
klossar._alpha = 0;
Symbol 550 MovieClip Frame 1
workarea._alpha = 0;
Symbol 552 MovieClip Frame 1
klossar._alpha = 0;
Symbol 553 MovieClip Frame 1
workarea._alpha = 0;
Symbol 556 MovieClip Frame 1
workarea._alpha = 0;
Symbol 557 MovieClip Frame 1
Symbol 557 MovieClip Frame 2
Symbol 557 MovieClip Frame 3
Symbol 557 MovieClip Frame 4
Symbol 562 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 1
klossar._alpha = 0;
Symbol 569 MovieClip Frame 1
rear._alpha = 0;
Symbol 569 MovieClip Frame 21
if (_parent._parent._parent._parent.missiler[_parent.theMALET] == undefined) {
_parent._parent.gotoAndStop(1);
}
Symbol 569 MovieClip Frame 22
gotoAndPlay (21);
Symbol 570 MovieClip Frame 1
eye.onEnterFrame = function () {
if (theMALET != undefined) {
if (_parent._parent._parent.invis < 40) {
XDISTANCE = _parent._parent._parent.missiler[theMALET][6]._x - _parent._x;
YDISTANCE = _parent._parent._parent.missiler[theMALET][6]._y - _parent._y;
} else {
XDISTANCE = _parent._parent._parent.missiler[theMALET][44] - _parent._x;
YDISTANCE = _parent._parent._parent.missiler[theMALET][45] - _parent._y;
}
thedistance = Math.sqrt((XDISTANCE * XDISTANCE) + (YDISTANCE * YDISTANCE));
rad = Math.asin(YDISTANCE / thedistance);
WantedGrader = (rad * 57.29578) + 90;
if (XDISTANCE < 0) {
WantedGrader = 360 - WantedGrader;
}
this._rotation = WantedGrader;
}
};
klossar._alpha = 0;
Symbol 573 MovieClip Frame 1
klossar._alpha = 0;
Symbol 596 MovieClip Frame 31
stop();
Symbol 597 MovieClip Frame 1
klossar._alpha = 0;
Symbol 598 MovieClip Frame 1
rear._alpha = 0;
stop();
Symbol 598 MovieClip Frame 3
rear._alpha = 0;
Symbol 608 MovieClip Frame 1
wMissile._visible = false;
wGhost._visible = false;
dareA._alpha = 0;
dareB._alpha = 0;
dareC._alpha = 0;
Symbol 615 MovieClip Frame 1
gotoAndPlay (2);
function newMusic(ettELLERnoll) {
if ((ettELLERnoll == 1) || (_root.MUSIKATTSPELA != "main music: Daft Punk - Revolution 909")) {
if (ettELLERnoll == 0) {
_root.MUSIKATTSPELA = "main music: Daft Punk - Revolution 909";
} else {
init++;
if (init > 4) {
init = 0;
}
_root.MUSIKATTSPELA = "music: " + musicks[musicksOrdning[init]];
}
if (_currentframe <= 6) {
_root.MUSIK.stop();
gotoAndPlay (13);
}
if (ettELLERnoll == 1) {
_parent.ljud(("sndTune" + (random(5) + 1)) + ".wav");
} else {
_parent.ljud("sndWalkieTalkieStatic.wav");
}
}
}
musicks = new Array("Big & Rich - Save a Horse (Ride a Cowboy)", "Bonobo - Recurring", "Macaroni Sound - The Game", "Reverend & The Makers - Heavyweight Champion Of The World", "Northborne - BabyNeedsCoke");
if (init == undefined) {
musicksOrdning = new Array(0, 1, 2, 3, 4);
i = 0;
while (i < 3) {
j = 0;
while (j < 5) {
fromthis = random(5);
buffi = musicksOrdning[fromthis];
musicksOrdning[fromthis] = musicksOrdning[j];
musicksOrdning[j] = buffi;
j++;
}
i++;
}
init = -1;
}
Symbol 615 MovieClip Frame 2
_root.MUSIK.attachSound(_root.MUSIKATTSPELA);
_root.MUSIK.start(0, 999999);
Symbol 615 MovieClip Frame 6
stop();
Symbol 615 MovieClip Frame 7
_root.MUSIK.stop();
_parent.ljud("sndScratch.wav");
_parent.showSymbol(-4);
Symbol 615 MovieClip Frame 11
stop();
Symbol 615 MovieClip Frame 12
_parent.ljud("sndElectricOn.wav");
_parent.showSymbol(4);
gotoAndPlay (2);
Symbol 615 MovieClip Frame 13
_parent.ljud("sndStaticShort.wav");
Symbol 615 MovieClip Frame 14
gotoAndPlay (2);
Symbol 618 MovieClip Frame 1
_parent._parent.ljud2(("sndFireworksConst" + (random(9) + 1)) + ".wav");
_parent._parent.ljud2("sndCrickets.wav");
_parent._parent.ljud2(("sndCicadas" + (random(2) + 1)) + ".wav");
Symbol 619 MovieClip Frame 21
if (Math.random() < 0.05) {
gotoAndPlay (201);
}
Symbol 619 MovieClip Frame 41
if (Math.random() < 0.1) {
gotoAndPlay (201);
}
Symbol 619 MovieClip Frame 61
if (Math.random() < 0.15) {
gotoAndPlay (201);
}
Symbol 619 MovieClip Frame 81
if (Math.random() < 0.2) {
gotoAndPlay (201);
}
Symbol 619 MovieClip Frame 101
if (Math.random() < 0.25) {
gotoAndPlay (201);
}
Symbol 619 MovieClip Frame 121
if (Math.random() < 0.3) {
gotoAndPlay (201);
}
Symbol 619 MovieClip Frame 141
if (Math.random() < 0.35) {
gotoAndPlay (201);
}
Symbol 619 MovieClip Frame 161
if (Math.random() < 0.4) {
gotoAndPlay (201);
}
Symbol 619 MovieClip Frame 181
if (Math.random() < 0.45) {
gotoAndPlay (201);
}
Symbol 619 MovieClip Frame 201
_parent._parent.ljud2(("sndFireworks" + (random(14) + 1)) + ".wav");
Symbol 624 MovieClip Frame 1
stop();
Symbol 628 MovieClip Frame 1
delayen = -1;
stop();
Symbol 630 MovieClip Frame 1
COWQUEST = new LoadVars();
COWQUEST.load("COMMAND.TXT");
COWQUEST.onLoad = function (success) {
if (success == true) {
_parent.square.square.basen.gotoAndPlay(2);
_parent.DoTheCircleA();
}
};
Symbol 631 MovieClip Frame 1
function MoveObject(container, ObjektNamn) {
j = -1;
for (i in container) {
j++;
if (this[ObjektNamn][j] == undefined) {
if (j < getval(ObjektNamn + "max")) {
ok = true;
if (ObjektNamn == "trapp") {
trapCycleCurrent++;
if (trapCycleCurrent == (trapCycle * 2)) {
if (maxTimeBetweenTrapCounter >= (maxTimeBetweenTrap * 20)) {
trap.ring.gotoAndStop(1);
maxTimeBetweenTrapCounter = 0;
} else if ((trap2chanse != 0) && (maxTimeBetweenSuperTrapCounter >= (maxTimeBetweenSuperTrap * 20))) {
trap.ring.gotoAndStop(2);
maxTimeBetweenSuperTrapCounter = 0;
} else if (Math.random() < trapChanse) {
if (Math.random() < trap4chanse) {
trap.ring.gotoAndStop(4);
} else if (Math.random() < trap3chanse) {
trap.ring.gotoAndStop(3);
} else if (Math.random() < trap2chanse) {
trap.ring.gotoAndStop(2);
} else {
trap.ring.gotoAndStop(1);
}
} else {
ok = false;
}
trapCycleCurrent = 0;
} else {
ok = false;
}
} else if (ObjektNamn == "bonuss") {
bonusCycleCurrent++;
if (bonusCycleCurrent == (bonusCycle * 2)) {
if (maxTimeBetweenBonusCounter >= (maxTimeBetweenBonus * 20)) {
bonus.ring.gotoAndStop(1);
maxTimeBetweenBonusCounter = 0;
} else if ((bonus2chanse != 0) && (maxTimeBetweenSuperBonusCounter >= (maxTimeBetweenSuperBonus * 20))) {
bonus.ring.gotoAndStop(2);
maxTimeBetweenSuperBonusCounter = 0;
} else if ((Math.random() < bonusChanse) && LUCKROLL(5)) {
if ((Math.random() < bonus4chanse) && LUCKROLL(7)) {
bonus.ring.gotoAndStop(4);
} else if ((Math.random() < bonus3chanse) && LUCKROLL(6)) {
bonus.ring.gotoAndStop(3);
} else if ((Math.random() < bonus2chanse) && LUCKROLL(5)) {
bonus.ring.gotoAndStop(2);
} else {
bonus.ring.gotoAndStop(1);
}
} else {
ok = false;
}
bonusCycleCurrent = 0;
} else {
ok = false;
}
}
if (ok == true) {
if (ObjektNamn == "fiender") {
container[i].wMissile._visible = false;
container[i].wGhost._visible = false;
STATS[7]++;
} else if (ObjektNamn == "blacks") {
STATS[6]++;
} else if (ObjektNamn == "trapp") {
STATS[5]++;
} else if (ObjektNamn == "bonuss") {
STATS[4]++;
}
pull = random(100) + 1;
ArrayEN = new Array();
if (pull <= 25) {
ArrayEN = calculateXY(0, 400, ObjektNamn, true, ArrayEN);
makeSpawn(ObjektNamn, ArrayEN[0], ArrayEN[1], 1);
} else if ((pull > 25) && (pull <= 50)) {
ArrayEN = calculateXY(550, 400, ObjektNamn, true, ArrayEN);
makeSpawn(ObjektNamn, ArrayEN[0], ArrayEN[1], 1);
} else if ((pull > 50) && (pull <= 75)) {
ArrayEN = calculateXY(550, 0, ObjektNamn, false, ArrayEN);
makeSpawn(ObjektNamn, ArrayEN[0], ArrayEN[1], 0);
} else {
ArrayEN = calculateXY(550, 400, ObjektNamn, false, ArrayEN);
makeSpawn(ObjektNamn, ArrayEN[0], ArrayEN[1], 0);
}
}
}
} else {
speedNgrowthModifyer = 1;
if (ObjektNamn == "fiender") {
speedNgrowthModifyer = EnemyTravelSpeed;
}
this[ObjektNamn][j][0] = this[ObjektNamn][j][0] + ((this[ObjektNamn][j][2] / 20) * speedNgrowthModifyer);
this[ObjektNamn][j][1] = this[ObjektNamn][j][1] + ((this[ObjektNamn][j][3] / 20) * speedNgrowthModifyer);
if ((((this[ObjektNamn][j][0] >= 0) && (this[ObjektNamn][j][0] < 550)) && (this[ObjektNamn][j][1] >= 0)) && (this[ObjektNamn][j][1] < 400)) {
this[ObjektNamn][j][4] = this[ObjektNamn][j][4] + ((this[ObjektNamn][j][6] / 20) * speedNgrowthModifyer);
this[ObjektNamn][j][5] = this[ObjektNamn][j][5] + ((this[ObjektNamn][j][7] / 20) * speedNgrowthModifyer);
}
objArUtanForSkarmenOchPlockasBort = 0;
if ((this[ObjektNamn][j][2] >= 0) && (this[ObjektNamn][j][0] > (550 + (TweakPgaSort(1, ObjektNamn, this[ObjektNamn][j][4]) / 2)))) {
this[ObjektNamn][j] = undefined;
objArUtanForSkarmenOchPlockasBort = 1;
} else if ((this[ObjektNamn][j][3] >= 0) && (this[ObjektNamn][j][1] > (400 + (TweakPgaSort(1, ObjektNamn, this[ObjektNamn][j][5]) / 2)))) {
this[ObjektNamn][j] = undefined;
objArUtanForSkarmenOchPlockasBort = 1;
} else if ((this[ObjektNamn][j][2] <= 0) && (this[ObjektNamn][j][0] < (-(TweakPgaSort(1, ObjektNamn, this[ObjektNamn][j][4]) / 2)))) {
this[ObjektNamn][j] = undefined;
objArUtanForSkarmenOchPlockasBort = 1;
} else if ((this[ObjektNamn][j][3] <= 0) && (this[ObjektNamn][j][1] < (-(TweakPgaSort(1, ObjektNamn, this[ObjektNamn][j][5]) / 2)))) {
this[ObjektNamn][j] = undefined;
objArUtanForSkarmenOchPlockasBort = 1;
}
if (objArUtanForSkarmenOchPlockasBort == 1) {
if (ObjektNamn == "blacks") {
blacksrowcollect = 0;
} else if (ObjektNamn == "bonuss") {
bonusrowcollect = 0;
}
}
}
}
j = -1;
do {
if ((in container) == null) {
break;
}
i = in container;
j++;
if (this[ObjektNamn][j] != undefined) {
container[i]._x = this[ObjektNamn][j][0];
container[i]._y = this[ObjektNamn][j][1];
container[i]._width = this[ObjektNamn][j][4];
container[i]._height = this[ObjektNamn][j][5];
distancen = -1;
if (this[ObjektNamn][j][8] > 0) {
if (warnings) {
container[i].wMissile._visible = true;
}
this[ObjektNamn][j][9]--;
if (this[ObjektNamn][j][9] <= 0) {
distancen = LeDist(this[ObjektNamn][j][0], this[ObjektNamn][j][1]);
if ((distancen > 150) || (!LUCKROLL(10))) {
this[ObjektNamn][j][8]--;
if (!(((LUCKROLL(10) && (LUCKROLL(9))) && (LUCKROLL(6))) && (LUCKROLL(5)))) {
SpawnMissile(1, square, this[ObjektNamn][j][0], this[ObjektNamn][j][1]);
this[ObjektNamn][j][9] = this[ObjektNamn][j][12];
}
} else {
this[ObjektNamn][j][9] = 20;
}
}
if (warnings && (this[ObjektNamn][j][8] == 0)) {
container[i].wMissile._visible = false;
}
}
if (this[ObjektNamn][j][10] > 0) {
if (warnings) {
container[i].wGhost._visible = true;
}
this[ObjektNamn][j][11]--;
if (this[ObjektNamn][j][11] <= 0) {
spoki = this[ObjektNamn][j][10];
while (spoki > 0) {
this[ObjektNamn][j][10]--;
if (!(((LUCKROLL(10) && (LUCKROLL(10))) && (LUCKROLL(6))) && (LUCKROLL(5)))) {
SpawnMissile(2, square);
}
spoki--;
}
}
if (warnings && (this[ObjektNamn][j][10] == 0)) {
container[i].wGhost._visible = false;
}
}
if (this[ObjektNamn][j][13] >= 0) {
this[ObjektNamn][j][13]--;
if (this[ObjektNamn][j][13] == 0) {
if (distancen == -1) {
distancen = LeDist(this[ObjektNamn][j][0], this[ObjektNamn][j][1]);
}
if ((distancen > 100) || (!LUCKROLL(10))) {
if (!(LUCKROLL(10) && (LUCKROLL(8)))) {
SpawnMissile(3, square, this[ObjektNamn][j][0], this[ObjektNamn][j][1]);
}
} else {
this[ObjektNamn][j][13] = 20;
}
}
}
} else {
remove(container[i]);
}
} while ((j + 1) < this[ObjektNamn].length);
do {
} while (() != null);
}
function makeSpawn(ObjektNamn, startingX, startingY, Horizontal) {
if ((RULEnoReds == 0) || (ObjektNamn != "fiender")) {
objektStorlek = between(getval(ObjektNamn + "SizeMin"), getval(ObjektNamn + "SizeMax")) / 10;
objektBredd = TweakPgaSort(0, ObjektNamn, objektStorlek);
objektHojd = TweakPgaSort(0, ObjektNamn, objektStorlek);
if (Math.random() < getval(ObjektNamn + "MutationChanse")) {
if (Math.random() < 0.5) {
objektBredd = objektBredd * (between(getval(ObjektNamn + "MutationMin"), getval(ObjektNamn + "MutationMax")) / 100);
LossSidan = objektHojd - ((objektBredd - objektHojd) * getval(ObjektNamn + "MutationThinner"));
if (LossSidan < (objektHojd * 0.1)) {
objektHojd = objektHojd * 0.1;
} else {
objektHojd = LossSidan;
}
if (objektHojd < 2) {
objektHojd = 2;
}
} else {
objektHojd = objektHojd * (between(getval(ObjektNamn + "MutationMin"), getval(ObjektNamn + "MutationMax")) / 100);
LossSidan = objektBredd - ((objektHojd - objektBredd) * getval(ObjektNamn + "MutationThinner"));
if (LossSidan < (objektBredd * 0.1)) {
objektBredd = objektBredd * 0.1;
} else {
objektBredd = LossSidan;
}
if (objektBredd < 2) {
objektBredd = 2;
}
}
}
PUREobjektBredd = TweakPgaSort(1, ObjektNamn, objektBredd);
PUREobjektHojd = TweakPgaSort(1, ObjektNamn, objektHojd);
if (Math.random() < getval(ObjektNamn + "ManiacChanse")) {
objektHastighet = (getval(ObjektNamn + "SpeedMax") / 10) * (between(getval(ObjektNamn + "ManiacSpeedMin"), getval(ObjektNamn + "ManiacSpeedMax")) / 1000);
} else {
objektHastighet = between(getval(ObjektNamn + "SpeedMin"), getval(ObjektNamn + "SpeedMax")) / 10;
}
objektDelay = objektHastighet * (between(getval(ObjektNamn + "MinDelay"), getval(ObjektNamn + "MaxDelay")) / 100);
if (Math.random() < getval(ObjektNamn + "GrowthChanse")) {
if (Horizontal == 1) {
tidDetTar = 550 / objektHastighet;
} else {
tidDetTar = 400 / objektHastighet;
}
vaxten = between(getval(ObjektNamn + "GrowthMin"), getval(ObjektNamn + "GrowthMax")) / 100;
objektVaxtBredd = (objektBredd * vaxten) / tidDetTar;
objektVaxtHojd = (objektHojd * vaxten) / tidDetTar;
} else {
objektVaxtBredd = 0;
objektVaxtHojd = 0;
}
if (Horizontal == 1) {
if (startingX == 0) {
startingX = startingX - objektDelay;
startingX = startingX - (PUREobjektBredd / 2);
thedirection = 1;
} else {
startingX = startingX + objektDelay;
startingX = startingX + (PUREobjektBredd / 2);
thedirection = -1;
}
if (Math.random() < getval(ObjektNamn + "DiagonalChanse")) {
if (Math.random() < 0.5) {
ArrayWork(ObjektNamn, j, startingX, startingY, objektHastighet * thedirection, objektHastighet * (between(getval(ObjektNamn + "DiagonalSpeedMin"), getval(ObjektNamn + "DiagonalSpeedMax")) / 100), objektBredd, objektHojd, objektVaxtBredd, objektVaxtHojd);
} else {
ArrayWork(ObjektNamn, j, startingX, startingY, objektHastighet * thedirection, (objektHastighet * -1) * (between(getval(ObjektNamn + "DiagonalSpeedMin"), getval(ObjektNamn + "DiagonalSpeedMax")) / 100), objektBredd, objektHojd, objektVaxtBredd, objektVaxtHojd);
}
} else {
ArrayWork(ObjektNamn, j, startingX, startingY, objektHastighet * thedirection, 0, objektBredd, objektHojd, objektVaxtBredd, objektVaxtHojd);
}
} else {
if (startingY == 0) {
startingY = startingY - objektDelay;
startingY = startingY - (PUREobjektHojd / 2);
thedirection = 1;
} else {
startingY = startingY + objektDelay;
startingY = startingY + (PUREobjektHojd / 2);
thedirection = -1;
}
if (Math.random() < getval(ObjektNamn + "DiagonalChanse")) {
if (Math.random() < 0.5) {
ArrayWork(ObjektNamn, j, startingX, startingY, objektHastighet * (between(getval(ObjektNamn + "DiagonalSpeedMin"), getval(ObjektNamn + "DiagonalSpeedMax")) / 100), objektHastighet * thedirection, objektBredd, objektHojd, objektVaxtBredd, objektVaxtHojd);
} else {
ArrayWork(ObjektNamn, j, startingX, startingY, (objektHastighet * -1) * (between(getval(ObjektNamn + "DiagonalSpeedMin"), getval(ObjektNamn + "DiagonalSpeedMax")) / 100), objektHastighet * thedirection, objektBredd, objektHojd, objektVaxtBredd, objektVaxtHojd);
}
} else {
ArrayWork(ObjektNamn, j, startingX, startingY, 0, objektHastighet * thedirection, objektBredd, objektHojd, objektVaxtBredd, objektVaxtHojd);
}
}
}
}
function TweakPgaSort(DELA, ObjektNamn, vardet) {
if (ObjektNamn == "fiender") {
if (DELA == 1) {
return(vardet / 1.9);
}
return(vardet * 1.9);
}
if ((ObjektNamn == "bonuss") || (ObjektNamn == "trapp")) {
if (DELA == 1) {
return(vardet / 1.9);
}
return(vardet * 2.5);
}
return(vardet);
}
function ArrayWork(ObjektNamn, j, STARTX, STARTY, SPEEDX, SPEEDY, BREDDEN, HOJDEN, VAXTBREDD, VAXTHOJD) {
missilerNR = 0;
missilTIMER = -1;
spokenNR = 0;
spokenTIMER = -1;
missilTIMERreset = -1;
laggMinaTid = -1;
if (ObjektNamn == "fiender") {
if ((maxTimeBetweenMissiles * 20) <= maxTimeBetweenMissilesCounter) {
missileSquareDelayKvar = 0;
}
if ((maxTimeBetweenGhosts * 20) <= maxTimeBetweenGhostsCounter) {
ghostSquareDelayKvar = 0;
}
kommaMinor = ((minorUte < minorMaxUte) && (Math.random() < 0.2)) && (!LUCKROLL(9));
if (((missileSquareDelayKvar <= 0) || (ghostSquareDelayKvar <= 0)) || (kommaMinor)) {
tidSekunderX = 550 / (Math.abs(SPEEDX) + 1);
tidSekunderY = 400 / (Math.abs(SPEEDY) + 1);
if (tidSekunderX < tidSekunderY) {
tidSekunder = 550 / Math.abs(SPEEDX);
} else {
tidSekunder = 400 / Math.abs(SPEEDY);
}
if (missileSquareDelayKvar <= 0) {
if ((Math.random() < missileChance) || ((maxTimeBetweenMissiles * 20) <= maxTimeBetweenMissilesCounter)) {
missilerNR = 1;
maxTimeBetweenMissilesCounter = 0;
}
if (missilerNR > 0) {
while ((Math.random() < AnotherMissileChance) && (missilerNR < getval("Missilesmax"))) {
missilerNR++;
}
TravelFramesTot = tidSekunder * 20;
missilTIMER = (TravelFramesTot / 2) * ((random(81) + 20) / 100);
missilTIMERreset = TravelFramesTot - missilTIMER;
missilTIMERreset = missilTIMERreset * ((random(80) + 1) / 100);
missilTIMERreset = missilTIMERreset / (missilerNR - 1);
missileSquareDelayKvar = missileSquareDelay;
}
}
if (ghostSquareDelayKvar <= 0) {
if ((Math.random() < ghostChance) || ((maxTimeBetweenGhosts * 20) <= maxTimeBetweenGhostsCounter)) {
spokenNR = 1;
maxTimeBetweenGhostsCounter = 0;
}
if (spokenNR > 0) {
while ((Math.random() < AnotherGhostChance) && (spokenNR < getval("Ghostsmax"))) {
spokenNR++;
}
spokenTIMER = (tidSekunder * 20) * ((random(81) + 10) / 100);
ghostSquareDelayKvar = ghostSquareDelay;
}
}
if (kommaMinor) {
totFrames = tidSekunder * 20;
miniFrames = totFrames * 0.1;
if ((Math.random < 0.75) && (LUCKROLL(10))) {
framesen = miniFrames / 2;
} else {
framesen = miniFrames;
}
laggMinaTid = Math.ceil(miniFrames + framesen);
}
}
}
if (warnings) {
if (missilerNR != 0) {
warningsKo.push(new Array(1, STARTX, STARTY));
}
if (spokenNR != 0) {
warningsKo.push(new Array(2, STARTX, STARTY));
}
}
if (predict) {
if (ObjektNamn == "blacks") {
pointerX = STARTX;
pointerY = STARTY;
pekarn = this["pointer" + j];
if (pointerX < 0) {
pointerX = 15;
pekarn._rotation = 270;
pekarn.Initiate(STARTX, SPEEDX / 20);
} else if (pointerX > 550) {
pointerX = 535;
pekarn._rotation = 90;
pekarn.Initiate(STARTX - 550, SPEEDX / 20);
}
if (pointerY < 0) {
pointerY = 15;
pekarn._rotation = 0;
pekarn.Initiate(STARTY, SPEEDY / 20);
} else if (pointerY > 400) {
pointerY = 385;
pekarn._rotation = 180;
pekarn.Initiate(STARTY - 400, SPEEDY / 20);
}
pekarn._x = pointerX;
pekarn._y = pointerY;
}
}
this[ObjektNamn][j] = new Array(STARTX, STARTY, SPEEDX, SPEEDY, BREDDEN, HOJDEN, VAXTBREDD, VAXTHOJD, missilerNR, missilTIMER, spokenNR, spokenTIMER, missilTIMERreset, laggMinaTid, 0);
}
function calculateXY(xxEN, yyEN, ObjektNamn, XarKonstant, ArrayEN) {
do {
if (XarKonstant) {
ArrayEN[0] = xxEN;
ArrayEN[1] = random(yyEN) + 1;
} else {
ArrayEN[0] = random(xxEN) + 1;
ArrayEN[1] = yyEN;
}
if (ObjektNamn == "fiender") {
distancen = LeDist(ArrayEN[0], ArrayEN[1]);
arEjForNara = (distancen > 100) || (!(LUCKROLL(10) && (LUCKROLL(5))));
} else {
arEjForNara = true;
}
} while (arEjForNara == false);
return(ArrayEN);
}
function SpawnMissile(theMode, theTarget, spawnX, spawnY) {
if (((spawnX == undefined) || (forcedMine != 0)) || ((((spawnX >= 10) && (spawnX <= 540)) && (spawnY >= 10)) && (spawnY <= 390))) {
if ((((theMode <= 0) || ((theMode == 3) && (minorUte < minorMaxUte))) || ((theMode == 1) && (missilerUte < getval("Missilesmax")))) || ((theMode == 2) && (ghostsUte < getval("Ghostsmax")))) {
if ((((theMode <= 0) || (theMode == 3)) || ((theMode == 1) && (RULEnoMissiles == 0))) || ((theMode == 2) && (RULEnoGhosts == 0))) {
m = 0;
while (m <= missiler.length) {
if (missiler[m] == undefined) {
break;
}
m++;
}
missiler[m] = new Array();
ghostarrayn = new Array();
if (((theMode <= 0) || (theMode == 1)) || (theMode == 3)) {
modeTxt = "Missiles";
} else {
modeTxt = "Ghosts";
}
sizenNu = between(getval(modeTxt + "sizenowmin"), getval(modeTxt + "sizenowmax"));
if (((theMode <= 0) || (theMode == 1)) || (theMode == 3)) {
if (theMode == 1) {
missilerUte++;
STATS[8]++;
}
if (theMode == 3) {
minorUte++;
STATS[10]++;
if (forcedMine == 0) {
ljud("sndRedAlert1minelay1.wav");
}
}
missiler[m][0] = spawnX;
missiler[m][1] = spawnY;
} else {
ghostsUte++;
STATS[9]++;
do {
ghostarrayn = GetGhostPoints(10 * (sizenNu / 100), ghostarrayn);
distancen = LeDist(ghostarrayn[0], ghostarrayn[1]);
arEjForNara = (distancen > 300) || (!LUCKROLL(10));
} while (arEjForNara == false);
missiler[m][0] = ghostarrayn[0];
missiler[m][1] = ghostarrayn[1];
}
missiler[m][2] = 0;
missiler[m][3] = 0;
if (theMode <= 0) {
STATS[18]++;
spokMissilTyp = Math.random();
if (spokMissilTyp >= 0.4) {
missiler[m][4] = 600;
missiler[m][5] = 1;
missiler[m][6] = theTarget;
missiler[m][7] = 20;
missiler[m][8] = 360;
missiler[m][9] = 5;
missiler[m][10] = 25;
missiler[m][11] = 100;
missiler[m][12] = 2;
missiler[m][13] = 10;
} else {
missiler[m][4] = 10000;
missiler[m][5] = 1;
missiler[m][6] = theTarget;
missiler[m][7] = 2;
missiler[m][8] = 135;
missiler[m][9] = 15;
missiler[m][10] = 5;
missiler[m][11] = 150;
missiler[m][12] = 3;
missiler[m][13] = 500;
}
} else {
missiler[m][4] = 1000;
missiler[m][5] = between(getval(modeTxt + "startspeedmin"), getval(modeTxt + "startspeedmax")) / 100;
missiler[m][6] = theTarget;
missiler[m][7] = between(getval(modeTxt + "lifetimemin"), getval(modeTxt + "lifetimemax")) / 1000;
missiler[m][8] = 360;
missiler[m][9] = between(getval(modeTxt + "sizegrowthmin"), getval(modeTxt + "sizegrowthmax")) / 1000;
missiler[m][10] = sizenNu;
missiler[m][11] = between(getval(modeTxt + "sizefinalmin"), getval(modeTxt + "sizefinalmax"));
missiler[m][12] = between(getval(modeTxt + "accelerationmin"), getval(modeTxt + "accelerationmax")) / 10;
missiler[m][13] = between(getval(modeTxt + "maxspeedmin"), getval(modeTxt + "maxspeedmax")) / 100;
}
if ((theMode == 1) || (theMode == 3)) {
missiler[m][14] = between(getval("Missilesturnratemin"), getval("Missilesturnratemax")) / 100;
} else if (theMode <= 0) {
if (spokMissilTyp >= 0.4) {
missiler[m][14] = 16;
} else {
missiler[m][14] = 8;
}
} else {
missiler[m][14] = between(getval("Ghoststurnratemin"), getval("Ghoststurnratemax")) / 1000;
}
if (theMode <= 0) {
ljud("sndGhostLaunch.wav");
missiler[m][15] = 1;
} else {
missiler[m][15] = theMode;
}
missiler[m][16] = 0;
missiler[m][17] = 0;
missiler[m][18] = 0;
if ((theMode == 1) && (Math.random() < getval("MissilesSmartChanse"))) {
missiler[m][19] = between(getval("MissilesSmartMin"), getval("MissilesSmartMax")) / 10;
STATS[14]++;
if (LUCKROLL(10)) {
missiler[m][7] = missiler[m][7] * (between(100, 150) / 100);
} else {
missiler[m][7] = missiler[m][7] * (between(125, 300) / 100);
}
ljud("sndLieroLarpa.wav");
} else {
if (theMode == 1) {
ljud("sndLieroBazooka.wav");
}
missiler[m][19] = 0;
}
if (theMode <= 0) {
missiler[m][20] = 10;
} else {
missiler[m][20] = between(getval("Missilesdeaccelerationmin"), getval("Missilesdeaccelerationmax")) / 10;
}
ghostarrayn = GetGhostPoints(100, ghostarrayn);
missiler[m][21] = ghostarrayn[0];
missiler[m][22] = ghostarrayn[1];
missiler[m][23] = 0;
if ((((timer > 50) && (RULEnoBosses == 0)) && (theMode == 2)) && (Math.random() < getval("GhostsBossChanse"))) {
missiler[m][24] = between(getval("GhostsBossMin"), getval("GhostsBossMax")) / 10;
STATS[16]++;
ljud("sndDiabloButcherFreshMeat.wav");
} else {
if (theMode == 2) {
ljud("sndGhost.wav");
}
missiler[m][24] = 0;
}
if (theMode <= 0) {
if (spokMissilTyp >= 0.4) {
missiler[m][25] = 1.5;
missiler[m][26] = 2;
missiler[m][27] = 0;
missiler[m][28] = theMode;
missiler[m][29] = 0;
missiler[m][30] = true;
} else {
missiler[m][25] = 100;
missiler[m][26] = 0;
missiler[m][27] = 0;
missiler[m][28] = theMode;
missiler[m][29] = 0;
missiler[m][30] = false;
}
missiler[m][31] = 125;
missiler[m][32] = 20;
missiler[m][33] = 12;
} else {
missiler[m][25] = 100;
missiler[m][26] = 0;
missiler[m][27] = 0;
missiler[m][28] = theMode;
missiler[m][29] = 0;
missiler[m][30] = false;
missiler[m][31] = 0;
missiler[m][32] = 0;
missiler[m][33] = 0;
}
missiler[m][34] = 0;
missiler[m][35] = 0;
if ((theMode == 3) && ((forcedMine == 2) || (((forcedMine == 0) && (Math.random() < jumpMineChance)) && (nojumpmines == false)))) {
missiler[m][36] = between(1, 360);
STATS[20]++;
} else {
missiler[m][36] = 0;
}
missiler[m][37] = -1;
missiler[m][38] = 0;
missiler[m][39] = 0;
missiler[m][40] = 0;
missiler[m][41] = 0;
missiler[m][42] = forcedMine;
missiler[m][43] = 0;
missiler[m][44] = -1;
missiler[m][45] = -1;
}
}
}
}
function GetGhostPoints(extraRange, ghostarrayn) {
exitSlump = random(4) + 1;
if (exitSlump == 1) {
ghostarrayn[0] = (random(550 + (extraRange * 2)) + 1) - extraRange;
ghostarrayn[1] = extraRange * -1;
} else if (exitSlump == 2) {
ghostarrayn[0] = 550 + extraRange;
ghostarrayn[1] = (random(400 + (extraRange * 2)) + 1) - extraRange;
} else if (exitSlump == 3) {
ghostarrayn[0] = extraRange * -1;
ghostarrayn[1] = (random(400 + (extraRange * 2)) + 1) - extraRange;
} else {
ghostarrayn[0] = (random(550 + (extraRange * 2)) + 1) - extraRange;
ghostarrayn[1] = 400 + extraRange;
}
return(ghostarrayn);
}
function squareOnEnterFrame() {
damage = 0;
missilesHit = 0;
ghostmissilesHit = 0;
ghostsHit = 0;
mineHit = 0;
squarelevel1 = new Array();
iii = -1;
for (j in square.square.level1) {
iii++;
point = new Object();
point.x = square.square.level1[j]._x;
point.y = square.square.level1[j]._y;
square.square.level1.localToGlobal(point);
squarelevel1[iii] = new Array(point.x, point.y);
}
oOo = -1;
for (OO in missiles) {
oOo++;
if (oOo >= missiler.length) {
break;
}
if (missiler[oOo] != undefined) {
if (missiles[OO].hitTest(square)) {
for (i in missiles[OO].container.klossar) {
if (overlapCheck(1, missiles[OO].container.klossar[i])) {
if (missiler[oOo][34] == 0) {
unikkrock = 0;
if (missiler[oOo][43] == 0) {
missiler[oOo][43] = 1;
unikkrock = 1;
}
OKtoRemove = true;
if (missiler[oOo][15] == 2) {
if (untouchable == true) {
OKtoRemove = false;
} else if ((dodging == false) || (Math.random() >= 0.8)) {
ghostsHit++;
}
if (unikkrock == 1) {
STATS[12]++;
if (missiler[oOo][24] != 0) {
STATS[17]++;
}
}
} else if (missiler[oOo][28] <= 0) {
if (untouchable == true) {
OKtoRemove = false;
} else if ((dodging == false) || (Math.random() >= 0.9)) {
ghostmissilesHit++;
ljud("sndGhostExplosion.wav");
} else {
OKtoRemove = false;
}
if (unikkrock == 1) {
STATS[11]++;
STATS[19]++;
}
} else if (missiler[oOo][15] == 3) {
if (untouchable == true) {
OKtoRemove = false;
} else {
Lotto = Math.random();
if ((mineSpec == true) && (Lotto < 0.15)) {
minorUte++;
} else if ((mineSpec == true) && (Lotto < 0.5)) {
OKtoRemove = false;
} else {
mineHit++;
ljud("sndRedAlert1mineblo1.wav");
}
}
if (unikkrock == 1) {
STATS[13]++;
if (missiler[oOo][36] != 0) {
STATS[21]++;
}
}
} else {
if (untouchable == true) {
OKtoRemove = false;
} else if ((dodging == false) || ((missiler[oOo][19] != 0) && (Math.random() >= 0.9))) {
missilesHit++;
ljud(("sndExplosion" + (random(4) + 1)) + ".wav");
} else {
OKtoRemove = false;
}
if (unikkrock == 1) {
STATS[11]++;
if (missiler[oOo][19] != 0) {
STATS[15]++;
}
}
}
if ((OKtoRemove == true) && (missiler[oOo][15] != 2)) {
missiler[oOo][35] = 1;
} else {
missiler[oOo][34] = ghostDamageDelay;
}
}
break;
}
}
}
}
}
if (_root.POPP == true) {
if (theGreatA == false) {
if (((squarex < 65) && (squarey < 80)) && (_root.framesStill >= 10)) {
theGreatA = true;
newTimer(false, 9001, "AIDS", 0, 0, 0, 0, 1, 4);
ljud("sndAides.wav");
}
}
}
damage = damage + RedSquareDamage();
if (untouchable == true) {
damage = 0;
}
if ((((missilesHit > 0) || (ghostsHit > 0)) || (ghostmissilesHit > 0)) || (mineHit > 0)) {
healthbuffert = health;
i = 0;
while (i < missilesHit) {
damage = damage + (healthbuffert * missilSkada);
healthbuffert = healthbuffert - (healthbuffert * missilSkada);
i++;
}
i = 0;
while (i < ghostsHit) {
damage = damage + (healthbuffert * ghostSkada);
healthbuffert = healthbuffert - (healthbuffert * ghostSkada);
i++;
}
i = 0;
while (i < ghostmissilesHit) {
damage = damage + (healthbuffert * mghostSkada);
healthbuffert = healthbuffert - (healthbuffert * mghostSkada);
i++;
}
i = 0;
while (i < mineHit) {
damage = damage + (healthbuffert * minaSkada);
healthbuffert = healthbuffert - (healthbuffert * minaSkada);
i++;
}
}
dangerBonus = 1;
dareBonus = 1;
if ((OhShit == false) && (damage == 0)) {
dangerBonus = CheckForDanger();
dareBonus = CheckForDare();
} else {
takeLife(damage);
noDamageBonus = 1;
dareBonus = 0.5;
}
iii = -1;
for (i in good) {
iii++;
if (iii >= blacks.length) {
break;
}
if (blacks[iii] != undefined) {
if (good[i].hitTest(square)) {
if (overlapCheck(1, good[i])) {
if (pausePenalty > 0) {
if (pausePenText == 0) {
pausePenText = 1;
newTimer(false, 1, "(( PAUSE PENALTY ))", 41, 41, 1, 0, 2, 4);
}
} else {
ljud("sndGet.wav");
eyeCandy("takeBlack", new Array(good[i]._x, good[i]._y, good[i]._xscale, good[i]._yscale));
blacks[iii] = undefined;
remove(good[i]);
addScore(100000);
weightCurrent = weightCurrent + weightGain;
if (weightCurrent > weightMax) {
weightCurrent = weightMax;
}
STATS[2]++;
blacksrowcollect++;
if (blacksrowcollect > blacksrowcollectrecord) {
blacksrowcollectrecord = blacksrowcollect;
}
}
}
}
}
}
if (bonuss[0] != undefined) {
if (bonus.ring.containerA.hitTest(square) && (ImmunityReluctance >= 0)) {
for (i in bonus.ring.containerA.containerB.klossar) {
if (overlapCheck(1, bonus.ring.containerA.containerB.klossar[i])) {
if (pausePenalty > 0) {
if (pausePenText == 0) {
pausePenText = 1;
newTimer(false, 1, "(( PAUSE PENALTY ))", 41, 41, 1, 0, 2, 4);
}
} else {
ljud("sndBalloonPop.wav");
eyeCandy("takeBonus", new Array(bonus.ring._x, bonus.ring._y, bonus.ring._xscale, bonus.ring._yscale));
bonuss[0] = undefined;
remove(bonus.ring);
if ((BonusIsBonus == 1) || (BonusIsBonus == -1)) {
BONUSTIEM(bonus.ring._currentframe);
bonusrowcollect++;
if (bonusrowcollect > bonusrowcollectrecord) {
bonusrowcollectrecord = bonusrowcollect;
}
} else {
TRAPTIEM(bonus.ring._currentframe);
}
break;
}
}
}
}
}
if ((trapp[0] != undefined) && (untouchable == false)) {
if (trap.ring.containerA.hitTest(square) && (ImmunityReluctance <= 0)) {
for (i in trap.ring.containerA.containerB.klossar) {
if (overlapCheck(1, trap.ring.containerA.containerB.klossar[i])) {
ljud("sndBalloonPop.wav");
eyeCandy("takeTrap", new Array(trap.ring._x, trap.ring._y, trap.ring._xscale, trap.ring._yscale));
trapp[0] = undefined;
remove(trap.ring);
if ((TrapIsTrap == 1) || (TrapIsTrap == -1)) {
TRAPTIEM(trap.ring._currentframe);
} else {
BONUSTIEM(trap.ring._currentframe);
}
if (invis > 0) {
invis = 1;
}
break;
}
}
}
}
}
function overlapCheck(niva, objektet) {
if (objektet.hitTest(square)) {
if (objektet.hitTest(square["quick" + niva])) {
return(true);
}
if (niva == 1) {
jQ = 0;
while (jQ < squarelevel1.length) {
if (objektet.hitTest(squarelevel1[jQ][0], squarelevel1[jQ][1], true)) {
return(true);
}
jQ++;
}
} else {
for (jQ in square.square["level" + niva]) {
point = new Object();
point.x = square.square["level" + niva][jQ]._x;
point.y = square.square["level" + niva][jQ]._y;
square.square["level" + niva].localToGlobal(point);
if (objektet.hitTest(point.x, point.y, true)) {
return(true);
}
}
}
}
return(false);
}
function RedSquareDamage() {
thisdamage = 0;
iii = -1;
for (i in evil) {
iii++;
if (iii >= fiender.length) {
break;
}
if (fiender[iii] != undefined) {
if (evil[i].theevil.hitTest(square)) {
if (overlapCheck(3, evil[i].theevil)) {
thisdamage = thisdamage + (3 * speedMultiplier(iii));
isUniqueRedHit(iii);
} else if (overlapCheck(2, evil[i].theevil)) {
thisdamage = thisdamage + (2 * speedMultiplier(iii));
isUniqueRedHit(iii);
} else if (overlapCheck(1, evil[i].theevil)) {
thisdamage = thisdamage + (1 * speedMultiplier(iii));
isUniqueRedHit(iii);
}
}
}
}
return(thisdamage);
}
function isUniqueRedHit(redid) {
if (fiender[redid][14] == 0) {
fiender[redid][14] = 1;
STATS[3]++;
}
}
function CheckForDanger() {
for (i in dangerA) {
if (overlapCheck(1, dangerA[i])) {
return(2);
}
}
for (i in dangerB) {
if (overlapCheck(1, dangerB[i])) {
return(1.75);
}
}
for (i in dangerC) {
if (overlapCheck(1, dangerC[i])) {
return(1.5);
}
}
if (transanon == true) {
for (i in dangerD) {
if (overlapCheck(1, dangerD[i])) {
return(1.25);
}
}
}
return(1);
}
function CheckForDare() {
thisdare = 0;
iii = -1;
for (i in evil) {
iii++;
if (fiender[iii] == undefined) {
break;
}
if (overlapCheck(1, evil[i].dareA)) {
thisdare = thisdare + (3 * speedMultiplier(iii));
} else if (overlapCheck(1, evil[i].dareB)) {
thisdare = thisdare + (2.25 * speedMultiplier(iii));
} else if (overlapCheck(1, evil[i].dareC)) {
thisdare = thisdare + (1.75 * speedMultiplier(iii));
}
}
return(thisdare + 1);
}
function EFFECT(Etyp, Egrad, Svarighet, showBar, secToShow, theText, DoAtStart, DoAtEnd, ValueAtStart, ValueAtEnd) {
if (Etyp == "b") {
Etyp = 0;
} else {
Etyp = 1;
}
if (Egrad == "n") {
Egrad = 0;
} else if (Egrad == "s") {
Egrad = 1;
} else if (Egrad == "m") {
Egrad = 2;
} else {
Egrad = 4;
}
effectsDump[Etyp][Egrad][effectsDump[Etyp][Egrad].length] = new Array(Svarighet, showBar, secToShow, theText, DoAtStart, DoAtEnd, ValueAtStart, ValueAtEnd);
}
function BONUSTIEM(styrka) {
noBonusBonus = 1;
if ((poisonDamage != 0) && (antidote == 0)) {
newTimer(true, 5, "ANTIDOTE!", 28, 27, 0, 0, 0, 4);
} else {
INVOKEeffekt(0, styrka, random(10001) + 1);
}
}
function TRAPTIEM(styrka) {
INVOKEeffekt(1, styrka, random(10001) + 1);
}
function INVOKEeffekt(typ, styrka, slumptal) {
if (slumptal == 10001) {
lastPickUp("10001!!!");
newTimer(true, 120, "10001!!!", 4, -4, "g", "G", 0, 4);
} else if (forcepickup == "") {
p = 0;
while (p < effects[typ][styrka - 1].length) {
if ((slumptal >= effects[typ][styrka - 1][p][0]) && (slumptal <= effects[typ][styrka - 1][p][1])) {
newTimer(effects[typ][styrka - 1][p][2], effects[typ][styrka - 1][p][3], effects[typ][styrka - 1][p][4], effects[typ][styrka - 1][p][5], effects[typ][styrka - 1][p][6], effects[typ][styrka - 1][p][7], effects[typ][styrka - 1][p][8], typ, styrka);
}
p++;
}
} else {
p = 0;
while (p < effects.length) {
p2 = 0;
while (p2 < effects[p].length) {
p3 = 0;
while (p3 < effects[p][p2].length) {
if (forcepickup == effects[p][p2][p3][4]) {
newTimer(effects[p][p2][p3][2], effects[p][p2][p3][3], effects[p][p2][p3][4], effects[p][p2][p3][5], effects[p][p2][p3][6], effects[p][p2][p3][7], effects[p][p2][p3][8], typ, styrka);
}
p3++;
}
p2++;
}
p++;
}
}
}
function newTimer(showBar, secToShow, theText, DoAtStart, DoAtEnd, ValueAtStart, ValueAtEnd, typ, styrka) {
if (isNaN(ValueAtStart)) {
ValueAtStart = FlytandeVarden(ValueAtStart);
}
if (isNaN(ValueAtEnd)) {
ValueAtEnd = FlytandeVarden(ValueAtEnd);
}
timerText[timerText.length] = new Array(showBar, secToShow, theText, DoAtStart, DoAtEnd, ValueAtStart, ValueAtEnd, typ + 1, styrka);
}
effectsDump = new Array(new Array(), new Array());
effects = new Array(new Array(), new Array());
y = 0;
while (y < 4) {
effectsDump[0][y] = new Array();
effectsDump[1][y] = new Array();
effects[0][y] = new Array();
effects[1][y] = new Array();
y++;
}
function addScore(poangen) {
if (pausePenalty > 0) {
poangen = poangen / 2;
pausePenalty--;
}
scoreFract = scoreFract + (poangen * (fps / 20));
}
function between(nere, uppe) {
if (nere < 0) {
nere = 0;
}
if (uppe < nere) {
xXx = uppe;
uppe = nere;
nere = xXx;
}
return(random((uppe - nere) + 1) + nere);
}
function speedMultiplier(idnr) {
xspeed = fiender[idnr][2];
yspeed = fiender[idnr][3];
if (xspeed < 0) {
xspeed = xspeed * -1;
}
if (yspeed < 0) {
yspeed = yspeed * -1;
}
if (xspeed > yspeed) {
usespeed = xspeed;
} else {
usespeed = yspeed;
}
return(2 * ((usespeed * EnemyTravelSpeed) / 400));
}
function takeLife(skadan) {
skadan = skadan * DamageModifyer;
if (skadan < 0) {
skadan = 0;
}
if (OhShit == true) {
skadan = 9999;
}
if ((skadan > 0) && (invis != 0)) {
invis = 1;
}
if ((Invulnerability == 0) || (OhShit == true)) {
health = health - skadan;
}
nodamagetime = 0;
}
function MakeTwo(nummer) {
nummer = ("" + nummer) + "";
if (nummer.length > 2) {
return(nummer);
}
return(("" + "00".substring(0, 2 - nummer.length)) + nummer);
}
function makeTime(tidIsek) {
sekunderna = tidIsek % 60;
return((MakeTwo(Math.floor(tidIsek / 60)) + ":") + MakeTwo(sekunderna));
}
function remove(Objektet) {
if (Objektet._x > -40) {
Objektet._x = -50;
Objektet._y = -50;
Objektet._xscale = 5;
Objektet._yscale = 5;
}
}
function StageReset() {
if (hpbar._alpha == 0) {
hpbar._alpha = 5;
hpbar._height = 13;
hpbar._width = 150;
}
StageResetThis(evil);
StageResetThis(good);
StageResetThis(bonus);
StageResetThis(trap);
StageResetThis(timerz);
StageResetThis(missiles);
StageResetThis(eyeCandyHolder);
if (_root.theanon._currentframe != 1) {
anonWasTrans = 1;
} else {
anonWasTrans = 0;
}
}
function StageResetThis(denna) {
if ((denna != eyeCandyHolder) && (denna != timerz)) {
for (i in denna) {
remove(denna[i]);
}
}
denna._alpha = 100;
}
function BONUSDENY() {
if (((health > 0) && (PAUSE <= 0)) && (autoPaused == 0)) {
senasteBonusTimern.gotoAndPlay(1);
m = 0;
while (m < senastAndrat.length) {
if (senastAndrat[m][0] == 1) {
val(senastAndrat[m][1], senastAndrat[m][2]);
} else {
this[senastAndrat[m][1]] = senastAndrat[m][2];
if (senastAndrat[m][1] == "transanon") {
_root.theanon.gotoAndStop(1);
}
}
m++;
}
specialtxt.gotoAndPlay(2);
}
}
function ljud(ljudet) {
if ((SoundOn == true) && (OhShit == false)) {
_root.SND.attachSound(ljudet);
_root.SND.start(0, 1);
}
}
function ljud2(ljudet) {
if ((AmbientOn == true) && (OhShit == false)) {
_root.SND.attachSound(ljudet);
_root.SND.start(0, 1);
}
}
function eyeCandy(Id, Data) {
if (GFXOn == true) {
IdNumber = eyeCandyHolder.getNextHighestDepth();
eyeCandyHolder.attachMovie(Id + "_", Id + IdNumber, IdNumber);
eyeCandyHolder[Id + IdNumber]._x = Data[0];
eyeCandyHolder[Id + IdNumber]._y = Data[1];
eyeCandyHolder[Id + IdNumber]._xscale = Data[2];
eyeCandyHolder[Id + IdNumber]._yscale = Data[3];
if ((Id == "ghostTrail") || (Id == "missileLine")) {
eyeCandyHolder[Id + IdNumber]._alpha = Data[4];
}
if (Id == "missileLine") {
XDISTANCE = Data[5] - Data[0];
YDISTANCE = Data[6] - Data[1];
thedistance = Math.sqrt((XDISTANCE * XDISTANCE) + (YDISTANCE * YDISTANCE));
rad = Math.asin(YDISTANCE / thedistance);
WantedGrader = (rad * 57.29578) + 90;
if (XDISTANCE < 0) {
WantedGrader = 360 - WantedGrader;
}
eyeCandyHolder[Id + IdNumber]._rotation = WantedGrader;
if (Data[7] != 3) {
eyeCandyHolder[Id + IdNumber]._yscale = 100 * (thedistance / 199);
} else {
eyeCandyHolder[Id + IdNumber]._yscale = 50 * (thedistance / 199);
}
if (Data[7] < 0) {
Data[7] = Data[7] * -1;
}
if (Data[7] == 1) {
eyeCandyHolder[Id + IdNumber].gotoAndPlay(4);
} else if (Data[7] == 2) {
eyeCandyHolder[Id + IdNumber].gotoAndPlay(13);
} else {
eyeCandyHolder[Id + IdNumber].gotoAndPlay(26);
}
} else {
eyeCandyHolder[Id + IdNumber].gotoAndPlay(4);
}
eyeCandyHolder[Id + IdNumber].onEnterFrame = function () {
if (this._currentframe == 3) {
this.removeMovieClip();
}
};
}
}
function DoShit(lage) {
if (lage == -1) {
Ii.gotoAndStop(1);
DoShit(_root.NoReturnNow);
_root.tacke.Ignore = 0;
_root.NoReturnNow = 0;
noMouseModeChange = 0;
} else if (OhShit == false) {
PAUSE = 0;
autoPaused = 0;
_root.ohshit.gotoAndStop(lage + 1);
OhShit = true;
Mouse.show();
} else {
_root.ohshit.gotoAndStop(1);
putmusikBackOn = true;
OhShit = false;
Mouse.hide();
}
}
function LeDist(Xxen, Yyen) {
oiajsdojXDISTANCE = squarex - Xxen;
oiajsdojYDISTANCE = squarey - Yyen;
return(Math.sqrt((oiajsdojXDISTANCE * oiajsdojXDISTANCE) + (oiajsdojYDISTANCE * oiajsdojYDISTANCE)));
}
function lastPickUp(pickupNamnet) {
LastEffectTaken = pickupNamnet;
}
function showSymbol(frameid) {
if (frameid < 0) {
symbols.gotoAndStop(frameid * -1);
symbols.exet.gotoAndStop(2);
} else {
symbols.gotoAndStop(frameid);
symbols.exet.gotoAndStop(1);
}
symbols.delayen = 20;
}
function PLAYERstuff() {
if (_root.tacke.hudden != -1) {
crosshairx = crosshair._x;
crosshairy = crosshair._y;
if (crosshairx < 0) {
crosshairx = 0;
}
if (crosshairx > 550) {
crosshairx = 550;
}
if (crosshairy < 0) {
crosshairy = 0;
}
if (crosshairy > 400) {
crosshairy = 400;
}
oldsquarex = squarex;
oldsquarey = squarey;
if ((crosshairx == squarex) && (crosshairy == squarey)) {
thespeed = 0;
Xdirection = 0;
Ydirection = 0;
} else {
if ((Xdirection != 0) && (Ydirection != 0)) {
bytt = 0;
if ((Xdirection == 1) && (crosshairx < squarex)) {
bytt++;
} else if ((Xdirection == -1) && (crosshairx > squarex)) {
bytt++;
}
if ((Ydirection == 1) && (crosshairy < squarey)) {
bytt++;
} else if ((Ydirection == -1) && (crosshairy > squarey)) {
bytt++;
}
if (bytt == 2) {
thespeed = thespeed - (thespeed * TurnPenalty);
} else if (bytt == 1) {
thespeed = thespeed - (thespeed * (TurnPenalty / 2));
}
}
if (crosshairx < squarex) {
Xdirection = -1;
}
if (crosshairx > squarex) {
Xdirection = 1;
}
if (crosshairy < squarey) {
Ydirection = -1;
}
if (crosshairy > squarey) {
Ydirection = 1;
}
thespeed = thespeed + acceleration;
if (thespeed > maxspeed) {
thespeed = maxspeed;
}
xdistance = 0;
if (crosshairx > squarex) {
xdistance = crosshairx - squarex;
} else {
xdistance = squarex - crosshairx;
}
ydistance = 0;
if (crosshairy > squarey) {
ydistance = crosshairy - squarey;
} else {
ydistance = squarey - crosshairy;
}
xspeed = xdistance / (xdistance + ydistance);
yspeed = ydistance / (xdistance + ydistance);
if (crosshairx > squarex) {
squarex = squarex + (thespeed * xspeed);
if (squarex > crosshairx) {
squarex = crosshairx;
}
}
if (crosshairx < squarex) {
squarex = squarex - (thespeed * xspeed);
if (squarex < crosshairx) {
squarex = crosshairx;
}
}
if (crosshairy > squarey) {
squarey = squarey + (thespeed * yspeed);
if (squarey > crosshairy) {
squarey = crosshairy;
}
}
if (crosshairy < squarey) {
squarey = squarey - (thespeed * yspeed);
if (squarey < crosshairy) {
squarey = crosshairy;
}
}
}
spelarensKubXDISTANCE = squarex - square._x;
spelarensKubYDISTANCE = squarey - square._y;
rest = Math.sqrt((spelarensKubXDISTANCE * spelarensKubXDISTANCE) + (spelarensKubYDISTANCE * spelarensKubYDISTANCE));
if (rest == 0) {
_root.framesStill++;
} else {
_root.framesStill = 0;
}
totPixelsTravelled = totPixelsTravelled + rest;
weightCurrent = weightCurrent - (rest * weightLoss);
if (weightCurrent < weightMin) {
weightCurrent = weightMin;
}
square._x = squarex;
square._y = squarey;
}
if (weight != weightCurrent) {
andring = (weightCurrent - weight) / 2;
if (Math.abs(andring) < 1) {
if (andring < 0) {
andring = -1;
} else {
andring = 1;
}
}
weight = weight + andring;
}
square._xscale = 100 * (weight / 100);
square._yscale = 100 * (weight / 100);
if ((health + HealthGain) > maxhealth) {
if (health < maxhealth) {
uSe = (health + HealthGain) - maxhealth;
} else {
uSe = HealthGain;
}
maxhealth = maxhealth + (MaxHealthGain * uSe);
health = maxhealth;
} else {
health = health + HealthGain;
}
if (poisonDamage > 0) {
poisonDamage = poisonDamage - antidote;
if ((health - poisonDamage) > 0) {
health = health - poisonDamage;
}
}
}
function flashingfunc(stoppp) {
if (StOpPeD) {
_root.partay.play();
} else {
_root.partay.stop();
}
StOpPeD = (StOpPeD ? false : true);
}
function PmenuHandler(obj, menu) {
stoppit.visible = (StOpPeD ? false : true);
startit.visible = (StOpPeD ? true : false);
}
function changeTie() {
_root.currentTie++;
if (_root.currentTie == 10) {
_root.currentTie = 0;
}
}
function TmenuHandler(obj, menu) {
changetie.visible = true;
}
function DoTheCircleA() {
cIrcLesAlpha = new Array();
CI = 0;
while (CI < 32) {
this.attachMovie("circle", "ccc" + CI, CI);
this["ccc" + CI]._x = 10 * CI;
this["ccc" + CI]._y = 10 * CI;
if ((CI % 2) == 0) {
this["ccc" + CI].gotoAndStop(2);
}
if ((CI >= 0) && (CI <= 15)) {
this["ccc" + CI].swapDepths(98 - CI);
cIrcLesAlpha[cIrcLesAlpha.length] = 100 * ((CI + 1) / 16);
} else {
this["ccc" + CI].swapDepths(100 + CI);
cIrcLesAlpha[cIrcLesAlpha.length] = 100;
}
this["ccc" + CI]._alpha = cIrcLesAlpha[cIrcLesAlpha.length - 1];
CI++;
}
square.swapDepths(99);
R1 = 1;
POS = 0.196349540849362;
circlesModifier = 1;
DoTheCircleB();
cubeCircles = true;
}
function DoTheCircleB() {
CI = 0;
while (CI < 32) {
horisentalAndring = Math.cos((R1 * 1) + (CI * POS));
vertikalAndring = Math.sin((R1 * 0.5) + (CI * POS));
this["ccc" + CI]._x = (horisentalAndring * ((22 * (square._xscale / 100)) * circlesModifier)) + square._x;
this["ccc" + CI]._y = (vertikalAndring * ((22 * (square._yscale / 100)) * circlesModifier)) + square._y;
CI++;
}
R1 = R1 + 0.3;
}
function FNT(farg) {
farg = ("" + farg) + "";
fargen = farg;
if (farg.length == 1) {
i9 = 0;
while (i9 < 5) {
fargen = fargen + farg;
i9++;
}
} else if (farg.length == 3) {
A = farg.substring(0, 1);
B = farg.substring(1, 2);
C = farg.substring(2, 3);
fargen = ((((A + A) + B) + B) + C) + C;
}
return(("<font color=\"#" + fargen) + "\">");
}
function RoundStats(dataStage) {
ROUNDS[nuvarandeRunda][ROUNDS[nuvarandeRunda].length] = fetchStats(dataStage);
if (dataStage == 1) {
doRoundSorting(nuvarandeRunda);
nuvarandeRunda++;
ROUNDS[nuvarandeRunda] = new Array();
resetSTATS();
}
statsArray = undefined;
}
function fetchStats(dataStage) {
statsArray = new Array();
statsArray[0] = timer;
statsArray[1] = score;
statsArray[2] = Math.round((score / timer) * 100) / 100;
statsArray[3] = STATS[0];
statsArray[4] = STATS[1];
statsArray[5] = STATS[2];
statsArray[6] = STATS[3];
statsArray[7] = STATS[4];
statsArray[8] = STATS[5];
statsArray[9] = STATS[6];
statsArray[10] = STATS[7];
statsArray[11] = health;
statsArray[12] = STATS[8];
statsArray[13] = STATS[9];
statsArray[14] = STATS[10];
statsArray[15] = STATS[11];
statsArray[16] = STATS[12];
statsArray[17] = STATS[13];
statsArray[18] = STATS[14];
statsArray[19] = STATS[15];
statsArray[20] = STATS[16];
statsArray[21] = STATS[17];
statsArray[22] = STATS[18];
statsArray[23] = STATS[19];
statsArray[24] = STATS[20];
statsArray[25] = STATS[21];
statsArray[26] = Math.floor(STATS[22]);
statsArray[27] = nuvarandeGtxt;
statsArray[28] = Math.round(weight);
if (dataStage == 1) {
statsArray[29] = blacksrowcollectrecord;
statsArray[30] = bonusrowcollectrecord;
statsArray[31] = Math.round(lifeflowpeak / 100) / 10;
statsArray[32] = Math.round(lifeflowpeaknomultipliers / 100) / 10;
statsArray[33] = Math.round(totPixelsTravelled);
fpspotten = 0;
RrIi = 0;
while (RrIi < GAMEFPS.length) {
fpspotten = fpspotten + GAMEFPS[RrIi];
RrIi++;
}
statsArray[34] = Math.round((fpspotten / GAMEFPS.length) * 100) / 100;
GAMEFPS = undefined;
statsArray[35] = Math.ceil(realSecondsSpentPlaying);
statsArray[36] = EFFECTARRAY.slice();
EFFECTARRAY = undefined;
statsArray[37] = nodamagetimerecord;
}
return(statsArray);
}
function resetSTATS() {
STATS = undefined;
STATS = new Array();
rI = 0;
while (rI < 23) {
STATS[rI] = 0;
rI++;
}
nuvarandeGtxt = random(txtGarray.length);
}
function presentset(parrayn, showcomplete) {
if (showcomplete == 1) {
OutP3 = OutP3 + (((((((("Health: " + (Math.round(parrayn[11] * 10) / 10)) + "%. Weight: ") + parrayn[28]) + "%. Score: ") + parrayn[1]) + ". Score/s: ") + parrayn[2]) + ".\n");
}
OutP3 = OutP3 + (((((((((((((((((FNT(6) + FillOut("SPAWNED:", 11)) + FillOut("Bonuses: " + parrayn[7], 12)) + FillOut("Traps: " + parrayn[8], 10)) + FillOut("Blacks: " + parrayn[9], 11)) + "Reds: ") + parrayn[10]) + FC) + newline) + FNT(3)) + FillOut("COLLIDED:", 11)) + FC) + FillOut("Bonuses: " + parrayn[3], 12)) + FillOut("Traps: " + parrayn[4], 10)) + FillOut("Blacks: " + parrayn[5], 11)) + "Reds: ") + parrayn[6]) + newline);
OutP3 = OutP3 + (((((((((((((((FNT(6) + FillOut("SPAWNED:", 11)) + FillOut("Missiles: " + parrayn[12], 13)) + FillOut("Ghosts: " + parrayn[13], 11)) + "Mines: ") + parrayn[14]) + FC) + newline) + FNT(3)) + FillOut("COLLIDED:", 11)) + FC) + FillOut("Missiles: " + parrayn[15], 13)) + FillOut("Ghosts: " + parrayn[16], 11)) + "Mines: ") + parrayn[17]) + newline);
OutP3 = OutP3 + (((((((((((((((((((((((((((FNT(6) + FillOut("Smart Missiles spawned/collided:", 35)) + parrayn[18]) + "/") + parrayn[19]) + FC) + newline) + FNT(3)) + FillOut("Ghost Bosses spawned/collided:", 35)) + FC) + parrayn[20]) + "/") + parrayn[21]) + newline) + FNT(6)) + FillOut("Ghost Missiles spawned/collided:", 35)) + parrayn[22]) + "/") + parrayn[23]) + FC) + newline) + FNT(3)) + FillOut("Jump Mines spawned/collided:", 35)) + FC) + parrayn[24]) + "/") + parrayn[25]) + newline);
if (showcomplete == 1) {
OutP3 = OutP3 + ((((FNT(6) + FillOut(txtGarray[parrayn[27]] + ":", 35)) + parrayn[26]) + FC) + newline);
}
}
function PresentRound(NUM, Amount) {
OutP3 = (((("<b>" + FNT("063")) + "===ROUND ") + FillOut(NUM + 1, 1)) + FC) + "</b>\n";
theFinals = ROUNDS[NUM][ROUNDS[NUM].length - 1];
OutP3 = OutP3 + FillOut("Length: " + makeTime(theFinals[0]), 20);
OutP3 = OutP3 + FillOut("Score: " + theFinals[1], 20);
OutP3 = OutP3 + (("Score/s: " + theFinals[2]) + newline);
if (Amount == 3) {
OutP3 = OutP3 + (((((newline + FNT("d80")) + FillOut("Longest time gone without taking damage:", 52)) + FC) + theFinals[37]) + " sec\n");
OutP3 = OutP3 + ((((FNT("b76d00") + FillOut("Most blacks collected in a row without missing one:", 52)) + FC) + theFinals[29]) + newline);
OutP3 = OutP3 + ((((FNT("d80") + FillOut("Most bonuses collected in a row without missing one:", 52)) + FC) + theFinals[30]) + newline);
OutP3 = OutP3 + ((((FNT("b76d00") + FillOut("Highest flow of life points:", 52)) + FC) + theFinals[31]) + "/s\n");
OutP3 = OutP3 + ((((FNT("d80") + FillOut("Highest flow of life points (without dare/danger):", 52)) + FC) + theFinals[32]) + "/s\n");
OutP3 = OutP3 + ((((FNT("b76d00") + FillOut("Total pixels travelled:", 52)) + FC) + theFinals[33]) + newline);
OutP3 = OutP3 + ((((FNT("d80") + FillOut("Average game FPS:", 52)) + FC) + theFinals[34]) + newline);
OutP3 = OutP3 + ((((FNT("b76d00") + FillOut("Real time actually spent playing:", 52)) + FC) + makeTime(theFinals[35])) + newline);
rIiI = 0;
while (rIiI < (ROUNDS[NUM].length - 1)) {
OutP3 = OutP3 + (((((("\n@ " + FNT("90c")) + "<") + makeTime(ROUNDS[NUM][rIiI][0])) + ">") + FC) + newline);
presentset(ROUNDS[NUM][rIiI], 1);
rIiI++;
}
OutP3 = OutP3 + (((((((((("\n@ " + FNT("90c")) + "<") + makeTime(theFinals[0])) + ">") + FC) + " ") + FNT("f00")) + "END") + FC) + newline);
presentset(theFinals, 1);
} else {
OutP3 = OutP3 + newline;
if (Amount == 2) {
presentset(theFinals, 0);
}
}
if (Amount >= 2) {
OutP3 = OutP3 + (((((((((((newline + FNT("8a5300")) + "-") + FC) + FNT("b76d00")) + "-") + FC) + " ") + FNT("d80")) + "Effects:") + FC) + "\n\n");
RiRiRi = 0;
while (RiRiRi < theFinals[36].length) {
if (RiRiRi != 0) {
if (Amount == 3) {
OutP3 = OutP3 + newline;
} else {
OutP3 = OutP3 + ((((" " + FNT("a")) + "-->") + FC) + " ");
}
}
if (Amount == 3) {
OutP3 = OutP3 + (((((FNT("a") + "[") + makeTime(theFinals[36][RiRiRi][2])) + "]") + FC) + " ");
}
if (theFinals[36][RiRiRi][1] == 2) {
OutP3 = OutP3 + FNT("600");
} else {
OutP3 = OutP3 + FNT("050");
}
if (Amount == 3) {
strlangden = theFinals[36].length.length;
nollor = "0000".substring(0, strlangden);
nunumret = RiRiRi + 1;
nunumret = nollor.substring(0, strlangden - nunumret.length) + nunumret;
OutP3 = OutP3 + (((FillOut((nunumret + ". ") + theFinals[36][RiRiRi][0], 5) + FC) + FNT(((theFinals[36][RiRiRi][3] == -1) ? "d" : 7))) + "(");
OutP3 = OutP3 + ((theFinals[36][RiRiRi][1] == 2) ? "trap, " : "bonus, ");
if (theFinals[36][RiRiRi][3] == -1) {
OutP3 = OutP3 + ("permanent)" + FC);
} else {
OutP3 = OutP3 + (((Math.round(theFinals[36][RiRiRi][3] / 2) / 10) + " sec)") + FC);
}
} else {
OutP3 = OutP3 + (theFinals[36][RiRiRi][0] + FC);
}
RiRiRi++;
}
if (RiRiRi == 0) {
OutP3 = OutP3 + (((("<i>" + FNT("a")) + "None!") + FC) + "</i>");
}
OutP3 = OutP3 + "\n\n";
}
return(OutP3);
}
function doRoundSorting(mainArrayId) {
sorti = 0;
while (sorti < 3) {
ROUNDSsorting[sorti][ROUNDSsorting[sorti].length] = new Array(ROUNDS[nuvarandeRunda][ROUNDS[nuvarandeRunda].length - 1][sorti], nuvarandeRunda);
Swapped = 0;
do {
sortj = Swapped;
Swapped = -1;
while (sortj < (ROUNDSsorting[sorti].length - 1)) {
if (ROUNDSsorting[sorti][sortj][0] < ROUNDSsorting[sorti][sortj + 1][0]) {
Sbuffert = ROUNDSsorting[sorti][sortj];
ROUNDSsorting[sorti][sortj] = ROUNDSsorting[sorti][sortj + 1];
ROUNDSsorting[sorti][sortj + 1] = Sbuffert;
Swapped = sortj - 1;
break;
}
sortj++;
}
} while (Swapped != -1);
sorti++;
}
}
function RanC() {
txtEn = "";
rI = 0;
while (rI < 6) {
txtEn = txtEn + ((4 + random(5)) + 1);
rI++;
}
return(txtEn);
}
function FillOut(basen, typ) {
txtEn = "";
if (typ == 1) {
rI = 0;
while (rI < (13 - (("" + basen) + "").length)) {
txtEn = txtEn + "=";
rI++;
}
} else {
if (typ == 5) {
tlangd = 33;
txtEn = txtEn + FNT("e0e0e0");
} else {
tlangd = typ;
txtEn = txtEn + FNT("f");
}
strlangden = basen.length;
rI = 0;
while (rI < (tlangd - strlangden)) {
if ((rI == 0) && (typ != 5)) {
if (rI != ((tlangd - strlangden) - 1)) {
txtEn = txtEn + " ";
} else {
txtEn = txtEn + ".";
}
} else if ((typ == 5) && ((((rI % 2) == 0) && ((strlangden % 2) == 1)) || (((rI % 2) == 1) && ((strlangden % 2) == 0)))) {
txtEn = txtEn + " ";
} else {
txtEn = txtEn + ".";
}
rI++;
}
txtEn = txtEn + (" " + FC);
}
return(basen + txtEn);
}
function PresentRounds(sortMethod, Amount) {
OutP = (((((((("<font face=\"comic sans ms\" color=\"#" + RanC()) + "\">You are currently on round number ") + (nuvarandeRunda + 1)) + ".\n") + "List below sorted by ") + Array("order", "length", "score", "score/s")[sortMethod - 1]) + " (") + Array("short", "detailed", "shitflood of")[Amount - 1]) + " information showed).\n";
oi = 0;
while (oi < 20) {
OutP = OutP + "----";
oi++;
}
OutP = OutP + (FC + "\n\n<font face=\"lucida console\">");
OutP2 = "";
iii = 0;
while (iii < (ROUNDS.length - 1)) {
if (sortMethod == 1) {
OutP2 = PresentRound(iii, Amount) + OutP2;
} else {
OutP2 = OutP2 + PresentRound(ROUNDSsorting[sortMethod - 2][iii][1], Amount);
}
iii++;
}
if (iii == 0) {
OutP2 = "YOU'RE PLAYING THE GAME\nTHE ONE THAT WILL TAKE YOU TO YOUR END\nYOU'RE WAITING FOR THE RAIN...\nTO WASH WHO YOU ARE";
}
_root.rounds.Content.field.text = (OutP + OutP2) + FC;
OutP = undefined;
OutP2 = undefined;
OutP3 = undefined;
}
var CM = new ContextMenu();
CM.hideBuiltInItems();
var stoppit = new ContextMenuItem("Stop Flashing!", flashingfunc);
var startit = new ContextMenuItem("Show me how to flash.", flashingfunc);
CM.customItems.push(stoppit, startit);
CM.onSelect = PmenuHandler;
_root.phcatcher.menu = CM;
var CM = new ContextMenu();
CM.hideBuiltInItems();
var changetie = new ContextMenuItem("Change tie", changeTie);
CM.customItems.push(changetie);
CM.onSelect = TmenuHandler;
_root.tcatcher.menu = CM;
FC = "</font>";
nuvarandeRunda = 0;
ROUNDS = new Array(new Array());
ROUNDSsorting = new Array(new Array(), new Array(), new Array());
txtGarray = new Array("IQ lost", "Women raped", "Pools shut down", "Babies fucked", "Children molested", "Women raped", "Percent of your life wasted", "Dogs shot", "Cats tortured", "Websites taken down", "Broken dreams", "Pennies found", "Memes created", "People rolled", "Prank calls made", "Spaghetti monster flybys", "Ideas forgotten", "Amount of creativity lost", "Images shopped", "Limbs cut off", "Blowjobs given", "Ballgags applied", "Shit-o-Meter", "Programs crashed", "Applications written", "Times failed", "Proxy chain length", "Motivation gained", "Crimes committed", "Scat watched", "Fires started", "Times fapped", "Cowbell hit", "People walked into Mordor", "Polices switched on", "AIDS given", "Times vomited", "Old people marked for deletion", "Sins committed", "Fags created", "People locked in a dungeon", "Kids kidnapped", "Dicks cut off", "Clits cut off", "Tits cut off", "Eyes popped", "Candy poisoned", "Time travelled", "Gun rounds fired", "Dimensions erased", "Lasers charged", "Asian men screaming \"NO U\"", "Mudkip babies born", "Combo's being broken", "Fgsfds", "Water splashed around", "Furry porn jacked off to", "Gallons of milk shed", "Grains of salt injected into your brain", "Funny faces made", "Times Milhouse not being mentioned", "Images fukken saved", "Heroes made", "Badgers destroyed", "People killed", "Vans exploded", "Pizza slices eaten", "Spoons of soup gulped down", "Insects squished", "Challengers appeared", "Times rule 34 invoked", "Tacgnols spotted", "Internets won", "Bricks shat", "Lols corrupted");
resetSTATS();
missileLine.stop();
takeTrap.stop();
takeBonus.stop();
ghostTrail.stop();
takeBlack.stop();
eyeCandyDepth = -1;
function MainWork() {
PLAYERstuff();
MoveObject(evil, "fiender");
MoveObject(good, "blacks");
MoveObject(bonus, "bonuss");
MoveObject(trap, "trapp");
MoveGhostsNMissiles();
squareOnEnterFrame();
square.square.painholder.PainStuff();
}
function val(id, vardet) {
idnummer = -1;
o = 0;
while (o < VAL.length) {
if (VAL[o][0] == id) {
idnummer = o;
VAL[o][1] = vardet;
break;
}
o++;
}
if (idnummer == -1) {
VAL[VAL.length] = new Array(id, vardet);
}
}
function getval(id) {
idnummer = -1;
o = 0;
while (o < VAL.length) {
if (VAL[o][0] == id) {
idnummer = o;
}
o++;
}
if (idnummer == -1) {
return(undefined);
}
return(VAL[idnummer][1]);
}
function changeval(id, vardet) {
val(id, getval(id) + vardet);
}
PAUSE = 0;
autoPaused = 0;
pausePenalty = 0;
record = 0;
newRecord = 0;
recordText = "";
timeText = "";
spsText = "";
dangerA._alpha = 0;
dangerB._alpha = 0;
dangerC._alpha = 0;
dangerD._alpha = 0;
square.quick1._alpha = 0;
square.quick2._alpha = 0;
square.quick3._alpha = 0;
noMouseModeChange = 0;
trapColor = new Color(trap);
trapColor.setRGB(16711680);
bonusColor = new Color(bonus);
bonusColor.setRGB(0);
timerText = new Array();
BOOT = 1;
SoundOn = false;
AmbientOn = false;
GFXOn = false;
painljud = 0;
anonWasTrans = 0;
tXtbuff = "somethingelseyouwouldntwriteyourself";
qUestion = "somethingyouwouldntwriteyourself";
musner = false;
pausePenText = 0;
LastEffectTaken = "keepitreal";
OhShit = false;
putmusikBackOn = false;
forcedMine = 0;
ohshitted = false;
cubeCircles = false;
StOpPeD = false;
VAL = new Array();
gotoAndPlay (2);
Instance of Symbol 436 MovieClip [square] "squareX" in Symbol 631 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(164);
this._x = -20;
this._y = -20;
}
Instance of Symbol 409 MovieClip [Ii] "IiX" in Symbol 631 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(18);
this._x = -20;
this._y = -20;
}
Instance of Symbol 628 MovieClip "symbols" in Symbol 631 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.delayen != -1) {
this._alpha = 100 * (delayen / 20);
if (this.delayen == 0) {
gotoAndStop (1);
}
this.delayen--;
}
}
Instance of Symbol 195 MovieClip [PostIt] "PostItX" in Symbol 631 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(18);
this._x = -20;
this._y = -20;
}
Symbol 631 MovieClip Frame 2
ghostChance = 0;
AnotherGhostChance = 0;
missileChance = 0;
AnotherMissileChance = 0;
missileSquareDelay = 400;
ghostSquareDelay = 600;
missileSquareDelayKvar = 0;
ghostSquareDelayKvar = 0;
maxTimeBetweenMissiles = 60;
maxTimeBetweenGhosts = 120;
maxTimeBetweenMissilesCounter = 0;
maxTimeBetweenGhostsCounter = 0;
jumpMineChance = 0.3;
fiender = new Array();
val("fiendermax", 2);
val("fienderSizeMin", 250);
val("fienderSizeMax", 250);
val("fienderMutationChanse", 0);
val("fienderMutationMin", 120);
val("fienderMutationMax", 130);
val("fienderMutationThinner", 1.3);
val("fienderSpeedMin", 1800);
val("fienderSpeedMax", 2000);
val("fienderDiagonalChanse", 0);
val("fienderDiagonalSpeedMin", 10);
val("fienderDiagonalSpeedMax", 10);
val("fienderGrowthChanse", 0);
val("fienderGrowthMin", 25);
val("fienderGrowthMax", 100);
val("fienderMinDelay", 25);
val("fienderMaxDelay", 25);
val("fienderManiacChanse", 0);
val("fienderManiacSpeedMin", 1100);
val("fienderManiacSpeedMax", 1500);
blacks = new Array();
val("blacksmax", 2);
val("blacksSizeMin", 200);
val("blacksSizeMax", 200);
val("blacksMutationChanse", 0);
val("blacksMutationMin", 120);
val("blacksMutationMax", 130);
val("blacksMutationThinner", 1.3);
val("blacksSpeedMin", 2000);
val("blacksSpeedMax", 2000);
val("blacksDiagonalChanse", 0);
val("blacksDiagonalSpeedMin", 10);
val("blacksDiagonalSpeedMax", 10);
val("blacksGrowthChanse", 0);
val("blacksGrowthMin", 25);
val("blacksGrowthMax", 100);
val("blacksMinDelay", 100);
val("blacksMaxDelay", 500);
val("blacksManiacChanse", 0);
val("blacksManiacSpeedMin", 1100);
val("blacksManiacSpeedMax", 1500);
bonuss = new Array();
val("bonussmax", 1);
val("bonussSizeMin", 400);
val("bonussSizeMax", 400);
val("bonussMutationChanse", 0);
val("bonussMutationMin", 120);
val("bonussMutationMax", 130);
val("bonussMutationThinner", 1.3);
val("bonussSpeedMin", 3000);
val("bonussSpeedMax", 3000);
val("bonussDiagonalChanse", 0);
val("bonussDiagonalSpeedMin", 10);
val("bonussDiagonalSpeedMax", 10);
val("bonussGrowthChanse", 0);
val("bonussGrowthMin", 25);
val("bonussGrowthMax", 100);
val("bonussMinDelay", 0);
val("bonussMaxDelay", 0);
val("bonussManiacChanse", 0);
val("bonussManiacSpeedMin", 1100);
val("bonussManiacSpeedMax", 1500);
trapp = new Array();
val("trappmax", 1);
val("trappSizeMin", 400);
val("trappSizeMax", 400);
val("trappMutationChanse", 0);
val("trappMutationMin", 120);
val("trappMutationMax", 130);
val("trappMutationThinner", 1.3);
val("trappSpeedMin", 3000);
val("trappSpeedMax", 4000);
val("trappDiagonalChanse", 0);
val("trappDiagonalSpeedMin", 10);
val("trappDiagonalSpeedMax", 10);
val("trappGrowthChanse", 0);
val("trappGrowthMin", 25);
val("trappGrowthMax", 100);
val("trappMinDelay", 0);
val("trappMaxDelay", 0);
val("trappManiacChanse", 0);
val("trappManiacSpeedMin", 1100);
val("trappManiacSpeedMax", 1500);
Missiles = new Array();
val("Missilesmax", 2);
val("Missilesturnratemin", 700);
val("Missilesturnratemax", 700);
val("Missilessizegrowthmin", 1000);
val("Missilessizegrowthmax", 1000);
val("Missilessizenowmin", 100);
val("Missilessizenowmax", 100);
val("Missilessizefinalmin", 100);
val("Missilessizefinalmax", 100);
val("Missilesstartspeedmin", 10);
val("Missilesstartspeedmax", 10);
val("Missilesmaxspeedmin", 1000);
val("Missilesmaxspeedmax", 1500);
val("Missileslifetimemin", 3000);
val("Missileslifetimemax", 5000);
val("Missilesaccelerationmin", 4);
val("Missilesaccelerationmax", 15);
val("Missilesdeaccelerationmin", 2);
val("Missilesdeaccelerationmax", 10);
val("MissilesSmartChanse", 0.1);
val("MissilesSmartMin", 5);
val("MissilesSmartMax", 30);
Ghosts = new Array();
val("Ghostsmax", 1);
val("Ghostsvisible", 80);
val("Ghostsinvisible", 10);
val("Ghoststurnratemin", 25);
val("Ghoststurnratemax", 38);
val("Ghostssizegrowthmin", 1000);
val("Ghostssizegrowthmax", 1000);
val("Ghostssizenowmin", 100);
val("Ghostssizenowmax", 100);
val("Ghostssizefinalmin", 100);
val("Ghostssizefinalmax", 100);
val("Ghostsstartspeedmin", 100);
val("Ghostsstartspeedmax", 100);
val("Ghostsmaxspeedmin", 1500);
val("Ghostsmaxspeedmax", 2000);
val("Ghostslifetimemin", 9000);
val("Ghostslifetimemax", 13000);
val("Ghostsaccelerationmin", 10);
val("Ghostsaccelerationmax", 10);
val("GhostsBossChanse", 0.1);
val("GhostsBossMin", 30);
val("GhostsBossMax", 35);
val("GhostsBossMissileChanse", 0.3);
function MoveGhostsNMissiles() {
mmm = -1;
for (mis in missiles) {
mmm++;
if (mmm >= missiler.length) {
break;
}
if (missiler[mmm] != undefined) {
missiler[mmm][7] = missiler[mmm][7] - 0.05;
if ((missiler[mmm][26] < -10) || ((missiler[mmm][18] > (missiler[mmm][19] * 20)) && (missiler[mmm][19] != 0))) {
if ((missiler[mmm][23] <= -40) && (missiler[mmm][7] > 1.5)) {
missiler[mmm][23] = between(10, 20);
} else if (missiler[mmm][26] >= 0) {
missiler[mmm][23]--;
}
if (missiler[mmm][23] <= 0) {
missiler[mmm][5] = missiler[mmm][5] - missiler[mmm][20];
if (missiler[mmm][5] < (missiler[mmm][13] / 3)) {
missiler[mmm][5] = missiler[mmm][13] / 3;
}
} else {
missiler[mmm][5] = missiler[mmm][5] + missiler[mmm][12];
if (missiler[mmm][5] > missiler[mmm][13]) {
missiler[mmm][5] = missiler[mmm][13];
}
}
} else if (missiler[mmm][5] < missiler[mmm][13]) {
missiler[mmm][5] = missiler[mmm][5] + missiler[mmm][12];
if (missiler[mmm][5] > missiler[mmm][13]) {
missiler[mmm][5] = missiler[mmm][13];
}
}
if (invis == 0) {
targetX = squarex;
targetY = squarey;
} else {
if (invis < 40) {
missiler[mmm][44] = squarex;
missiler[mmm][45] = squarey;
} else {
XDISTANCE = missiler[mmm][44] - missiler[mmm][0];
YDISTANCE = missiler[mmm][45] - missiler[mmm][1];
thedistance = Math.sqrt((XDISTANCE * XDISTANCE) + (YDISTANCE * YDISTANCE));
if ((missiler[mmm][44] == -1) || (thedistance <= 20)) {
missiler[mmm][44] = Math.round(530 * Math.random()) + 10;
missiler[mmm][45] = Math.round(380 * Math.random()) + 10;
}
}
targetX = missiler[mmm][44];
targetY = missiler[mmm][45];
}
willDisappear = 0;
if (missiler[mmm][34] != 0) {
missiler[mmm][34]--;
}
if (missiler[mmm][15] == 1) {
if ((missiler[mmm][31] != 0) && (missiler[mmm][4] != missiler[mmm][31])) {
if (missiler[mmm][32] == 0) {
if (missiler[mmm][4] > missiler[mmm][31]) {
missiler[mmm][4] = missiler[mmm][4] - missiler[mmm][33];
if (missiler[mmm][4] < missiler[mmm][31]) {
missiler[mmm][4] = missiler[mmm][31];
}
} else {
missiler[mmm][4] = missiler[mmm][4] + missiler[mmm][33];
if (missiler[mmm][4] > missiler[mmm][31]) {
missiler[mmm][4] = missiler[mmm][31];
}
}
} else {
missiler[mmm][32]--;
}
}
if (GFXOn == true) {
theOldRear = new Object();
theOldRear.x = missiles[mis].rear._x;
theOldRear.y = missiles[mis].rear._x;
missiles[mis].rear.localToGlobal(theOldRear);
}
if (missiler[mmm][28] < 0) {
missiler[mmm][28] = missiler[mmm][28] + 5;
if (missiler[mmm][28] > 0) {
missiler[mmm][28] = 0;
}
if (EyeSight != 1) {
missiles[mis]._alpha = 100;
} else {
missiles[mis]._alpha = 100 + missiler[mmm][28];
}
}
MissileHasTarget = 1;
if ((missiler[mmm][7] > 0) && ((targetX != -50) || (targetY != -50))) {
maxallowed = missiler[mmm][14] * EnemyTravelSpeed;
XDISTANCE = targetX - missiler[mmm][0];
YDISTANCE = targetY - missiler[mmm][1];
thedistance = Math.sqrt((XDISTANCE * XDISTANCE) + (YDISTANCE * YDISTANCE));
if ((thedistance <= missiler[mmm][4]) || (missiler[mmm][17] == 0)) {
rad = Math.asin(YDISTANCE / thedistance);
WantedGrader = (rad * 57.29578) + 90;
if (XDISTANCE < 0) {
WantedGrader = 360 - WantedGrader;
}
if ((Math.abs(WantedGrader - missiler[mmm][16]) <= missiler[mmm][8]) || (missiler[mmm][17] == 0)) {
if (missiler[mmm][23] <= 0) {
if (missiler[mmm][17] == 0) {
missiler[mmm][16] = WantedGrader;
}
if (missiler[mmm][16] < WantedGrader) {
HALLET = 2;
rotationen = WantedGrader - missiler[mmm][16];
} else {
HALLET = 1;
rotationen = missiler[mmm][16] - WantedGrader;
}
if (rotationen > maxallowed) {
rotationen = maxallowed;
missiler[mmm][18]++;
} else {
missiler[mmm][18] = 0;
}
xrot = missiler[mmm][16];
nrot = WantedGrader;
zrot = xrot - nrot;
if (zrot < 0) {
zrot = zrot + 360;
}
if (zrot <= 180) {
grader = missiler[mmm][16] - rotationen;
} else {
grader = missiler[mmm][16] + rotationen;
}
missiler[mmm][16] = grader;
} else if (missiler[mmm][23] > 0) {
missiler[mmm][23]--;
}
} else {
MissileHasTarget = 0;
}
} else {
MissileHasTarget = 0;
}
if ((MissileHasTarget == 0) && (missiler[mmm][26] != 0)) {
if (missiler[mmm][26] > 0) {
if (HALLET == undefined) {
HALLET = random(2) + 1;
}
if (missiler[mmm][26] == 1) {
missiler[mmm][26] = HALLET * -1;
} else {
missiler[mmm][26] = (HALLET * -1) - 10;
}
}
if ((missiler[mmm][26] == -1) || (missiler[mmm][26] == -11)) {
missiler[mmm][16] = missiler[mmm][16] - maxallowed;
} else if ((missiler[mmm][26] == -2) || (missiler[mmm][26] == -12)) {
missiler[mmm][16] = missiler[mmm][16] + maxallowed;
}
} else if ((MissileHasTarget == 1) && (missiler[mmm][26] < 0)) {
if ((missiler[mmm][26] == -1) || (missiler[mmm][26] == -2)) {
missiler[mmm][26] = 1;
} else if ((missiler[mmm][26] == -11) || (missiler[mmm][26] == -12)) {
missiler[mmm][26] = 2;
}
}
if (missiler[mmm][16] >= 360) {
missiler[mmm][16] = missiler[mmm][16] - 360;
} else if (missiler[mmm][16] < 0) {
missiler[mmm][16] = missiler[mmm][16] + 360;
}
} else {
if (missiler[mmm][30] == true) {
missiler[mmm][29] = missiler[mmm][25] * 20;
}
MissileHasTarget = 0;
missiler[mmm][18] = 0;
missiler[mmm][26] = 0;
if ((((missiler[mmm][0] < (-550 - (missiles[mis]._width / 2))) || (missiler[mmm][0] > (1100 + (missiles[mis]._width / 2)))) || (missiler[mmm][1] < (-400 - (missiles[mis]._height / 2)))) || (missiler[mmm][1] > (800 + (missiles[mis]._height / 2)))) {
willDisappear = 1;
}
}
if (MissileHasTarget == 0) {
missiler[mmm][29]++;
if (missiler[mmm][29] >= (missiler[mmm][25] * 20)) {
willDisappear = 2;
}
} else {
missiler[mmm][29] = 0;
}
nrot = missiler[mmm][16] * 0.01745329;
missiler[mmm][0] = missiler[mmm][0] + ((Math.sin(nrot) * missiler[mmm][5]) * EnemyTravelSpeed);
missiler[mmm][1] = missiler[mmm][1] - ((Math.cos(nrot) * missiler[mmm][5]) * EnemyTravelSpeed);
} else if (missiler[mmm][15] == 3) {
XDISTANCE = targetX - missiler[mmm][0];
YDISTANCE = targetY - missiler[mmm][1];
thedistance = Math.sqrt((XDISTANCE * XDISTANCE) + (YDISTANCE * YDISTANCE));
safedistance = ((100 * (210 / (timer + 1))) * EyeSight) + 1;
fadepixels = ((25 * (210 / (timer + 1))) * EyeSight) + 1;
alphan = 100 - (100 * ((thedistance - safedistance) / fadepixels));
if (missiler[mmm][17] > 30) {
if (alphan < 0) {
alphan = 0;
}
if (alphan > 100) {
alphan = 100;
}
if (missiler[mmm][17] < 40) {
alphan = alphan + ((100 - alphan) * (1 - ((missiler[mmm][17] - 30) / 10)));
}
} else {
alphan = 100;
}
if (alphan != missiler[mmm][37]) {
missiles[mis]._alpha = alphan;
}
missiler[mmm][37] = alphan;
if (missiler[mmm][36] != 0) {
if (missiler[mmm][17] >= 30) {
if ((thedistance <= 100) && (missiler[mmm][38] == 0)) {
if ((invis == 40) || ((mineSpec == true) && (Math.random() < 0.5))) {
missiler[mmm][38] = 20;
} else {
missiler[mmm][39] = crosshairx;
missiler[mmm][40] = crosshairy;
missiler[mmm][38] = -1;
missiler[mmm][39] = missiler[mmm][39] - missiler[mmm][0];
missiler[mmm][40] = missiler[mmm][40] - missiler[mmm][1];
missiler[mmm][0] = missiler[mmm][0] + (missiler[mmm][39] / 10);
missiler[mmm][1] = missiler[mmm][1] + (missiler[mmm][40] / 10);
missiler[mmm][41] = 0;
}
}
if (missiler[mmm][38] <= -1) {
minaXdist = (missiler[mmm][39] / 10) * EnemyTravelSpeed;
minaYdist = (missiler[mmm][40] / 10) * EnemyTravelSpeed;
missiler[mmm][41] = missiler[mmm][41] + Math.sqrt((minaXdist * minaXdist) + (minaYdist * minaYdist));
missiler[mmm][0] = missiler[mmm][0] + minaXdist;
missiler[mmm][1] = missiler[mmm][1] + minaYdist;
if (missiler[mmm][0] < 10) {
missiler[mmm][0] = 10;
} else if (missiler[mmm][0] > 540) {
missiler[mmm][0] = 540;
}
if (missiler[mmm][1] < 10) {
missiler[mmm][1] = 10;
} else if (missiler[mmm][1] > 390) {
missiler[mmm][1] = 390;
}
missiler[mmm][38] = missiler[mmm][38] - EnemyTravelSpeed;
if ((missiler[mmm][38] == -10) || (missiler[mmm][41] >= 100)) {
missiler[mmm][38] = 20;
}
} else if (missiler[mmm][38] != 0) {
missiler[mmm][38]--;
}
}
missiler[mmm][36] = missiler[mmm][36] - (4.5 * EnemyTravelSpeed);
if (missiler[mmm][36] <= 0) {
missiler[mmm][36] = missiler[mmm][36] + 360;
}
if (alphan != 0) {
missiles[mis].container._rotation = missiler[mmm][36];
}
}
} else {
if (missiler[mmm][17] > (getval("Ghostsvisible") + getval("Ghostsinvisible"))) {
missiler[mmm][17] = 2;
}
if (missiler[mmm][17] <= getval("Ghostsvisible")) {
if (missiler[mmm][17] <= (getval("Ghostsvisible") * 0.25)) {
missiles[mis]._alpha = 50 + (50 * (missiler[mmm][17] / (getval("Ghostsvisible") * 0.25)));
} else if (missiler[mmm][17] > (getval("Ghostsvisible") * 0.75)) {
steg = missiler[mmm][17] - (getval("Ghostsvisible") * 0.75);
missiles[mis]._alpha = 100 - (50 * (steg / (getval("Ghostsvisible") * 0.25)));
}
} else {
zeval = missiler[mmm][17] - getval("Ghostsvisible");
if ((zeval <= (getval("Ghostsinvisible") * 0.25)) && (missiler[mmm][7] > 0)) {
missiles[mis]._alpha = 50 - (50 * (zeval / (getval("Ghostsinvisible") * 0.25)));
} else if (zeval > (getval("Ghostsinvisible") * 0.75)) {
steg = zeval - (getval("Ghostsinvisible") * 0.75);
missiles[mis]._alpha = 50 * (steg / (getval("Ghostsinvisible") * 0.25));
}
}
if (EyeSight != 1) {
missiles[mis]._alpha = 100;
}
if ((missiler[mmm][7] > 0) && ((targetX != -50) || (targetY != -50))) {
if (missiler[mmm][24] != 0) {
if (missiles[mis].container.eye.aim != undefined) {
missiler[mmm][27]++;
if (missiler[mmm][27] == (missiler[mmm][24] * 20)) {
if (Math.random() < getval("GhostsBossMissileChanse")) {
pointa = new Object();
pointa.x = missiles[mis].container.eye.aim._x;
pointa.y = missiles[mis].container.eye.aim._y;
missiles[mis].container.eye.localToGlobal(pointa);
SpawnMissile(-1 * (100 - missiles[mis]._alpha), missiler[mmm][6], pointa.x, pointa.y);
}
missiler[mmm][27] = 0;
}
}
}
} else {
targetX = missiler[mmm][21];
targetY = missiler[mmm][22];
if ((((missiler[mmm][0] < (-1 * (missiles[mis]._width / 2))) || (missiler[mmm][0] > (550 + (missiles[mis]._width / 2)))) || (missiler[mmm][1] < (-1 * (missiles[mis]._height / 2)))) || (missiler[mmm][1] > (400 + (missiles[mis]._height / 2)))) {
willDisappear = 1;
}
}
if (missiler[mmm][0] > targetX) {
distanceX = missiler[mmm][0] - targetX;
distanceXmodifyer = -1;
} else {
distanceX = targetX - missiler[mmm][0];
distanceXmodifyer = 1;
}
if (missiler[mmm][1] > targetY) {
distanceY = missiler[mmm][1] - targetY;
distanceYmodifyer = -1;
} else {
distanceY = targetY - missiler[mmm][1];
distanceYmodifyer = 1;
}
desiredXdir = (distanceX / (distanceX + distanceY)) * distanceXmodifyer;
desiredYdir = (distanceY / (distanceX + distanceY)) * distanceYmodifyer;
if (desiredXdir > missiler[mmm][2]) {
missiler[mmm][2] = missiler[mmm][2] + (missiler[mmm][14] * EnemyTravelSpeed);
if (desiredXdir < missiler[mmm][2]) {
missiler[mmm][2] = desiredXdir;
}
} else if (desiredXdir < missiler[mmm][2]) {
missiler[mmm][2] = missiler[mmm][2] - (missiler[mmm][14] * EnemyTravelSpeed);
if (desiredXdir > missiler[mmm][2]) {
missiler[mmm][2] = desiredXdir;
}
}
if (desiredYdir > missiler[mmm][3]) {
missiler[mmm][3] = missiler[mmm][3] + (missiler[mmm][14] * EnemyTravelSpeed);
if (desiredYdir < missiler[mmm][3]) {
missiler[mmm][3] = desiredYdir;
}
} else if (desiredYdir < missiler[mmm][3]) {
missiler[mmm][3] = missiler[mmm][3] - (missiler[mmm][14] * EnemyTravelSpeed);
if (desiredYdir > missiler[mmm][3]) {
missiler[mmm][3] = desiredYdir;
}
}
xtravel = missiler[mmm][5] * missiler[mmm][2];
ytravel = missiler[mmm][5] * missiler[mmm][3];
missiler[mmm][0] = missiler[mmm][0] + (xtravel * EnemyTravelSpeed);
missiler[mmm][1] = missiler[mmm][1] + (ytravel * EnemyTravelSpeed);
}
if (missiler[mmm][10] != missiler[mmm][11]) {
if (missiler[mmm][10] < missiler[mmm][11]) {
missiler[mmm][10] = missiler[mmm][10] + (missiler[mmm][9] * EnemyTravelSpeed);
if (missiler[mmm][10] > missiler[mmm][11]) {
missiler[mmm][10] = missiler[mmm][11];
}
} else {
missiler[mmm][10] = missiler[mmm][10] - (missiler[mmm][9] * EnemyTravelSpeed);
if (missiler[mmm][10] < missiler[mmm][11]) {
missiler[mmm][10] = missiler[mmm][11];
}
}
}
missiles[mis]._xscale = missiler[mmm][10];
missiles[mis]._yscale = missiler[mmm][10];
missiles[mis]._x = missiler[mmm][0];
missiles[mis]._y = missiler[mmm][1];
missiles[mis]._rotation = missiler[mmm][16];
if (missiler[mmm][17] == 0) {
if (missiler[mmm][28] <= 0) {
missiles[mis].gotoAndStop(3);
} else if (missiler[mmm][15] < 3) {
missiles[mis].gotoAndStop(missiler[mmm][15]);
} else {
missiles[mis].gotoAndStop(1);
missiles[mis].gotoAndStop(4);
}
if (missiler[mmm][28] >= 0) {
missiles[mis]._alpha = 100;
} else {
missiles[mis]._alpha = 100 + missiler[mmm][28];
}
if ((missiler[mmm][15] == 1) && (missiler[mmm][19] != 0)) {
missiles[mis].container.mimage.gotoAndStop(2);
} else if (missiler[mmm][15] == 1) {
missiles[mis].container.mimage.gotoAndStop(1);
} else if (missiler[mmm][15] != 3) {
missiles[mis].container.theMALET = mmm;
if (missiler[mmm][24] == 0) {
missiles[mis].container.eye.stop();
} else {
missiles[mis].container.eye.play();
}
missiles[mis]._alpha = 50;
}
}
if (((GFXOn == true) && (missiler[mmm][17] > 3)) && (missiler[mmm][15] != 3)) {
if (missiler[mmm][15] == 1) {
useMe = missiles[mis].rear;
} else {
useMe = missiles[mis].container.eye.rear;
}
theNewRear = new Object();
theNewRear.x = useMe._x;
theNewRear.y = useMe._x;
useMe.localToGlobal(theNewRear);
if (missiler[mmm][15] == 2) {
eyeCandy("ghostTrail", new Array(theNewRear.x, theNewRear.y, missiles[mis]._xscale, missiles[mis]._yscale, missiles[mis]._alpha));
} else if (missiler[mmm][15] != 3) {
if (missiler[mmm][28] <= 0) {
missiltyp = 3;
} else if (missiler[mmm][19] == 0) {
missiltyp = 1;
} else {
missiltyp = 2;
}
eyeCandy("missileLine", new Array(theOldRear.x, theOldRear.y, missiles[mis]._xscale, missiles[mis]._yscale, missiles[mis]._alpha, theNewRear.x, theNewRear.y, missiltyp));
}
}
if ((willDisappear != 0) || (missiler[mmm][35] == 1)) {
if (missiler[mmm][15] == 1) {
if (missiler[mmm][28] > 0) {
missilerUte--;
}
if (willDisappear == 2) {
ljud("sndGhostExplosion2.wav");
}
} else if (missiler[mmm][15] == 3) {
if (missiler[mmm][42] == 0) {
minorUte--;
}
} else {
ghostsUte--;
}
missiler[mmm] = undefined;
remove(missiles[mis]);
} else {
missiler[mmm][17]++;
}
}
}
}
missiler = new Array();
missilerUte = 0;
ghostsUte = 0;
minorUte = 0;
minorMaxUte = 0;
damage = 0;
thespeed = 0;
Xdirection = 0;
Ydirection = 0;
TurnPenalty = 1;
acceleration = 5;
maxspeed = 30;
health = 100;
maxhealth = 100;
weight = 100;
weightCurrent = 100;
weightMin = 50;
weightMax = 1500;
weightGain = 3;
weightLoss = 0.002;
playerSpinning = 1;
EyeSight = 1;
invis = 0;
squarex = square._x;
squarey = square._y;
oldsquarex = squarex;
oldsquarey = squarey;
crosshairx = crosshair._x;
crosshairy = crosshair._y;
Invulnerability = 0;
DamageModifyer = 1;
ImmunityReluctance = 0;
Luck = 4;
HealthGain = 0;
MaxHealthGain = 0;
EnemyTravelSpeed = 1;
ghostSkada = 0.33333333333333;
missilSkada = 0.25;
mghostSkada = 0.125;
ghostDamageDelay = 20;
minaSkada = 0.1;
poisonDamage = 0;
antidote = 0;
bonusLastingMultiplyer = 1;
RULEnoReds = 0;
RULEnoBosses = 0;
RULEnoMissiles = 0;
RULEnoGhosts = 0;
canChangeGhostNmissiles = 0;
timesTakenGhostMissileChangingBonus = 0;
TrapIsTrap = 1;
BonusIsBonus = 1;
timerText = new Array();
trapChanse = 0.9;
bonusChanse = 0.8;
trapCycle = 70;
bonusCycle = 80;
trapCycleCurrent = 0;
bonusCycleCurrent = 0;
bonus2chanse = 0;
bonus3chanse = 0;
bonus4chanse = 0;
trap2chanse = 0;
trap3chanse = 0;
trap4chanse = 0;
maxTimeBetweenBonus = 25;
maxTimeBetweenTrap = 15;
maxTimeBetweenBonusCounter = 0;
maxTimeBetweenTrapCounter = 0;
maxTimeBetweenSuperBonus = 30;
maxTimeBetweenSuperTrap = 20;
maxTimeBetweenSuperBonusCounter = 0;
maxTimeBetweenSuperTrapCounter = 0;
function FlytandeVarden(bokstav) {
bID = bokstav.toUpperCase();
if (bID == "A") {
Vardet = DamageModifyer / 2;
}
if (bID == "B") {
Vardet = DamageModifyer;
}
if (bID == "C") {
Vardet = weightLoss;
}
if (bID == "D") {
Vardet = weightLoss / 2;
}
if (bID == "E") {
Vardet = acceleration;
}
if (bID == "F") {
Vardet = acceleration / 2;
}
if (bID == "G") {
Vardet = DamageModifyer / 4;
}
if (bokstav == bokstav.toLowerCase()) {
Vardet = Vardet * -1;
}
return(Vardet);
}
function TASK(task, varde, returntypA, returnstyrkaA) {
returntyp = returntypA;
returnstyrka = returnstyrkaA;
if (returntyp == 1) {
senastAndrat = new Array();
}
if (task == 1) {
if (DO((Invulnerability == 0) && (timer >= 30))) {
Change(0, "Invulnerability", Invulnerability + varde);
if ((returntyp != 0) && (Math.random() < 0.3)) {
ljud("sndGta2Invulnerability.wav");
}
}
} else if (task == 2) {
if (DO(timer >= 30)) {
Change(0, "DamageModifyer", DamageModifyer + varde);
}
} else if (task == 3) {
if (DO(ImmunityReluctance == 0)) {
Change(0, "ImmunityReluctance", ImmunityReluctance + varde);
}
} else if (task == 4) {
if (DO(true)) {
attPlussaPa = 9 - Luck;
addedLuckByExtremeLuck = addedLuckByExtremeLuck + attPlussaPa;
Change(0, "Luck", Luck + attPlussaPa);
Change(0, "HealthGain", HealthGain + 0.025);
Change(0, "MaxHealthGain", MaxHealthGain + 1);
Change(0, "DamageModifyer", DamageModifyer + varde);
Change(0, "acceleration", acceleration + 1000);
Change(0, "maxspeed", maxspeed + 1000);
ljud("sndYipee.wav");
}
} else if (task == -4) {
Change(0, "Luck", Luck - addedLuckByExtremeLuck);
addedLuckByExtremeLuck = 0;
Change(0, "HealthGain", HealthGain - 0.025);
Change(0, "MaxHealthGain", MaxHealthGain - 1);
Change(0, "DamageModifyer", DamageModifyer + varde);
Change(0, "acceleration", acceleration - 1000);
Change(0, "maxspeed", maxspeed - 1000);
} else if (task == 5) {
if (DO(((acceleration > 2.5) && (varde < 0)) || ((acceleration < 20) && (varde > 0)))) {
Change(0, "acceleration", acceleration + varde);
}
} else if (task == 6) {
if (DO(((maxspeed > 30) && (varde < 0)) || ((maxspeed < 50) && (varde > 0)))) {
Change(0, "maxspeed", maxspeed + varde);
}
} else if (task == 7) {
if (DO(((playerSpinning > 0.4) && (varde < 0)) || ((playerSpinning < 1.6) && (varde > 0)))) {
Change(0, "playerSpinning", playerSpinning + varde);
}
} else if (task == 8) {
if (DO(((weightGain > 2) && (varde < 0)) || ((weightGain < 4) && (varde > 0)))) {
Change(0, "weightGain", weightGain + varde);
}
} else if (task == 9) {
if (DO(((weightLoss > 0.001) && (varde < 0)) || ((weightLoss < 0.004) && (varde > 0)))) {
Change(0, "weightLoss", weightLoss + varde);
}
} else if (task == 10) {
if (DO(((EnemyTravelSpeed > 0.5) && (varde < 0)) || ((EnemyTravelSpeed < 1.5) && (varde > 0)))) {
Change(0, "EnemyTravelSpeed", EnemyTravelSpeed + varde);
if ((EnemyTravelSpeed == 1.5) && (Math.random() < 0.8)) {
ljud("sndDungeonKeeperAccelerate.wav");
} else if ((EnemyTravelSpeed == 0.5) && (Math.random() < 0.3)) {
}
}
} else if (task == 11) {
if (DO(((LUCKROLL(6) && (varde == 1)) || (varde == -1)) && ((((getval("blacksmax") < 10) && (varde == 1)) && (moreBlacks != 0)) || ((getval("blacksmax") > 1) && (varde == -1))))) {
Change(1, "blacksmax", getval("blacksmax") + varde);
if (varde == 1) {
Change(0, "moreBlacks", moreBlacks - 1);
} else {
beforefiesta--;
}
}
} else if (task == 12) {
if (DO((((LUCKROLL(5) && (timer > 20)) && (varde == -1)) || (varde == 1)) && (((lessReds != 0) && (varde == -1)) || (moreReds && (varde == 1))))) {
if (DO(((getval("fiendermax") > 1) && (varde < 0)) || ((getval("fiendermax") < 10) && (varde > 0)))) {
Change(1, "fiendermax", getval("fiendermax") + varde);
Change(0, "secSinceLastModifiedmaxenemies", secSinceLastModifiedmaxenemies - 5);
if (varde == -1) {
Change(0, "lessReds", lessReds - 1);
} else {
Change(0, "moreReds", false);
}
}
}
} else if (task == 13) {
if (DO((Luck < 9) && (((LUCKROLL(5) && (varde == 1)) || (varde == -1)) && (((lucky1 && (varde == 1)) || ((lucky2 && (varde == 1)) && (timer >= 150))) || (unlucky1 && (varde == -1)))))) {
if (varde == 1) {
if (lucky1 == true) {
Change(0, "Luck", Luck + 1);
Change(0, "lucky1", false);
} else {
Change(0, "Luck", Luck + 2);
Change(0, "lucky2", false);
}
} else {
Change(0, "Luck", Luck - 1);
Change(0, "unlucky1", false);
}
}
} else if (task == 14) {
if (DO(_root.thedarkness._currentframe == 1)) {
_root.thedarkness.play();
}
} else if (task == 15) {
if (DO((bonus2chanse == 0) && LUCKROLL(10))) {
Change(0, "bonus2chanse", 0.2);
}
} else if (task == 16) {
if (DO(trap2chanse == 0)) {
Change(0, "trap2chanse", 0.3);
}
} else if (task == 17) {
if (DO(transanon == true)) {
_root.theanon.play();
Change(0, "transanon", false);
}
} else if (task == 18) {
if (DO((((weightCurrent > 100) || (varde > 0)) && ((weightCurrent + varde) >= weightMin)) && ((weightCurrent + varde) <= weightMax))) {
Change(0, "weightCurrent", weightCurrent + varde);
}
} else if (task == 19) {
if (DO(((((weightCurrent > 100) && LUCKROLL(5)) && LUCKROLL(5)) && LUCKROLL(6)) && LUCKROLL(10))) {
Change(0, "weightCurrent", varde);
}
} else if (task == 20) {
if (DO((RULEnoReds == 0) && LUCKROLL(7))) {
Change(0, "RULEnoReds", RULEnoReds + varde);
}
} else if (task == 21) {
if (DO((RULEnoBosses == 0) && (timer >= 60))) {
Change(0, "RULEnoBosses", RULEnoBosses + varde);
}
} else if (task == 22) {
if (DO((RULEnoMissiles == 0) && (timer >= 60))) {
Change(0, "RULEnoMissiles", RULEnoMissiles + varde);
}
} else if (task == 23) {
if (DO((RULEnoGhosts == 0) && (timer >= 60))) {
Change(0, "RULEnoGhosts", RULEnoGhosts + varde);
}
} else if (task == 24) {
if (DO((fanoTurnPenalty == true) && LUCKROLL(5))) {
Change(0, "TurnPenalty", 0);
Change(0, "fanoTurnPenalty", false);
}
} else if (task == 25) {
if (DO((acceleration < 500) && LUCKROLL(5))) {
Change(0, "TurnPenalty", TurnPenalty - varde);
Change(0, "acceleration", acceleration + (varde * 1000));
Change(0, "maxspeed", maxspeed + (varde * 1000));
}
} else if (task == 26) {
if (DO((((health + (varde * 200)) <= maxhealth) && (HealthGain == 0)) && LUCKROLL(8))) {
Change(0, "HealthGain", HealthGain + varde);
if (varde > 0) {
ljud("sndHoly.wav");
}
}
} else if (task == 27) {
if (DO(poisonDamage == 0)) {
if (varde == 1) {
Change(0, "poisonDamage", 0.0666666666666667);
} else {
Change(0, "poisonDamage", 0);
Change(0, "antidote", 0);
}
}
} else if (task == 28) {
Change(0, "antidote", 0.000666666666666667);
} else if (task == 29) {
if (DO((((varde == -1) && mindreMinor) || ((varde == 1) && (merMinor > 0))) && (timer > 40))) {
if (varde == -1) {
Change(0, "minorMaxUte", minorUte - 1);
Change(0, "mindreMinor", false);
} else {
Change(0, "minorMaxUte", minorMaxUte + 1);
Change(0, "merMinor", merMinor - 1);
}
}
} else if (task == 30) {
if (DO(((bonusCycle > 20) && (moreBonuses > 0)) && LUCKROLL(7))) {
Change(0, "bonusCycle", bonusCycle - 10);
Change(0, "moreBonuses", moreBonuses - 1);
}
} else if (task == 31) {
if (DO(((bonusChanse < 1) && (moreBonusesChance > 0)) && LUCKROLL(6))) {
Change(0, "bonusChanse", bonusChanse + 0.1);
Change(0, "moreBonusesChance", moreBonusesChance - 1);
}
} else if (task == 32) {
if (DO((slowerBonuses == true) && (moreBonusesChance > 0))) {
Change(1, "bonussSpeedMin", 2250);
Change(1, "bonussSpeedMax", 2250);
Change(0, "slowerBonuses", false);
}
} else if (task == 33) {
if (DO(((timer < 120) && (bonusLastingMultiplyer < 1.5)) || ((timer >= 120) && (bonusLastingMultiplyer < 2)))) {
Change(0, "bonusLastingMultiplyer", bonusLastingMultiplyer + 0.25);
}
} else if (task == 34) {
if (DO((LUCKROLL(7) && (canChangeGhostNmissiles <= 0)) && ((getval("MissilesSmartChanse") - 0.05) > 0.025))) {
Change(1, "MissilesSmartChanse", getval("MissilesSmartChanse") - 0.05);
Change(0, "timesTakenGhostMissileChangingBonus", timesTakenGhostMissileChangingBonus + 1);
Change(0, "canChangeGhostNmissiles", 200 * timesTakenGhostMissileChangingBonus);
}
} else if (task == 35) {
if (DO((canChangeGhostNmissiles <= 0) && ((missileChance - 0.03875) > 0.019375))) {
Change(0, "missileChance", missileChance - 0.03875);
Change(0, "AnotherMissileChance", AnotherMissileChance - 0.019375);
Change(0, "timesTakenGhostMissileChangingBonus", timesTakenGhostMissileChangingBonus + 1);
Change(0, "canChangeGhostNmissiles", 200 * timesTakenGhostMissileChangingBonus);
}
} else if (task == 36) {
if (DO((canChangeGhostNmissiles <= 0) && ((getval("Missileslifetimemin") - 700) > 2000))) {
Change(1, "Missileslifetimemin", getval("Missileslifetimemin") - 700);
Change(1, "Missileslifetimemax", getval("Missileslifetimemax") - 700);
Change(0, "timesTakenGhostMissileChangingBonus", timesTakenGhostMissileChangingBonus + 1);
Change(0, "canChangeGhostNmissiles", 200 * timesTakenGhostMissileChangingBonus);
}
} else if (task == 37) {
if (DO((LUCKROLL(7) && (canChangeGhostNmissiles <= 0)) && ((getval("GhostsBossChanse") - 0.05) > 0.025))) {
Change(1, "GhostsBossChanse", getval("GhostsBossChanse") - 0.05);
Change(0, "timesTakenGhostMissileChangingBonus", timesTakenGhostMissileChangingBonus + 1);
Change(0, "canChangeGhostNmissiles", 200 * timesTakenGhostMissileChangingBonus);
}
} else if (task == 38) {
if (DO((canChangeGhostNmissiles <= 0) && ((ghostChance - 0.025) > 0.0125))) {
Change(0, "ghostChance", ghostChance - 0.025);
Change(0, "AnotherGhostChance", AnotherGhostChance - 0.0125);
Change(0, "timesTakenGhostMissileChangingBonus", timesTakenGhostMissileChangingBonus + 1);
Change(0, "canChangeGhostNmissiles", 200 * timesTakenGhostMissileChangingBonus);
}
} else if (task == 39) {
if (DO((canChangeGhostNmissiles <= 0) && ((getval("Ghostslifetimemin") - 1500) > 9000))) {
Change(1, "Ghostslifetimemin", getval("Ghostslifetimemin") - 1500);
Change(1, "Ghostslifetimemax", getval("Ghostslifetimemax") - 1500);
Change(0, "timesTakenGhostMissileChangingBonus", timesTakenGhostMissileChangingBonus + 1);
Change(0, "canChangeGhostNmissiles", 200 * timesTakenGhostMissileChangingBonus);
}
} else if (task == 40) {
if (DO(((slowerReds > 0) && (timer > 20)) && LUCKROLL(6))) {
val("fienderSpeedMin", 1800);
val("fienderSpeedMax", 2000);
Change(1, "fienderSpeedMin", getval("fienderSpeedMin") * 0.85);
Change(1, "fienderSpeedMax", getval("fienderSpeedMax") * 0.85);
Change(0, "slowerReds", slowerReds - 1);
}
} else if (task == 41) {
pausePenText = varde;
} else if (task == 42) {
if (DO((timer < 90) && (Math.random() < 0.01))) {
if (Math.random() < 0.05) {
DoShit(2);
} else {
DoShit(1);
}
}
} else if ((task == 43) || (task == -43)) {
if (DO(((task == 43) && (gagBonuses == false)) || ((task == -43) && (gagBonuses == true)))) {
if (task == 43) {
Change(0, "gagBonuses", true);
iUy = 0;
while (iUy < 5) {
iUy2 = 0;
while (iUy2 < 10) {
if (Math.random() < 0.5) {
if (iUy2 == 9) {
tempG = gagScheme[0];
gagScheme[0] = gagScheme[9];
gagScheme[9] = tempG;
} else {
tempG = gagScheme[iUy2 + 1];
gagScheme[iUy2 + 1] = gagScheme[iUy2];
gagScheme[iUy2] = tempG;
}
}
iUy2++;
}
iUy++;
}
} else {
Change(0, "gagBonuses", true);
}
}
} else if (task == 44) {
if (DO((nojumpmines == false) && LUCKROLL(7))) {
Change(0, "nojumpmines", true);
}
} else if (task == 45) {
if (DO((minorUte >= 1) && (ggrAttKlona > 0))) {
klonadArray = missiler.slice();
mklon = 0;
while (mklon <= klonadArray.length) {
if (klonadArray[mklon][15] == 3) {
minorUte--;
if (klonadArray[mklon][36] == 0) {
forcedMine = 1;
} else {
forcedMine = 2;
}
posX = 7 + (11 * Math.random());
posY = 7 + (11 * Math.random());
if (Math.random() < 0.5) {
posX = posX * -1;
}
if (Math.random() < 0.5) {
posY = posY * -1;
}
SpawnMissile(3, square, klonadArray[mklon][0] + posX, klonadArray[mklon][1] + posY);
}
mklon++;
}
klonadArray = undefined;
forcedMine = 0;
ggrAttKlona--;
ljud("sndCopy.wav");
ljud("sndAgeOfEmpires1priestWololo.wav");
}
} else if (task == 46) {
if (DO(((((fiesta > 0) && LUCKROLL(10)) && LUCKROLL(5)) && LUCKROLL(5)) && (getval("blacksmax") < 10))) {
if (varde == 1) {
fiesta--;
beforefiesta = getval("blacksmax");
Change(1, "blacksmax", 10);
ljud("sndJarabeTapatio.wav");
} else {
val("blacksmax", beforefiesta);
}
}
} else if (task == 47) {
if (DO((((mineSpec == false) && LUCKROLL(8)) && LUCKROLL(8)) && LUCKROLL(5))) {
Change(0, "mineSpec", true);
}
} else if (task == 48) {
if (DO(((timer > 70) && (dodging == false)) && LUCKROLL(7))) {
if (varde == 1) {
Change(0, "dodging", true);
} else {
Change(0, "dodging", false);
}
}
} else if (task == 49) {
if (DO((((untouchable == false) && LUCKROLL(10)) && LUCKROLL(8)) && LUCKROLL(5))) {
if (varde == 1) {
Change(0, "untouchable", true);
} else {
Change(0, "untouchable", false);
}
}
} else if (task == 50) {
if (DO((((invis == 0) && LUCKROLL(9)) && LUCKROLL(6)) && LUCKROLL(5))) {
if (varde == 1) {
Change(0, "invis", 40);
ljud("sndTiberianDawnTrans.wav");
} else {
Change(0, "invis", 0);
ljud("sndTiberianSunCloak.wav");
}
}
} else if (task == 51) {
if (DO((((warnings == false) && LUCKROLL(10)) && LUCKROLL(7)) && LUCKROLL(5))) {
Change(0, "warnings", true);
Warnings.play();
}
} else if (task == 52) {
if (DO((((EyeSight == 1) && LUCKROLL(10)) && LUCKROLL(7)) && LUCKROLL(6))) {
Change(0, "EyeSight", 99);
}
} else if (task == 53) {
if (DO((((predict == false) && LUCKROLL(10)) && LUCKROLL(6)) && LUCKROLL(5))) {
Change(0, "predict", true);
}
} else if (task == 54) {
if (DO(((weightCurrent > 200) && LUCKROLL(10)) && LUCKROLL(6))) {
Change(0, "weightCurrent", 100);
}
} else if (task == 55) {
if (DO(((dietVarde == 0) && (weightCurrent > 150)) && LUCKROLL(9))) {
if (varde == 1) {
Change(0, "dietVarde", (weightCurrent - 100) / 300);
} else {
Change(0, "dietVarde", 0);
}
}
}
}
function LUCKROLL(Svarighetsgrad) {
if (Math.random() < (1 / (Svarighetsgrad / Luck))) {
return(true);
}
return(false);
}
function Change(arEttVal, detSomSkaAndras, andraTill) {
if (returntyp == 1) {
senasteBonusTimern = timerz.senasteTimern;
regretCycle = 0;
if (arEttVal == 1) {
senastAndrat[senastAndrat.length] = new Array(1, detSomSkaAndras, getval(detSomSkaAndras));
} else {
senastAndrat[senastAndrat.length] = new Array(0, detSomSkaAndras, this[detSomSkaAndras]);
}
}
if (arEttVal == 1) {
val(detSomSkaAndras, andraTill);
} else {
this[detSomSkaAndras] = andraTill;
}
}
function REDO(returntyp, returnstyrka) {
timerz.senasteTimern.gotoAndPlay(1);
if (returntyp == 1) {
BONUSTIEM(returnstyrka);
} else {
TRAPTIEM(returnstyrka);
}
}
function DO(koll) {
if ((koll == true) || (returntyp == 0)) {
if (returntyp == 1) {
ljud("sndPowerUp.wav");
} else if (returntyp == 2) {
ljud("sndPowerDown.wav");
}
return(true);
}
REDO(returntyp, returnstyrka);
return(false);
}
lessReds = 1;
moreBlacks = 1;
moreBonuses = 2;
moreBonusesChance = 1;
slowerBonuses = true;
moreReds = true;
lucky1 = true;
lucky2 = true;
unlucky1 = true;
transanon = true;
fanoTurnPenalty = true;
slowerReds = 0;
mindreMinor = true;
merMinor = 1;
gagBonuses = false;
addedLuckByExtremeLuck = 0;
nojumpmines = false;
ggrAttKlona = 0;
fiesta = 1;
beforefiesta = 0;
mineSpec = false;
dodging = false;
untouchable = false;
warnings = false;
predict = false;
dietVarde = 0;
currentGag = -1;
gagScheme = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
if (BOOT == 1) {
EFFECT("b", "n", 1, false, 5, "SUPER BONUSES!", 15, 0, 0, 0);
EFFECT("b", "n", 1, true, 10, "HEAL!", 26, 26, 0.1, -0.1);
EFFECT("b", "n", 2, true, 10, "MINOR HEAL!", 26, 26, 0.05, -0.05);
EFFECT("b", "n", 2, false, 3.5, "{luck}", 13, 0, 1, 0);
EFFECT("b", "n", 2, true, 7, "UNTOUCHABLE!", 49, 49, 1, -1);
EFFECT("b", "n", 3, false, 3.5, "PREDICTION!", 53, 0, 0, 0);
EFFECT("b", "n", 3, false, 3.5, "WARNINGS!", 51, 0, 0, 0);
EFFECT("b", "n", 3, true, 30, "INVISIBILITY!", 50, 50, 1, -1);
EFFECT("b", "n", 3, true, 6, "BLACK FIESTA!", 46, 46, 1, -1);
EFFECT("b", "n", 3, false, 3.5, "TINY SQUARE!", 19, 0, 50, 0);
EFFECT("b", "n", 3, false, 3.5, "LESS REDS!", 12, 0, -1, 0);
EFFECT("b", "n", 3, false, 3.5, "LESS MINES!", 29, 0, -1, 0);
EFFECT("b", "n", 3, false, 3.5, "SLOWER REDS!", 40, 0, 0, 0);
EFFECT("b", "n", 3, false, 3.5, "LONGER BONUS EFFECTS!", 33, 0, 0, 0);
EFFECT("b", "n", 3, false, 3.5, "NO JUMP MINES!", 44, 0, 0, 0);
EFFECT("b", "n", 4, false, 3.5, "MORE BLACKS!", 11, 0, 1, 0);
EFFECT("b", "n", 4, false, 3.5, "HAWK EYES!", 52, 0, 0, 0);
EFFECT("b", "n", 4, false, 3.5, "MINE SPECIALIST!", 47, 0, 0, 0);
EFFECT("b", "n", 4, false, 3.5, "LESS SMART MISSILES!", 34, 0, 0, 0);
EFFECT("b", "n", 4, false, 3.5, "FEWER MISSILES!", 35, 0, 0, 0);
EFFECT("b", "n", 4, false, 3.5, "SHORTER LASTING MISSILES!", 36, 0, 0, 0);
EFFECT("b", "n", 4, false, 3.5, "LESS GHOST BOSSES!", 37, 0, 0, 0);
EFFECT("b", "n", 4, false, 3.5, "FEWER GHOSTS!", 38, 0, 0, 0);
EFFECT("b", "n", 4, false, 3.5, "SHORTER LASTING GHOSTS!", 39, 0, 0, 0);
EFFECT("b", "n", 4, true, 6, "NO REDS!", 20, 20, 1, -1);
EFFECT("b", "n", 4, true, 45, "NO GHOST BOSSES!", 21, 21, 1, -1);
EFFECT("b", "n", 5, false, 3.5, "QUICK DIET!", 54, 0, 0, 0);
EFFECT("b", "n", 5, true, 15, "DIET!", 55, 55, 1, -1);
EFFECT("b", "n", 5, true, 20, "DODGING!", 48, 48, 1, -1);
EFFECT("b", "n", 5, true, 10, "NO MISSILES!", 22, 22, 1, -1);
EFFECT("b", "n", 5, true, 10, "NO GHOSTS!", 23, 23, 1, -1);
EFFECT("b", "n", 5, true, 20, "IMMUNITY!", 3, 3, 1, -1);
EFFECT("b", "n", 5, true, 10, "PERFECT MOVEMENT!", 25, 25, 1, -1);
EFFECT("b", "n", 6, false, 3.5, "SLOWER SPINNING!", 7, 0, -0.6, 0);
EFFECT("b", "n", 6, false, 3.5, "LESS WEIGHT GAIN!", 8, 0, -1, 0);
EFFECT("b", "n", 6, false, 3.5, "PROPER EXERCISE!", 9, 0, "C", 0);
EFFECT("b", "n", 6, false, 3.5, "NO TURN PENALTY!", 24, 0, 0, 0);
EFFECT("b", "n", 7, false, 3.5, "MORE BONUSES!", 30, 0, 1, 0);
EFFECT("b", "n", 7, false, 3.5, "MORE FREQUENT BONUSES!", 31, 0, 1, 0);
EFFECT("b", "n", 7, false, 3.5, "SLOWER BONUSES!", 32, 0, 1, 0);
EFFECT("b", "n", 8, false, 3.5, "BETTER ACCELERATION!", 5, 0, "E", 0);
EFFECT("b", "n", 8, false, 3.5, "HIGHER MAX SPEED!", 6, 0, 10, 0);
EFFECT("b", "n", 9, false, 3.5, "SMALLER SQUARE!", 18, 0, -20, 0);
EFFECT("b", "n", 9, true, 8, "SLOW ENEMIES!", 10, 10, -0.5, 0.5);
EFFECT("b", "n", 10, false, 3.5, "{gag}", -43, 0, 0, 0);
EFFECT("b", "n", 10, true, 10, "HALVED DAMAGE!", 2, 2, "a", "A");
EFFECT("b", "n", 10, true, 5, "INVULNERABILITY!", 1, 1, 1, -1);
forcepickup = "";
q0 = "I'm leaving this little thing working for y'all kids out there. ;)";
EFFECT("t", "n", 1, false, 0.1, "PARTY!!! HARD!!!", 42, 0, 0, 0);
EFFECT("t", "n", 4, false, 3.5, "CLONED MINES", 45, 0, 0, 0);
EFFECT("t", "n", 5, false, 5, "SUPER TRAPS", 16, 0, 0, 0);
EFFECT("t", "n", 5, false, 3.5, "LUCK -1", 13, 0, -1, 0);
EFFECT("t", "n", 5, false, 3.5, "HUGE SQUARE", 18, 0, 100, 0);
EFFECT("t", "n", 5, false, 3.5, "LESS BLACKS", 11, 0, -1, 0);
EFFECT("t", "n", 5, false, 3.5, "MORE REDS", 12, 0, 1, 0);
EFFECT("t", "n", 5, false, 3.5, "MORE MINES", 29, 0, 1, 0);
EFFECT("t", "n", 5, false, 3.5, "WORSE ACCELERATION", 5, 0, "f", 0);
EFFECT("t", "n", 6, true, 7, "DOUBLE DAMAGE", 2, 2, "B", "b");
EFFECT("t", "n", 6, true, 15, "RELUCTANCE", 3, 3, -1, 1);
EFFECT("t", "n", 7, false, 3.5, "MORE WEIGHT GAIN", 8, 0, 1, 0);
EFFECT("t", "n", 7, false, 3.5, "FLAWED EXERCISE", 9, 0, "d", 0);
EFFECT("t", "n", 10, false, 3.5, "LOWER MAX SPEED", 6, 0, -10, 0);
EFFECT("t", "n", 10, false, 3.5, "FASTER SPINNING", 7, 0, 0.6, 0);
EFFECT("t", "n", 10, true, 5, "FAST ENEMIES", 10, 10, 0.5, -0.5);
EFFECT("t", "n", 10, false, 3.5, "BIGGER SQUARE", 18, 0, 20, 0);
EFFECT("b", "s", 7, true, 10, "GREATER HEAL!", 26, 26, 0.2, -0.2);
EFFECT("b", "s", 7, true, 61, "INVISIBILITY +1!", 50, 50, 1, -1);
EFFECT("b", "s", 7, true, 15, "UNTOUCHABLE +1!", 49, 49, 1, -1);
EFFECT("b", "s", 9, false, 3.5, "TRANSPARENT ANON!", 17, 0, 0, 0);
EFFECT("b", "s", 10, true, 21, "HALVED DAMAGE +1!", 2, 2, "a", "A");
EFFECT("b", "s", 10, true, 17, "SLOW ENEMIES +1!", 10, 10, -0.5, 0.5);
EFFECT("b", "s", 10, true, 11, "INVULNERABILITY +1!", 1, 1, 1, -1);
EFFECT("t", "s", 7, true, 10, "DARKNESS", 14, 14, 0, 0);
EFFECT("t", "s", 7, true, 10, "POISON", 27, 27, 1, 0);
EFFECT("t", "s", 8, false, 3.5, "GAG BONUSES", 43, 0, 0, 0);
EFFECT("t", "s", 9, true, 10, "DOUBLE DAMAGE +1", 2, 2, "B", "b");
EFFECT("t", "s", 10, true, 8, "FAST ENEMIES +1", 10, 10, 0.5, -0.5);
}
if (BOOT == 1) {
i = 0;
while (i < effectsDump.length) {
G = 0;
while (G < effectsDump[i].length) {
svarigheter = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
j = 0;
while (j < effectsDump[i][G].length) {
svarigheter[effectsDump[i][G][j][0] - 1]++;
j++;
}
svarigheterSumma = 0;
j = 0;
while (j < svarigheter.length) {
svarigheterSumma = svarigheterSumma + (svarigheter[j] * (j + 1));
j++;
}
CHANSESPLIT = 10000 / svarigheterSumma;
CHANSEUSED = 0;
j = 0;
while (j < effectsDump[i][G].length) {
HIGHER = CHANSEUSED + (effectsDump[i][G][j][0] * CHANSESPLIT);
LOWER = CHANSEUSED;
CHANSEUSED = HIGHER;
effects[i][G][effects[i][G].length] = new Array(Math.round(LOWER) + 1, Math.round(HIGHER), effectsDump[i][G][j][1], effectsDump[i][G][j][2], effectsDump[i][G][j][3], effectsDump[i][G][j][4], effectsDump[i][G][j][5], effectsDump[i][G][j][6], effectsDump[i][G][j][7]);
j++;
}
G++;
}
i++;
}
effectsDump = undefined;
}
timer = 0;
canChange = 0;
currentTime = "00:00";
oldTick = 0;
fps = 20;
fpsCnt = 0;
noBonusBonus = 1;
noDamageBonus = 1;
dangerBonus = 1;
dareBonus = 1;
score = 0;
scoreFract = 0;
timeMultiplierCycle = 0;
timeMultiplier = 1;
deathPlay = 0;
pain = 0;
secSinceLastModifiedmaxenemies = 0;
fienderMutationChanseMax = 0.75;
fienderDiagonalChanseMax = 0.75;
fienderGrowthChanseMax = 0.3;
fienderManiacChanseMax = 0.4;
squareSpinCycle = 1;
regretCycle = 61;
hpbarblink = 0;
nodamagetime = 0;
nodamagetimerecord = 0;
blacksrowcollect = 0;
blacksrowcollectrecord = 0;
bonusrowcollect = 0;
bonusrowcollectrecord = 0;
lifeflowpeakcollector = 0;
lifeflowpeak = 0;
lifeflowpeaknomultiplierscollector = 0;
lifeflowpeaknomultipliers = 0;
totPixelsTravelled = 0;
GAMEFPS = new Array();
realSecondsSpentPlaying = 0;
EFFECTARRAY = new Array();
theGreatA = false;
warningsKo = new Array();
ljud("sndGo.wav");
gotoAndPlay (3);
Symbol 631 MovieClip Frame 3
function ChangeGame() {
if ((timer % 15) == 0) {
if (moreBlacks < 8) {
moreBlacks++;
}
GaGi = 0;
while (GaGi < (timer / 10)) {
STATS[22] = STATS[22] + (Math.random() * 0.75);
GaGi++;
}
RoundStats(0);
}
if ((timer % 45) == 0) {
lessReds++;
moreBonuses++;
moreBonusesChance++;
slowerReds++;
}
if ((timer % 60) == 0) {
minorMaxUte++;
merMinor++;
ggrAttKlona++;
fiesta++;
}
if (timer == 1) {
val("fienderMinDelay", 0);
val("fiendeMaxDelay", 150);
}
if ((timer % 10) == 0) {
if (timer == 30) {
minorMaxUte = 1;
}
if (jumpMineChance < 0.8) {
jumpMineChance = jumpMineChance + 0.03333;
}
if (getval("fienderMinDelay") > 0) {
changeval("fienderMinDelay", -5);
}
if (getval("fienderMaxDelay") > 0) {
changeval("fienderMaxDelay", -10);
}
if (getval("fienderMinDelay") < 0) {
val("fienderMinDelay", 0);
}
if (getval("fienderMaxDelay") < 0) {
val("fienderMaxDelay", 0);
}
}
if ((timer % 3) == 0) {
changeval("fienderSpeedMin", 10);
changeval("fienderSpeedMax", 20);
}
if ((timer % 9) == 0) {
changeval("fienderSizeMin", 3);
changeval("fienderSizeMax", 10);
}
if ((timer % 12) == 0) {
if (getval("fienderMutationChanse") < fienderMutationChanseMax) {
changeval("fienderMutationChanse", 0.05);
} else {
val("fienderMutationChanse", fienderMutationChanseMax);
}
}
if ((timer % 15) == 0) {
changeval("fienderMutationMin", 2);
changeval("fienderMutationMax", 5);
}
if ((timer % 20) && (getval("fienderMutationThinner") > 0)) {
changeval("fienderMutationThinner", -0.005);
}
if ((timer % 15) == 0) {
if (getval("fienderDiagonalChanse") < fienderDiagonalChanseMax) {
changeval("fienderDiagonalChanse", 0.05);
} else {
val("fienderDiagonalChanse", fienderDiagonalChanseMax);
}
}
if ((timer % 18) == 0) {
changeval("fienderDiagonalSpeedMin", 1);
changeval("fienderDiagonalSpeedMax", 8);
if (getval("fienderDiagonalSpeedMin") > 100) {
val("fienderDiagonalSpeedMin", 100);
}
if (getval("fienderDiagonalSpeedMax") > 100) {
val("fienderDiagonalSpeedMax", 100);
}
}
if ((timer % 15) == 0) {
if (getval("fienderGrowthChanse") < fienderGrowthChanseMax) {
changeval("fienderGrowthChanse", 0.005);
} else {
val("fienderGrowthChanse", fienderGrowthChanseMax);
}
}
if ((timer % 20) == 0) {
changeval("fienderGrowthMin", 3);
changeval("fienderGrowthMax", 10);
}
if ((timer % 20) == 0) {
if (getval("fienderManiacChanse") < fienderManiacChanseMax) {
changeval("fienderManiacChanse", 0.005);
} else {
val("fienderManiacChanse", fienderManiacChanseMax);
}
}
if ((timer % 10) == 0) {
changeval("fienderManiacSpeedMin", 1);
changeval("fienderManiacSpeedMax", 2);
}
if ((getval("fiendermax") == 1) && (secSinceLastModifiedmaxenemies >= 10)) {
val("fiendermax", 2);
secSinceLastModifiedmaxenemies = 0;
} else if ((getval("fiendermax") == 2) && (secSinceLastModifiedmaxenemies >= 25)) {
val("fiendermax", 3);
secSinceLastModifiedmaxenemies = 0;
} else if ((getval("fiendermax") == 3) && (secSinceLastModifiedmaxenemies >= 48)) {
val("fiendermax", 4);
secSinceLastModifiedmaxenemies = 0;
} else if ((getval("fiendermax") == 4) && (secSinceLastModifiedmaxenemies >= 81)) {
val("fiendermax", 5);
secSinceLastModifiedmaxenemies = 0;
} else if ((getval("fiendermax") == 5) && (secSinceLastModifiedmaxenemies >= 132)) {
val("fiendermax", 6);
secSinceLastModifiedmaxenemies = 0;
} else if ((getval("fiendermax") == 6) && (secSinceLastModifiedmaxenemies >= 208)) {
val("fiendermax", 7);
secSinceLastModifiedmaxenemies = 0;
} else if ((getval("fiendermax") == 7) && (secSinceLastModifiedmaxenemies >= 322)) {
val("fiendermax", 8);
secSinceLastModifiedmaxenemies = 0;
} else if ((getval("fiendermax") == 8) && (secSinceLastModifiedmaxenemies >= 493)) {
val("fiendermax", 9);
secSinceLastModifiedmaxenemies = 0;
} else if ((getval("fiendermax") == 9) && (secSinceLastModifiedmaxenemies >= 748)) {
val("fiendermax", 10);
secSinceLastModifiedmaxenemies = 0;
} else if (getval("fiendermax") == 10) {
secSinceLastModifiedmaxenemies = 738;
}
if (timer == 15) {
ghostChance = ghostChance + 0.005;
missileChance = missileChance + 0.01;
}
if (timer == 45) {
AnotherGhostChance = AnotherGhostChance + 0.005;
AnotherMissileChance = AnotherMissileChance + 0.01;
}
if (timer >= 30) {
if ((timer % 5) == 0) {
if (ghostChance < 0.1) {
ghostChance = ghostChance + 0.005;
} else if (ghostChance < 0.2) {
ghostChance = ghostChance + 0.0025;
} else if (ghostChance < 0.3) {
ghostChance = ghostChance + 0.00125;
}
if (missileChance < 0.1) {
missileChance = missileChance + 0.01;
} else if (missileChance < 0.2) {
missileChance = missileChance + 0.005;
} else if (missileChance < 0.3) {
missileChance = missileChance + 0.0025;
}
}
if ((timer % 10) == 0) {
if (missileSquareDelay > 10) {
missileSquareDelay = Math.round(missileSquareDelay * 0.9);
ghostSquareDelay = Math.round(ghostSquareDelay * 0.95);
}
changeval("Missileslifetimemin", 40);
changeval("Missileslifetimemax", 60);
changeval("Ghostslifetimemin", 125);
changeval("Ghostslifetimemax", 250);
if (getval("Missilesturnratemin") < 1500) {
changeval("Missilesturnratemin", 5);
}
if (getval("Missilesturnratemax") < 1500) {
changeval("Missilesturnratemax", 10);
}
if (getval("Ghoststurnratemin") < 100) {
changeval("Ghoststurnratemin", 1);
}
if (getval("Ghoststurnratemax") < 150) {
changeval("Ghoststurnratemin", 2);
}
if (getval("Ghostsinvisible") < getval("Ghostsvisible")) {
changeval("Ghostsinvisible", 1);
}
if (getval("GhostsBossMin") > 10) {
changeval("GhostsBossMin", -2);
changeval("GhostsBossMax", -2);
}
if (getval("GhostsBossMissileChanse") < 0.8) {
changeval("GhostsBossMissileChanse", 0.025);
}
}
if ((timer % 20) == 0) {
if (maxTimeBetweenMissiles > 5) {
maxTimeBetweenMissiles--;
}
if (maxTimeBetweenGhosts > 5) {
maxTimeBetweenGhosts--;
}
}
if ((timer % 30) == 0) {
changeval("Missilesmax", 1);
changeval("Ghostsmax", 1);
if (getval("GhostsBossChanse") < 0.5) {
changeval("GhostsBossChanse", 0.025);
}
if (getval("MissilesSmartChanse") < 0.5) {
changeval("MissilesSmartChanse", 0.025);
}
}
if ((timer % 60) == 0) {
bigOkning = 0.5 * (1 - (Luck / 10));
ghostChance = ghostChance * (1 + (bigOkning / 2));
missileChance = missileChance * (1 + (bigOkning / 2));
AnotherGhostChance = AnotherGhostChance * (1 + bigOkning);
AnotherMissileChance = AnotherMissileChance * (1 + bigOkning);
changeval("MissilesSmartChanse", 0.05);
}
}
if (timer >= 60) {
if ((timer % 5) == 0) {
if (AnotherGhostChance < 0.1) {
AnotherGhostChance = AnotherGhostChance + 0.0025;
} else if (AnotherGhostChance < 0.2) {
AnotherGhostChance = AnotherGhostChance + 0.00125;
} else if (AnotherGhostChance < 0.3) {
AnotherGhostChance = AnotherGhostChance + 0.000625;
}
if (AnotherMissileChance < 0.1) {
AnotherMissileChance = AnotherMissileChance + 0.005;
} else if (AnotherMissileChance < 0.2) {
AnotherMissileChance = AnotherMissileChance + 0.0025;
} else if (AnotherMissileChance < 0.3) {
AnotherMissileChance = AnotherMissileChance + 0.00125;
}
}
}
}
if (musner == false) {
if (regretCycle <= 60) {
regretCycle++;
}
if (health > 0) {
hpbarbredden = 150 * (health / 100);
if (hpbarbredden < 1) {
hpbarblink--;
if (hpbarblink == 0) {
hpbar._alpha = 100 * health;
} else if (hpbarblink < 0) {
hpbarblink = Math.ceil(20 * health);
hpbar._alpha = 100;
}
hpbarbredden = 1;
} else if (hpbar._alpha < 100) {
hpbar._alpha = Math.round(hpbar._alpha) * 2.15;
hpbar._height = hpbar._height - 2;
}
hpbar._width = hpbarbredden;
if ((((((this._xmouse >= 0) && (this._xmouse < 550)) && (this._ymouse >= 0)) && (this._ymouse < 400)) || (_parent.autoPause == 0)) && (PAUSE <= 0)) {
autoPaused = 0;
if (_parent.ram._currentframe == 5) {
_parent.ram.gotoAndStop(1);
}
if ((noMouseModeChange == 0) && (OhShit == false)) {
Mouse.hide();
}
if (PAUSE == 0) {
startDrag ("crosshair", true);
PAUSE = -1;
} else {
squareSpinCycle = squareSpinCycle + (((100 / weight) * 2) * playerSpinning);
if (Math.round(squareSpinCycle) >= 100) {
squareSpinCycle = squareSpinCycle - 99;
}
square.gotoAndStop(Math.round(squareSpinCycle));
if (TrapIsTrap == 1) {
trapColor.setRGB(16711680);
TrapIsTrap = -1;
} else if (TrapIsTrap == 2) {
trapColor.setRGB(0);
TrapIsTrap = -2;
}
if (BonusIsBonus == 1) {
bonusColor.setRGB(0);
BonusIsBonus = -1;
} else if (BonusIsBonus == 2) {
bonusColor.setRGB(16711680);
BonusIsBonus = -2;
}
MainWork();
if (cubeCircles == true) {
DoTheCircleB();
}
dt = new Date();
newTick = Date.UTC(dt.getFullYear(), dt.getMonth(), dt.getDay(), dt.getHours(), dt.getMinutes(), dt.getSeconds(), dt.getMilliseconds());
fpsCnt++;
if ((newTick - oldTick) >= 1000) {
if ((newTick - oldTick) <= 1600) {
fps = fpsCnt;
realSecondsSpentPlaying = realSecondsSpentPlaying + ((newTick - oldTick) / 1000);
} else if (oldTick != 0) {
fps = 0;
realSecondsSpentPlaying++;
}
fpsCnt = 0;
oldTick = newTick;
GAMEFPS[GAMEFPS.length] = fps;
}
timeMultiplierCycle++;
if (timeMultiplierCycle == 20) {
timer++;
currentTime = makeTime(timer);
timeMultiplier = timeMultiplier + 0.09;
noBonusBonus = noBonusBonus + 0.015;
noDamageBonus = (noDamageBonus * 1.0055) + 0.05;
timeMultiplierCycle = 0;
secSinceLastModifiedmaxenemies++;
ChangeGame();
nodamagetime++;
if (nodamagetime > nodamagetimerecord) {
nodamagetimerecord = nodamagetime;
}
if (lifeflowpeakcollector > lifeflowpeak) {
lifeflowpeak = lifeflowpeakcollector;
}
if (lifeflowpeaknomultiplierscollector > lifeflowpeaknomultipliers) {
lifeflowpeaknomultipliers = lifeflowpeaknomultiplierscollector;
}
lifeflowpeakcollector = 0;
lifeflowpeaknomultiplierscollector = 0;
}
framelifepointsnomultiplier = ((50 * timeMultiplier) * noBonusBonus) * noDamageBonus;
framelifepoints = (framelifepointsnomultiplier * dangerBonus) * dareBonus;
lifeflowpeakcollector = lifeflowpeakcollector + (framelifepoints * (health / 100));
lifeflowpeaknomultiplierscollector = lifeflowpeaknomultiplierscollector + (framelifepointsnomultiplier * (health / 100));
addScore(framelifepoints * (health / 100));
score = Math.floor(scoreFract / 1000);
missileSquareDelayKvar--;
ghostSquareDelayKvar--;
maxTimeBetweenMissilesCounter++;
maxTimeBetweenGhostsCounter++;
maxTimeBetweenBonusCounter++;
maxTimeBetweenTrapCounter++;
maxTimeBetweenSuperBonusCounter++;
maxTimeBetweenSuperTrapCounter++;
canChangeGhostNmissiles--;
if ((invis > 0) && (invis < 40)) {
invis++;
}
if (dietVarde > 0) {
weightCurrent = weightCurrent - dietVarde;
}
}
} else {
if ((_parent.ram._currentframe == 1) && (PAUSE != 1)) {
_parent.ram.gotoAndPlay(2);
}
if (noMouseModeChange == 0) {
Mouse.show();
}
if (PAUSE == 1) {
stopDrag();
} else {
autoPaused = 1;
}
pausePenalty = 60;
}
} else {
deathPlay++;
if (cubeCircles && (deathPlay <= 60)) {
CI = 0;
while (CI < 32) {
if (deathPlay <= 10) {
this["ccc" + CI]._alpha = cIrcLesAlpha[CI] * (1 - (deathPlay / 10));
} else if (deathPlay >= 51) {
this["ccc" + CI]._alpha = cIrcLesAlpha[CI] * ((deathPlay - 50) / 10);
}
CI++;
}
if (deathPlay == 10) {
circlesModifier = 2;
} else if (deathPlay >= 51) {
DoTheCircleB();
circlesModifier = circlesModifier - 0.1;
}
}
if (deathPlay == 1) {
invis = 0;
_root.framesStill = 0;
RoundStats(1);
Lotto = Math.random();
if (Lotto < 0.1) {
ljud(("sndDungeonKeeperKill" + (random(2) + 1)) + ".wav");
} else if (Lotto < 0.4) {
ljud("sndDungeonKeeperImpDeath.wav");
} else if (Lotto < 0.5) {
ljud("sndAgeOfEmpires1die.wav");
} else if (Lotto < 0.6) {
Lotto = Math.random();
if (Lotto < 0.25) {
ljud("sndQuake2death1.wav");
} else if (Lotto < 0.5) {
ljud("sndQuake1gib.wav");
} else if (Lotto < 0.75) {
ljud("sndQuake1soldierDeath.wav");
} else {
ljud("sndQuake1death.wav");
}
} else if (Lotto < 0.7) {
ljud(("sndTiberianDawnYell" + (random(3) + 1)) + ".wav");
} else {
ljud(("sndLieroDeath" + (random(3) + 1)) + ".wav");
}
if (Math.random() < 0.5) {
ljud("sndDie.wav");
} else {
ljud("sndGameOverOldskool.wav");
}
Lotto = Math.random();
if (Lotto < 0.1) {
ljud("sndGta2Wasted.wav");
} else if (Lotto < 0.2) {
ljud(("sndBloodHeheh" + (random(2) + 1)) + ".wav");
} else if (Lotto < 0.3) {
ljud("sndLaugh.wav");
} else if (Lotto < 0.4) {
ljud("sndBloodKilled.wav");
} else if (Lotto < 0.5) {
ljud("sndBloodRestPieces.wav");
} else if (Lotto < 0.6) {
ljud("sndBloodHaha.wav");
} else if (Lotto < 0.65) {
ljud("sndTiberianDawnUnitLost.wav");
} else if (Lotto < 0.7) {
ljud("sndWilhelmScream.wav");
} else if (Lotto < 0.72) {
ljud("sndSayonara.wav");
} else if (Lotto < 0.74) {
ljud("sndICantBelieveIt.wav");
} else if (Lotto < 0.75) {
ljud("sndYouJustLostTheGame.wav");
} else {
ljud(("sndGta2Laugh" + (random(9) + 1)) + ".wav");
}
hpbar._alpha = 0;
square.gotoAndPlay(102);
if (score > record) {
record = score;
newRecord = record;
}
if ((_root.thedarkness._currentframe > 1) && (_root.thedarkness._currentframe <= 11)) {
_root.thedarkness.gotoAndPlay(12);
}
}
if (evil._alpha != 0) {
minuset = evil._alpha / 4;
if (evil._alpha <= 1) {
evil._alpha = 0;
good._alpha = 0;
bonus._alpha = 0;
trap._alpha = 0;
timerz._alpha = 0;
missiles._alpha = 0;
eyeCandyHolder._alpha = 0;
} else {
evil._alpha = evil._alpha - minuset;
good._alpha = good._alpha - minuset;
bonus._alpha = bonus._alpha - minuset;
trap._alpha = trap._alpha - minuset;
timerz._alpha = timerz._alpha - minuset;
missiles._alpha = missiles._alpha - minuset;
eyeCandyHolder._alpha = eyeCandyHolder._alpha - minuset;
}
}
}
if ((timer == 0) && (timeMultiplierCycle <= 8)) {
if (timeMultiplierCycle <= 3) {
BOOT = 0;
StageReset();
} else if (anonWasTrans == 1) {
if ((timeMultiplierCycle % 2) == 0) {
_root.theanon.gotoAndStop(1);
} else {
_root.theanon.gotoAndStop(10);
}
}
}
}
Symbol 631 MovieClip Frame 4
if (musner == false) {
gotoAndPlay (3);
}
Symbol 631 MovieClip Frame 5
if (pausePenalty < 60) {
pausePenalty = Math.round((pausePenalty + 1) * 1.35);
} else {
pausePenalty = 60;
}
gotoAndPlay (4);
Symbol 652 MovieClip Frame 1
gotoAndPlay(_root.theanon.anon.anon.anon._currentframe);
Symbol 652 MovieClip Frame 28
gotoAndPlay (2);
Symbol 671 MovieClip Frame 1
gotoAndPlay(_root.theanon.anon.anon.anon._currentframe);
Symbol 671 MovieClip Frame 28
gotoAndPlay (2);
Symbol 675 MovieClip Frame 41
gotoAndPlay (1);
gotoAndPlay (1);
Symbol 678 MovieClip Frame 1
if (Math.random() < 0.002) {
gotoAndStop (483);
} else {
gotoAndPlay(((random(6) + 1) * 80) - 78);
}
Symbol 678 MovieClip Frame 481
gotoAndPlay (2);
Symbol 679 MovieClip Frame 1
gotoAndStop(_parent._parent._parent.ties[_parent._parent._parent.oldTie]);
Symbol 724 MovieClip Frame 28
gotoAndPlay (2);
Symbol 746 MovieClip Frame 28
gotoAndPlay (2);
Symbol 748 MovieClip Frame 1
stop();
Symbol 769 MovieClip Frame 1
ties = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
i = 0;
while (i < 3) {
j = 1;
while (j < 10) {
randen = random(9) + 1;
buffert = ties[j];
ties[j] = ties[randen];
ties[randen] = buffert;
j++;
}
i++;
}
oldTie = 0;
anon.onEnterFrame = function () {
if ((_root.currentTie != oldTie) && (anon._currentframe == 1)) {
anon.anon.ties.gotoAndStop(ties[_root.currentTie]);
oldTie = _root.currentTie;
}
};
Symbol 769 MovieClip Frame 28
gotoAndPlay (2);
Symbol 770 MovieClip Frame 1
stop();
Symbol 770 MovieClip Frame 10
stop();
Symbol 774 MovieClip Frame 1
stop();
Symbol 774 MovieClip Frame 2
this.onEnterFrame = function () {
this._x = _root.GAMEZ.square._x;
this._y = _root.GAMEZ.square._y;
};
Symbol 774 MovieClip Frame 11
stop();
Symbol 774 MovieClip Frame 21
this.onEnterFrame = undefined;
Symbol 776 MovieClip Frame 2
if (GOGO == undefined) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 776 MovieClip Frame 7
stop();
stop();
Symbol 783 Button
on (release) {
RoundMode(2);
}
Symbol 784 Button
on (release) {
RoundMode(3);
}
Symbol 786 Button
on (release) {
RoundMode(1);
}
Symbol 788 MovieClip Frame 1
function RoundMode(modet) {
_root.roundsmode = modet;
gotoAndStop(modet + 1);
_root.GAMEZ.PresentRounds(_root.roundssorting, modet);
}
RoundMode(_root.roundsmode);
Symbol 788 MovieClip Frame 4
q0 = "Insert 'storm' instead if you want to...";
Symbol 791 Button
on (release) {
RoundSort(2);
}
Symbol 792 Button
on (release) {
RoundSort(3);
}
Symbol 793 Button
on (release) {
RoundSort(4);
}
Symbol 795 Button
on (release) {
RoundSort(1);
}
Symbol 798 MovieClip Frame 1
function RoundSort(sodet, nono) {
_root.roundssorting = sodet;
gotoAndStop(sodet + 1);
if (nono == undefined) {
_root.GAMEZ.PresentRounds(sodet, _root.roundsmode);
}
}
RoundSort(_root.roundssorting, 1);
Instance of Symbol 365 MovieClip [TextArea] "field" in Symbol 799 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
editable = false;
html = true;
text = "Was gonna write text here but then my mom got scared and said \"You're moving with your auntie and uncle in Bel-Air.\" I whistled for a cab and when it came near, the license plate said \"Fresh\" and it had dice in the mirror. If anything I could say that this cab was rare but I thought \"Nah, forget it, Yo homes, to Bel-Air!\" I pulled up to the house about seven or eight and I yelled to the cabby, \"Yo homes, smell ya later!\" I looked at my kingdom, I was finally there, to sit on my throne as the prince of Bel-Air.";
wordWrap = true;
maxChars = 0;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 801 MovieClip Frame 1
stop();
Symbol 801 MovieClip Frame 2
function bkShowEm(steg) {
i = 24 * steg;
while (i < (24 + (24 * steg))) {
ByggStenar[i].GOGO = 1;
i++;
}
}
ByggStenar = new Array();
j = 0;
for (i in squares) {
ByggStenar[j++] = squares[i];
}
i = 0;
while (i < 15) {
j = 0;
while (j < ByggStenar.length) {
num1 = random(100) + 1;
num2 = random(100) + 1;
bbuff = ByggStenar[num1];
ByggStenar[num1] = ByggStenar[num2];
ByggStenar[num2] = bbuff;
j++;
}
i++;
}
bkShowEm(0);
Symbol 801 MovieClip Frame 3
bkShowEm(1);
Symbol 801 MovieClip Frame 4
bkShowEm(2);
Symbol 801 MovieClip Frame 5
bkShowEm(3);
Symbol 801 MovieClip Frame 6
bkShowEm(4);
Symbol 801 MovieClip Frame 11
_root.GAMEZ.noMouseModeChange = 1;
Mouse.show();
stop();
Symbol 801 MovieClip Frame 12
_root.GAMEZ.noMouseModeChange = 0;
Symbol 801 MovieClip Frame 15
gotoAndStop (1);
Symbol 804 MovieClip Frame 1
stop();
Symbol 809 MovieClip Frame 1
function Try(chA) {
if (Math.random() < chA) {
gotoAndPlay (333);
}
}
Symbol 809 MovieClip Frame 27
Try(0.05);
Symbol 809 MovieClip Frame 53
Try(0.1);
Symbol 809 MovieClip Frame 80
Try(0.2);
Symbol 809 MovieClip Frame 108
Try(0.3);
Symbol 809 MovieClip Frame 137
Try(0.4);
Symbol 809 MovieClip Frame 167
Try(0.5);
Symbol 809 MovieClip Frame 198
Try(0.6);
Symbol 809 MovieClip Frame 230
Try(0.7);
Symbol 809 MovieClip Frame 263
Try(0.8);
Symbol 809 MovieClip Frame 297
Try(0.9);
Symbol 809 MovieClip Frame 336
if (Math.random() < 0.75) {
gotoAndPlay (1);
}
Symbol 811 MovieClip Frame 1
stop();
Symbol 812 MovieClip Frame 1
function STARE() {
pedroeyes._x = (79.1 + (3 * (_root.GAMEZ.squarex / 550))) - 1.5;
pedroeyes._y = (43.1 + (3 * (_root.GAMEZ.squarey / 400))) - 1.5;
}
Instance of Symbol 811 MovieClip "pedroeyes" in Symbol 812 MovieClip Frame 1
onClipEvent (load) {
frameAttVaraPa = 1;
}
onClipEvent (enterFrame) {
if ((_root.framesStill == 0) && (frameAttVaraPa != 1)) {
frameAttVaraPa = frameAttVaraPa - 3;
if (frameAttVaraPa < 1) {
frameAttVaraPa = 1;
}
gotoAndStop(frameAttVaraPa);
if (frameAttVaraPa < 80) {
_root.droool = 0;
}
if ((_root.pedro.pedrostars._currentframe != 1) && (_root.pedro.pedrostars._currentframe < 6)) {
_root.pedro.pedrostars.gotoAndPlay(6);
}
} else if ((_root.framesStill != 0) && (frameAttVaraPa < 100)) {
frameAttVaraPa++;
gotoAndStop(frameAttVaraPa);
} else if (_root.framesStill != 0) {
if (_root.framesStill == 140) {
_root.droool = 1;
}
if (_root.framesStill == 170) {
_root.pedro.pedrostars.gotoAndPlay(2);
}
}
}
Symbol 812 MovieClip Frame 3
STARE();
Symbol 812 MovieClip Frame 5
STARE();
Symbol 812 MovieClip Frame 7
STARE();
Symbol 812 MovieClip Frame 9
STARE();
Symbol 812 MovieClip Frame 11
STARE();
Symbol 812 MovieClip Frame 13
STARE();
Symbol 812 MovieClip Frame 15
STARE();
Symbol 812 MovieClip Frame 17
STARE();
Symbol 812 MovieClip Frame 18
STARE();
Symbol 812 MovieClip Frame 19
STARE();
Symbol 812 MovieClip Frame 20
STARE();
Symbol 812 MovieClip Frame 21
STARE();
Symbol 812 MovieClip Frame 22
STARE();
Symbol 812 MovieClip Frame 24
STARE();
gotoAndPlay (23);
Symbol 813 MovieClip Frame 1
_root.POPP = false;
_root.GAMEZ.square.squaredrop.gotoAndStop(1);
stop();
Symbol 813 MovieClip Frame 24
_root.POPP = true;
_root.GAMEZ.square.squaredrop.gotoAndPlay(2);
Symbol 813 MovieClip Frame 26
stop();
Symbol 813 MovieClip Frame 27
gotoAndStop (1);
Symbol 816 MovieClip Frame 1
q0 = "And you didn't think he was in the game!";
Symbol 818 MovieClip Frame 2
if (_parent._parent.GAMEZ.PAUSE == 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Instance of Symbol 816 MovieClip in Symbol 818 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_parent._parent._parent.GAMEZ.PAUSE != 1) {
_parent.gotoAndPlay(1);
}
}
Symbol 818 MovieClip Frame 55
if (_parent._parent.GAMEZ.PAUSE == 1) {
gotoAndPlay (54);
} else {
gotoAndPlay (1);
}
Symbol 819 MovieClip Frame 5
stop();
Symbol 819 MovieClip Frame 15
gotoAndStop (1);
Symbol 822 MovieClip Frame 71
stop();
_parent.noDiceOrIce = 0;
Symbol 829 Button
on (release) {
if (noDiceOrIce == 0) {
stopAllSounds();
_root.GAMEZ.DoShit(9);
_root.SND.attachSound("sndNewDawn.wav");
_root.SND.start(0, 1);
}
}
Symbol 837 MovieClip Frame 71
stop();
_parent.noDiceOrIce = 0;
Symbol 839 MovieClip Frame 1
stop();
noDiceOrIce = 1;
Symbol 839 MovieClip Frame 2
stop();
stopAllSounds();
_root.SND.attachSound("sndManticore.wav");
_root.SND.start(0, 1);
_root.GAMEZ.ohshitted = true;
Symbol 839 MovieClip Frame 3
stop();
stopAllSounds();
_root.SND.attachSound("sndHarpy.wav");
_root.SND.start(0, 1);
_root.GAMEZ.ohshitted = true;
Symbol 840 MovieClip Frame 1
function Try(chA) {
if (Math.random() < chA) {
gotoAndPlay (501);
}
}
Symbol 840 MovieClip Frame 51
Try(0.05);
Symbol 840 MovieClip Frame 101
Try(0.1);
Symbol 840 MovieClip Frame 151
Try(0.2);
Symbol 840 MovieClip Frame 201
Try(0.3);
Symbol 840 MovieClip Frame 251
Try(0.4);
Symbol 840 MovieClip Frame 301
Try(0.5);
Symbol 840 MovieClip Frame 351
Try(0.6);
Symbol 840 MovieClip Frame 401
Try(0.7);
Symbol 840 MovieClip Frame 451
Try(0.8);
Symbol 840 MovieClip Frame 509
if (Math.random() < 0.5) {
gotoAndPlay (1);
}
Symbol 840 MovieClip Frame 515
if (Math.random() < 0.5) {
gotoAndPlay (1);
}
Symbol 843 MovieClip Frame 85
gotoAndPlay (1);
Symbol 846 MovieClip Frame 85
gotoAndPlay (1);
Symbol 847 MovieClip Frame 1
stop();
Symbol 847 MovieClip Frame 5
stop();
Symbol 852 MovieClip Frame 1
function makeCheck() {
if (_root.droool == 1) {
gotoAndPlay(_currentframe - 1);
}
}
Symbol 852 MovieClip Frame 2
if (_root.droool == 1) {
slumpat = random(3);
if (slumpat == 0) {
gotoAndPlay (3);
} else if (slumpat == 1) {
gotoAndPlay (25);
} else {
gotoAndPlay (47);
}
} else {
gotoAndPlay (1);
}
Symbol 852 MovieClip Frame 18
makeCheck();
Symbol 852 MovieClip Frame 23
gotoAndPlay (1);
Symbol 852 MovieClip Frame 40
makeCheck();
Symbol 852 MovieClip Frame 45
gotoAndPlay (1);
Symbol 852 MovieClip Frame 62
makeCheck();
Symbol 852 MovieClip Frame 67
gotoAndPlay (1);
Symbol 853 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 26
stop();
Symbol 853 MovieClip Frame 27
gotoAndStop (1);
Symbol 855 MovieClip Frame 1
firstcredX.gotoAndStop(13);
firstcredX._x = -50;
firstcredX._y = -50;
this.attachMovie("firstcred", "firstcred", 1);
this.firstcred._x = 0;
this.firstcred._y = 0;
Symbol 858 MovieClip Frame 1
stop();
Symbol 205 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.127";
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 206 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.127";
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 207 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.127";
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 226 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 227 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 228 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 229 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 230 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 231 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.127";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 232 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 233 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 234 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 235 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 236 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.127";
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 237 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 238 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 239 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.127";
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 240 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 241 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.127";
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 242 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 243 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 244 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 245 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 285 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function set tabIndex(n) {
__tabIndex = n;
//return(tabIndex);
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.2.127";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 286 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local5 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local5 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = createObject("HScrollBar", "hSB", 1001);
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local5)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local5, 0, colCount - _local5);
viewableColumns = _local5;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local4 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local4 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = createObject("VScrollBar", "vSB", 1002);
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local4 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local4, 0, (rwCount - _local4) + _local8);
viewableRows = _local4;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = createObject("FHScrollBar", "hSB", 1001);
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
this[_local5] = _local2;
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.2.127";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 287 MovieClip [__Packages.mx.controls.TextArea] Frame 0
class mx.controls.TextArea extends mx.core.ScrollView
{
var label, invalidate, initText, dispatchValueChangedEvent, getHPosition, setHPosition, getVPosition, setVPosition, _color, focusTextField, tfx, tfy, tfw, tfh, doLater, _vpos, _hpos, hookedV, vScroller, hookedH, hScroller, getViewMetrics, __get__width, __get__height, hScrollPolicy, vScrollPolicy, getStyle, getFocusManager, addEventListener, removeEventListener, _getTextFormat;
function TextArea () {
super();
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(x) {
label.maxChars = x;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(s) {
label.restrict = ((s == "") ? null : (s));
//return(restrict);
}
function get wordWrap() {
return(label.wordWrap);
}
function set wordWrap(s) {
label.wordWrap = s;
invalidate();
//return(wordWrap);
}
function get editable() {
return(__editable);
}
function set editable(x) {
__editable = x;
label.type = (x ? "input" : "dynamic");
//return(editable);
}
function get password() {
return(label.password);
}
function set password(s) {
label.password = s;
//return(password);
}
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);
}
var _local2 = label;
if (_local2.html == true) {
return(_local2.htmlText);
}
return(_local2.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
invalidate();
}
dispatchValueChangedEvent(t);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
label.hscroll = pos;
label.background = false;
//return(hPosition);
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
label.scroll = pos + 1;
label.background = false;
//return(vPosition);
}
function get maxVPosition() {
var _local2 = label.maxscroll - 1;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
var _local2 = label.maxhscroll;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function init(Void) {
super.init();
label.styleName = this;
_color = mx.core.UIObject.textColorList;
focusTextField = label;
label.owner = this;
label.onSetFocus = function (x) {
this._parent.onSetFocus(x);
};
label.onKillFocus = function (x) {
this._parent.onKillFocus(x);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = function () {
this.owner.adjustScrollBars();
this.owner.dispatchEvent({type:"change"});
this.owner.dispatchValueChangedEvent(this.owner.text);
};
label.onScroller = function () {
this.owner.hPosition = this.hscroll;
this.owner.vPosition = this.scroll - 1;
};
if (text == undefined) {
text = ("");
}
}
function createChildren(Void) {
super.createChildren();
label.autoSize = "none";
}
function layoutContent(x, y, totalW, totalH, displayW, displayH) {
var _local2 = label;
if ((((tfx != x) || (tfy != y)) || (tfw != displayW)) || (tfh != displayH)) {
tfx = x;
tfy = y;
tfw = displayW;
tfh = displayH;
_local2.move(tfx, tfy);
_local2.setSize(tfw, tfh);
doLater(this, "adjustScrollBars");
}
}
function scrollChanged(Void) {
var _local2 = Selection;
if (_local2.lastBeginIndex != undefined) {
restoreSelection();
}
label.background = false;
}
function onScroll(docObj) {
var _local3 = label;
super.onScroll(docObj);
_local3.hscroll = hPosition + 0;
_local3.scroll = vPosition + 1;
_vpos = _local3.scroll;
_hpos = _local3.hscroll;
_local3.background = false;
if (hookedV != true) {
vScroller.addEventListener("scrollChanged", this);
hookedV = true;
}
if (hookedH != true) {
hScroller.addEventListener("scrollChanged", this);
hookedH = true;
}
}
function size(Void) {
var _local3 = getViewMetrics();
var _local7 = _local3.left + _local3.right;
var _local4 = _local3.top + _local3.bottom;
var _local6 = _local3.left;
var _local5 = _local3.top;
tfx = _local6;
tfy = _local5;
tfw = __get__width() - _local7;
tfh = __get__height() - _local4;
super.size();
label.move(tfx, tfy);
label.setSize(tfw, tfh);
if (__get__height() <= 40) {
hScrollPolicy = "off";
vScrollPolicy = "off";
}
doLater(this, "adjustScrollBars");
}
function setEnabled(enable) {
vScroller.enabled = enable;
hScroller.enabled = enable;
label.type = (((editable == false) || (enable == false)) ? "dynamic" : "input");
label.selectable = enable;
var _local3 = getStyle((enable ? "color" : "disabledColor"));
if (_local3 == undefined) {
_local3 = (enable ? 0 : 8947848);
}
setColor(_local3);
}
function setColor(col) {
label.textColor = col;
}
function setFocus(Void) {
Selection.setFocus(label);
}
function onSetFocus(x) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
getFocusManager().defaultPushButtonEnabled = false;
addEventListener("keyDown", this);
super.onSetFocus(x);
}
function onKillFocus(x) {
getFocusManager().defaultPushButtonEnabled = true;
removeEventListener("keyDown", this);
super.onKillFocus(x);
}
function restoreSelection(x) {
var _local2 = Selection;
Selection.setSelection(_local2.lastBeginIndex, _local2.lastEndIndex);
label.scroll = _vpos;
label.hscroll = _hpos;
}
function getLineOffsets(Void) {
var _local16 = _getTextFormat();
var _local18 = _local16.getTextExtent2(label.text);
var _local5 = _root._getTextExtent;
_local5.setNewTextFormat(_local16);
var _local14 = label.wordWrap;
var _local9 = 0;
var _local7 = (label._width - 2) - 2;
var _local12 = new Array();
var _local17 = new String(label.text);
var _local15 = _local17.split("\r");
var _local11 = 0;
while (_local11 < _local15.length) {
_local12.push(_local9);
var _local4 = _local15[_local11];
_local5.text = _local4;
var _local13 = Math.ceil(_local5.textWidth / _local7);
var _local10 = Math.floor(_local4.length / _local13);
var _local3;
while (_local14 && (_local5.textWidth > _local7)) {
_local3 = _local4.indexOf(" ", _local10);
var _local6;
if (_local3 == -1) {
_local3 = _local4.lastIndexOf(" ");
if (_local3 == -1) {
_local3 = _local10;
}
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
if (_local5.textWidth > _local7) {
while (_local5.textWidth > _local7) {
var _local8 = _local3;
_local3 = _local4.lastIndexOf(" ", _local3 - 1);
if (_local3 == -1) {
_local3 = _local8 - 1;
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
}
} else if (_local5.textWidth < _local7) {
var _local8 = _local3;
while (_local5.textWidth < _local7) {
_local8 = _local3;
_local3 = _local4.indexOf(" ", _local3 + 1);
if (_local3 == -1) {
if (_local4.indexOf(" ", 0) != -1) {
break;
}
_local3 = _local8 + 1;
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
}
_local3 = _local8;
}
_local9 = _local9 + _local3;
_local12.push(_local9 + 1);
_local4 = _local4.substr(_local3);
if (_local4.charAt(0) == " ") {
_local4 = _local4.substr(1, _local4.length - 1);
_local9 = _local9 + 1;
}
_local5.text = _local4;
}
_local9 = _local9 + (_local4.length + 1);
_local11++;
}
return(_local12);
}
function keyDown(e) {
var _local5 = e.code;
if (_local5 == 34) {
var _local6 = (label.bottomScroll - label.scroll) + 1;
var _local3 = getLineOffsets();
var _local2 = Math.min(label.bottomScroll + 1, label.maxscroll);
if (_local2 == label.maxscroll) {
var _local4 = label.length;
Selection.setSelection(_local4, _local4);
} else {
label.scroll = _local2;
Selection.setSelection(_local3[_local2 - 1], _local3[_local2 - 1]);
}
} else if (_local5 == 33) {
var _local6 = (label.bottomScroll - label.scroll) + 1;
var _local3 = getLineOffsets();
var _local2 = label.scroll - 1;
if (_local2 < 1) {
Selection.setSelection(0, 0);
} else {
Selection.setSelection(_local3[_local2 - 1], _local3[_local2 - 1]);
label.scroll = Math.max(_local2 - _local6, 1);
}
}
}
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 = true;
_local2.wordWrap = wordWrap == true;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = ((editable == true) ? "input" : "dynamic");
size();
_local2.background = false;
}
function adjustScrollBars() {
var _local2 = label;
var _local4 = (_local2.bottomScroll - _local2.scroll) + 1;
var _local3 = (_local4 + _local2.maxscroll) - 1;
if (_local3 < 1) {
_local3 = 1;
}
var _local5 = 0;
if ((_local2.textWidth + 5) > _local2._width) {
if (!_local2.wordWrap) {
_local5 = _local2._width + _local2.maxhscroll;
}
} else {
_local2.hscroll = 0;
_local2.background = false;
}
if ((_local2.height / _local4) != Math.round(_local2.height / _local4)) {
_local3--;
}
setScrollProperties(_local5, 1, _local3, _local2.height / _local4);
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
super.setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding);
if (vScroller == undefined) {
hookedV = false;
}
if (hScroller == undefined) {
hookedH = false;
}
}
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);
}
function get styleSheet() {
return(label.styleSheet);
}
function set styleSheet(v) {
label.styleSheet = v;
//return(styleSheet);
}
static var symbolName = "TextArea";
static var symbolOwner = mx.controls.TextArea;
static var version = "2.0.2.127";
var className = "TextArea";
var initializing = true;
var clipParameters = {text:1, wordWrap:1, editable:1, maxChars:1, restrict:1, html:1, password:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextArea.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters);
var __vScrollPolicy = "auto";
var __hScrollPolicy = "auto";
var __editable = true;
}
Symbol 366 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent
{
var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local2;
_local2 = createObject(placeholderClassName, instanceName, depth, initProps);
this[mx.core.View.childNameBase + numChildren] = _local2;
if (prepList == undefined) {
prepList = new Object();
}
prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local3;
for (_local3 in prepList) {
var _local2 = prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (loadList == undefined) {
loadList = new Object();
}
loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete prepList[_local3];
doLater(this, "checkLoadProgress");
} else {
doLater(this, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local8 = false;
var _local3;
for (_local3 in loadList) {
var _local2 = loadList[_local3];
_local2.loaded = _local2.obj.getBytesLoaded();
_local2.total = _local2.obj.getBytesTotal();
if (_local2.total > 0) {
_local2.obj._visible = false;
dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total});
if (_local2.loaded == _local2.total) {
if (loadedList == undefined) {
loadedList = new Object();
}
loadedList[_local3] = _local2;
delete loadList[_local3];
doLater(this, "contentLoaded");
}
} else if (_local2.total == -1) {
if (_local2.failedOnce != undefined) {
_local2.failedOnce++;
if (_local2.failedOnce > 3) {
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadList[_local3];
}
} else {
_local2.failedOnce = 0;
}
}
_local8 = true;
}
if (_local8) {
doLater(this, "checkLoadProgress");
}
}
function contentLoaded() {
var _local4;
for (_local4 in loadedList) {
var _local2 = loadedList[_local4];
_local2.obj._visible = true;
_local2.obj._complete = true;
var _local3;
for (_local3 in _local2.initProps) {
_local2.obj[_local3] = _local2.initProps[_local3];
}
childLoaded(_local2.obj);
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadedList[_local4];
}
}
function convertToUIObject(obj) {
if (obj.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
obj.addProperty("width", _local2.__get__width, null);
obj.addProperty("height", _local2.__get__height, null);
obj.addProperty("left", _local2.__get__left, null);
obj.addProperty("x", _local2.__get__x, null);
obj.addProperty("top", _local2.__get__top, null);
obj.addProperty("y", _local2.__get__y, null);
obj.addProperty("right", _local2.__get__right, null);
obj.addProperty("bottom", _local2.__get__bottom, null);
obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
obj.move = mx.core.UIObject.prototype.move;
obj.setSize = mx.core.UIObject.prototype.setSize;
obj.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(obj);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 367 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
if (l_mc == undefined) {
var _local2 = setSkin(tagL, leftSkin);
if (horizontal) {
minHeight = l_mc._height;
minWidth = l_mc._width;
} else {
minHeight = l_mc._height;
minWidth = l_mc._width;
}
}
if (m_mc == undefined) {
setSkin(tagM, middleSkin);
if (horizontal) {
minHeight = m_mc._height;
minWidth = minWidth + m_mc._width;
} else {
minHeight = minHeight + m_mc._height;
minWidth = m_mc._width;
}
}
if (r_mc == undefined) {
setSkin(tagR, rightSkin);
if (horizontal) {
minHeight = r_mc._height;
minWidth = minWidth + r_mc._width;
} else {
minHeight = minHeight + r_mc._height;
minWidth = r_mc._width;
}
}
size();
}
function size(Void) {
l_mc.move(0, 0);
if (horizontal) {
r_mc.move(width - r_mc.width, 0);
m_mc.move(l_mc.width, 0);
m_mc.setSize(r_mc.x - m_mc.x, m_mc.height);
} else {
r_mc.move(0, height - r_mc.height, 0);
m_mc.move(0, l_mc.height);
m_mc.setSize(m_mc.width, r_mc.y - m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.2.127";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 368 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder
{
var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height;
function ScrollThumb () {
super();
}
function createChildren(Void) {
super.createChildren();
useHandCursor = false;
}
function setRange(_ymin, _ymax, _datamin, _datamax) {
ymin = _ymin;
ymax = _ymax;
datamin = _datamin;
datamax = _datamax;
}
function dragThumb(Void) {
scrollMove = _ymouse - lastY;
scrollMove = scrollMove + _y;
if (scrollMove < ymin) {
scrollMove = ymin;
} else if (scrollMove > ymax) {
scrollMove = ymax;
}
_parent.isScrolling = true;
_y = scrollMove;
var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin;
_parent.scrollPosition = _local2;
_parent.dispatchScrollEvent("ThumbTrack");
updateAfterEvent();
}
function stopDragThumb(Void) {
_parent.isScrolling = false;
_parent.dispatchScrollEvent("ThumbPosition");
_parent.dispatchScrollChangedEvent();
delete onMouseMove;
}
function onPress(Void) {
_parent.pressFocus();
lastY = _ymouse;
onMouseMove = dragThumb;
super.onPress();
}
function onRelease(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onRelease();
}
function onReleaseOutside(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onReleaseOutside();
}
function draw() {
super.draw();
if (grip_mc == undefined) {
setSkin(3, gripSkin);
}
}
function size() {
super.size();
grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2);
}
static var symbolOwner = mx.skins.CustomBorder.symbolOwner;
var className = "ScrollThumb";
var btnOffset = 0;
var horizontal = false;
var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc");
}
Symbol 369 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent
{
var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse;
function ScrollBar () {
super();
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(pos) {
_scrollPosition = pos;
if (isScrolling != true) {
pos = Math.min(pos, maxPos);
pos = Math.max(pos, minPos);
var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top;
scrollThumb_mc.move(0, _local3);
}
//return(scrollPosition);
}
function get pageScrollSize() {
return(largeScroll);
}
function set pageScrollSize(lScroll) {
largeScroll = lScroll;
//return(pageScrollSize);
}
function set lineScrollSize(sScroll) {
smallScroll = sScroll;
//return(lineScrollSize);
}
function get lineScrollSize() {
return(smallScroll);
}
function get virtualHeight() {
return(__height);
}
function init(Void) {
super.init();
_scrollPosition = 0;
tabEnabled = false;
focusEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (scrollTrack_mc == undefined) {
setSkin(skinIDTrack, scrollTrackName);
}
scrollTrack_mc.visible = false;
var _local3 = new Object();
_local3.enabled = false;
_local3.preset = mx.controls.SimpleButton.falseDisabled;
_local3.initProperties = 0;
_local3.autoRepeat = true;
_local3.tabEnabled = false;
var _local2;
if (upArrow_mc == undefined) {
_local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3);
}
_local2.buttonDownHandler = onUpArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _local2.height;
_minWidth = _local2.width;
if (downArrow_mc == undefined) {
_local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3);
}
_local2.buttonDownHandler = onDownArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _minHeight + _local2.height;
}
function createButton(linkageName, id, skinID, o) {
if (skinID == skinIDUpArrow) {
o.falseUpSkin = upArrowUpName;
o.falseDownSkin = upArrowDownName;
o.falseOverSkin = upArrowOverName;
} else {
o.falseUpSkin = downArrowUpName;
o.falseDownSkin = downArrowDownName;
o.falseOverSkin = downArrowOverName;
}
var _local3 = createObject(linkageName, id, skinID, o);
this[id].visible = false;
this[id].useHandCursor = false;
return(_local3);
}
function createThumb(Void) {
var _local2 = new Object();
_local2.validateNow = true;
_local2.tabEnabled = false;
_local2.leftSkin = thumbTopName;
_local2.middleSkin = thumbMiddleName;
_local2.rightSkin = thumbBottomName;
_local2.gripSkin = thumbGripName;
createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2);
}
function setScrollProperties(pSize, mnPos, mxPos, ls) {
var _local4;
var _local2 = scrollTrack_mc;
pageSize = pSize;
largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize));
minPos = Math.max(mnPos, 0);
maxPos = Math.max(mxPos, 0);
_scrollPosition = Math.max(minPos, _scrollPosition);
_scrollPosition = Math.min(maxPos, _scrollPosition);
if (((maxPos - minPos) > 0) && (enabled)) {
var _local5 = _scrollPosition;
if (!initializing) {
upArrow_mc.enabled = true;
downArrow_mc.enabled = true;
}
_local2.onPress = (_local2.onDragOver = startTrackScroller);
_local2.onRelease = releaseScrolling;
_local2.onDragOut = (_local2.stopScrolling = stopScrolling);
_local2.onReleaseOutside = releaseScrolling;
_local2.useHandCursor = false;
if (scrollThumb_mc == undefined) {
createThumb();
}
var _local3 = scrollThumb_mc;
if (scrollTrackOverName.length > 0) {
_local2.onRollOver = trackOver;
_local2.onRollOut = trackOut;
}
_local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height;
if (_local4 < _local3.minHeight) {
if (_local2.height < _local3.minHeight) {
_local3.__set__visible(false);
} else {
_local4 = _local3.minHeight;
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local3.minHeight + 0);
}
} else {
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local4);
}
_local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos);
_local5 = Math.min(_local5, maxPos);
scrollPosition = (Math.max(_local5, minPos));
} else {
scrollThumb_mc.__set__visible(false);
if (!initializing) {
upArrow_mc.enabled = false;
downArrow_mc.enabled = false;
}
delete _local2.onPress;
delete _local2.onDragOver;
delete _local2.onRelease;
delete _local2.onDragOut;
delete _local2.onRollOver;
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
}
if (initializing) {
scrollThumb_mc.__set__visible(false);
}
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function draw(Void) {
if (initializing) {
initializing = false;
scrollTrack_mc.visible = true;
upArrow_mc.__set__visible(true);
downArrow_mc.__set__visible(true);
}
size();
}
function size(Void) {
if (_height == 1) {
return(undefined);
}
if (upArrow_mc == undefined) {
return(undefined);
}
var _local3 = upArrow_mc.__get__height();
var _local2 = downArrow_mc.__get__height();
upArrow_mc.move(0, 0);
var _local4 = scrollTrack_mc;
_local4._y = _local3;
_local4._height = (virtualHeight - _local3) - _local2;
downArrow_mc.move(0, virtualHeight - _local2);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function isScrollBarKey(k) {
if (k == 36) {
if (scrollPosition != 0) {
scrollPosition = (0);
dispatchScrollEvent(minMode);
}
return(true);
}
if (k == 35) {
if (scrollPosition < maxPos) {
scrollPosition = (maxPos);
dispatchScrollEvent(maxMode);
}
return(true);
}
return(false);
}
function scrollIt(inc, mode) {
var _local3 = smallScroll;
if (inc != "Line") {
_local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll));
}
var _local2 = _scrollPosition + (mode * _local3);
if (_local2 > maxPos) {
_local2 = maxPos;
} else if (_local2 < minPos) {
_local2 = minPos;
}
if (scrollPosition != _local2) {
scrollPosition = (_local2);
var _local4 = ((mode < 0) ? (minusMode) : (plusMode));
dispatchScrollEvent(inc + _local4);
}
}
function startTrackScroller(Void) {
_parent.pressFocus();
if (_parent.scrollTrackDownName.length > 0) {
if (_parent.scrollTrackDown_mc == undefined) {
_parent.setSkin(skinIDTrackDown, scrollTrackDownName);
} else {
_parent.scrollTrackDown_mc.visible = true;
}
}
_parent.trackScroller();
_parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1);
}
function scrollInterval(inc, mode) {
clearInterval(scrolling);
if (inc == "Page") {
trackScroller();
} else {
scrollIt(inc, mode);
}
scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode);
}
function trackScroller(Void) {
if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) {
scrollIt("Page", 1);
} else if (scrollThumb_mc._y > _ymouse) {
scrollIt("Page", -1);
}
}
function dispatchScrollChangedEvent(Void) {
dispatchEvent({type:"scrollChanged"});
}
function stopScrolling(Void) {
clearInterval(_parent.scrolling);
_parent.scrollTrackDown_mc.visible = false;
}
function releaseScrolling(Void) {
_parent.releaseFocus();
stopScrolling();
_parent.dispatchScrollChangedEvent();
}
function trackOver(Void) {
if (_parent.scrollTrackOverName.length > 0) {
if (_parent.scrollTrackOver_mc == undefined) {
_parent.setSkin(skinIDTrackOver, scrollTrackOverName);
} else {
_parent.scrollTrackOver_mc.visible = true;
}
}
}
function trackOut(Void) {
_parent.scrollTrackOver_mc.visible = false;
}
function onUpArrow(Void) {
_parent.scrollIt("Line", -1);
}
function onDownArrow(Void) {
_parent.scrollIt("Line", 1);
}
function onScrollChanged(Void) {
_parent.dispatchScrollChangedEvent();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollBar";
var minPos = 0;
var maxPos = 0;
var pageSize = 0;
var largeScroll = 0;
var smallScroll = 1;
var _scrollPosition = 0;
var scrollTrackName = "ScrollTrack";
var scrollTrackOverName = "";
var scrollTrackDownName = "";
var upArrowName = "BtnUpArrow";
var upArrowUpName = "ScrollUpArrowUp";
var upArrowOverName = "ScrollUpArrowOver";
var upArrowDownName = "ScrollUpArrowDown";
var downArrowName = "BtnDownArrow";
var downArrowUpName = "ScrollDownArrowUp";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDownName = "ScrollDownArrowDown";
var thumbTopName = "ScrollThumbTopUp";
var thumbMiddleName = "ScrollThumbMiddleUp";
var thumbBottomName = "ScrollThumbBottomUp";
var thumbGripName = "ScrollThumbGripUp";
static var skinIDTrack = 0;
static var skinIDTrackOver = 1;
static var skinIDTrackDown = 2;
static var skinIDUpArrow = 3;
static var skinIDDownArrow = 4;
static var skinIDThumb = 5;
var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc");
var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var initializing = true;
}
Symbol 370 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt;
function HScrollBar () {
super();
}
function getMinWidth(Void) {
return(_minHeight);
}
function getMinHeight(Void) {
return(_minWidth);
}
function init(Void) {
super.init();
_xscale = -100;
_rotation = -90;
}
function get virtualHeight() {
return(__width);
}
function isScrollBarKey(k) {
if (k == 37) {
scrollIt("Line", -1);
return(true);
}
if (k == 39) {
scrollIt("Line", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "HScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 371 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.127";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 372 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 373 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var scrollIt;
function VScrollBar () {
super();
}
function init(Void) {
super.init();
}
function isScrollBarKey(k) {
if (k == 38) {
scrollIt("Line", -1);
return(true);
}
if (k == 40) {
scrollIt("Line", 1);
return(true);
}
if (k == 33) {
scrollIt("Page", -1);
return(true);
}
if (k == 34) {
scrollIt("Page", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "VScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}