Frame 1
_root.animationCompleted = false;
Frame 2
preloader_mc.onComplete = function () {
_root.onEnterFrame = function () {
if (_root.animationCompleted) {
delete _root.onEnterFrame;
_root.bg_mc.gotoAndPlay("fadeOut");
_root.gotoAndStop("start");
}
};
};
Frame 10
stop();
Frame 12
var app = SESApp.getInstance();
app.init();
Instance of Symbol 594 MovieClip [LogWindow] "debug_lw" in Frame 12
//component parameters
onClipEvent (construct) {
activeOnLoad = false;
doDateStamp = false;
}
Frame 20
app.start();
stop();
Instance of Symbol 601 MovieClip [audio_btn] "sound_btn" in Frame 20
//component parameters
onClipEvent (construct) {
selectable = true;
disableOnSelect = false;
}
Symbol 15 MovieClip [RootPreloader] Frame 1
trace("Loaded RootPreloader.as");
this.rootMoviePercent = 100;
this.finished = false;
this.fadeOutOnComplete = true;
this._alpha = 0;
this.setProgress(10);
this.onEnterFrame = function () {
if (this._alpha < 100) {
this.setProgress(10);
this._alpha = this._alpha + 10;
} else {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
var _local3 = Math.round(_local4 * this.rootMoviePercent);
this.setProgress(_local3);
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
trace("RootPreloader completed");
delete this.onEnterFrame;
this.finished = true;
if (fadeOutOnComplete) {
this.fadeOut();
}
this.onComplete();
}
}
};
this.setProgress = function (percent) {
this.progress_txt.text = percent + "%";
this.progressShadow_txt.text = percent + "%";
this.progress_mc._xscale = 100 - percent;
};
this.fadeOut = function () {
this._alpha = 100;
this.onEnterFrame = function () {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this._visible = false;
delete this.onEnterFrame;
this.onFadeOut();
}
};
};
Symbol 26 MovieClip Frame 1
function cheer(secs) {
cheerMax = secs;
cheerCount = 0;
this.gotoAndPlay("hands1");
}
function checkCheer() {
if ((++cheerCount) == cheerMax) {
this.gotoAndStop("default");
} else {
this.gotoAndPlay("hands1");
}
}
var cheerCount = 0;
var cheerMax = 0;
stop();
Symbol 26 MovieClip Frame 30
checkCheer();
Symbol 46 MovieClip Frame 101
_root.bg_mc.cheer(7);
Symbol 46 MovieClip Frame 115
_root.animationCompleted = true;
stop();
Symbol 46 MovieClip Frame 129
stop();
Symbol 59 MovieClip [BigGreenButton] Frame 1
#initclip 50
Object.registerClass("BigGreenButton", name.robinson.grant.ui.Button);
#endinitclip
Symbol 73 MovieClip [PreviousButton] Frame 1
#initclip 35
Object.registerClass("PreviousButton", name.robinson.grant.ui.Button);
#endinitclip
Symbol 77 MovieClip [NextButton] Frame 1
#initclip 36
Object.registerClass("NextButton", name.robinson.grant.ui.Button);
#endinitclip
Symbol 91 MovieClip Frame 1
stop();
Symbol 99 MovieClip [Tab] Frame 1
#initclip 37
Object.registerClass("Tab", name.robinson.grant.ui.Button);
#endinitclip
Symbol 100 MovieClip [LeaderBoard] Frame 1
#initclip 38
Object.registerClass("LeaderBoard", ui.LeaderBoard);
#endinitclip
Instance of Symbol 99 MovieClip [Tab] "today_btn" in Symbol 100 MovieClip [LeaderBoard] Frame 1
//component parameters
onClipEvent (construct) {
label = "Today";
selectable = true;
selected = true;
downTextColor = 3355443 /* 0x333333 */;
}
Instance of Symbol 99 MovieClip [Tab] "all_btn" in Symbol 100 MovieClip [LeaderBoard] Frame 1
//component parameters
onClipEvent (construct) {
label = "Overall";
selectable = true;
selected = false;
downTextColor = 3355443 /* 0x333333 */;
}
Symbol 112 MovieClip [MenuScreen] Frame 1
#initclip 39
Object.registerClass("MenuScreen", screens.MenuScreen);
#endinitclip
Instance of Symbol 59 MovieClip [BigGreenButton] "start_btn" in Symbol 112 MovieClip [MenuScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Start";
}
Symbol 112 MovieClip [MenuScreen] Frame 10
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 130 MovieClip [CharacterSelectButton] Frame 1
#initclip 40
Object.registerClass("CharacterSelectButton", ui.CharacterSelectButton);
#endinitclip
Symbol 130 MovieClip [CharacterSelectButton] Frame 10
stop();
Symbol 134 MovieClip [SelectCharacterScreen] Frame 1
#initclip 41
Object.registerClass("SelectCharacterScreen", screens.SelectCharacterScreen);
#endinitclip
Instance of Symbol 59 MovieClip [BigGreenButton] "back_btn" in Symbol 134 MovieClip [SelectCharacterScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Back";
}
Instance of Symbol 130 MovieClip [CharacterSelectButton] "c5_btn" in Symbol 134 MovieClip [SelectCharacterScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Sergey";
overTextColor = 16777215 /* 0xFFFFFF */;
}
Instance of Symbol 130 MovieClip [CharacterSelectButton] "c4_btn" in Symbol 134 MovieClip [SelectCharacterScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Sergey";
overTextColor = 16777215 /* 0xFFFFFF */;
}
Instance of Symbol 130 MovieClip [CharacterSelectButton] "c3_btn" in Symbol 134 MovieClip [SelectCharacterScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Sergey";
overTextColor = 16777215 /* 0xFFFFFF */;
}
Instance of Symbol 130 MovieClip [CharacterSelectButton] "c2_btn" in Symbol 134 MovieClip [SelectCharacterScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Sergey";
overTextColor = 16777215 /* 0xFFFFFF */;
}
Instance of Symbol 130 MovieClip [CharacterSelectButton] "c1_btn" in Symbol 134 MovieClip [SelectCharacterScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Sergey";
overTextColor = 16777215 /* 0xFFFFFF */;
}
Instance of Symbol 130 MovieClip [CharacterSelectButton] "c0_btn" in Symbol 134 MovieClip [SelectCharacterScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Sergey";
overTextColor = 16777215 /* 0xFFFFFF */;
}
Symbol 134 MovieClip [SelectCharacterScreen] Frame 48
stop();
enableButtons();
Symbol 136 MovieClip [SelectOpponentScreen] Frame 1
#initclip 42
Object.registerClass("SelectOpponentScreen", screens.SelectOpponentScreen);
#endinitclip
Instance of Symbol 59 MovieClip [BigGreenButton] "back_btn" in Symbol 136 MovieClip [SelectOpponentScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Back";
}
Instance of Symbol 130 MovieClip [CharacterSelectButton] "random_btn" in Symbol 136 MovieClip [SelectOpponentScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Random";
overTextColor = 16777215 /* 0xFFFFFF */;
}
Instance of Symbol 130 MovieClip [CharacterSelectButton] "c4_btn" in Symbol 136 MovieClip [SelectOpponentScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Sergey";
overTextColor = 16777215 /* 0xFFFFFF */;
}
Instance of Symbol 130 MovieClip [CharacterSelectButton] "c3_btn" in Symbol 136 MovieClip [SelectOpponentScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Sergey";
overTextColor = 16777215 /* 0xFFFFFF */;
}
Instance of Symbol 130 MovieClip [CharacterSelectButton] "c2_btn" in Symbol 136 MovieClip [SelectOpponentScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Sergey";
overTextColor = 16777215 /* 0xFFFFFF */;
}
Instance of Symbol 130 MovieClip [CharacterSelectButton] "c1_btn" in Symbol 136 MovieClip [SelectOpponentScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Sergey";
overTextColor = 16777215 /* 0xFFFFFF */;
}
Instance of Symbol 130 MovieClip [CharacterSelectButton] "c0_btn" in Symbol 136 MovieClip [SelectOpponentScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Sergey";
overTextColor = 16777215 /* 0xFFFFFF */;
}
Symbol 136 MovieClip [SelectOpponentScreen] Frame 47
stop();
enableButtons();
Symbol 139 MovieClip [QuitButton] Frame 1
#initclip 43
Object.registerClass("QuitButton", name.robinson.grant.ui.Button);
#endinitclip
Symbol 146 MovieClip Frame 90
stop();
Symbol 146 MovieClip Frame 99
gotoAndStop ("default");
Symbol 146 MovieClip Frame 119
gotoAndStop ("default");
Symbol 146 MovieClip Frame 160
gotoAndStop ("default");
Symbol 146 MovieClip Frame 180
gotoAndStop ("default");
Symbol 146 MovieClip Frame 219
gotoAndStop ("default");
Symbol 146 MovieClip Frame 239
gotoAndStop ("default");
Symbol 146 MovieClip Frame 279
gotoAndStop ("default");
Symbol 146 MovieClip Frame 319
gotoAndStop ("default");
Symbol 149 MovieClip Frame 1
stop();
Symbol 153 MovieClip [TimerDisplay] Frame 1
#initclip 44
Object.registerClass("TimerDisplay", ui.TimerDisplay);
#endinitclip
Symbol 153 MovieClip [TimerDisplay] Frame 14
stop();
Symbol 153 MovieClip [TimerDisplay] Frame 22
stop();
Symbol 153 MovieClip [TimerDisplay] Frame 34
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 51
gotoAndStop ("default");
Symbol 239 MovieClip Frame 140
gotoAndStop ("default");
Symbol 239 MovieClip Frame 153
_parent._parent.applyDamage();
Symbol 239 MovieClip Frame 184
_parent._parent.checkForKO();
Symbol 239 MovieClip Frame 196
_parent._parent.endRound();
Symbol 239 MovieClip Frame 204
gotoAndStop ("default");
Symbol 239 MovieClip Frame 312
_parent._parent.applyDamage();
Symbol 239 MovieClip Frame 354
_parent._parent.checkForKO();
Symbol 239 MovieClip Frame 370
_parent._parent.endRound();
Symbol 239 MovieClip Frame 373
gotoAndStop ("default");
Symbol 239 MovieClip Frame 436
_parent._parent.applyDamage();
Symbol 239 MovieClip Frame 478
_parent._parent.checkForKO();
Symbol 239 MovieClip Frame 494
_parent._parent.endRound();
Symbol 239 MovieClip Frame 497
gotoAndStop ("default");
Symbol 239 MovieClip Frame 530
_parent._parent.applyDamage();
Symbol 239 MovieClip Frame 572
_parent._parent.checkForKO();
Symbol 239 MovieClip Frame 588
_parent._parent.endRound();
Symbol 239 MovieClip Frame 591
gotoAndStop ("default");
Symbol 239 MovieClip Frame 639
_parent._parent.applyDamage();
Symbol 239 MovieClip Frame 670
_parent._parent.checkForKO();
Symbol 239 MovieClip Frame 682
_parent._parent.endRound();
Symbol 239 MovieClip Frame 690
gotoAndStop ("default");
Symbol 239 MovieClip Frame 750
_parent._parent.applyDamage();
Symbol 239 MovieClip Frame 782
_parent._parent.checkForKO();
Symbol 239 MovieClip Frame 812
_parent._parent.endRound();
Symbol 239 MovieClip Frame 813
gotoAndStop ("default");
Symbol 239 MovieClip Frame 852
gotoAndPlay ("winloop");
Symbol 276 MovieClip Frame 87
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 51
gotoAndStop ("default");
Symbol 310 MovieClip Frame 222
gotoAndStop ("default");
Symbol 310 MovieClip Frame 235
_parent._parent.applyDamage();
Symbol 310 MovieClip Frame 264
_parent._parent.checkForKO();
Symbol 310 MovieClip Frame 278
_parent._parent.endRound();
Symbol 310 MovieClip Frame 286
gotoAndStop ("default");
Symbol 310 MovieClip Frame 299
_parent._parent.applyDamage();
Symbol 310 MovieClip Frame 328
_parent._parent.checkForKO();
Symbol 310 MovieClip Frame 342
_parent._parent.endRound();
Symbol 310 MovieClip Frame 350
gotoAndStop ("default");
Symbol 310 MovieClip Frame 376
_parent._parent.applyDamage();
Symbol 310 MovieClip Frame 413
_parent._parent.checkForKO();
Symbol 310 MovieClip Frame 426
_parent._parent.endRound();
Symbol 310 MovieClip Frame 427
gotoAndStop ("default");
Symbol 310 MovieClip Frame 490
_parent._parent.applyDamage();
Symbol 310 MovieClip Frame 532
_parent._parent.checkForKO();
Symbol 310 MovieClip Frame 548
_parent._parent.endRound();
Symbol 310 MovieClip Frame 551
gotoAndStop ("default");
Symbol 310 MovieClip Frame 584
_parent._parent.applyDamage();
Symbol 310 MovieClip Frame 626
_parent._parent.checkForKO();
Symbol 310 MovieClip Frame 642
_parent._parent.endRound();
Symbol 310 MovieClip Frame 645
gotoAndStop ("default");
Symbol 310 MovieClip Frame 693
_parent._parent.applyDamage();
Symbol 310 MovieClip Frame 722
_parent._parent.checkForKO();
Symbol 310 MovieClip Frame 736
_parent._parent.endRound();
Symbol 310 MovieClip Frame 744
gotoAndStop ("default");
Symbol 310 MovieClip Frame 804
_parent._parent.applyDamage();
Symbol 310 MovieClip Frame 836
_parent._parent.checkForKO();
Symbol 310 MovieClip Frame 866
_parent._parent.endRound();
Symbol 310 MovieClip Frame 867
gotoAndStop ("default");
Symbol 310 MovieClip Frame 875
stop();
Symbol 369 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 51
gotoAndStop ("default");
Symbol 369 MovieClip Frame 120
_parent._parent.applyDamage();
Symbol 369 MovieClip Frame 167
gotoAndStop ("default");
Symbol 369 MovieClip Frame 180
_parent._parent.applyDamage();
Symbol 369 MovieClip Frame 211
_parent._parent.checkForKO();
Symbol 369 MovieClip Frame 223
_parent._parent.endRound();
Symbol 369 MovieClip Frame 231
gotoAndStop ("default");
Symbol 369 MovieClip Frame 257
_parent._parent.applyDamage();
Symbol 369 MovieClip Frame 294
_parent._parent.checkForKO();
Symbol 369 MovieClip Frame 307
_parent._parent.endRound();
Symbol 369 MovieClip Frame 308
gotoAndStop ("default");
Symbol 369 MovieClip Frame 416
_parent._parent.applyDamage();
Symbol 369 MovieClip Frame 458
_parent._parent.checkForKO();
Symbol 369 MovieClip Frame 474
_parent._parent.endRound();
Symbol 369 MovieClip Frame 477
gotoAndStop ("default");
Symbol 369 MovieClip Frame 510
_parent._parent.applyDamage();
Symbol 369 MovieClip Frame 552
_parent._parent.checkForKO();
Symbol 369 MovieClip Frame 568
_parent._parent.endRound();
Symbol 369 MovieClip Frame 571
gotoAndStop ("default");
Symbol 369 MovieClip Frame 619
_parent._parent.applyDamage();
Symbol 369 MovieClip Frame 649
_parent._parent.checkForKO();
Symbol 369 MovieClip Frame 662
_parent._parent.endRound();
Symbol 369 MovieClip Frame 670
gotoAndStop ("default");
Symbol 369 MovieClip Frame 730
_parent._parent.applyDamage();
Symbol 369 MovieClip Frame 762
_parent._parent.checkForKO();
Symbol 369 MovieClip Frame 792
_parent._parent.endRound();
Symbol 369 MovieClip Frame 793
gotoAndStop ("default");
Symbol 369 MovieClip Frame 800
stop();
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 52
gotoAndStop ("default");
Symbol 414 MovieClip Frame 153
gotoAndStop ("default");
Symbol 414 MovieClip Frame 166
_parent._parent.applyDamage();
Symbol 414 MovieClip Frame 197
_parent._parent.checkForKO();
Symbol 414 MovieClip Frame 209
_parent._parent.endRound();
Symbol 414 MovieClip Frame 217
gotoAndStop ("default");
Symbol 414 MovieClip Frame 243
_parent._parent.applyDamage();
Symbol 414 MovieClip Frame 280
_parent._parent.checkForKO();
Symbol 414 MovieClip Frame 293
_parent._parent.endRound();
Symbol 414 MovieClip Frame 294
gotoAndStop ("default");
Symbol 414 MovieClip Frame 402
_parent._parent.applyDamage();
Symbol 414 MovieClip Frame 444
_parent._parent.checkForKO();
Symbol 414 MovieClip Frame 460
_parent._parent.endRound();
Symbol 414 MovieClip Frame 463
gotoAndStop ("default");
Symbol 414 MovieClip Frame 525
_parent._parent.applyDamage();
Symbol 414 MovieClip Frame 567
_parent._parent.checkForKO();
Symbol 414 MovieClip Frame 583
_parent._parent.endRound();
Symbol 414 MovieClip Frame 586
gotoAndStop ("default");
Symbol 414 MovieClip Frame 599
_parent._parent.applyDamage();
Symbol 414 MovieClip Frame 630
_parent._parent.checkForKO();
Symbol 414 MovieClip Frame 642
_parent._parent.endRound();
Symbol 414 MovieClip Frame 650
gotoAndStop ("default");
Symbol 414 MovieClip Frame 698
_parent._parent.applyDamage();
Symbol 414 MovieClip Frame 729
_parent._parent.checkForKO();
Symbol 414 MovieClip Frame 741
_parent._parent.endRound();
Symbol 414 MovieClip Frame 749
gotoAndStop ("default");
Symbol 414 MovieClip Frame 809
_parent._parent.applyDamage();
Symbol 414 MovieClip Frame 841
_parent._parent.checkForKO();
Symbol 414 MovieClip Frame 871
_parent._parent.endRound();
Symbol 414 MovieClip Frame 872
gotoAndStop ("default");
Symbol 414 MovieClip Frame 889
gotoAndPlay ("winloop");
Symbol 464 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 51
gotoAndStop ("default");
Symbol 464 MovieClip Frame 144
gotoAndStop ("default");
Symbol 464 MovieClip Frame 157
_parent._parent.applyDamage();
Symbol 464 MovieClip Frame 185
_parent._parent.checkForKO();
Symbol 464 MovieClip Frame 200
_parent._parent.endRound();
Symbol 464 MovieClip Frame 207
gotoAndStop ("default");
Symbol 464 MovieClip Frame 233
_parent._parent.applyDamage();
Symbol 464 MovieClip Frame 270
_parent._parent.checkForKO();
Symbol 464 MovieClip Frame 283
_parent._parent.endRound();
Symbol 464 MovieClip Frame 284
gotoAndStop ("default");
Symbol 464 MovieClip Frame 392
_parent._parent.applyDamage();
Symbol 464 MovieClip Frame 434
_parent._parent.checkForKO();
Symbol 464 MovieClip Frame 450
_parent._parent.endRound();
Symbol 464 MovieClip Frame 453
gotoAndStop ("default");
Symbol 464 MovieClip Frame 516
_parent._parent.applyDamage();
Symbol 464 MovieClip Frame 558
_parent._parent.checkForKO();
Symbol 464 MovieClip Frame 574
_parent._parent.endRound();
Symbol 464 MovieClip Frame 577
gotoAndStop ("default");
Symbol 464 MovieClip Frame 610
_parent._parent.applyDamage();
Symbol 464 MovieClip Frame 652
_parent._parent.checkForKO();
Symbol 464 MovieClip Frame 668
_parent._parent.endRound();
Symbol 464 MovieClip Frame 671
gotoAndStop ("default");
Symbol 464 MovieClip Frame 684
_parent._parent.applyDamage();
Symbol 464 MovieClip Frame 713
_parent._parent.checkForKO();
Symbol 464 MovieClip Frame 727
_parent._parent.endRound();
Symbol 464 MovieClip Frame 734
gotoAndStop ("default");
Symbol 464 MovieClip Frame 794
_parent._parent.applyDamage();
Symbol 464 MovieClip Frame 826
_parent._parent.checkForKO();
Symbol 464 MovieClip Frame 856
_parent._parent.endRound();
Symbol 464 MovieClip Frame 857
gotoAndStop ("default");
Symbol 464 MovieClip Frame 900
stop();
Symbol 510 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 51
gotoAndStop ("default");
Symbol 510 MovieClip Frame 181
gotoAndStop ("default");
Symbol 510 MovieClip Frame 194
_parent._parent.applyDamage();
Symbol 510 MovieClip Frame 225
_parent._parent.checkForKO();
Symbol 510 MovieClip Frame 237
_parent._parent.endRound();
Symbol 510 MovieClip Frame 245
gotoAndStop ("default");
Symbol 510 MovieClip Frame 271
_parent._parent.applyDamage();
Symbol 510 MovieClip Frame 308
_parent._parent.checkForKO();
Symbol 510 MovieClip Frame 321
_parent._parent.endRound();
Symbol 510 MovieClip Frame 322
gotoAndStop ("default");
Symbol 510 MovieClip Frame 430
_parent._parent.applyDamage();
Symbol 510 MovieClip Frame 472
_parent._parent.checkForKO();
Symbol 510 MovieClip Frame 488
_parent._parent.endRound();
Symbol 510 MovieClip Frame 491
gotoAndStop ("default");
Symbol 510 MovieClip Frame 554
_parent._parent.applyDamage();
Symbol 510 MovieClip Frame 596
_parent._parent.checkForKO();
Symbol 510 MovieClip Frame 612
_parent._parent.endRound();
Symbol 510 MovieClip Frame 615
gotoAndStop ("default");
Symbol 510 MovieClip Frame 648
_parent._parent.applyDamage();
Symbol 510 MovieClip Frame 690
_parent._parent.checkForKO();
Symbol 510 MovieClip Frame 706
_parent._parent.endRound();
Symbol 510 MovieClip Frame 709
gotoAndStop ("default");
Symbol 510 MovieClip Frame 757
_parent._parent.applyDamage();
Symbol 510 MovieClip Frame 788
_parent._parent.checkForKO();
Symbol 510 MovieClip Frame 800
_parent._parent.endRound();
Symbol 510 MovieClip Frame 808
gotoAndStop ("default");
Symbol 510 MovieClip Frame 815
stop();
Symbol 511 MovieClip Frame 1
stop();
Symbol 523 MovieClip [EnergyMeter] Frame 1
#initclip 45
Object.registerClass("EnergyMeter", ui.EnergyMeter);
#endinitclip
stop();
Symbol 527 MovieClip [EnergyMeterRed] Frame 1
#initclip 46
Object.registerClass("EnergyMeterRed", ui.EnergyMeter);
#endinitclip
stop();
Symbol 554 MovieClip [FightScreen] Frame 1
#initclip 47
Object.registerClass("FightScreen", screens.FightScreen);
#endinitclip
Instance of Symbol 59 MovieClip [BigGreenButton] "a_btn" in Symbol 554 MovieClip [FightScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "True";
}
Instance of Symbol 59 MovieClip [BigGreenButton] "b_btn" in Symbol 554 MovieClip [FightScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "True";
}
Symbol 554 MovieClip [FightScreen] Frame 91
stop();
startFight();
Symbol 554 MovieClip [FightScreen] Frame 120
stop();
startTimer();
Symbol 554 MovieClip [FightScreen] Frame 149
stop();
Symbol 554 MovieClip [FightScreen] Frame 189
stop();
Symbol 554 MovieClip [FightScreen] Frame 209
stop();
Symbol 554 MovieClip [FightScreen] Frame 249
stop();
Symbol 554 MovieClip [FightScreen] Frame 269
stop();
Symbol 554 MovieClip [FightScreen] Frame 369
stop();
endFight();
Symbol 554 MovieClip [FightScreen] Frame 469
stop();
endFight();
Symbol 568 MovieClip [TextInput] Frame 1
#initclip 48
Object.registerClass("TextInput", name.robinson.grant.ui.TextInput);
#endinitclip
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 17
stop();
Symbol 576 MovieClip [GameOverScreen] Frame 1
#initclip 49
Object.registerClass("GameOverScreen", screens.GameOverScreen);
#endinitclip
Instance of Symbol 59 MovieClip [BigGreenButton] "playAgain_btn" in Symbol 576 MovieClip [GameOverScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Play Again";
}
Instance of Symbol 59 MovieClip [BigGreenButton] "invite_btn" in Symbol 576 MovieClip [GameOverScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Tell a Friend";
}
Instance of Symbol 59 MovieClip [BigGreenButton] "submit_btn" in Symbol 576 MovieClip [GameOverScreen] Frame 1
//component parameters
onClipEvent (construct) {
label = "Submit";
}
Instance of Symbol 568 MovieClip [TextInput] "name_ti" in Symbol 576 MovieClip [GameOverScreen] Frame 1
//component parameters
onClipEvent (construct) {
text = "";
focusOnLoad = false;
characterLimit = 15;
defaultTextColor = 18812;
disabledTextColor = 13421772 /* 0xCCCCCC */;
inputTabIndex = 0;
isResizable = false;
}
Symbol 576 MovieClip [GameOverScreen] Frame 18
stop();
checkIfEligible();
Symbol 576 MovieClip [GameOverScreen] Frame 41
stop();
Symbol 576 MovieClip [GameOverScreen] Frame 72
enableHighScoresButton();
Instance of Symbol 59 MovieClip [BigGreenButton] "highscores_btn" in Symbol 576 MovieClip [GameOverScreen] Frame 72
//component parameters
onClipEvent (construct) {
label = "View Highscores";
}
Symbol 576 MovieClip [GameOverScreen] Frame 83
stop();
Symbol 602 MovieClip [__Packages.name.robinson.grant.ui.Button] Frame 0
class name.robinson.grant.ui.Button extends MovieClip
{
var gotoAndStop, tabChildren, label, defaultTextColor, shape_mc, overTextColor, downTextColor, disabledTextColor, selected, _width, fontSize, fontY, _xscale, _yscale, onSelect, onDeselect, _visible, onReleaseAction, onPressAction, onRollOverAction, onRollOutAction, onReleaseOutsideAction, _parent;
function Button () {
super();
(gotoAndStop("up"));// not popped
tabChildren = false;
if (label != undefined) {
setLabel(label);
}
if (defaultTextColor == undefined) {
defaultTextColor = shape_mc.label_txt.textColor;
}
if (overTextColor == undefined) {
overTextColor = shape_mc.label_txt.textColor;
}
if (downTextColor == undefined) {
downTextColor = shape_mc.label_txt.textColor;
}
if (disabledTextColor == undefined) {
disabledTextColor = shape_mc.label_txt.textColor;
}
setLabelColor(defaultTextColor);
if (!enabled) {
disable();
}
if (!hasFocus) {
onKillFocus();
}
if (selected) {
select();
} else {
deselect();
}
setWidth(_width);
}
function onKeyDownAction() {
if (enabled) {
onPress();
setLabelColor(overTextColor);
}
}
function onKeyUpAction() {
if (enabled) {
onRelease();
setLabelColor(defaultTextColor);
}
}
function setLabel(txt) {
var _local2 = shape_mc.label_txt;
_local2.text = txt;
if (scaleTextToFit) {
var _local3 = _local2.getTextFormat();
if (fontSize == undefined) {
fontSize = _local3.size;
}
_local3.size = fontSize;
if (fontY == undefined) {
fontY = _local2._y;
}
do {
_local2.setTextFormat(_local3);
var ratio = (_local2.textWidth / _local2._width);
_local3.size--;
} while (ratio > 1);
var _local4 = Math.floor(((_local2._height - _local2.textHeight) / 2) - 1);
_local2._y = fontY + _local4;
}
if (shape_mc.labelShadow_txt) {
shape_mc.labelShadow_txt.text = txt;
}
}
function getLabel() {
return(shape_mc.label_txt.text);
}
function setWidth(x) {
_xscale = 100;
_yscale = 100;
var _local2 = shape_mc;
var _local4 = _local2.leftEdge_mc._width;
var _local5 = _local2.rightEdge_mc._width;
var _local3 = Math.max(1, x - (_local4 + _local5));
_local2.label_txt._width = x - 8;
_local2.middle_mc._width = _local3;
_local2.rightEdge_mc._x = _local4 + _local3;
if (shape_mc.labelShadow_txt) {
shape_mc.labelShadow_txt._width = _local2.label_txt._width;
}
}
function setHeight(y) {
shape_mc._height = y;
}
function setSize(x, y) {
setWidth(x);
setHeight(y);
}
function enable() {
gotoAndStop("up");
setLabelColor(defaultTextColor);
enabled = true;
}
function disable() {
gotoAndStop("disabled");
setLabelColor(disabledTextColor);
enabled = false;
}
function toggleSelect() {
if (selected) {
deselect();
} else {
select();
}
}
function select() {
onSelect();
selected = true;
(gotoAndStop("selected"));// not popped
deselectOthers();
if (disableOnSelect) {
disable();
}
}
function deselect() {
onDeselect();
selected = false;
(gotoAndStop("up"));// not popped
enable();
}
function show() {
_visible = true;
}
function hide() {
_visible = false;
}
function setLabelColor(clr) {
shape_mc.label_txt.textColor = clr;
}
function onRelease() {
(gotoAndStop("over"));// not popped
setLabelColor(overTextColor);
onReleaseAction();
if (selectable) {
toggleSelect();
}
}
function onPress() {
(gotoAndStop("down"));// not popped
setLabelColor(downTextColor);
onPressAction();
}
function onRollOver() {
(gotoAndStop("over"));// not popped
setLabelColor(overTextColor);
onRollOverAction();
}
function onRollOut() {
if (!selected) {
(gotoAndStop("up"));// not popped
setLabelColor(defaultTextColor);
}
onRollOutAction();
}
function onDragOut() {
onRollOut();
}
function onReleaseOutside() {
onReleaseOutsideAction();
onRollOut();
}
function onSetFocus() {
hasFocus = true;
}
function onKillFocus() {
hasFocus = false;
}
function deselectOthers() {
for (var _local3 in _parent) {
var _local2 = _parent[_local3];
if (_local2 != this) {
_local2.deselect();
}
}
}
var selectable = false;
var enabled = true;
var scaleTextToFit = false;
var disableOnSelect = true;
var tabEnabled = true;
var hasFocus = false;
}
Symbol 603 MovieClip [__Packages.ui.LeaderBoard] Frame 0
class ui.LeaderBoard extends MovieClip
{
var log, today_array, status_mc, today_mc, all_mc, onEnterFrame, all_array, today_btn, all_btn;
function LeaderBoard () {
super();
log = name.robinson.grant.utils.Logger.getInstance();
log.info("LeaderBoard: new instance");
}
function showToday(score_array) {
if (score_array.length > 0) {
today_array = score_array;
status_mc.gotoAndStop("success");
today_mc._visible = true;
} else {
status_mc.gotoAndStop("error");
today_mc._visible = false;
}
all_mc._visible = false;
var i = 0;
while (i < rowMax) {
today_mc["row" + i].removeMovieClip();
i++;
}
var i = 0;
onEnterFrame = function () {
this.today_mc._visible = true;
var _local3 = score_array[i];
if (_local3) {
var _local2 = this.today_mc.attachMovie("LeaderBoardTodayRow", "row" + i, i);
_local2.rank_txt.text = (i + 1) + ".";
_local2.name_txt.text = _local3.name;
_local2.time_txt.text = name.robinson.grant.utils.NumberUtility.secsToMinsString(_local3.time, false);
_local2._x = this.xOffset;
_local2._y = this.yOffset + (this.rowHeight * i);
}
i++;
if ((i == this.rowMax) || (i > (score_array.length - 1))) {
delete this.onEnterFrame;
}
};
}
function showAll(score_array) {
if (score_array.length > 0) {
all_array = score_array;
maxPages = Math.ceil(all_array.length / rowMax) - 1;
status_mc.gotoAndStop("success");
all_mc._visible = true;
} else {
status_mc.gotoAndStop("error");
all_mc._visible = false;
}
today_mc._visible = false;
showPage(0);
}
function showPage(i) {
page = i;
if (i == 0) {
all_mc.previous_btn.disable();
} else {
all_mc.previous_btn.enable();
}
if (i == maxPages) {
all_mc.next_btn.disable();
} else {
all_mc.next_btn.enable();
}
var i = 0;
while (i < rowMax) {
all_mc["row" + i].removeMovieClip();
i++;
}
var firstIndex = (page * rowMax);
var _local5 = (page + 1) * rowMax;
var i = 0;
onEnterFrame = function () {
var _local3 = this.all_array[firstIndex + i];
if (_local3) {
var _local2 = this.all_mc.attachMovie("LeaderBoardAllRow", "row" + i, i);
var _local4 = name.robinson.grant.utils.DateUtility.getPHPDatetime(_local3.date);
_local2.date_txt.text = (_local4.day + " ") + _local4.shortMonthName;
_local2.name_txt.text = _local3.name;
_local2.time_txt.text = name.robinson.grant.utils.NumberUtility.secsToMinsString(_local3.time, false);
_local2._x = this.xOffset;
_local2._y = this.yOffset + (this.rowHeight * i);
}
i++;
if (i >= this.rowMax) {
delete this.onEnterFrame;
}
};
}
function nextPage() {
if ((++page) > maxPages) {
page = 0;
}
showPage(page);
}
function previousPage() {
if ((--page) < 0) {
page = maxPages;
}
showPage(page);
}
function showError() {
status_mc.gotoAndStop("error");
}
function onLoad() {
var backRef = this;
today_mc._visible = false;
all_mc._visible = false;
today_btn.onReleaseAction = function () {
backRef.onGetToday();
};
all_btn.onReleaseAction = function () {
backRef.onGetAll();
};
all_mc.next_btn.onReleaseAction = function () {
backRef.nextPage();
};
all_mc.previous_btn.onReleaseAction = function () {
backRef.previousPage();
};
}
var rowHeight = 19;
var rowMax = 10;
var page = 0;
var maxPages = 0;
var xOffset = 2;
var yOffset = 19;
}
Symbol 604 MovieClip [__Packages.name.robinson.grant.utils.Logger] Frame 0
class name.robinson.grant.utils.Logger
{
static var instance;
var log_array, dispatchEvent;
function Logger () {
log_array = new Array();
addEntry("Log initialised");
mx.events.EventDispatcher.initialize(this);
}
static function getInstance() {
if (instance == null) {
instance = new name.robinson.grant.utils.Logger();
}
return(instance);
}
function fatal(e) {
e = entryToString(e, 1);
addEntry(("\nFATAL: " + e) + "\n-----");
dispatchEvent({target:this, type:"onFatal", message:e});
}
function error(e) {
e = entryToString(e, 1);
addEntry(("\nERROR: " + e) + "\n-----");
dispatchEvent({target:this, type:"onError", message:e});
}
function warn(e) {
addEntry("WARN : " + entryToString(e, 1));
}
function info(e) {
addEntry("INFO : " + entryToString(e, 1));
}
function debug(e) {
addEntry("DEBUG: " + entryToString(e, 1));
}
function addEntry(e) {
if (doDateStamp) {
var _local3 = new Date();
e = (_local3.getTime().toString() + ": ") + e;
}
log_array.push(e);
if (doTrace) {
trace(e);
}
dispatchEvent({target:this, type:"onEntry", message:e});
}
function entryToString(e, depth) {
var _local6 = "";
var _local3 = typeof(e);
if (((_local3 == "string") || (_local3 == "number")) || (_local3 == "boolean")) {
_local6 = _local6 + e;
} else if ((_local3 == "undefined") || (_local3 == "null")) {
_local6 = _local6 + (("(" + _local3) + ")");
} else {
var _local9 = true;
var _local7 = true;
if (e instanceof Array) {
_local3 = "array";
_local9 = false;
} else if (e instanceof Button) {
_local3 = "button";
} else if (e instanceof Date) {
_local3 = "date";
_local7 = false;
} else if (e instanceof Color) {
_local3 = "color";
_local7 = false;
e = e.getRGB().toString(16);
} else if (e instanceof MovieClip) {
_local3 = "movieclip";
} else if (e instanceof XML) {
_local3 = "xml";
_local7 = false;
} else if (e instanceof XMLNode) {
_local3 = "xmlnode";
_local7 = false;
}
_local6 = _local6 + (("(" + _local3) + ") ");
if (_local9) {
_local6 = _local6 + e.toString();
}
if (_local7 && (depth <= maxDepth)) {
var _local5 = "";
for (var _local8 in e) {
_local5 = _local5 + ((((newline + name.robinson.grant.utils.StringUtility.multiply("\t", depth + 1)) + _local8) + ":") + entryToString(e[_local8], depth + 1));
}
if (_local5.length > 0) {
_local6 = _local6 + (((("{" + _local5) + newline) + name.robinson.grant.utils.StringUtility.multiply("\t", depth)) + "}");
}
}
}
return(_local6);
}
var doTrace = true;
var doDateStamp = false;
var maxDepth = 2;
}
Symbol 605 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 606 MovieClip [__Packages.name.robinson.grant.utils.StringUtility] Frame 0
class name.robinson.grant.utils.StringUtility
{
function StringUtility () {
}
static function replace(str, find_str, replace_str) {
return(str.split(find_str).join(replace_str));
}
static function multiply(str, n) {
var _local2 = "";
var _local1 = 0;
while (_local1 < n) {
_local2 = _local2 + str;
_local1++;
}
return(_local2);
}
static function profanityFilter(str) {
var _local4 = new Array("bastard", "bitch", "cock", "cunt", "fuck", "shit", "slut", "wank");
var _local5 = str.toLowerCase();
for (var _local6 in _local4) {
var _local2 = _local4[_local6];
var _local1 = _local5.indexOf(_local2);
if (_local1 != -1) {
str = (str.substring(0, _local1) + "beep") + str.substring(_local1 + _local2.length);
}
}
return(str);
}
static function teletype(str, txtField) {
var mc = txtField._parent.createEmptyMovieClip("_temp", txtField._parent.getNextHighestDepth() + 1000);
txtField.text = "";
var i = 0;
mc.onEnterFrame = function () {
txtField.text = str.substr(0, i);
if ((++i) > str.length) {
txtField.text = str;
delete mc.onEnterFrame;
mc.removeMovieClip();
}
};
}
static function tickerise(str, txtField, autoSize) {
var mc = txtField._parent.createEmptyMovieClip("_temp", txtField._parent.getNextHighestDepth() + 1000);
txtField.text = "";
if (autoSize == undefined) {
txtField.autoSize = true;
} else {
txtField.autoSize = autoSize;
}
var _local3 = str.split(" ");
var _local2 = 1;
var i = 0;
while (i < _local3.length) {
var _local1 = txtField.text.length;
txtField.text = txtField.text + (_local3[i] + " ");
if (txtField.maxscroll > _local2) {
str = (str.substring(0, _local1 - 1) + newline) + str.substring(_local1, str.length);
_local2++;
}
i++;
}
txtField.text = "";
var i = 0;
mc.onEnterFrame = function () {
txtField.text = txtField.text + str.substr(i, 1);
if ((++i) >= str.length) {
delete mc.onEnterFrame;
mc.removeMovieClip();
name.robinson.grant.utils.StringUtility.onTickerised();
}
};
}
static function getAntiCache(isFirstParam) {
if (isFirstParam == undefined) {
isFirstParam = false;
}
if (!_root._url.indexOf("file:")) {
return("");
}
return((isFirstParam ? "?" : "&anticache=") + Math.round(Math.random() * 1000000));
}
static var atoz_array = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
}
Symbol 607 MovieClip [__Packages.name.robinson.grant.utils.NumberUtility] Frame 0
class name.robinson.grant.utils.NumberUtility
{
function NumberUtility () {
}
static function secsToMinsString(totalSecs, doubleDigitMins) {
var _local1 = Math.floor(totalSecs / 60);
var _local2 = Math.floor(totalSecs) % 60;
if ((doubleDigitMins == true) && (_local1 < 10)) {
_local1 = "0" + _local1;
}
if (_local2 < 10) {
_local2 = "0" + _local2;
}
return((_local1 + ":") + _local2);
}
static function minsToTimeString(totalMins) {
var _local1 = Math.floor(totalMins / 60);
var _local2 = Math.floor(totalMins) % 60;
var _local3;
var _local4;
if (_local1 >= 24) {
_local1 = _local1 - 24;
_local3 = "am";
} else if (_local1 >= 12) {
_local1 = _local1 - 12;
_local3 = "pm";
} else {
_local3 = "am";
}
if (_local1 == 0) {
_local1 = 12;
}
if (_local2 < 10) {
_local4 = "0" + _local2;
} else {
_local4 = String(_local2);
}
var _local5 = ((_local1 + ":") + _local4) + _local3;
return(_local5);
}
static function roundToDP(n, dp) {
var _local1 = Math.pow(10, dp);
return(Math.round(n * _local1) / _local1);
}
static function randomWithinRange(min, max) {
return(Math.floor(Math.random() * ((max - min) + 1)) + min);
}
static function degreesToRadians(d) {
return((d * Math.PI) / 180);
}
static function radiansToDegrees(r) {
return(r / (Math.PI/180));
}
static function pointToRadians(x, y) {
return(Math.atan2(y, x));
}
static function forceToRange(i, min, max) {
if (i > max) {
i = Math.max((i - max) - 1, min);
} else if (i < min) {
i = Math.min((max + 1) + i, max);
}
return(i);
}
static function isWithinRange(i, min, max) {
if ((i >= min) && (i <= max)) {
return(true);
}
return(false);
}
static function isWithinVicinity(i, target, range) {
return(isWithinRange(i, target - range, target + range));
}
}
Symbol 608 MovieClip [__Packages.name.robinson.grant.utils.DateUtility] Frame 0
class name.robinson.grant.utils.DateUtility
{
function DateUtility () {
}
static function getDateString(d) {
var _local1 = weekday_array[d.getDay()];
var _local3 = d.getDate();
var _local4 = month_array[d.getMonth()];
return((((_local1 + " ") + _local3) + ", ") + _local4);
}
static function getTimeString(d) {
var _local1 = d.getHours();
var _local2 = d.getMinutes();
var _local3;
if (_local1 > 12) {
_local1 = _local1 - 12;
_local3 = "pm";
} else if (_local1 == 12) {
_local3 = "pm";
} else {
_local3 = "am";
}
_local1 = ((_local1 == 0) ? 12 : (_local1));
var _local4 = ((_local2 < 10) ? ("0" + _local2) : (String(_local2)));
return(((_local1 + ":") + _local4) + _local3);
}
static function get24HourTimeString(d) {
var _local1 = d.getHours();
var _local3 = d.getMinutes();
var _local2 = d.getSeconds();
var _local7 = ((_local1 < 10) ? ("0" + (_local1++)) : (((_local1 == 23) ? "00" : (_local1++))));
var _local6 = ((_local3 < 10) ? ("0" + _local3) : (_local3));
var _local5 = ((_local2 < 10) ? ("0" + _local2) : (_local2));
return([_local7, _local6, _local5].join(":"));
}
static function getLocationDate(utc, dls) {
var _local1 = getUTCDate();
if (dls != undefined) {
if (isObservingDLS(dls)) {
_local1 = adjustForDLS(_local1);
}
}
if (utc != undefined) {
_local1 = offsetHours(_local1, utc);
}
return(_local1);
}
static function getUTCDate() {
var _local1 = new Date();
var _local2 = _local1.getTimezoneOffset() * 60000;
_local1.setTime(_local1.getTime() + _local2);
return(_local1);
}
static function getPHPDatetime(str) {
var _local1 = new Object();
_local1.year = Number(str.substr(0, 4));
_local1.month = Number(str.substr(5, 2));
_local1.monthName = month_array[_local1.month - 1];
_local1.shortMonthName = shortMonth_array[_local1.month - 1];
_local1.day = Number(str.substr(8, 2));
_local1.time = str.substr(11);
_local1.hours24 = Number(str.substr(11, 2));
var _local3 = _local1.hours24 % 12;
_local1.hoursSuffix = ((_local3 < _local1.hours24) ? "pm" : "am");
_local1.hours = ((_local3 == 0) ? 12 : (_local3));
_local1.minutes = Number(str.substr(14, 2));
_local1.seconds = Number(str.substr(17, 2));
return(_local1);
}
static function isObservingDLS(region) {
var _local2 = new Date();
var _local1 = _local2.getUTCMonth();
if (region == "Australasia") {
var _local4 = 9;
var _local3 = 2;
if ((_local1 >= _local4) || (_local1 <= _local3)) {
return(true);
}
}
if (region == "Northern Hemisphere") {
var _local4 = 3;
var _local3 = 9;
if ((_local1 >= _local4) && (_local1 <= _local3)) {
return(true);
}
}
return(false);
}
static function adjustForDLS(d) {
return(offsetHours(d, 1));
}
static function offsetHours(d, h) {
d.setTime(d.getTime() + (h * 3600000));
return(d);
}
static function getWeekday(i) {
return(weekday_array[i]);
}
static function getShortWeekday(i) {
return(shortWeekday_array[i]);
}
static function getMonth(i) {
return(month_array[i]);
}
static function getShortMonth(i) {
return(shortMonth_array[i]);
}
static function isLeap() {
var _local2 = new Date();
var _local1 = _local2.getFullYear();
return((((_local1 % 4) == 0) && ((_local1 % 100) != 0)) || ((_local1 % 400) == 0));
}
static function getAgeFromBirthdate(year, month, day) {
var _local1 = new Date();
var _local2 = _local1.getFullYear();
if ((_local1.getMonth() < (month - 1)) || ((_local1.getMonth() == (month - 1)) && (_local1.getDate() < day))) {
_local2--;
}
return(_local2 - year);
}
static var weekday_array = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
static var shortWeekday_array = new Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat");
static var month_array = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
static var shortMonth_array = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
static var daysInMonth_array = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
static var daysInLeapYearMonth_array = new Array(31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
}
Symbol 609 MovieClip [__Packages.name.robinson.grant.screens.BasicScreen] Frame 0
class name.robinson.grant.screens.BasicScreen extends MovieClip
{
var log, onLoad, onUnload, removeMovieClip, _visible;
function BasicScreen () {
super();
log = name.robinson.grant.utils.Logger.getInstance();
onLoad = init;
onUnload = destroy;
}
function init() {
log.info(className + " is now active");
}
function destroy() {
removeMovieClip();
}
function show() {
_visible = true;
}
function hide() {
_visible = false;
}
var className = "Screen";
}
Symbol 610 MovieClip [__Packages.screens.SESScreen] Frame 0
class screens.SESScreen extends name.robinson.grant.screens.BasicScreen
{
var app;
function SESScreen () {
super();
app = SESApp.getInstance();
}
}
Symbol 611 MovieClip [__Packages.name.robinson.grant.screens.ScreenBasedApp] Frame 0
class name.robinson.grant.screens.ScreenBasedApp
{
var log, keyController, screenHolder, screen_array, screenNameIndex, prevScreen, currentScreen, prevScreenID, currentScreenID, overlayScreen;
function ScreenBasedApp () {
log = name.robinson.grant.utils.Logger.getInstance();
log.info("ScreenBasedApp: new instance");
keyController = name.robinson.grant.KeyController.getInstance();
}
function setScreenHolder(mc) {
useScreenHolder = true;
screenHolder = mc;
}
function getScreenHolder() {
return(screenHolder);
}
function setScreens(a) {
screen_array = a;
screenNameIndex = new Object();
var _local2 = 0;
while (_local2 < screen_array.length) {
screenNameIndex[screen_array[_local2].name] = _local2;
screen_array[_local2].id = _local2;
_local2++;
}
}
function setScreensFromXML(screens_xml) {
setScreens(parseScreensNode(screens_xml));
}
function getScreens() {
return(screen_array);
}
function gotoScreen(screenName) {
showScreen(screenNameIndex[screenName]);
}
function showScreen(i) {
prevScreen = currentScreen;
prevScreenID = currentScreenID;
if (i != undefined) {
currentScreenID = i;
}
var _local4 = screen_array[currentScreenID];
var _local5 = _local4.name;
var _local3 = _local4.template;
log.debug((("ScreenBasedApp: showScreen(): " + i) + ", ") + _local3);
if (useScreenHolder) {
if (useFrameLabels) {
var _local6 = screenHolder;
screenHolder.gotoAndStop(_local5);
} else {
var _local6 = screenHolder.attachMovie(_local3, _local5, 1);
}
} else {
var _local6 = _root.attachMovie(_local3, "screen_mc", 1);
}
setCurrentScreen(_local6);
}
function showOverlayScreen(screenName, hideParent) {
var _local4 = screenNameIndex[screenName];
var _local3 = screen_array[_local4].template;
if (useScreenHolder) {
overlayScreen = screenHolder.attachMovie(_local3, screenName, 2);
} else {
overlayScreen = _root.attachMovie(_local3, "screen_mc", 2);
}
if (hideParent) {
getCurrentScreen().hide();
}
}
function removeOverlayScreen(showParent) {
overlayScreen.removeMovieClip();
if (showParent) {
getCurrentScreen().show();
}
}
function setCurrentScreen(mc) {
currentScreen = mc;
}
function getCurrentScreen() {
return(currentScreen);
}
function getScreenData(i) {
return(screen_array[i]);
}
function nextScreen() {
var _local2 = currentScreenID;
_local2++;
showScreen(Math.min(_local2, screen_array.length - 1));
}
function previousScreen() {
var _local2 = currentScreenID;
_local2--;
showScreen(Math.max(_local2, 0));
}
function firstScreen() {
showScreen(0);
}
function lastScreen() {
showScreen(screen_array.length - 1);
}
function enableKeyboardNav() {
log.debug("ScreenBasedApp: enableKeyboardNav()");
keyboardNavEnabled = true;
keyController.addKey("right", 39, this, "null", "nextScreen");
keyController.addKey("left", 37, this, "null", "previousScreen");
keyController.addKey("up", 38, this, "null", "firstScreen");
keyController.addKey("down", 40, this, "null", "lastScreen");
}
function disableKeyboardNav() {
log.debug("ScreenBasedApp: disableKeyboardNav()");
keyboardNavEnabled = false;
keyController.removeKey("right");
keyController.removeKey("left");
keyController.removeKey("up");
keyController.removeKey("down");
}
function parseScreensNode(screens_xml) {
log.debug("ScreenBasedApp: parseScreensNode()");
var _local5 = new Array();
var _local2 = 0;
while (_local2 < screens_xml.childNodes.length) {
var _local3 = screens_xml.childNodes[_local2];
switch (_local3.nodeName) {
case "screen" :
_local5.push(parseScreenNode(_local3));
break;
default :
log.warn("ScreenBasedApp: XML node not recognised: " + _local3.nodeName);
}
_local2++;
}
return(_local5);
}
function parseScreenNode(screen_xml) {
var _local2 = new Object();
var _local3 = screen_xml.attributes;
if (_local3.name) {
_local2.name = _local3.name;
}
if (_local3.template) {
_local2.template = _local3.template;
}
log.debug(("ScreenBasedApp: " + _local2.template) + " added");
return(_local2);
}
var useScreenHolder = false;
var useFrameLabels = false;
var keyboardNavEnabled = false;
}
Symbol 612 MovieClip [__Packages.name.robinson.grant.KeyController] Frame 0
class name.robinson.grant.KeyController
{
static var instance;
var log, listener_array;
function KeyController () {
log = name.robinson.grant.utils.Logger.getInstance();
log.info("KeyController: new instance");
listener_array = new Array();
}
static function getInstance() {
if (instance == null) {
instance = new name.robinson.grant.KeyController();
}
return(instance);
}
function addKey(id, keyCode, target, keyDownHandler, keyUpHandler) {
log.debug((((((((("KeyController: addKey(): " + id) + ", ") + keyCode) + ", ") + target) + ", ") + keyDownHandler) + ", ") + keyUpHandler);
var _local2 = new Object();
_local2.id = id;
_local2.onKeyDown = function () {
if (Key.getCode() == keyCode) {
target[keyDownHandler]();
}
};
_local2.onKeyUp = function () {
if (Key.getCode() == keyCode) {
target[keyUpHandler]();
}
};
Key.addListener(_local2);
listener_array.push(_local2);
}
function removeKey(id) {
log.debug("KeyController: removeKey(): " + id);
var _local2;
_local2 = 0;
while (_local2 < listener_array.length) {
if (listener_array[_local2].id == id) {
break;
}
_local2++;
}
Key.removeListener(listener_array[_local2]);
delete listener_array[_local2];
}
}
Symbol 613 MovieClip [__Packages.SESApp] Frame 0
class SESApp extends name.robinson.grant.screens.ScreenBasedApp
{
static var instance;
var log, char_array, global_sound, config, enableKeyboardNav, rsManager, setScreens, setScreenHolder, firstScreen, dialogue;
function SESApp () {
super();
log.info("SESApp: new instance");
char_array = new Array();
char_array.push(new Character(0, "Larry", "Larry Page", "Google"));
char_array.push(new Character(1, "Bill", "Bill Gates", "MSN"));
char_array.push(new Character(2, "Jerry", "Jerry Yang", "Yahoo"));
char_array.push(new Character(3, "Sergey", "Sergey Brin", "Google"));
char_array.push(new Character(4, "Paul", "Paul Allen", "MSN"));
char_array.push(new Character(5, "David", "David Filo", "Yahoo"));
}
static function getInstance() {
if (instance == null) {
instance = new SESApp();
}
return(instance);
}
function init() {
log.debug("SESApp: init()");
Stage.align = "TL";
Stage.scaleMode = "noScale";
global_sound = new Sound();
loadConfig();
}
function initComplete() {
if (config.debug_active) {
name.robinson.grant.ui.LogWindow.getInstance().show();
enableKeyboardNav();
} else {
name.robinson.grant.ui.LogWindow.getInstance().hide();
}
rsManager = new RecordSetManager();
rsManager.setRecordsURL(config.todays_times_url);
rsManager.setPagedRecordsURL(config.all_times_url);
rsManager.setAddRecordURL(config.add_entry_url);
_root.gotoAndPlay("fadeIn");
}
function start() {
log.debug("SESApp: start()");
var backRef = this;
_root.sound_btn.onSelect = function () {
backRef.soundOff();
};
_root.sound_btn.onDeselect = function () {
backRef.soundOn();
};
var _local3 = [{name:"menu", template:"MenuScreen"}, {name:"selectCharacter", template:"SelectCharacterScreen"}, {name:"selectOpponent", template:"SelectOpponentScreen"}, {name:"fight", template:"FightScreen"}, {name:"gameOver", template:"GameOverScreen"}];
setScreens(_local3);
setScreenHolder(_root.screenHolder_mc);
firstScreen();
}
function soundOn() {
global_sound.setVolume(100);
}
function soundOff() {
global_sound.setVolume(0);
}
function doError(m) {
log.error(m);
var _local3 = "Error: " + m;
dialogue = _root.attachMovie("ErrorDialogue", "errorDialogue", 1, {message:_local3});
}
function doFatal(m) {
log.fatal(m);
var _local3 = "Fatal error: " + m;
dialogue = _root.attachMovie("FatalDialogue", "fatalDialogue", 1, {message:_local3});
}
function close() {
fscommand ("quit");
}
function loadConfig() {
var backRef = this;
var url_str = configURL;
config = new XMLParser();
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.onLoad = function (result) {
if (result) {
backRef.config.parseXML(this.firstChild);
backRef.log.info("SESApp: config XML loaded successfully");
backRef.initComplete();
} else {
backRef.doFatal(("SESApp: config XML failed to load: " + url_str) + ". The config file must reside in the same folder as this application.");
}
};
_local2.load(url_str);
log.debug("SESApp: loading config XML: " + url_str);
}
var playerCharID = 0;
var opponentCharID = 1;
var userDetailsSubmitted = false;
var configURL = "ses_config.xml";
}
Symbol 614 MovieClip [__Packages.RecordSetManager] Frame 0
class RecordSetManager
{
static var instance;
var log;
function RecordSetManager () {
log = name.robinson.grant.utils.Logger.getInstance();
log.info("RecordSetManager: new instance");
}
static function getInstance() {
if (instance == null) {
instance = new RecordSetManager();
}
return(instance);
}
function addRecord(url, params) {
var backRef = this;
if (!url) {
url = addRecordURL;
}
log.debug("RecordSetManager: addRecord(): " + url);
var _local5 = new LoadVars();
_local5.onLoad = function (success) {
if (success) {
backRef.log.info("RecordSetManager: record added successfully: " + this);
backRef.refreshRecords = true;
backRef.refreshPagedRecords = true;
backRef.onAddRecord(this);
} else {
backRef.log.error("RecordSetManager: record not added");
backRef.onAddRecordError();
}
};
var _local3 = new LoadVars();
var _local7 = (((("time=" + params.time) + ",name=") + params.name) + ",url=") + addRecordURL;
var _local9 = new name.robinson.grant.utils.MD5();
var _local8 = _local9.convert(_local7);
params.id = _local8;
if (params != undefined) {
for (var _local4 in params) {
_local3[_local4] = params[_local4];
}
}
_local3.sendAndLoad(url, _local5, "POST");
}
function getRecords(url, max) {
log.debug("RecordSetManager: getRecords()");
var backRef = this;
if (!url) {
url = recordsURL;
}
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.onLoad = function (result) {
if (result) {
backRef.log.info("RecordSetManager: XML loaded successfully");
backRef.refreshRecords = false;
var _local2 = backRef.parseRecordsXML(this.firstChild);
backRef.record_array = _local2;
backRef.onGetRecords(_local2);
} else {
backRef.log.error("RecordSetManager: XML failed to load: " + url);
backRef.onGetRecordsError();
}
};
_local2.load(url);
log.debug("RecordSetManager: loading XML: " + url);
}
function getPagedRecords(url, max) {
log.debug("RecordSetManager: getPagedRecords()");
var backRef = this;
if (!url) {
url = pagedRecordsURL;
}
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.onLoad = function (result) {
if (result) {
backRef.log.info("RecordSetManager: XML loaded successfully");
backRef.refreshPagedRecords = false;
var _local2 = backRef.parseRecordsXML(this.firstChild);
backRef.pagedRecord_array = _local2;
backRef.onGetPagedRecords(_local2);
} else {
backRef.log.error("RecordSetManager: XML failed to load: " + url);
backRef.onGetPagedRecordsError();
}
};
_local2.load(url);
log.debug("RecordSetManager: loading XML: " + url);
}
function setRecordsURL(url) {
recordsURL = url;
}
function setPagedRecordsURL(url) {
pagedRecordsURL = url;
}
function setAddRecordURL(url) {
addRecordURL = url;
}
function parseRecordsXML(records_xml) {
log.debug("RecordSetManager: parseRecordsXML()");
var _local5 = records_xml.childNodes.length;
var _local4 = new Array();
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = records_xml.childNodes[_local3];
switch (_local2.nodeName) {
case "record" :
_local4.push(parseRecordXML(_local2));
break;
default :
log.warn("RecordSetManager: XML node not recognised: " + _local2.nodeName);
}
_local3++;
}
return(_local4);
}
function parseRecordXML(record_xml) {
var _local2 = new Object();
var _local1 = record_xml.attributes;
if (_local1.date != undefined) {
_local2.date = _local1.date;
}
_local2.name = _local1.name;
_local2.time = _local1.time;
return(_local2);
}
var refreshRecords = true;
var refreshPagedRecords = true;
var recordsURL = "leaderboard_today.xml";
var pagedRecordsURL = "leaderboard_all.xml";
var addRecordURL = "addrecord.php";
}
Symbol 615 MovieClip [__Packages.name.robinson.grant.utils.MD5] Frame 0
class name.robinson.grant.utils.MD5
{
function MD5 () {
}
function convert(pStr) {
var _local12 = pStr;
var _local7 = str2blks_MD5(_local12);
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < _local7.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = ff(_local5, _local4, _local3, _local2, _local7[_local6 + 0], 7, -680876936);
_local2 = ff(_local2, _local5, _local4, _local3, _local7[_local6 + 1], 12, -389564586);
_local3 = ff(_local3, _local2, _local5, _local4, _local7[_local6 + 2], 17, 606105819);
_local4 = ff(_local4, _local3, _local2, _local5, _local7[_local6 + 3], 22, -1044525330);
_local5 = ff(_local5, _local4, _local3, _local2, _local7[_local6 + 4], 7, -176418897);
_local2 = ff(_local2, _local5, _local4, _local3, _local7[_local6 + 5], 12, 1200080426);
_local3 = ff(_local3, _local2, _local5, _local4, _local7[_local6 + 6], 17, -1473231341);
_local4 = ff(_local4, _local3, _local2, _local5, _local7[_local6 + 7], 22, -45705983);
_local5 = ff(_local5, _local4, _local3, _local2, _local7[_local6 + 8], 7, 1770035416);
_local2 = ff(_local2, _local5, _local4, _local3, _local7[_local6 + 9], 12, -1958414417);
_local3 = ff(_local3, _local2, _local5, _local4, _local7[_local6 + 10], 17, -42063);
_local4 = ff(_local4, _local3, _local2, _local5, _local7[_local6 + 11], 22, -1990404162);
_local5 = ff(_local5, _local4, _local3, _local2, _local7[_local6 + 12], 7, 1804603682);
_local2 = ff(_local2, _local5, _local4, _local3, _local7[_local6 + 13], 12, -40341101);
_local3 = ff(_local3, _local2, _local5, _local4, _local7[_local6 + 14], 17, -1502002290);
_local4 = ff(_local4, _local3, _local2, _local5, _local7[_local6 + 15], 22, 1236535329);
_local5 = gg(_local5, _local4, _local3, _local2, _local7[_local6 + 1], 5, -165796510);
_local2 = gg(_local2, _local5, _local4, _local3, _local7[_local6 + 6], 9, -1069501632);
_local3 = gg(_local3, _local2, _local5, _local4, _local7[_local6 + 11], 14, 643717713);
_local4 = gg(_local4, _local3, _local2, _local5, _local7[_local6 + 0], 20, -373897302);
_local5 = gg(_local5, _local4, _local3, _local2, _local7[_local6 + 5], 5, -701558691);
_local2 = gg(_local2, _local5, _local4, _local3, _local7[_local6 + 10], 9, 38016083);
_local3 = gg(_local3, _local2, _local5, _local4, _local7[_local6 + 15], 14, -660478335);
_local4 = gg(_local4, _local3, _local2, _local5, _local7[_local6 + 4], 20, -405537848);
_local5 = gg(_local5, _local4, _local3, _local2, _local7[_local6 + 9], 5, 568446438);
_local2 = gg(_local2, _local5, _local4, _local3, _local7[_local6 + 14], 9, -1019803690);
_local3 = gg(_local3, _local2, _local5, _local4, _local7[_local6 + 3], 14, -187363961);
_local4 = gg(_local4, _local3, _local2, _local5, _local7[_local6 + 8], 20, 1163531501);
_local5 = gg(_local5, _local4, _local3, _local2, _local7[_local6 + 13], 5, -1444681467);
_local2 = gg(_local2, _local5, _local4, _local3, _local7[_local6 + 2], 9, -51403784);
_local3 = gg(_local3, _local2, _local5, _local4, _local7[_local6 + 7], 14, 1735328473);
_local4 = gg(_local4, _local3, _local2, _local5, _local7[_local6 + 12], 20, -1926607734);
_local5 = hh(_local5, _local4, _local3, _local2, _local7[_local6 + 5], 4, -378558);
_local2 = hh(_local2, _local5, _local4, _local3, _local7[_local6 + 8], 11, -2022574463);
_local3 = hh(_local3, _local2, _local5, _local4, _local7[_local6 + 11], 16, 1839030562);
_local4 = hh(_local4, _local3, _local2, _local5, _local7[_local6 + 14], 23, -35309556);
_local5 = hh(_local5, _local4, _local3, _local2, _local7[_local6 + 1], 4, -1530992060);
_local2 = hh(_local2, _local5, _local4, _local3, _local7[_local6 + 4], 11, 1272893353);
_local3 = hh(_local3, _local2, _local5, _local4, _local7[_local6 + 7], 16, -155497632);
_local4 = hh(_local4, _local3, _local2, _local5, _local7[_local6 + 10], 23, -1094730640);
_local5 = hh(_local5, _local4, _local3, _local2, _local7[_local6 + 13], 4, 681279174);
_local2 = hh(_local2, _local5, _local4, _local3, _local7[_local6 + 0], 11, -358537222);
_local3 = hh(_local3, _local2, _local5, _local4, _local7[_local6 + 3], 16, -722521979);
_local4 = hh(_local4, _local3, _local2, _local5, _local7[_local6 + 6], 23, 76029189);
_local5 = hh(_local5, _local4, _local3, _local2, _local7[_local6 + 9], 4, -640364487);
_local2 = hh(_local2, _local5, _local4, _local3, _local7[_local6 + 12], 11, -421815835);
_local3 = hh(_local3, _local2, _local5, _local4, _local7[_local6 + 15], 16, 530742520);
_local4 = hh(_local4, _local3, _local2, _local5, _local7[_local6 + 2], 23, -995338651);
_local5 = ii(_local5, _local4, _local3, _local2, _local7[_local6 + 0], 6, -198630844);
_local2 = ii(_local2, _local5, _local4, _local3, _local7[_local6 + 7], 10, 1126891415);
_local3 = ii(_local3, _local2, _local5, _local4, _local7[_local6 + 14], 15, -1416354905);
_local4 = ii(_local4, _local3, _local2, _local5, _local7[_local6 + 5], 21, -57434055);
_local5 = ii(_local5, _local4, _local3, _local2, _local7[_local6 + 12], 6, 1700485571);
_local2 = ii(_local2, _local5, _local4, _local3, _local7[_local6 + 3], 10, -1894986606);
_local3 = ii(_local3, _local2, _local5, _local4, _local7[_local6 + 10], 15, -1051523);
_local4 = ii(_local4, _local3, _local2, _local5, _local7[_local6 + 1], 21, -2054922799);
_local5 = ii(_local5, _local4, _local3, _local2, _local7[_local6 + 8], 6, 1873313359);
_local2 = ii(_local2, _local5, _local4, _local3, _local7[_local6 + 15], 10, -30611744);
_local3 = ii(_local3, _local2, _local5, _local4, _local7[_local6 + 6], 15, -1560198380);
_local4 = ii(_local4, _local3, _local2, _local5, _local7[_local6 + 13], 21, 1309151649);
_local5 = ii(_local5, _local4, _local3, _local2, _local7[_local6 + 4], 6, -145523070);
_local2 = ii(_local2, _local5, _local4, _local3, _local7[_local6 + 11], 10, -1120210379);
_local3 = ii(_local3, _local2, _local5, _local4, _local7[_local6 + 2], 15, 718787259);
_local4 = ii(_local4, _local3, _local2, _local5, _local7[_local6 + 9], 21, -343485551);
_local5 = addme(_local5, _local11);
_local4 = addme(_local4, _local10);
_local3 = addme(_local3, _local9);
_local2 = addme(_local2, _local8);
_local6 = _local6 + 16;
}
return(((rhex(_local5) + rhex(_local4)) + rhex(_local3)) + rhex(_local2));
}
function rhex(num) {
var _local4 = "";
var _local2 = 0;
while (_local2 <= 3) {
_local4 = _local4 + (hex_chr.charAt(bitAND(num >> ((_local2 * 8) + 4), 15)) + hex_chr.charAt(bitAND(num >> (_local2 * 8), 15)));
_local2++;
}
return(_local4);
}
function str2blks_MD5(str) {
var _local4 = ((str.length + 8) >> 6) + 1;
var _local2 = new Array(_local4 * 16);
var _local1 = 0;
while (_local1 < (_local4 * 16)) {
_local2[_local1] = 0;
_local1++;
}
_local1 = 0;
while (_local1 < str.length) {
_local2[_local1 >> 2] = _local2[_local1 >> 2] | (str.charCodeAt(_local1) << ((_local1 % 4) * 8));
_local1++;
}
_local2[_local1 >> 2] = _local2[_local1 >> 2] | (128 << ((_local1 % 4) * 8));
_local2[(_local4 * 16) - 2] = str.length * 8;
return(_local2);
}
function addme(x, y) {
var _local2 = bitAND(x, 65535) + bitAND(y, 65535);
var _local3 = ((x >> 16) + (y >> 16)) + (_local2 >> 16);
return((_local3 << 16) | bitAND(_local2, 65535));
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(addme(rol(addme(addme(a, q), addme(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
return(cmn(bitAND(b, c) | bitAND(~b, d), a, b, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn(bitAND(b, d) | bitAND(c, ~d), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn((b ^ c) ^ d, a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function bitAND(a, b) {
if ((a < 0) && (b < 0)) {
var _local3 = (a & 1) & (b & 1);
var _local4 = (a >>> 1) & (b >>> 1);
return((_local4 << 1) | _local3);
}
return(a & b);
}
var hex_chr = "0123456789abcdef";
}
Symbol 616 MovieClip [__Packages.name.robinson.grant.xml.ConfigXML] Frame 0
class name.robinson.grant.xml.ConfigXML
{
var log, configDef_array;
function ConfigXML () {
log = name.robinson.grant.utils.Logger.getInstance();
}
function parseXML(config_xml) {
for (var _local4 in config_xml.childNodes) {
var _local2 = config_xml.childNodes[_local4];
switch (_local2.nodeName) {
case "config" :
parseParamsXML(_local2, configDef_array, this);
break;
default :
log.warn("ConfigXML: XML node not recognised: " + _local2.nodeName);
}
}
}
function parseParamsXML(params_xml, def_array, target) {
log.debug("ConfigXML: parseParamsXML()");
var _local4 = new Object();
for (var _local8 in params_xml.childNodes) {
var _local2 = params_xml.childNodes[_local8];
if (_local2.firstChild.nodeValue) {
_local4[_local2.nodeName] = _local2.firstChild.nodeValue;
} else {
_local4[_local2.nodeName] = _local2.attributes.value;
}
}
for (var _local8 in def_array) {
var _local3 = configDef_array[_local8];
target[_local3.name] = validateParam(_local3, _local4[_local3.name]);
}
return(target);
}
function validateParam(def_obj, value) {
if (value == undefined) {
log.error("ConfigXML: param not found:" + def_obj.name);
value = def_obj.value;
}
switch (def_obj.type) {
case "number" :
value = Number(value);
break;
case "boolean" :
value = ((((value == true) || (value.toLowerCase() == "yes")) || (Number(value) == 1)) ? true : false);
break;
case "array" :
if (def_obj.delimiter != undefined) {
value = value.split(def_obj.delimiter);
} else {
value = value.split(",");
}
break;
}
return(value);
}
}
Symbol 617 MovieClip [__Packages.XMLParser] Frame 0
class XMLParser extends name.robinson.grant.xml.ConfigXML
{
var app, configDef_array, parseParamsXML, question_array, log;
function XMLParser () {
super();
app = SESApp.getInstance();
configDef_array = new Array({name:"mail_subject", type:"string"}, {name:"mail_body", type:"string"}, {name:"pronet_link_url", type:"string"}, {name:"todays_times_url", type:"string"}, {name:"all_times_url", type:"string"}, {name:"add_entry_url", type:"string"}, {name:"debug_active", type:"boolean", value:false});
}
function parseXML(config_xml) {
for (var _local4 in config_xml.childNodes) {
var _local2 = config_xml.childNodes[_local4];
switch (_local2.nodeName) {
case "config" :
parseParamsXML(_local2, configDef_array, this);
break;
case "game_questions" :
question_array = parseQuestionsXML(_local2);
break;
default :
log.warn("ConfigXML: XML node not recognised: " + _local2.nodeName);
}
}
}
function parseQuestionsXML(questions_xml) {
log.debug("ConfigXML: parseQuestionsXML()");
var _local5 = new Array();
var _local3 = 0;
while (_local3 < questions_xml.childNodes.length) {
var _local2 = questions_xml.childNodes[_local3];
if (_local2.nodeName == "question") {
_local5.push(parseQuestionXML(_local2));
} else {
log.warn("ConfigXML: XML node not recognised: " + _local2.nodeName);
}
_local3++;
}
return(_local5);
}
function parseQuestionXML(question_xml) {
var _local4 = new Question();
_local4.answer = question_xml.attributes.answer;
var _local3 = 0;
while (_local3 < question_xml.childNodes.length) {
var _local2 = question_xml.childNodes[_local3];
switch (_local2.nodeName) {
case "question_text" :
_local4.setText(_local2.firstChild.nodeValue);
break;
case "option" :
_local4.addOption(_local2.attributes.id, _local2.firstChild.nodeValue);
break;
default :
log.warn("ConfigXML: XML node not recognised: " + _local2.nodeName);
}
_local3++;
}
return(_local4);
}
function parseResponseXML(response_xml) {
var _local3 = new Object();
var _local2 = response_xml.childNodes[0];
switch (_local2.nodeName) {
case "success" :
_local3 = parseSuccessXML(_local2);
break;
case "error" :
_local3 = parseErrorXML(_local2);
break;
default :
log.warn("ConfigXML: XML node not recognised: " + _local2.nodeName);
}
return(_local3);
}
function parseErrorXML(error_xml) {
var _local1 = new Object();
var _local2 = error_xml.attributes;
_local1.isError = true;
_local1.type = Number(_local2.type);
_local1.message = _local2.message;
return(_local1);
}
function parseSuccessXML(error_xml) {
var _local1 = new Object();
var _local2 = error_xml.attributes;
_local1.isSuccess = true;
if (_local2.type) {
_local1.type = Number(_local2.type);
}
_local1.message = _local2.message;
return(_local1);
}
}
Symbol 618 MovieClip [__Packages.Question] Frame 0
class Question
{
var log, option_array, text;
function Question () {
log = name.robinson.grant.utils.Logger.getInstance();
option_array = new Array();
mx.events.EventDispatcher.initialize(this);
}
function setText(t) {
text = t;
}
function addOption(i, t) {
option_array.push({id:i, text:t});
}
}
Symbol 619 MovieClip [__Packages.Character] Frame 0
class Character
{
var log, id, shortName, longName, company, dispatchEvent;
function Character (i, sn, ln, c) {
log = name.robinson.grant.utils.Logger.getInstance();
id = i;
shortName = sn;
longName = ln;
company = c;
mx.events.EventDispatcher.initialize(this);
}
function setText(t) {
log.debug("Question: setText(): " + t);
}
function onLoad() {
var _local2 = {target:this, type:"onEvent1"};
dispatchEvent(_local2);
}
}
Symbol 620 MovieClip [__Packages.name.robinson.grant.ui.LogWindow] Frame 0
class name.robinson.grant.ui.LogWindow extends MovieClip
{
static var instance;
var log, logListener, doDateStamp, text_mc, _visible, activeOnLoad, showHide_btn, toEmail_btn, getURL, onEnterFrame;
function LogWindow () {
super();
var _local3 = this;
instance = this;
log = name.robinson.grant.utils.Logger.getInstance();
logListener = new Object();
if (doDateStamp) {
log.doDateStamp = true;
}
log.info("LogWindow: new instance");
}
static function getInstance() {
if (instance == null) {
instance = new name.robinson.grant.ui.LogWindow();
}
return(instance);
}
function addText(txt) {
text_mc.log_txt.text = text_mc.log_txt.text + (txt + newline);
text_mc.log_txt.redraw(true);
if (!text_mc.text_slider.isDragged) {
text_mc.log_txt.scroll = text_mc.log_txt.maxscroll;
text_mc.text_slider.setProgress(1);
}
}
function show() {
_visible = true;
}
function hide() {
_visible = false;
}
function onLoad() {
hideText();
if (activeOnLoad) {
show();
} else {
hide();
}
resize();
var backRef = this;
showHide_btn.onRelease = function () {
backRef.toggleTextVisiblity();
};
toEmail_btn.onRelease = function () {
backRef.sendToEmail();
};
text_mc.text_slider.onDrag = function (fraction) {
backRef.scrollLog(fraction);
};
var _local2 = new Object();
_local2.onKeyDown = function () {
if (Key.getCode() == 35) {
backRef.toggleVisiblity();
}
};
Key.addListener(_local2);
}
function resize() {
text_mc.bg_mc._width = Stage.width;
text_mc.bg_mc._height = Stage.height;
text_mc.log_txt._width = Stage.width - 20;
text_mc.log_txt._height = Stage.height - 16;
text_mc.text_slider._x = Stage.width - (text_mc.text_slider._width + 2);
text_mc.text_slider._height = Stage.height - 4;
}
function scrollLog(fraction) {
var _local2 = Math.round(fraction * text_mc.log_txt.maxscroll);
text_mc.log_txt.scroll = _local2;
}
function sendToEmail() {
var _local2 = log.log_array.join("\r\n");
(getURL("mailto:grant_online@hotmail.com?subject=Debug log&body=" + _local2));// not popped
}
function toggleVisiblity() {
if (_visible) {
hide();
} else {
show();
}
}
function toggleTextVisiblity() {
if (text_mc._visible) {
hideText();
} else {
showText();
}
}
function showText() {
var backRef = this;
var i = 0;
onEnterFrame = function () {
var _local2 = 0;
while (_local2 < 100) {
this.addText(this.log.log_array[i]);
if ((++i) >= this.log.log_array.length) {
delete this.onEnterFrame;
this.logListener.onEntry = function (evt) {
backRef.addText(evt.message);
};
this.log.addEventListener("onEntry", this.logListener);
break;
}
_local2++;
}
};
text_mc._visible = true;
}
function hideText() {
text_mc.log_txt.text = "";
log.removeEventListener("onEntry", logListener);
text_mc._visible = false;
}
}
Symbol 621 MovieClip [__Packages.screens.MenuScreen] Frame 0
class screens.MenuScreen extends screens.SESScreen
{
var removeMovieClip, log, start_btn, leaderboard, link_btn, app, getURL;
function MenuScreen () {
super();
}
function destroy() {
removeMovieClip();
}
function init() {
log.info("MenuScreen: init()");
var backRef = this;
start_btn.onReleaseAction = function () {
backRef.app.gotoScreen("selectCharacter");
};
leaderboard.onGetToday = function () {
backRef.showTodayTimes();
};
leaderboard.onGetAll = function () {
backRef.showAllTimes();
};
link_btn.onRelease = function () {
backRef.doLink();
};
showTodayTimes();
}
function showTodayTimes() {
var backRef = this;
if (app.rsManager.refreshRecords) {
app.rsManager.onGetRecords = function (response) {
backRef.leaderboard.showToday(response);
};
app.rsManager.onGetRecordsError = function (response) {
backRef.leaderboard.showError();
};
app.rsManager.getRecords();
} else {
leaderboard.showToday(app.rsManager.record_array);
}
}
function showAllTimes() {
var backRef = this;
if (app.rsManager.refreshPagedRecords) {
app.rsManager.onGetPagedRecords = function (response) {
backRef.leaderboard.showAll(response);
};
app.rsManager.onGetPagedRecordsError = function (response) {
backRef.leaderboard.showError();
};
app.rsManager.getPagedRecords();
} else {
leaderboard.showAll(app.rsManager.pagedRecord_array);
}
}
function doLink() {
var _local2 = app.config.pronet_link_url;
log.debug("MenuScreen: doLink(): " + _local2);
(getURL(_local2, "_blank"));// not popped
}
}
Symbol 622 MovieClip [__Packages.ui.BasicButton] Frame 0
class ui.BasicButton extends MovieClip
{
var gotoAndStop, tabChildren, label, selected, shape_mc, _xscale, _yscale, onSelect, onDeselect, _visible, onReleaseAction, onPressAction, onReleaseOutsideAction, _parent;
function BasicButton () {
super();
(gotoAndStop("up"));// not popped
tabChildren = false;
if (label != undefined) {
setLabel(label);
}
setLabelColor(defaultTextColor);
if (!enabled) {
disable();
}
if (!hasFocus) {
onKillFocus();
}
if (selected) {
select();
} else {
deselect();
}
}
function onKeyDownAction() {
if (enabled) {
onPress();
setLabelColor(overTextColor);
}
}
function onKeyUpAction() {
if (enabled) {
onRelease();
setLabelColor(defaultTextColor);
}
}
function setLabel(txt) {
shape_mc.label_txt.text = txt;
if (shape_mc.labelShadow_txt) {
shape_mc.labelShadow_txt.text = txt;
}
}
function getLabel() {
return(shape_mc.label_txt.text);
}
function setWidth(x) {
_xscale = 100;
_yscale = 100;
var _local2 = shape_mc;
var _local4 = _local2.leftEdge_mc._width;
var _local5 = _local2.rightEdge_mc._width;
var _local3 = Math.max(1, x - (_local4 + _local5));
_local2.label_txt._width = x - 8;
_local2.middle_mc._width = _local3;
_local2.rightEdge_mc._x = _local4 + _local3;
if (shape_mc.labelShadow_txt) {
shape_mc.labelShadow_txt._width = _local2.label_txt._width;
}
}
function setHeight(y) {
shape_mc._height = y;
}
function setSize(x, y) {
setWidth(x);
setHeight(y);
}
function enable() {
gotoAndStop("up");
setLabelColor(defaultTextColor);
enabled = true;
}
function disable() {
gotoAndStop("disabled");
setLabelColor(disabledTextColor);
enabled = false;
}
function select() {
onSelect();
selected = true;
(gotoAndStop("selected"));// not popped
deselectOthers();
disable();
}
function deselect() {
onDeselect();
selected = false;
(gotoAndStop("up"));// not popped
enable();
}
function show() {
_visible = true;
}
function hide() {
_visible = false;
}
function setLabelColor(clr) {
shape_mc.label_txt.textColor = clr;
}
function onRelease() {
(gotoAndStop("over"));// not popped
onReleaseAction();
if (selectable) {
select();
}
}
function onPress() {
(gotoAndStop("down"));// not popped
onPressAction();
}
function onRollOver() {
(gotoAndStop("over"));// not popped
}
function onRollOut() {
if (!selected) {
(gotoAndStop("up"));// not popped
}
}
function onDragOut() {
onRollOut();
}
function onReleaseOutside() {
onReleaseOutsideAction();
onRollOut();
}
function onSetFocus() {
hasFocus = true;
}
function onKillFocus() {
hasFocus = false;
}
function deselectOthers() {
for (var _local3 in _parent) {
var _local2 = _parent[_local3];
if (_local2 != this) {
_local2.deselect();
}
}
}
var defaultTextColor = 0;
var overTextColor = 16777215;
var downTextColor = 0;
var disabledTextColor = 6710886;
var selectable = false;
var tabEnabled = true;
var enabled = true;
var hasFocus = false;
}
Symbol 623 MovieClip [__Packages.ui.CharacterSelectButton] Frame 0
class ui.CharacterSelectButton extends MovieClip
{
var gotoAndStop, tabChildren, label, defaultTextColor, shape_mc, overTextColor, downTextColor, disabledTextColor, selected, id, face_mc, onSelect, onDeselect, _visible, onReleaseAction, onPressAction, gotoAndPlay, onRollOverAction, onRollOutAction, onReleaseOutsideAction, _parent;
function CharacterSelectButton () {
super();
(gotoAndStop("up"));// not popped
tabChildren = false;
if (label != undefined) {
setLabel(label);
}
if (defaultTextColor == undefined) {
defaultTextColor = shape_mc.label_txt.textColor;
}
if (overTextColor == undefined) {
overTextColor = shape_mc.label_txt.textColor;
}
if (downTextColor == undefined) {
downTextColor = shape_mc.label_txt.textColor;
}
if (disabledTextColor == undefined) {
disabledTextColor = shape_mc.label_txt.textColor;
}
setLabelColor(defaultTextColor);
if (!enabled) {
disable();
}
if (!hasFocus) {
onKillFocus();
}
if (selected) {
select();
} else {
deselect();
}
}
function onKeyDownAction() {
if (enabled) {
onPress();
setLabelColor(overTextColor);
}
}
function onKeyUpAction() {
if (enabled) {
onRelease();
setLabelColor(defaultTextColor);
}
}
function setID(i) {
id = i;
face_mc.gotoAndStop("c" + i);
}
function setLabel(txt) {
shape_mc.label_txt.text = txt;
}
function enable() {
gotoAndStop("up");
setLabelColor(defaultTextColor);
enabled = true;
}
function disable() {
gotoAndStop("disabled");
setLabelColor(disabledTextColor);
enabled = false;
}
function toggleSelect() {
if (selected) {
deselect();
} else {
select();
}
}
function select() {
onSelect();
selected = true;
(gotoAndStop("selected"));// not popped
deselectOthers();
if (disableOnSelect) {
disable();
}
}
function deselect() {
onDeselect();
selected = false;
(gotoAndStop("up"));// not popped
enable();
}
function show() {
_visible = true;
}
function hide() {
_visible = false;
}
function setLabelColor(clr) {
shape_mc.label_txt.textColor = clr;
}
function onRelease() {
(gotoAndStop("up"));// not popped
setLabelColor(overTextColor);
onReleaseAction();
if (selectable) {
toggleSelect();
}
}
function onPress() {
(gotoAndStop("down"));// not popped
setLabelColor(downTextColor);
onPressAction();
}
function onRollOver() {
(gotoAndPlay("over"));// not popped
setLabelColor(overTextColor);
onRollOverAction();
}
function onRollOut() {
if (!selected) {
(gotoAndStop("up"));// not popped
setLabelColor(defaultTextColor);
}
onRollOutAction();
}
function onDragOut() {
onRollOut();
}
function onReleaseOutside() {
onReleaseOutsideAction();
onRollOut();
}
function onSetFocus() {
hasFocus = true;
}
function onKillFocus() {
hasFocus = false;
}
function deselectOthers() {
for (var _local3 in _parent) {
var _local2 = _parent[_local3];
if (_local2 != this) {
_local2.deselect();
}
}
}
var selectable = false;
var enabled = true;
var disableOnSelect = true;
var tabEnabled = true;
var hasFocus = false;
}
Symbol 624 MovieClip [__Packages.screens.SelectCharacterScreen] Frame 0
class screens.SelectCharacterScreen extends screens.SESScreen
{
var removeMovieClip, log, c0_btn, c1_btn, c2_btn, c3_btn, c4_btn, c5_btn, app, back_btn, link_btn, getURL;
function SelectCharacterScreen () {
super();
}
function destroy() {
removeMovieClip();
}
function init() {
log.info("SelectCharacterScreen: init()");
var backRef = this;
c0_btn.onReleaseAction = function () {
backRef.selectChar(0);
};
c1_btn.onReleaseAction = function () {
backRef.selectChar(1);
};
c2_btn.onReleaseAction = function () {
backRef.selectChar(2);
};
c3_btn.onReleaseAction = function () {
backRef.selectChar(3);
};
c4_btn.onReleaseAction = function () {
backRef.selectChar(4);
};
c5_btn.onReleaseAction = function () {
backRef.selectChar(5);
};
disableButtons();
var _local2 = 0;
while (_local2 < app.char_array.length) {
var _local3 = this[("c" + _local2) + "_btn"];
_local3.setID(app.char_array[_local2].id);
_local3.setLabel(app.char_array[_local2].shortName);
_local2++;
}
back_btn.onReleaseAction = function () {
backRef.app.gotoScreen("menu");
};
link_btn.onRelease = function () {
backRef.doLink();
};
}
function selectChar(i) {
log.debug("SelectCharacterScreen: selectChar(): " + i);
app.playerCharID = i;
app.gotoScreen("selectOpponent");
}
function enableButtons() {
var _local2 = 0;
while (_local2 < app.char_array.length) {
this[("c" + _local2) + "_btn"].enable();
_local2++;
}
}
function disableButtons() {
var _local2 = 0;
while (_local2 < app.char_array.length) {
this[("c" + _local2) + "_btn"].disable();
_local2++;
}
}
function doLink() {
var _local2 = app.config.pronet_link_url;
log.debug("SelectCharacterScreen: doLink(): " + _local2);
(getURL(_local2, "_blank"));// not popped
}
var charMax = 6;
}
Symbol 625 MovieClip [__Packages.screens.SelectOpponentScreen] Frame 0
class screens.SelectOpponentScreen extends screens.SESScreen
{
var removeMovieClip, log, opponent_array, app, random_btn, back_btn, link_btn, getURL;
function SelectOpponentScreen () {
super();
}
function destroy() {
removeMovieClip();
}
function init() {
log.info("SelectOpponentScreen: init()");
var backRef = this;
opponent_array = name.robinson.grant.utils.ArrayUtility.removeIndex(app.playerCharID, app.char_array);
var _local2 = 0;
while (_local2 < opponent_array.length) {
var _local3 = this[("c" + _local2) + "_btn"];
_local3.setID(opponent_array[_local2].id);
_local3.setLabel(opponent_array[_local2].shortName);
_local3.onReleaseAction = function () {
backRef.selectOpponent(this.id);
};
_local2++;
}
disableButtons();
random_btn.onReleaseAction = function () {
backRef.selectOpponent();
};
back_btn.onReleaseAction = function () {
backRef.app.gotoScreen("selectCharacter");
};
link_btn.onRelease = function () {
backRef.doLink();
};
}
function selectOpponent(i) {
log.debug("SelectOpponentScreen: selectOpponent(): " + i);
if (i == undefined) {
var _local3 = Math.floor(Math.random() * opponent_array.length);
i = opponent_array[_local3].id;
}
log.debug((("SelectOpponentScreen: opponent index:" + _local3) + ", i:") + i);
app.opponentCharID = i;
app.gotoScreen("fight");
}
function enableButtons() {
var _local2 = 0;
while (_local2 < opponent_array.length) {
this[("c" + _local2) + "_btn"].enable();
_local2++;
}
random_btn.enable();
}
function disableButtons() {
var _local2 = 0;
while (_local2 < opponent_array.length) {
this[("c" + _local2) + "_btn"].disable();
_local2++;
}
random_btn.disable();
}
function doLink() {
var _local2 = app.config.pronet_link_url;
log.debug("SelectOpponentScreen: doLink(): " + _local2);
(getURL(_local2, "_blank"));// not popped
}
}
Symbol 626 MovieClip [__Packages.name.robinson.grant.utils.ArrayUtility] Frame 0
class name.robinson.grant.utils.ArrayUtility
{
function ArrayUtility () {
}
static function getRandomUniqueArray(orig_array, uniqueLength) {
var _local6 = new Array();
var _local1 = new Array();
if (uniqueLength == undefined) {
uniqueLength = orig_array.length;
}
var _local3 = 0;
while (_local3 < orig_array.length) {
_local1.push(_local3);
_local3++;
}
_local3 = 0;
while (_local3 < uniqueLength) {
var _local2 = Math.floor(Math.random() * _local1.length);
var _local4 = _local1[_local2];
_local1 = removeIndex(_local2, _local1);
_local6.push(orig_array[_local4]);
_local3++;
}
return(_local6);
}
static function getRandomIndex(a) {
return(Math.round(Math.random() * (a.length - 1)));
}
static function getRandomIndexOccurance(a, o) {
var _local2;
var _local3;
var _local1 = 0;
while (_local1 < 1000) {
_local2 = getRandomIndex(a);
_local3 = a[_local2];
if (_local3 == o) {
trace("item found");
return(_local2);
}
trace("looking for item: " + _local1);
_local1++;
}
return(-1);
}
static function getRandomItem(a) {
var _local1 = getRandomIndex(a);
return(a[_local1]);
}
static function getRandomItemOccurance(a, o) {
var _local3;
var _local2;
var _local1 = 0;
while (_local1 < 1000) {
_local3 = getRandomIndex(a);
_local2 = a[_local3];
if (_local2 == o) {
trace("item found");
return(_local2);
}
trace("looking for item: " + _local1);
_local1++;
}
return(false);
}
static function removeIndex(i, a) {
if ((i > -1) && (i < a.length)) {
return(a.slice(0, i).concat(a.slice(i + 1)));
}
return(a);
}
static function occurs(o, a) {
for (var _local3 in a) {
if (a[_local3] == o) {
return(true);
}
}
return(false);
}
static function countOccurances(o, a) {
var _local2 = 0;
for (var _local4 in a) {
if (a[_local4] == o) {
_local2++;
}
}
return(_local2);
}
static function removeOccurances(o, a) {
var _local1 = 0;
while (_local1 < a.length) {
if (a[_local1] == o) {
a = removeIndex(_local1, a);
}
_local1++;
}
return(a);
}
static function sum(a) {
var _local2 = 0;
for (var _local3 in a) {
_local2 = _local2 + a[_local3];
}
return(_local2);
}
static function offset(a, amount) {
amount = (-amount) % a.length;
return((amount ? (a.slice(amount).concat(a.slice(0, amount))) : (a.slice())));
}
static function shuffle(a) {
var _local4 = a.length;
var _local3;
var _local5;
var _local1 = 0;
while (_local1 < _local4) {
_local3 = Math.floor(Math.random() * _local4);
_local5 = a[_local1];
a[_local1] = a[_local3];
a[_local3] = _local5;
_local1++;
}
return(a);
}
static function copy(a) {
var _local3 = new Array();
var _local4 = a.length;
var _local1 = 0;
while (_local1 < _local4) {
if (a[_local1].length > 1) {
_local3[_local1] = copy(a[_local1]);
} else {
_local3[_local1] = a[_local1];
}
_local1++;
}
return(_local3);
}
}
Symbol 627 MovieClip [__Packages.ui.TimerDisplay] Frame 0
class ui.TimerDisplay extends MovieClip
{
var log, timer, onEnterFrame, dispatchEvent, _visible, gotoAndStop, analogue_mc, counter_mc, gotoAndPlay;
function TimerDisplay () {
super();
log = name.robinson.grant.utils.Logger.getInstance();
log.info("TimerDisplay: new instance");
mx.events.EventDispatcher.initialize(this);
}
function start() {
timer.start();
onEnterFrame = updateAnalogueFace;
}
function pause() {
log.debug("TimerDisplay: pause()");
timer.pause();
delete onEnterFrame;
}
function complete() {
log.debug("TimerDisplay: complete()");
delete onEnterFrame;
dispatchEvent({target:this, type:"onComplete"});
}
function reset() {
timer.reset();
}
function show() {
_visible = true;
}
function hide() {
_visible = false;
}
function onLoad() {
var backRef = this;
timer = new name.robinson.grant.utils.Timer(9, 0, 1000, "descending");
var _local2 = new Object();
_local2.onChange = function (evt) {
backRef.updateCounter(evt.currentTime);
};
timer.addEventListener("onChange", _local2);
_local2.onComplete = function (evt) {
backRef.complete();
};
timer.addEventListener("onComplete", _local2);
(gotoAndStop(1));// not popped
}
function updateAnalogueFace() {
analogue_mc.gotoAndStop(timer.getProgressPercent());
}
function updateCounter(i) {
counter_mc.counter_txt.text = i;
if (i == 0) {
(gotoAndPlay("pulseFinal"));// not popped
} else if (i < 4) {
(gotoAndPlay("pulseWarning"));// not popped
} else {
(gotoAndPlay("pulse"));// not popped
}
}
}
Symbol 628 MovieClip [__Packages.name.robinson.grant.utils.Timer] Frame 0
class name.robinson.grant.utils.Timer
{
var log, dispatchEvent, currentTime, msStart, msTotal, progressInterval;
function Timer (s, e, r, d) {
log = name.robinson.grant.utils.Logger.getInstance();
log.info("Timer: new instance");
setup(s, e, r, d);
mx.events.EventDispatcher.initialize(this);
}
function setup(s, e, r, d) {
log.debug((((((("Timer: setup(): " + s) + ", ") + e) + ", ") + r) + ",") + d);
if (s != undefined) {
startTime = s;
}
if (e != undefined) {
endTime = e;
}
if (r != undefined) {
rate = r;
}
if (d != undefined) {
direction = d;
}
dispatchEvent({target:this, type:"onChange", currentTime:currentTime});
}
function start() {
elapsedTime = 0;
currentTime = startTime;
msStart = getTimer();
msTotal = (startTime - endTime) * rate;
dispatchEvent({target:this, type:"onChange", currentTime:currentTime});
clearInterval(progressInterval);
progressInterval = setInterval(this, "progressTimer", rate);
}
function pause() {
clearInterval(progressInterval);
}
function complete() {
clearInterval(progressInterval);
dispatchEvent({target:this, type:"onComplete"});
}
function reset() {
elapsedTime = 0;
currentTime = startTime;
}
function getCurrentTime() {
return(currentTime);
}
function getProgressPercent() {
var _local2 = getTimer() - msStart;
var _local3 = Math.min(Math.round((_local2 / msTotal) * 100), 100);
return(_local3);
}
function getProgressFraction() {
var _local2 = getTimer() - msStart;
var _local3 = _local2 / msTotal;
return(_local3);
}
function progressTimer() {
elapsedTime++;
if (direction == "descending") {
currentTime--;
} else {
currentTime++;
}
dispatchEvent({target:this, type:"onChange", currentTime:currentTime});
checkProgress();
}
function checkProgress() {
if (direction == "descending") {
if (currentTime <= endTime) {
complete();
}
} else if (currentTime >= endTime) {
complete();
}
}
var startTime = 20;
var endTime = 0;
var elapsedTime = 0;
var rate = 1000;
var direction = "descending";
}
Symbol 629 MovieClip [__Packages.ui.EnergyMeter] Frame 0
class ui.EnergyMeter extends MovieClip
{
var log, id, face_mc, label_txt, labelShadow_txt, gotoAndPlay, onEnterFrame, dispatchEvent, _visible;
function EnergyMeter () {
super();
log = name.robinson.grant.utils.Logger.getInstance();
log.info("EnergyMeter: new instance");
mx.events.EventDispatcher.initialize(this);
}
function setID(i) {
id = i;
face_mc.gotoAndStop("c" + i);
}
function setLabel(txt) {
label_txt.text = txt;
if (labelShadow_txt) {
labelShadow_txt.text = txt;
}
}
function decreaseEnergy(i) {
setEnergy(energy - i);
}
function setEnergy(i) {
gotoAndPlay("flash");
var _local2 = energy;
energy = Math.max(Math.min(i, energyMax), energyMin);
var t = 0;
var d = 15;
var startE = _local2;
var changeInE = (energy - _local2);
onEnterFrame = function () {
t++;
this.meter_mc._xscale = com.robertpenner.easing.Cubic.easeOut(t, startE, changeInE, d);
if (t >= d) {
delete this.onEnterFrame;
}
};
if (energy == energyMin) {
dispatchEvent({target:this, type:"onKO"});
} else if (energy != _local2) {
dispatchEvent({target:this, type:"onChange", energy:energy});
}
}
function enable() {
enabled = true;
}
function disable() {
enabled = false;
}
function show() {
_visible = true;
}
function hide() {
_visible = false;
}
var energy = 100;
var energyMin = 0;
var energyMax = 100;
var enabled = true;
}
Symbol 630 MovieClip [__Packages.com.robertpenner.easing.Cubic] Frame 0
class com.robertpenner.easing.Cubic
{
function Cubic () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
}
Symbol 631 MovieClip [__Packages.screens.FightScreen] Frame 0
class screens.FightScreen extends screens.SESScreen
{
var playerChar, app, opponentChar, question_array, combo_array, questionStartY, question_txt, groan_sound, removeMovieClip, log, quit_btn, a_btn, b_btn, player_mc, opponent_mc, player_meter, opponent_meter, question_timer, startTime, current_question, gotoAndPlay, stop, target_meter, targetDamage, ref_mc;
function FightScreen () {
super();
playerChar = app.char_array[app.playerCharID];
opponentChar = app.char_array[app.opponentCharID];
question_array = name.robinson.grant.utils.ArrayUtility.getRandomUniqueArray(app.config.question_array);
combo_array = new Array();
questionStartY = question_txt._y;
groan_sound = new Sound(this);
groan_sound.setVolume(100);
}
function destroy() {
removeMovieClip();
if (app.config.debug_active) {
storeTime();
}
}
function init() {
log.info("FightScreen: init()");
var backRef = this;
quit_btn.onReleaseAction = function () {
backRef.app.gotoScreen("menu");
};
a_btn.onReleaseAction = function () {
backRef.checkAnswer("a");
};
b_btn.onReleaseAction = function () {
backRef.checkAnswer("b");
};
a_btn.scaleTextToFit = true;
b_btn.scaleTextToFit = true;
player_mc.gotoAndStop("c" + playerChar.id);
opponent_mc.gotoAndStop("c" + opponentChar.id);
player_meter.setID(playerChar.id);
player_meter.setLabel(playerChar.shortName);
opponent_meter.setLabel(opponentChar.shortName);
opponent_meter.setID(opponentChar.id);
var _local2 = new Object();
_local2.onComplete = function () {
backRef.doTimeout();
};
question_timer.addEventListener("onComplete", _local2);
question_txt.text = "";
hideButtons();
question_timer.hide();
}
function startFight() {
log.debug("FightScreen: startFight()");
startTime = getTimer();
nextQuestion();
}
function nextQuestion() {
log.debug("FightScreen: nextQuestion()");
var _local3 = this;
hideButtons();
question_timer.hide();
current_question = question_array[questionCount];
question_txt.text = current_question.text;
var _local2 = question_txt.textHeight;
if (_local2 < 40) {
question_txt._y = 25;
} else {
question_txt._y = questionStartY;
}
a_btn.setLabel(current_question.option_array[0].text);
b_btn.setLabel(current_question.option_array[1].text);
questionCount++;
if (questionCount >= question_array.length) {
questionCount = 0;
}
gotoAndPlay("question");
}
function startTimer() {
log.debug("FightScreen: startTimer()");
var _local2 = this;
stop();
question_timer.reset();
question_timer.start();
question_timer.show();
showButtons();
enableButtons();
}
function checkAnswer(a) {
log.debug("FightScreen: checkAnswer(): " + a);
question_timer.pause();
disableButtons(a);
var _local3 = current_question.answer;
if (a == _local3) {
doCorrect();
} else {
doWrong();
}
}
function updateComboHistory(answer) {
combo_array.push(answer);
if (combo_array.length > comboMax) {
combo_array.shift();
}
}
function isCorrectCombo() {
if (combo_array.length >= comboMax) {
var _local2 = true;
for (var _local3 in combo_array) {
if (!combo_array[_local3]) {
_local2 = false;
}
}
if (_local2) {
combo_array = new Array();
return(true);
}
return(false);
}
return(false);
}
function isWrongCombo() {
if (combo_array.length >= comboMax) {
var _local2 = true;
for (var _local3 in combo_array) {
if (combo_array[_local3]) {
_local2 = false;
}
}
if (_local2) {
combo_array = new Array();
return(true);
}
return(false);
}
return(false);
}
function doCorrect() {
log.debug("FightScreen: doCorrect()");
updateComboHistory(true);
if (isCorrectCombo()) {
doCorrectCombo();
} else {
target_meter = opponent_meter;
targetDamage = hitDamage;
player_mc.moves_mc.gotoAndPlay("kick");
opponent_mc.moves_mc.gotoAndPlay("hit");
gotoAndPlay("correct");
ref_mc.gotoAndPlay("correct");
}
}
function doWrong() {
log.debug("FightScreen: doWrong()");
updateComboHistory(false);
if (isWrongCombo()) {
doWrongCombo();
} else {
target_meter = player_meter;
targetDamage = hitDamage;
player_mc.moves_mc.gotoAndPlay("hit");
opponent_mc.moves_mc.gotoAndPlay("kick");
gotoAndPlay("wrong");
ref_mc.gotoAndPlay("wrong");
}
}
function doTimeout() {
log.debug("FightScreen: doTimeout()");
disableButtons("timeout");
target_meter = player_meter;
targetDamage = hitDamage;
player_mc.moves_mc.gotoAndPlay("hit");
opponent_mc.moves_mc.gotoAndPlay("kick");
gotoAndPlay("timeout");
ref_mc.gotoAndPlay("timeout");
}
function doCorrectCombo() {
log.debug("FightScreen: doCorrectCombo()");
target_meter = opponent_meter;
targetDamage = comboDamage;
player_mc.moves_mc.gotoAndPlay("special");
opponent_mc.moves_mc.gotoAndPlay("hit" + playerChar.id);
gotoAndPlay("correctCombo");
ref_mc.gotoAndPlay("correctCombo");
}
function doWrongCombo() {
log.debug("FightScreen: doWrongCombo()");
target_meter = player_meter;
targetDamage = comboDamage;
player_mc.moves_mc.gotoAndPlay("hit" + opponentChar.id);
opponent_mc.moves_mc.gotoAndPlay("special");
gotoAndPlay("wrongCombo");
ref_mc.gotoAndPlay("wrongCombo");
}
function applyDamage() {
log.debug("FightScreen: applyDamage()");
_root.bg_mc.cheer(2);
target_meter.decreaseEnergy(targetDamage);
var _local3 = Math.floor(Math.random() * 3) + 1;
log.debug("FightScreen: randomNum: " + _local3);
groan_sound.attachSound("groan" + _local3);
groan_sound.start();
}
function checkForKO() {
log.debug("FightScreen: checkForKO()");
if (opponent_meter.energy == 0) {
opponent_mc.moves_mc.stop();
endRound();
} else if (player_meter.energy == 0) {
player_mc.moves_mc.stop();
endRound();
}
}
function endRound() {
log.debug("FightScreen: endRound()");
if (opponent_meter.energy == 0) {
doWin();
} else if (player_meter.energy == 0) {
doLose();
} else {
nextQuestion();
}
}
function doWin() {
log.debug("FightScreen: doWin()");
app.playerIsWinner = true;
_root.bg_mc.cheer(6);
gotoAndPlay("win");
ref_mc.gotoAndPlay("win");
player_mc.moves_mc.gotoAndPlay("win");
}
function doLose() {
log.debug("FightScreen: doLose()");
app.playerIsWinner = false;
_root.bg_mc.cheer(6);
gotoAndPlay("lose");
ref_mc.gotoAndPlay("lose");
opponent_mc.moves_mc.gotoAndPlay("win");
}
function endFight() {
log.debug("FightScreen: endFight()");
storeTime();
app.gotoScreen("gameOver");
}
function storeTime() {
if (startTime == undefined) {
startTime = 0;
}
app.userTime = Math.round((getTimer() - startTime) / 1000);
}
function showButtons() {
a_btn.show();
b_btn.show();
}
function hideButtons() {
a_btn.hide();
b_btn.hide();
}
function enableButtons() {
a_btn.enable();
b_btn.enable();
a_btn._alpha = 100;
b_btn._alpha = 100;
}
function disableButtons(answer) {
a_btn.disable();
b_btn.disable();
if (answer != undefined) {
if (answer == "timeout") {
a_btn._alpha = (b_btn._alpha = 20);
} else {
var _local2 = ((answer == "a") ? "b" : "a");
this[_local2 + "_btn"]._alpha = 20;
}
}
}
var questionCount = 0;
var comboMax = 3;
var hitDamage = 10;
var comboDamage = 25;
}
Symbol 632 MovieClip [__Packages.name.robinson.grant.ui.TextInput] Frame 0
class name.robinson.grant.ui.TextInput extends MovieClip
{
var inputTabIndex, shape_mc, text, focusOnLoad, characterLimit, _width, tabIndex, _alpha, _visible, _xscale, _yscale;
function TextInput () {
super();
var backRef = this;
if ((inputTabIndex != undefined) && (inputTabIndex != 0)) {
shape_mc.input_txt.tabIndex = inputTabIndex;
}
shape_mc.input_txt.tabEnabled = true;
shape_mc.input_txt.onSetFocus = function () {
backRef.log("onSetFocus");
backRef.hasFocus = true;
};
shape_mc.input_txt.onKillFocus = function () {
backRef.log("onKillFocus");
backRef.hasFocus = false;
};
if (text != undefined) {
setText(text);
}
if (focusOnLoad == true) {
focus();
}
if (!hasFocus) {
shape_mc.input_txt.onKillFocus();
}
setCharacterLimit(characterLimit);
if (isResizable) {
setWidth(_width);
}
if ((tabIndex != undefined) && (tabIndex != 0)) {
shape_mc.input_txt.tabIndex = tabIndex;
}
}
function setText(txt) {
shape_mc.input_txt.text = txt;
}
function getText() {
return(shape_mc.input_txt.text);
}
function focus() {
Selection.setFocus(shape_mc.input_txt);
}
function setCharacterLimit(pLimit) {
shape_mc.input_txt.maxChars = pLimit;
}
function setSize(x, y) {
setWidth(x);
setHeight(y);
}
function restrictChars(pChars) {
shape_mc.input_txt.restrict = pChars;
}
function restrictCharsToEmail() {
restrictChars("A-Za-z0-9.@_!#$%&'*+-/=?^`{|}~");
}
function isValidEmail() {
var _local4 = getText();
if (_local4.length < 5) {
return(false);
}
var _local3 = new Array("@", ".");
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local4.indexOf(_local3[_local2]) == -1) {
return(false);
}
_local2++;
}
return(true);
}
function disable() {
setTextColor(disabledTextColor);
shape_mc.input_txt.type = "dynamic";
shape_mc.input_txt.selectable = false;
_alpha = 50;
enabled = false;
}
function enable() {
setTextColor(defaultTextColor);
shape_mc.input_txt.type = "input";
shape_mc.input_txt.selectable = true;
_alpha = 100;
enabled = true;
}
function show() {
_visible = true;
}
function hide() {
_visible = false;
}
function setWidth(x) {
_xscale = 100;
_yscale = 100;
var _local2 = shape_mc;
var _local4 = _local2.leftEdge_mc._width;
var _local5 = _local2.rightEdge_mc._width;
var _local3 = Math.max(1, x - (_local4 + _local5));
_local2.input_txt._width = x - 8;
_local2.middle_mc._width = _local3;
_local2.rightEdge_mc._x = _local4 + _local3;
}
function setHeight(y) {
shape_mc._height = y;
}
function setTextColor(clr) {
shape_mc.input_txt.textColor = clr;
}
var defaultTextColor = 0;
var disabledTextColor = 102;
var isResizable = true;
var enabled = true;
var hasFocus = false;
}
Symbol 633 MovieClip [__Packages.screens.GameOverScreen] Frame 0
class screens.GameOverScreen extends screens.SESScreen
{
var removeMovieClip, log, app, title_txt, time_txt, name_ti, submit_btn, playAgain_btn, invite_btn, link_btn, gotoAndPlay, warning_mc, getURL, highscores_btn;
function GameOverScreen () {
super();
}
function destroy() {
removeMovieClip();
name.robinson.grant.KeyController.getInstance().removeKey("enter");
}
function init() {
log.info("GameOverScreen: init()");
var backRef = this;
if (app.playerIsWinner || (app.config.debug_active)) {
title_txt.text = "You Won!";
} else {
title_txt.text = "You Lose";
}
if (app.userTime == undefined) {
app.userTime = 5999;
}
var _local2 = name.robinson.grant.utils.NumberUtility.secsToMinsString(app.userTime, false);
time_txt.text = ("You won in " + _local2) + " minutes";
if (app.userName != undefined) {
name_ti.setText(app.userName);
} else {
name_ti.focus();
}
submit_btn.onReleaseAction = function () {
backRef.checkFields();
};
name.robinson.grant.KeyController.getInstance().addKey("enter", 13, submit_btn, "onKeyDownAction", "onKeyUpAction");
playAgain_btn.onReleaseAction = function () {
backRef.app.gotoScreen("selectCharacter");
};
invite_btn.onReleaseAction = function () {
backRef.sendInvite();
};
link_btn.onRelease = function () {
backRef.doLink();
};
}
function checkIfEligible() {
log.debug("GameOverScreen: checkIfEligible()");
if (app.playerIsWinner || (app.config.debug_active)) {
gotoAndPlay("eligible");
}
}
function checkFields() {
log.debug("GameOverScreen: checkFields()");
if (name_ti.getText() == "") {
log.warn("GameOverScreen: name_ti empty");
warning_mc.gotoAndPlay("pulse");
name_ti.focus();
} else {
submitDetails();
}
}
function submitDetails() {
log.debug("GameOverScreen: submitScore()");
var _local3 = this;
name.robinson.grant.KeyController.getInstance().removeKey("enter");
var _local2 = new Object();
_local2.time = app.userTime;
_local2.name = name.robinson.grant.utils.StringUtility.profanityFilter(name_ti.getText());
app.userDetailsSubmitted = true;
app.userName = _local2.name;
app.rsManager.addRecord(null, _local2);
gotoAndPlay("submit");
}
function doLink() {
var _local2 = app.config.pronet_link_url;
log.debug("GameOverScreen: doLink(): " + _local2);
(getURL(_local2, "_blank"));// not popped
}
function sendInvite() {
var _local2 = "mailto: ";
_local2 = _local2 + ("&subject=" + app.config.mail_subject);
_local2 = _local2 + ("&body=" + app.config.mail_body);
log.debug("GameOverScreen: sendInvite(): " + _local2);
(getURL(_local2));// not popped
}
function enableHighScoresButton() {
var backRef = this;
highscores_btn.onReleaseAction = function () {
backRef.app.gotoScreen("menu");
};
}
}
Symbol 634 MovieClip [__Packages.name.robinson.grant.ui.Slider] Frame 0
class name.robinson.grant.ui.Slider extends MovieClip
{
var log, minHandleX, maxHandleX, handle_mc, _width, minHandleY, maxHandleY, _height, dragLimit, onMouseMove, onDragRelease;
function Slider () {
super();
log = name.robinson.grant.utils.Logger.getInstance();
log.info("Slider: new instance");
if (!enabled) {
disable();
}
if (autoSize) {
minHandleX = 0;
maxHandleX = _width - handle_mc._width;
minHandleY = 0;
maxHandleY = _height - handle_mc._height;
if (vertical) {
dragLimit = _height - handle_mc._height;
} else {
dragLimit = _width - handle_mc._width;
}
} else if (vertical) {
dragLimit = maxHandleY;
} else {
dragLimit = maxHandleX;
}
}
function setProgress(fraction) {
fraction = Math.min(Math.max(fraction, 0), 1);
if (!isDragged) {
if (vertical) {
handle_mc._y = minHandleY + (fraction * (maxHandleY - minHandleY));
} else {
handle_mc._x = minHandleX + (fraction * (maxHandleX - minHandleX));
}
}
}
function enable() {
enabled = true;
handle_mc.enabled = true;
}
function disable() {
enabled = false;
handle_mc.enabled = false;
}
function onLoad() {
var backRef = this;
handle_mc.onPress = function () {
backRef.startDrag();
};
handle_mc.onRelease = function () {
backRef.stopDrag();
};
handle_mc.onReleaseOutside = function () {
backRef.stopDrag();
};
}
function startDrag() {
isDragged = true;
if (autoSize) {
if (vertical) {
handle_mc.startDrag(false, 0, 0, 0, dragLimit);
} else {
handle_mc.startDrag(false, 0, 0, dragLimit, 0);
}
} else {
handle_mc.startDrag(false, minHandleX, minHandleY, maxHandleX, maxHandleY);
}
onMouseMove = function () {
var _local2 = this.getDragLimit();
var _local3;
if (this.vertical) {
if (this.handle_mc._y > _local2) {
this.handle_mc._y = _local2;
}
_local3 = (this.handle_mc._y - this.minHandleY) / (this.dragLimit - this.minHandleY);
} else {
if (this.handle_mc._x > _local2) {
this.handle_mc._x = _local2;
}
_local3 = (this.handle_mc._x - this.minHandleX) / (this.dragLimit - this.minHandleX);
}
this.onDrag(_local3);
};
}
function stopDrag() {
isDragged = false;
handle_mc.stopDrag();
delete onMouseMove;
onDragRelease();
}
function getDragLimit() {
return(dragLimit);
}
var isDragged = false;
var enabled = true;
var vertical = false;
var autoSize = true;
}
Symbol 635 MovieClip [__Packages.name.robinson.grant.ui.CheckBox] Frame 0
class name.robinson.grant.ui.CheckBox extends MovieClip
{
var selected, stop, gotoAndStop, _visible, onSelect, selected_mc, deselected_mc, onDeselect, onReleaseAction, onRollOverAction, onRollOutAction;
function CheckBox () {
super();
if (selected) {
select();
} else {
deselect();
}
(stop());// not popped
}
function isChecked() {
return(selected);
}
function disable() {
(gotoAndStop("disabled"));// not popped
enabled = false;
}
function enable() {
(gotoAndStop("up"));// not popped
enabled = true;
}
function show() {
_visible = true;
}
function hide() {
_visible = false;
}
function select() {
onSelect();
selected = true;
selected_mc._visible = true;
deselected_mc._visible = false;
}
function deselect() {
onDeselect();
selected = false;
selected_mc._visible = false;
deselected_mc._visible = true;
}
function onRelease() {
(gotoAndStop("over"));// not popped
toggleSelect();
onReleaseAction();
}
function onPress() {
(gotoAndStop("down"));// not popped
}
function onRollOver() {
(gotoAndStop("over"));// not popped
onRollOverAction();
}
function onRollOut() {
(gotoAndStop("up"));// not popped
onRollOutAction();
}
function onDragOut() {
onRollOut();
}
function onReleaseOutside() {
onRollOut();
}
function toggleSelect() {
if (selected) {
deselect();
} else {
select();
}
}
var tabEnabled = true;
var enabled = true;
}
Symbol 589 MovieClip [Slider (vertical)] Frame 1
#initclip 52
Object.registerClass("Slider (vertical)", name.robinson.grant.ui.Slider);
#endinitclip
Instance of Symbol 589 MovieClip [Slider (vertical)] "text_slider" in Symbol 590 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
vertical = true;
}
Symbol 594 MovieClip [LogWindow] Frame 1
#initclip 51
Object.registerClass("LogWindow", name.robinson.grant.ui.LogWindow);
#endinitclip
Symbol 601 MovieClip [audio_btn] Frame 1
#initclip 53
Object.registerClass("audio_btn", name.robinson.grant.ui.CheckBox);
#endinitclip