Section 1
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 2
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 3
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
public var isPlaying:Boolean;// = false
public var obj:Object;// = null
public var prop:String;// = ""
public var func:Function;
public var begin:Number;// = NAN
public var change:Number;// = NAN
public var useSeconds:Boolean;// = false
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var looping:Boolean;// = false
private var _duration:Number;// = NAN
private var _time:Number;// = NAN
private var _fps:Number;// = NAN
private var _position:Number;// = NAN
private var _startTime:Number;// = NAN
private var _intervalID:uint;// = 0
private var _finish:Number;// = NAN
private var _timer:Timer;// = null
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function get time():Number{
return (this._time);
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get FPS():Number{
return (this._fps);
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
}
}//package fl.transitions
Section 4
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_RESUME:String = "motionResume";
public static const MOTION_LOOP:String = "motionLoop";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 5
//bg_14 (LB_vanilla_fla.bg_14)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class bg_14 extends MovieClip {
public function bg_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 6
//btnBPause_12 (LB_vanilla_fla.btnBPause_12)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class btnBPause_12 extends MovieClip {
public function btnBPause_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 7
//btnEight_11 (LB_vanilla_fla.btnEight_11)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class btnEight_11 extends MovieClip {
public function btnEight_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 8
//btnFour_10 (LB_vanilla_fla.btnFour_10)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class btnFour_10 extends MovieClip {
public function btnFour_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 9
//btnIcon_3 (LB_vanilla_fla.btnIcon_3)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class btnIcon_3 extends MovieClip {
public function btnIcon_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 10
//btnOne_8 (LB_vanilla_fla.btnOne_8)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class btnOne_8 extends MovieClip {
public function btnOne_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 11
//btnTwo_9 (LB_vanilla_fla.btnTwo_9)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class btnTwo_9 extends MovieClip {
public function btnTwo_9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 12
//hang0w_36 (LB_vanilla_fla.hang0w_36)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class hang0w_36 extends MovieClip {
public function hang0w_36(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package LB_vanilla_fla
Section 13
//hang1w_48 (LB_vanilla_fla.hang1w_48)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class hang1w_48 extends MovieClip {
public function hang1w_48(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package LB_vanilla_fla
Section 14
//MainTimeline (LB_vanilla_fla.MainTimeline)
package LB_vanilla_fla {
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var star0:MovieClip;
public var star1:MovieClip;
public var timerBarBrooke:MovieClip;
public var txtPremium:TextField;
public var btnBrookePrev:MovieClip;
public var sprDmg:MovieClip;
public var star2:MovieClip;
public var barLexi:MovieClip;
public var btnBrookeNext:MovieClip;
public var bg_Waves:MovieClip;
public var star3:MovieClip;
public var timerBarLexi:MovieClip;
public var wndSettings:MovieClip;
public var tickBox3:MovieClip;
public var w1:MovieClip;
public var star4:MovieClip;
public var tickBox2:MovieClip;
public var btn1a:MovieClip;
public var btnIntroStart:introStartButton;
public var w2:MovieClip;
public var wndPause:MovieClip;
public var tickBox1:MovieClip;
public var btn0a:MovieClip;
public var w3:MovieClip;
public var barBrooke:MovieClip;
public var tickBox0:MovieClip;
public var w4:MovieClip;
public var sprBrookeExpression:MovieClip;
public var sprHeal:MovieClip;
public var star7:MovieClip;
public var btn0:MovieClip;
public var btnLexiPrev:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var w5:MovieClip;
public var sprLexiExpression:MovieClip;
public var star8:MovieClip;
public var btn1:MovieClip;
public var w6:MovieClip;
public var star9:MovieClip;
public var btn2:MovieClip;
public var bg:MovieClip;
public var w7:MovieClip;
public var sprChars:MovieClip;
public var turnsLexi:TextField;
public var sprMulti:MovieClip;
public var btn3:MovieClip;
public var w8:MovieClip;
public var btn4:MovieClip;
public var blackFade:MovieClip;
public var sprRedGlow:MovieClip;
public var btnLexiNext:MovieClip;
public var w10:MovieClip;
public var w9:MovieClip;
public var uiTop:MovieClip;
public var turnsBrooke:TextField;
public var wndShieldPremium:MovieClip;
public var btn7:MovieClip;
public var btn8:MovieClip;
public var btn9:MovieClip;
public var btnBegin:MovieClip;
public var bPremium;
public var bDebug;
public var iWedgieDurationMultiplier;
public var iOrangeDurationMultiplier;
public var iBonusDurationMultiplier;
public var iLexiSig;
public var iBrookeSig;
public var arrPlayerControlled:Array;
public var movesArray:Array;
public var arrSignature:Array;
public var arrBlueInUse:Array;
public var iIllegalMove;
public var bGameOver;
public var iMultiplier;
public var iPrevMultiplier;
public var iHeal;
public var iDmg;
public var iStars;
public var iAccumulatedDmg;
public var iFreeActions;
public var arrPowerUps:Array;
public var arrEndurance:Array;
public var yelOraRedState;
public var bSuperComboAI;
public var iFrenzy;
public var arrPainLevel:Array;
public var myDate:Date;
public var iDag;
public var iLatestWedgie;
public var iCurrentPlayer;
public var bControlsLocked;
public var bAnimationOngoing;
public var iCountdown;
public var iAniCountdown;
public var arrAnimationStack:Array;
public var arrAnimationVariation:Array;
public var arrMultiplierQueue:Array;
public var arrHealQueue:Array;
public var arrWedgieUsed:Array;
public var arrDmgQueue:Array;
public var arrStarQueue:Array;
public var iAniCurrent;
public var iAniVariation;
public var tweenHeal:Tween;
public var tweenDmg:Tween;
public var tweenMulti:Tween;
public var tweenBrutal:Tween;
public var myInterval:uint;
public var myInterval2:uint;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
loader_mc.scaleX = _local4;
loaded_txt.text = (("Loading... " + Math.round((_local4 * 100))) + "%");
}
public function onComplete(_arg1:Event):void{
loaded_txt.text = "Finished loading.";
var _local2:* = this.loaderInfo.url;
var _local3:* = false;
if (_local2.search("file:") != -1){
_local3 = true;
};
if (_local2.search("deviantart.net") != -1){
_local3 = true;
};
if (_local3 == true){
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
};
}
public function startGame(_arg1:MouseEvent):void{
btnIntroStart.removeEventListener(MouseEvent.CLICK, startGame);
gotoAndStop(2);
}
public function mouseSelectionScreen(_arg1:MouseEvent):void{
var _local2:* = 0;
if ((((_arg1.target.name == "btnBrookePrev")) && ((btnBrookePrev.alpha == 1)))){
_local2 = btn0a.currentFrame;
_local2--;
if (_local2 < 5){
_local2 = 17;
};
btn0a.gotoAndStop(_local2);
} else {
if ((((_arg1.target.name == "btnBrookeNext")) && ((btnBrookeNext.alpha == 1)))){
_local2 = btn0a.currentFrame;
_local2++;
if (_local2 > 17){
_local2 = 5;
};
btn0a.gotoAndStop(_local2);
} else {
if ((((_arg1.target.name == "btnLexiPrev")) && ((btnLexiPrev.alpha == 1)))){
_local2 = btn1a.currentFrame;
_local2--;
if (_local2 < 5){
_local2 = 17;
};
btn1a.gotoAndStop(_local2);
} else {
if ((((_arg1.target.name == "btnLexiNext")) && ((btnLexiNext.alpha == 1)))){
_local2 = btn1a.currentFrame;
_local2++;
if (_local2 > 17){
_local2 = 5;
};
btn1a.gotoAndStop(_local2);
} else {
if ((((_arg1.target.name == "tickBox0")) && ((tickBox0.alpha == 1)))){
selectTickBox(0, tickBox0);
} else {
if (_arg1.target.name == "tickBox1"){
selectTickBox(1, tickBox1);
} else {
if (_arg1.target.name == "tickBox2"){
selectTickBox(2, tickBox2);
} else {
if ((((_arg1.target.name == "tickBox3")) && ((tickBox3.alpha == 1)))){
selectTickBox(3, tickBox3);
} else {
if (_arg1.target.name == "btnBegin"){
stage.removeEventListener(MouseEvent.CLICK, mouseSelectionScreen);
if (btn1a.currentFrame != 17){
iLexiSig = btn1a.currentFrame;
};
if (btn0a.currentFrame != 17){
iBrookeSig = btn0a.currentFrame;
};
gotoAndStop(3);
};
};
};
};
};
};
};
};
};
}
public function selectTickBox(_arg1, _arg2):void{
tickBox0.gotoAndStop(1);
tickBox1.gotoAndStop(1);
tickBox2.gotoAndStop(1);
tickBox3.gotoAndStop(1);
_arg2.gotoAndStop(2);
if (_arg1 == 0){
btn1a.gotoAndStop(17);
btnLexiPrev.alpha = 0.2;
btnLexiNext.alpha = 0.2;
btn0a.gotoAndStop(17);
btnBrookePrev.alpha = 0.2;
btnBrookeNext.alpha = 0.2;
arrPlayerControlled[0] = false;
arrPlayerControlled[1] = false;
} else {
if (_arg1 == 1){
btnLexiPrev.alpha = 1;
btnLexiNext.alpha = 1;
btn0a.gotoAndStop(17);
btnBrookePrev.alpha = 0.2;
btnBrookeNext.alpha = 0.2;
arrPlayerControlled[0] = true;
arrPlayerControlled[1] = false;
} else {
if (_arg1 == 2){
btn1a.gotoAndStop(17);
btnLexiPrev.alpha = 0.2;
btnLexiNext.alpha = 0.2;
btnBrookePrev.alpha = 1;
btnBrookeNext.alpha = 1;
arrPlayerControlled[0] = false;
arrPlayerControlled[1] = true;
} else {
if (_arg1 == 3){
btnLexiPrev.alpha = 1;
btnLexiNext.alpha = 1;
btnBrookePrev.alpha = 1;
btnBrookeNext.alpha = 1;
arrPlayerControlled[0] = true;
arrPlayerControlled[1] = true;
};
};
};
};
}
public function setMultipliers():void{
wndSettings.btnW1.gotoAndStop(1);
wndSettings.btnW2.gotoAndStop(1);
wndSettings.btnW4.gotoAndStop(1);
wndSettings.btnW8.gotoAndStop(1);
if (iWedgieDurationMultiplier == 1){
wndSettings.btnW1.gotoAndStop(2);
} else {
if (iWedgieDurationMultiplier == 2){
wndSettings.btnW2.gotoAndStop(2);
} else {
if (iWedgieDurationMultiplier == 4){
wndSettings.btnW4.gotoAndStop(2);
} else {
if (iWedgieDurationMultiplier == 8){
wndSettings.btnW8.gotoAndStop(2);
};
};
};
};
wndSettings.btnO1.gotoAndStop(1);
wndSettings.btnO2.gotoAndStop(1);
wndSettings.btnO4.gotoAndStop(1);
wndSettings.btnO8.gotoAndStop(1);
if (iOrangeDurationMultiplier == 1){
wndSettings.btnO1.gotoAndStop(2);
} else {
if (iOrangeDurationMultiplier == 2){
wndSettings.btnO2.gotoAndStop(2);
} else {
if (iOrangeDurationMultiplier == 4){
wndSettings.btnO4.gotoAndStop(2);
} else {
if (iOrangeDurationMultiplier == 8){
wndSettings.btnO8.gotoAndStop(2);
};
};
};
};
wndSettings.btnB1.gotoAndStop(1);
wndSettings.btnB2.gotoAndStop(1);
wndSettings.btnB4.gotoAndStop(1);
wndSettings.btnB8.gotoAndStop(1);
wndSettings.btnBpause.gotoAndStop(1);
if (iBonusDurationMultiplier == 1){
wndSettings.btnB1.gotoAndStop(2);
} else {
if (iBonusDurationMultiplier == 2){
wndSettings.btnB2.gotoAndStop(2);
} else {
if (iBonusDurationMultiplier == 4){
wndSettings.btnB4.gotoAndStop(2);
} else {
if (iBonusDurationMultiplier == 8){
wndSettings.btnB8.gotoAndStop(2);
} else {
if (iBonusDurationMultiplier == 10){
wndSettings.btnBpause.gotoAndStop(2);
};
};
};
};
};
}
public function keyPressed(_arg1:KeyboardEvent):void{
if (iFreeActions > 0){
if ((((((_arg1.keyCode == 49)) && ((iCurrentPlayer == 0)))) && ((arrPlayerControlled[0] == true)))){
key1();
} else {
if ((((((_arg1.keyCode == 48)) && ((iCurrentPlayer == 1)))) && ((arrPlayerControlled[1] == true)))){
key0();
} else {
if ((((((_arg1.keyCode == 50)) && ((iCurrentPlayer == 0)))) && ((arrPlayerControlled[0] == true)))){
key2();
} else {
if ((((((_arg1.keyCode == 51)) && ((iCurrentPlayer == 0)))) && ((arrPlayerControlled[0] == true)))){
key3();
} else {
if ((((((_arg1.keyCode == 52)) && ((iCurrentPlayer == 0)))) && ((arrPlayerControlled[0] == true)))){
key4();
} else {
if ((((((_arg1.keyCode == 55)) && ((iCurrentPlayer == 1)))) && ((arrPlayerControlled[1] == true)))){
key7();
} else {
if ((((((_arg1.keyCode == 56)) && ((iCurrentPlayer == 1)))) && ((arrPlayerControlled[1] == true)))){
key8();
} else {
if ((((((_arg1.keyCode == 57)) && ((iCurrentPlayer == 1)))) && ((arrPlayerControlled[1] == true)))){
key9();
} else {
if ((((bGameOver == true)) && ((_arg1.keyCode == 78)))){
returnToStart();
} else {
if ((((bDebug == true)) && ((_arg1.keyCode == 221)))){
arrPowerUps[iCurrentPlayer][0] = (arrPowerUps[iCurrentPlayer][0] + 1);
arrPowerUps[iCurrentPlayer][1] = (arrPowerUps[iCurrentPlayer][1] + 1);
arrPowerUps[iCurrentPlayer][2] = (arrPowerUps[iCurrentPlayer][2] + 1);
arrPowerUps[iCurrentPlayer][3] = (arrPowerUps[iCurrentPlayer][3] + 1);
if (arrPowerUps[iCurrentPlayer][0] > 2){
arrPowerUps[iCurrentPlayer][0] = 2;
};
if (arrPowerUps[iCurrentPlayer][1] > 2){
arrPowerUps[iCurrentPlayer][1] = 2;
};
if (arrPowerUps[iCurrentPlayer][2] > 2){
arrPowerUps[iCurrentPlayer][2] = 2;
};
if (arrPowerUps[iCurrentPlayer][3] > 2){
arrPowerUps[iCurrentPlayer][3] = 2;
};
updateButtonPowerUps();
};
};
};
};
};
};
};
};
};
};
} else {
if ((((_arg1.keyCode == 32)) && ((iAniCountdown > 900)))){
iAniCountdown = 1;
wndPause.alpha = 0;
trace(sprChars.currentFrame);
};
};
}
public function key1():void{
updateStats(0, true, btn1.currentFrame, arrPowerUps[0][3]);
arrPowerUps[0][3] = 0;
updateButtonPowerUps();
}
public function key0():void{
updateStats(1, true, btn0.currentFrame, arrPowerUps[1][3]);
arrPowerUps[1][3] = 0;
updateButtonPowerUps();
}
public function key2():void{
updateStats(0, false, btn2.currentFrame, arrPowerUps[0][0]);
arrPowerUps[0][0] = 0;
updateButtonPowerUps();
replaceButton(0, btn2);
}
public function key3():void{
updateStats(0, false, btn3.currentFrame, arrPowerUps[0][1]);
arrPowerUps[0][1] = 0;
updateButtonPowerUps();
replaceButton(0, btn3);
}
public function key4():void{
updateStats(0, false, btn4.currentFrame, arrPowerUps[0][2]);
arrPowerUps[0][2] = 0;
updateButtonPowerUps();
replaceButton(0, btn4);
}
public function key7():void{
updateStats(1, false, btn7.currentFrame, arrPowerUps[1][0]);
arrPowerUps[1][0] = 0;
updateButtonPowerUps();
replaceButton(1, btn7);
}
public function key8():void{
updateStats(1, false, btn8.currentFrame, arrPowerUps[1][1]);
arrPowerUps[1][1] = 0;
updateButtonPowerUps();
replaceButton(1, btn8);
}
public function key9():void{
updateStats(1, false, btn9.currentFrame, arrPowerUps[1][2]);
arrPowerUps[1][2] = 0;
updateButtonPowerUps();
replaceButton(1, btn9);
}
public function myTimer():void{
if ((((bGameOver == false)) || ((iFrenzy > 0)))){
if ((((((((bGameOver == false)) && ((arrAnimationStack.length == 0)))) && ((iCountdown == 0)))) && ((iAniCountdown == 0)))){
resetAfterTurn();
startTurn();
};
if ((((arrAnimationStack.length > 0)) && ((iAniCountdown == 0)))){
activateAnimation();
};
if ((((arrPainLevel[0] > 0)) && ((sprChars.currentFrame == 1)))){
arrPainLevel[0] = (arrPainLevel[0] - 10);
if (arrPainLevel[0] <= 0){
arrPainLevel[0] = 0;
updateIdleExpressions(true);
};
};
if ((((arrPainLevel[1] > 0)) && ((sprChars.currentFrame == 1)))){
arrPainLevel[1] = (arrPainLevel[1] - 10);
if (arrPainLevel[1] <= 0){
arrPainLevel[1] = 0;
updateIdleExpressions(true);
};
};
};
}
public function timerTick():void{
if (bGameOver == false){
if (iCountdown > 0){
iCountdown--;
if (iCountdown == 0){
turnsLexi.text = "";
turnsBrooke.text = "";
};
if (iCurrentPlayer == 0){
timerBarLexi.scaleX = (iCountdown / 100);
} else {
timerBarBrooke.scaleX = (iCountdown / 100);
};
if (arrPlayerControlled[iCurrentPlayer] == false){
if ((((((((((iCountdown == 90)) || ((iCountdown == 70)))) || ((iCountdown == 50)))) || ((iCountdown == 30)))) || ((iCountdown == 10)))){
if (iFreeActions > 0){
doAI();
};
};
};
};
if ((((((iFreeActions == 0)) && ((bPremium == true)))) && ((iCountdown > 10)))){
iCountdown = 10;
};
};
if ((((bGameOver == false)) || ((iFrenzy > 0)))){
if (iAniCountdown > 900){
} else {
if (iAniCountdown > 0){
iAniCountdown--;
if ((((iAniCountdown == 0)) && ((arrAnimationStack.length == 0)))){
doIdle();
};
};
};
};
}
public function replaceButton(_arg1, _arg2):void{
clearButton(_arg1, _arg2);
setButton(_arg1, _arg2);
if (_arg2.currentFrame == iIllegalMove){
while (_arg2.currentFrame == iIllegalMove) {
clearButton(_arg1, _arg2);
setButton(_arg1, _arg2);
};
};
}
public function setButton(_arg1, _arg2):void{
var _local3:*;
if (arrBlueInUse[_arg1] == false){
_local3 = movesArray[_arg1].splice(Math.floor((Math.random() * movesArray[_arg1].length)), 1);
if (_local3 < 5){
arrBlueInUse[_arg1] = true;
};
} else {
_local3 = movesArray[_arg1].splice((4 + Math.floor((Math.random() * (movesArray[_arg1].length - 4)))), 1);
};
_arg2.gotoAndStop(_local3);
}
public function clearButton(_arg1, _arg2):void{
iIllegalMove = _arg2.currentFrame;
if (_arg2.currentFrame < 5){
arrBlueInUse[_arg1] = false;
movesArray[_arg1].unshift(_arg2.currentFrame);
} else {
movesArray[_arg1].push(_arg2.currentFrame);
};
}
public function doMultiplierTween():void{
tweenMulti.stop();
sprMulti.alpha = 0;
sprMulti.gotoAndStop(iMultiplier);
tweenMulti = new Tween(sprMulti, "alpha", Regular.easeIn, 1, 0, 2, true);
tweenMulti.FPS = 40;
}
public function updateStats(_arg1, _arg2, _arg3, _arg4):void{
var _local5:* = 0;
var _local6:* = 0;
var _local7:* = 0;
if (_arg2 == true){
if ((((_arg3 >= 5)) && ((_arg3 <= 7)))){
iFreeActions--;
_local5 = (_local5 + 2);
_local5 = (_local5 + _arg4);
validateYelOraRed("yel");
} else {
if ((((_arg3 >= 8)) && ((_arg3 <= 11)))){
iFreeActions--;
_local6 = (_local6 + 40);
_local6 = (_local6 + (20 * _arg4));
_local7 = (_local7 + 20);
_local7 = (_local7 + (10 * _arg4));
validateYelOraRed("ora");
} else {
if ((((_arg3 >= 12)) && ((_arg3 <= 16)))){
iFreeActions--;
_local7 = (_local7 + 60);
_local7 = (_local7 + (30 * _arg4));
validateYelOraRed("red");
};
};
};
} else {
if ((((_arg3 >= 5)) && ((_arg3 <= 7)))){
iFreeActions--;
_local5 = (_local5 + 1);
_local5 = (_local5 + _arg4);
validateYelOraRed("yel");
} else {
if ((((_arg3 >= 8)) && ((_arg3 <= 11)))){
iFreeActions--;
_local6 = (_local6 + 20);
_local6 = (_local6 + (10 * _arg4));
_local7 = (_local7 + 20);
_local7 = (_local7 + (10 * _arg4));
validateYelOraRed("ora");
} else {
if ((((_arg3 >= 12)) && ((_arg3 <= 16)))){
iFreeActions--;
_local7 = (_local7 + 40);
_local7 = (_local7 + (20 * _arg4));
validateYelOraRed("red");
} else {
if ((((_arg3 == 2)) || ((_arg3 == 3)))){
arrPowerUps[_arg1][0] = (arrPowerUps[_arg1][0] + (_arg3 - 1));
arrPowerUps[_arg1][1] = (arrPowerUps[_arg1][1] + (_arg3 - 1));
arrPowerUps[_arg1][2] = (arrPowerUps[_arg1][2] + (_arg3 - 1));
arrPowerUps[_arg1][3] = (arrPowerUps[_arg1][3] + 1);
if (arrPowerUps[_arg1][0] > 2){
arrPowerUps[_arg1][0] = 2;
};
if (arrPowerUps[_arg1][1] > 2){
arrPowerUps[_arg1][1] = 2;
};
if (arrPowerUps[_arg1][2] > 2){
arrPowerUps[_arg1][2] = 2;
};
if (arrPowerUps[_arg1][3] > 1){
arrPowerUps[_arg1][3] = 1;
};
updateButtonPowerUps();
validateYelOraRed("blu");
} else {
if (_arg3 == 1){
iFreeActions = (iFreeActions + 1);
iFreeActions = (iFreeActions + _arg4);
} else {
if (_arg3 == 4){
iFreeActions = (iFreeActions + 2);
iFreeActions = (iFreeActions + _arg4);
};
};
};
};
};
};
};
if (iFreeActions == 0){
if (iCurrentPlayer == 0){
timerBarLexi.alpha = 0.5;
} else {
timerBarBrooke.alpha = 0.5;
};
};
if (_arg3 > 11){
arrWedgieUsed[iCurrentPlayer][(_arg3 - 12)] = 1;
updateWedgieIndicators();
iLatestWedgie = _arg3;
};
if (_arg3 == 2){
addToQueue(_arg3, 1, _local5, _local6, _local7, _arg4);
} else {
if (_arg3 == 3){
addToQueue(_arg3, 2, _local5, _local6, _local7, _arg4);
} else {
addToQueue(_arg3, _arg4, _local5, _local6, _local7, _arg4);
};
};
if ((((bPremium == true)) || ((Math.floor((Math.random() * 100)) < 20)))){
if (yelOraRedState == 3){
if (iLatestWedgie == 12){
addToQueue(42, 1, 1, 0, 0, 1);
} else {
if (iLatestWedgie == 13){
addToQueue(43, 1, 1, 0, 0, 1);
} else {
if (iLatestWedgie == 14){
addToQueue(46, 1, 1, 0, 0, 1);
} else {
if (iLatestWedgie == 15){
addToQueue(45, 1, 1, 0, 0, 1);
} else {
if (iLatestWedgie == 16){
addToQueue(44, 1, 1, 0, 0, 1);
};
};
};
};
};
};
};
}
public function updateButtonPowerUps():void{
star1.gotoAndStop((arrPowerUps[0][3] + 1));
star2.gotoAndStop((arrPowerUps[0][0] + 1));
star3.gotoAndStop((arrPowerUps[0][1] + 1));
star4.gotoAndStop((arrPowerUps[0][2] + 1));
star7.gotoAndStop((arrPowerUps[1][0] + 1));
star8.gotoAndStop((arrPowerUps[1][1] + 1));
star9.gotoAndStop((arrPowerUps[1][2] + 1));
star0.gotoAndStop((arrPowerUps[1][3] + 1));
updateTurnsLeft();
}
public function updateTurnsLeft():void{
if ((((iCountdown > 0)) && ((bPremium == true)))){
if (iCurrentPlayer == 0){
turnsLexi.text = iFreeActions;
turnsBrooke.text = "";
} else {
turnsLexi.text = "";
turnsBrooke.text = iFreeActions;
};
};
}
public function validateYelOraRed(_arg1):void{
if ((((yelOraRedState == 0)) && ((_arg1 == "yel")))){
yelOraRedState++;
if (iFreeActions == 0){
iFreeActions = 1;
};
} else {
if ((((yelOraRedState == 1)) && ((_arg1 == "ora")))){
yelOraRedState++;
if (iFreeActions == 0){
iFreeActions = 1;
};
} else {
if ((((yelOraRedState == 2)) && ((_arg1 == "red")))){
yelOraRedState++;
if (iFreeActions == 0){
iFreeActions = 1;
};
iFreeActions = 0;
} else {
if (yelOraRedState == 3){
if (iFreeActions > 0){
iFreeActions = 0;
};
} else {
yelOraRedState = 0;
};
};
};
};
}
public function resetAfterTurn():void{
var _local1:* = ((3 - (iCurrentPlayer + 1)) - 1);
iMultiplier = 1;
iPrevMultiplier = 1;
iHeal = 0;
iDmg = 0;
iAccumulatedDmg = 0;
iFreeActions = 1;
yelOraRedState = 0;
iCurrentPlayer = _local1;
bSuperComboAI = false;
updateTurnsLeft();
}
public function startTurn():void{
if ((((arrEndurance[0] > 0)) && ((arrEndurance[1] > 0)))){
if (iCurrentPlayer == 0){
timerBarLexi.scaleX = 1;
} else {
timerBarBrooke.scaleX = 1;
};
iCountdown = 100;
} else {
bGameOver = true;
if (arrEndurance[0] == 0){
doEndGame();
} else {
doEndGame();
};
};
if (arrPlayerControlled[0] == true){
timerBarLexi.alpha = 1;
};
if (arrPlayerControlled[1] == true){
timerBarBrooke.alpha = 1;
};
}
public function doAI():void{
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:Array;
var _local1:* = false;
var _local2:* = [];
var _local3:* = 0;
if (iCurrentPlayer == 0){
_local4 = btn1;
_local5 = btn2;
_local6 = btn3;
_local7 = btn4;
} else {
_local4 = btn0;
_local5 = btn9;
_local6 = btn8;
_local7 = btn7;
};
if ((((_local1 == false)) && ((yelOraRedState == 0)))){
if (_local4.currentFrame <= 4){
_local2.push(1);
};
if (_local5.currentFrame <= 4){
_local2.push(2);
};
if (_local6.currentFrame <= 4){
_local2.push(3);
};
if (_local7.currentFrame <= 4){
_local2.push(4);
};
if (_local2.length > 0){
_local3 = _local2[Math.floor((Math.random() * _local2.length))];
_local1 = true;
};
};
if ((((_local1 == false)) && ((yelOraRedState == 0)))){
_local8 = [0, 0, 0];
if ((((_local4.currentFrame >= 5)) && ((_local4.currentFrame <= 7)))){
_local8[0] = 1;
};
if ((((_local5.currentFrame >= 5)) && ((_local5.currentFrame <= 7)))){
_local8[0] = 1;
};
if ((((_local6.currentFrame >= 5)) && ((_local6.currentFrame <= 7)))){
_local8[0] = 1;
};
if ((((_local7.currentFrame >= 5)) && ((_local7.currentFrame <= 7)))){
_local8[0] = 1;
};
if ((((_local4.currentFrame >= 8)) && ((_local4.currentFrame <= 11)))){
_local8[1] = 1;
};
if ((((_local5.currentFrame >= 8)) && ((_local5.currentFrame <= 11)))){
_local8[1] = 1;
};
if ((((_local6.currentFrame >= 8)) && ((_local6.currentFrame <= 11)))){
_local8[1] = 1;
};
if ((((_local7.currentFrame >= 8)) && ((_local7.currentFrame <= 11)))){
_local8[1] = 1;
};
if (_local4.currentFrame >= 12){
_local8[2] = 1;
};
if (_local5.currentFrame >= 12){
_local8[2] = 1;
};
if (_local6.currentFrame >= 12){
_local8[2] = 1;
};
if (_local7.currentFrame >= 12){
_local8[2] = 1;
};
if (((_local8[0] + _local8[1]) + _local8[2]) == 3){
bSuperComboAI = true;
};
};
if ((((((_local1 == false)) && ((bSuperComboAI == true)))) && ((yelOraRedState == 0)))){
if ((((_local4.currentFrame >= 5)) && ((_local4.currentFrame <= 7)))){
_local2.push(1);
};
if ((((_local5.currentFrame >= 5)) && ((_local5.currentFrame <= 7)))){
_local2.push(2);
};
if ((((_local6.currentFrame >= 5)) && ((_local6.currentFrame <= 7)))){
_local2.push(3);
};
if ((((_local7.currentFrame >= 5)) && ((_local7.currentFrame <= 7)))){
_local2.push(4);
};
if (_local2.length > 0){
_local3 = _local2[Math.floor((Math.random() * _local2.length))];
_local1 = true;
};
};
if ((((((_local1 == false)) && ((bSuperComboAI == true)))) && ((yelOraRedState == 1)))){
if ((((_local4.currentFrame >= 8)) && ((_local4.currentFrame <= 11)))){
_local2.push(1);
};
if ((((_local5.currentFrame >= 8)) && ((_local5.currentFrame <= 11)))){
_local2.push(2);
};
if ((((_local6.currentFrame >= 8)) && ((_local6.currentFrame <= 11)))){
_local2.push(3);
};
if ((((_local7.currentFrame >= 8)) && ((_local7.currentFrame <= 11)))){
_local2.push(4);
};
if (_local2.length > 0){
_local3 = _local2[Math.floor((Math.random() * _local2.length))];
_local1 = true;
};
};
if ((((((_local1 == false)) && ((bSuperComboAI == true)))) && ((yelOraRedState == 2)))){
if (_local4.currentFrame >= 12){
_local2.push(1);
};
if (_local5.currentFrame >= 12){
_local2.push(2);
};
if (_local6.currentFrame >= 12){
_local2.push(3);
};
if (_local7.currentFrame >= 12){
_local2.push(4);
};
if (_local2.length > 0){
_local3 = _local2[Math.floor((Math.random() * _local2.length))];
_local1 = true;
};
};
if ((((_local1 == false)) && ((yelOraRedState == 0)))){
if ((((_local4.currentFrame >= 5)) && ((_local4.currentFrame <= 7)))){
_local2.push(1);
};
if ((((_local5.currentFrame >= 5)) && ((_local5.currentFrame <= 7)))){
_local2.push(2);
};
if ((((_local6.currentFrame >= 5)) && ((_local6.currentFrame <= 7)))){
_local2.push(3);
};
if ((((_local7.currentFrame >= 5)) && ((_local7.currentFrame <= 7)))){
_local2.push(4);
};
if (_local2.length > 0){
_local3 = _local2[Math.floor((Math.random() * _local2.length))];
_local1 = true;
};
};
if (_local1 == false){
if (_local4.currentFrame >= 8){
_local2.push(1);
};
if (_local5.currentFrame >= 8){
_local2.push(2);
};
if (_local6.currentFrame >= 8){
_local2.push(3);
};
if (_local7.currentFrame >= 8){
_local2.push(4);
};
if (_local2.length > 0){
_local3 = _local2[Math.floor((Math.random() * _local2.length))];
_local1 = true;
};
};
if (_local1 == false){
_local3 = Math.ceil((Math.random() * 4));
_local1 = true;
};
if (_local1 == true){
if (iCurrentPlayer == 0){
if (_local3 == 1){
key1();
} else {
if (_local3 == 2){
key2();
} else {
if (_local3 == 3){
key3();
} else {
if (_local3 == 4){
key4();
};
};
};
};
} else {
if (_local3 == 1){
key0();
} else {
if (_local3 == 2){
key9();
} else {
if (_local3 == 3){
key8();
} else {
if (_local3 == 4){
key7();
};
};
};
};
};
};
}
public function applyHealingDamage():void{
var _local1:* = ((3 - (iCurrentPlayer + 1)) - 1);
arrEndurance[iCurrentPlayer] = (arrEndurance[iCurrentPlayer] + (iMultiplier * iHeal));
if (arrEndurance[iCurrentPlayer] > 1000){
arrEndurance[iCurrentPlayer] = 1000;
};
arrEndurance[_local1] = (arrEndurance[_local1] - (iMultiplier * iDmg));
if (arrEndurance[_local1] < 0){
arrEndurance[_local1] = 0;
};
iAccumulatedDmg = (iAccumulatedDmg + (iMultiplier * iDmg));
barLexi.scaleX = (arrEndurance[0] / 1000);
barBrooke.scaleX = (arrEndurance[1] / 1000);
if (iCurrentPlayer == 0){
sprHeal.x = (125 + Math.floor((Math.random() * 20)));
sprDmg.x = (370 + Math.floor((Math.random() * 20)));
} else {
sprHeal.x = (370 + Math.floor((Math.random() * 20)));
sprDmg.x = (125 + Math.floor((Math.random() * 20)));
};
if (iHeal > 0){
tweenHeal.stop();
sprHeal.txt.text = (iMultiplier * iHeal);
tweenHeal = new Tween(sprHeal, "y", Regular.easeIn, 150, -50, 2, true);
tweenHeal.FPS = 40;
};
if (iDmg > 0){
tweenDmg.stop();
sprDmg.txt.text = ("-" + (iMultiplier * iDmg));
tweenDmg = new Tween(sprDmg, "y", Regular.easeIn, 150, -50, 2, true);
tweenDmg.FPS = 40;
if ((iDmg * iMultiplier) > 99){
tweenBrutal.stop();
sprRedGlow.gotoAndStop(1);
tweenBrutal = new Tween(sprRedGlow, "alpha", Strong.easeIn, 1, 0, 3, true);
tweenBrutal.FPS = 40;
} else {
if (iAccumulatedDmg > 100){
tweenBrutal.stop();
sprRedGlow.gotoAndStop(2);
tweenBrutal = new Tween(sprRedGlow, "alpha", Strong.easeIn, 1, 0, 3, true);
tweenBrutal.FPS = 40;
};
};
};
arrPainLevel[_local1] = (iMultiplier * iDmg);
iHeal = 0;
iDmg = 0;
}
public function returnToStart():void{
clearUI(false);
clearInterval(myInterval);
clearInterval(myInterval2);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
gotoAndStop(2);
}
public function addToQueue(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6):void{
arrAnimationStack.push(_arg1);
arrAnimationVariation.push(_arg2);
arrMultiplierQueue.push(_arg3);
arrHealQueue.push(_arg4);
arrDmgQueue.push(_arg5);
arrStarQueue.push(_arg6);
}
public function activateAnimation():void{
if (arrAnimationStack.length > 0){
iAniCountdown = 30;
iAniCurrent = Number(arrAnimationStack.splice(0, 1));
iAniVariation = Number(arrAnimationVariation.splice(0, 1));
iMultiplier = (iMultiplier + Number(arrMultiplierQueue.splice(0, 1)));
iHeal = (iHeal + Number(arrHealQueue.splice(0, 1)));
iDmg = (iDmg + Number(arrDmgQueue.splice(0, 1)));
iStars = Number(arrStarQueue.splice(0, 1));
if (iFrenzy > 0){
iFrenzy--;
iAniCountdown = (iFrenzy * 2);
} else {
if ((((iAniCurrent == 1)) || ((iAniCurrent == 4)))){
iAniCountdown = 12;
} else {
if (iAniCurrent == 11){
iAniCountdown = (15 * iOrangeDurationMultiplier);
} else {
if (iAniCurrent == 9){
iAniCountdown = (10 * iOrangeDurationMultiplier);
} else {
if (iAniCurrent > 42){
if (iBonusDurationMultiplier < 10){
iAniCountdown = (iAniCountdown + 20);
iAniCountdown = (iAniCountdown * iBonusDurationMultiplier);
} else {
iAniCountdown = 1000;
wndPause.alpha = 1;
};
} else {
if (iAniCurrent > 11){
iAniCountdown = (iAniCountdown + (iStars * 10));
iAniCountdown = (iAniCountdown * iWedgieDurationMultiplier);
} else {
if (iAniCurrent > 3){
iAniCountdown = (iAniCountdown + (iStars * 10));
iAniCountdown = (iAniCountdown * iOrangeDurationMultiplier);
} else {
if ((((iAniCurrent == 2)) || ((iAniCurrent == 3)))){
iAniCountdown = 15;
};
};
};
};
};
};
};
};
updateIdleExpressions(false);
sprChars.gotoAndStop(((((iAniCurrent * 5) + 5) + (100 * iCurrentPlayer)) + iStars));
if ((((iMultiplier > 1)) && (!((iMultiplier == iPrevMultiplier))))){
iPrevMultiplier = iMultiplier;
doMultiplierTween();
};
if ((((iHeal > 0)) || ((iDmg > 0)))){
applyHealingDamage();
};
if ((((iAniCurrent == 2)) || ((iAniCurrent == 3)))){
tweenBrutal.stop();
sprRedGlow.gotoAndStop((3 + iCurrentPlayer));
tweenBrutal = new Tween(sprRedGlow, "alpha", Regular.easeIn, 0.75, 0, 2, true);
tweenBrutal.FPS = 40;
} else {
if ((((iAniCurrent == 39)) || ((iAniCurrent == 40)))){
clearUI(true);
};
};
};
}
public function doIdle():void{
sprChars.gotoAndStop(1);
updateIdleExpressions(true);
}
public function doEndGame():void{
var _local1:*;
var _local2:*;
iCurrentPlayer = ((3 - (iCurrentPlayer + 1)) - 1);
if (bPremium == true){
_local1 = [];
_local2 = Math.floor((Math.random() * 6));
if (_local2 == 0){
_local1 = [12, 13, 14, 15, 16, 13, 14, 12];
} else {
if (_local2 == 1){
_local1 = [14, 12, 15, 13, 14, 15, 13, 12];
} else {
if (_local2 == 2){
_local1 = [15, 13, 12, 13, 14, 16, 15, 13];
} else {
if (_local2 == 3){
_local1 = [12, 13, 12, 13, 12, 13, 14, 13];
} else {
if (_local2 == 4){
_local1 = [14, 15, 14, 12, 13, 12, 13, 15];
} else {
_local1 = [14, 16, 12, 7, 12, 13, 14, 16];
};
};
};
};
};
iFrenzy = 10;
addToQueue(_local1[0], 3, 1, 0, 40, 1);
addToQueue(_local1[1], 3, 1, 0, 40, 1);
addToQueue(_local1[2], 3, 1, 0, 40, 1);
addToQueue(_local1[3], 3, 1, 0, 40, 1);
addToQueue(_local1[4], 3, 1, 0, 40, 1);
addToQueue(_local1[5], 3, 1, 0, 40, 1);
addToQueue(_local1[6], 3, 1, 0, 40, 1);
addToQueue(_local1[7], 3, 1, 0, 40, 1);
iFrenzy = 10;
};
if (iCurrentPlayer == 0){
if ((((((((arrWedgieUsed[0][0] + arrWedgieUsed[0][1]) + arrWedgieUsed[0][2]) + arrWedgieUsed[0][3]) + arrWedgieUsed[0][4]) > 3)) && ((bPremium == true)))){
addToQueue(40, 1, 1, 0, 0, 1);
addToQueue(40, 1, 1, 0, 0, 1);
} else {
addToQueue(39, 1, 1, 0, 0, 1);
addToQueue(39, 1, 1, 0, 0, 1);
};
} else {
if ((((((((arrWedgieUsed[1][0] + arrWedgieUsed[1][1]) + arrWedgieUsed[1][2]) + arrWedgieUsed[1][3]) + arrWedgieUsed[1][4]) > 3)) && ((bPremium == true)))){
addToQueue(40, 1, 1, 0, 0, 1);
addToQueue(40, 1, 1, 0, 0, 1);
} else {
addToQueue(39, 1, 1, 0, 0, 1);
addToQueue(39, 1, 1, 0, 0, 1);
};
};
}
public function updateIdleExpressions(_arg1):void{
if (bPremium == true){
if (_arg1 == true){
if (arrPainLevel[0] > 0){
sprLexiExpression.gotoAndStop(2);
} else {
if (arrEndurance[0] < 400){
sprLexiExpression.gotoAndStop(3);
} else {
if (arrEndurance[1] < 300){
sprLexiExpression.gotoAndStop(5);
} else {
if (arrEndurance[1] < 600){
sprLexiExpression.gotoAndStop(4);
} else {
sprLexiExpression.gotoAndStop(1);
};
};
};
};
if (arrPainLevel[1] > 0){
sprBrookeExpression.gotoAndStop(2);
} else {
if (arrEndurance[1] < 400){
sprBrookeExpression.gotoAndStop(3);
} else {
if (arrEndurance[0] < 300){
sprBrookeExpression.gotoAndStop(5);
} else {
if (arrEndurance[0] < 600){
sprBrookeExpression.gotoAndStop(4);
} else {
sprBrookeExpression.gotoAndStop(1);
};
};
};
};
} else {
sprBrookeExpression.gotoAndStop(1);
sprLexiExpression.gotoAndStop(1);
};
};
}
public function updateWedgieIndicators():void{
if ((((arrPlayerControlled[0] == true)) || ((arrPlayerControlled[1] == true)))){
if (arrWedgieUsed[0][0] == 1){
w1.alpha = 0.33;
};
if (arrWedgieUsed[0][1] == 1){
w2.alpha = 0.33;
};
if (arrWedgieUsed[0][2] == 1){
w3.alpha = 0.33;
};
if (arrWedgieUsed[0][3] == 1){
w4.alpha = 0.33;
};
if (arrWedgieUsed[0][4] == 1){
w5.alpha = 0.33;
};
if (arrWedgieUsed[1][0] == 1){
w6.alpha = 0.33;
};
if (arrWedgieUsed[1][1] == 1){
w7.alpha = 0.33;
};
if (arrWedgieUsed[1][2] == 1){
w8.alpha = 0.33;
};
if (arrWedgieUsed[1][3] == 1){
w9.alpha = 0.33;
};
if (arrWedgieUsed[1][4] == 1){
w10.alpha = 0.33;
};
};
}
public function clearUI(_arg1):void{
var _local2:* = 0;
if (_arg1 == true){
_local2 = 0;
blackFade.alpha = 0;
sprMulti.y = -400;
} else {
_local2 = 1;
sprMulti.y = 69.7;
blackFade.alpha = 0.75;
};
uiTop.alpha = _local2;
btn1.alpha = _local2;
btn2.alpha = _local2;
btn3.alpha = _local2;
btn4.alpha = _local2;
btn7.alpha = _local2;
btn8.alpha = _local2;
btn9.alpha = _local2;
btn0.alpha = _local2;
star1.alpha = _local2;
star2.alpha = _local2;
star3.alpha = _local2;
star4.alpha = _local2;
star7.alpha = _local2;
star8.alpha = _local2;
star9.alpha = _local2;
star0.alpha = _local2;
w1.alpha = 0;
w2.alpha = 0;
w3.alpha = 0;
w4.alpha = 0;
w5.alpha = 0;
w6.alpha = 0;
w7.alpha = 0;
w8.alpha = 0;
w9.alpha = 0;
w10.alpha = 0;
}
function frame1(){
bPremium = false;
bDebug = false;
iWedgieDurationMultiplier = 1;
iOrangeDurationMultiplier = 1;
iBonusDurationMultiplier = 1;
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
stop();
iLexiSig = 0;
iBrookeSig = 0;
arrPlayerControlled = [true, false];
btn0a.gotoAndStop(17);
btn1a.gotoAndStop(17);
tickBox1.gotoAndStop(2);
if (bPremium == true){
} else {
wndShieldPremium.y = 167.2;
wndShieldPremium.alpha = 0.5;
};
setMultipliers();
stage.addEventListener(MouseEvent.CLICK, mouseSelectionScreen);
}
function frame3(){
stop();
movesArray = [[5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]];
arrSignature = [0, 0];
arrBlueInUse = [false, false];
iIllegalMove = 0;
bGameOver = false;
iMultiplier = 1;
iPrevMultiplier = 1;
iHeal = 0;
iDmg = 0;
iStars = 0;
iAccumulatedDmg = 0;
iFreeActions = 1;
arrPowerUps = [[0, 0, 0, 0], [0, 0, 0, 0]];
arrEndurance = [1000, 1000];
yelOraRedState = 0;
bSuperComboAI = false;
iFrenzy = 0;
arrPainLevel = [0, 0];
myDate = new Date();
iDag = myDate.day;
iLatestWedgie = 0;
iCurrentPlayer = Math.floor((Math.random() * 2));
bControlsLocked = false;
bAnimationOngoing = false;
iCountdown = 0;
iAniCountdown = 0;
arrAnimationStack = [];
arrAnimationVariation = [];
arrMultiplierQueue = [];
arrHealQueue = [];
arrWedgieUsed = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0]];
arrDmgQueue = [];
arrStarQueue = [];
iAniCurrent = 0;
iAniVariation = 0;
tweenHeal = new Tween(sprHeal, "alpha", Regular.easeIn, 1, 1, 1, true);
tweenDmg = new Tween(sprDmg, "alpha", Regular.easeIn, 1, 1, 1, true);
tweenMulti = new Tween(sprMulti, "alpha", Regular.easeIn, 0, 0, 1, true);
tweenBrutal = new Tween(sprRedGlow, "alpha", Regular.easeIn, 0, 0, 1, true);
if ((((arrPlayerControlled[0] == false)) && ((arrPlayerControlled[1] == false)))){
clearUI(true);
};
myInterval = setInterval(myTimer, 250);
myInterval2 = setInterval(timerTick, 50);
bg_Waves.gotoAndStop(1);
if ((((((myDate.date == 27)) && ((myDate.month == 6)))) && ((myDate.fullYear == 2017)))){
iDag = 3;
};
if (iDag == 0){
bg.gotoAndStop(2);
bg_Waves.gotoAndPlay(1);
bg_Waves.y = 0;
} else {
if (iDag == 1){
bg.gotoAndStop(5);
} else {
if (iDag == 2){
bg.gotoAndStop(4);
} else {
if (iDag == 3){
bg.gotoAndStop(1);
} else {
if (iDag == 4){
bg.gotoAndStop(7);
} else {
if (iDag == 5){
bg.gotoAndStop(3);
} else {
bg.gotoAndStop(6);
};
};
};
};
};
};
if (iLexiSig > 0){
arrSignature[0] = iLexiSig;
movesArray[0].splice((iLexiSig - 5), 1);
} else {
arrSignature[0] = movesArray[0].splice(Math.floor((Math.random() * movesArray[0].length)), 1);
};
if (iBrookeSig > 0){
arrSignature[1] = iBrookeSig;
movesArray[1].splice((iBrookeSig - 5), 1);
} else {
arrSignature[1] = movesArray[1].splice(Math.floor((Math.random() * movesArray[1].length)), 1);
};
movesArray[0].unshift(4);
movesArray[0].unshift(3);
movesArray[0].unshift(2);
movesArray[0].unshift(1);
movesArray[1].unshift(4);
movesArray[1].unshift(3);
movesArray[1].unshift(2);
movesArray[1].unshift(1);
btn1.gotoAndStop(arrSignature[0]);
btn0.gotoAndStop(arrSignature[1]);
setButton(0, btn2);
setButton(0, btn3);
setButton(0, btn4);
setButton(1, btn7);
setButton(1, btn8);
setButton(1, btn9);
timerBarLexi.scaleX = 0;
timerBarBrooke.scaleX = 0;
if (arrPlayerControlled[0] == false){
timerBarLexi.alpha = 0.5;
};
if (arrPlayerControlled[1] == false){
timerBarBrooke.alpha = 0.5;
};
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
startTurn();
updateTurnsLeft();
}
}
}//package LB_vanilla_fla
Section 15
//shoulder0sprite_40 (LB_vanilla_fla.shoulder0sprite_40)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class shoulder0sprite_40 extends MovieClip {
public function shoulder0sprite_40(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package LB_vanilla_fla
Section 16
//shoulder1sprite_52 (LB_vanilla_fla.shoulder1sprite_52)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class shoulder1sprite_52 extends MovieClip {
public function shoulder1sprite_52(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package LB_vanilla_fla
Section 17
//sprBonus_24 (LB_vanilla_fla.sprBonus_24)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class sprBonus_24 extends MovieClip {
public function sprBonus_24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 18
//sprBrookeExpression_57 (LB_vanilla_fla.sprBrookeExpression_57)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class sprBrookeExpression_57 extends MovieClip {
public function sprBrookeExpression_57(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 19
//sprChars_27 (LB_vanilla_fla.sprChars_27)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class sprChars_27 extends MovieClip {
public function sprChars_27(){
addFrameScript(0, frame1, 9, frame10, 14, frame15, 24, frame25, 29, frame30, 34, frame35, 39, frame40, 44, frame45, 49, frame50, 54, frame55, 59, frame60, 69, frame70, 74, frame75, 79, frame80, 84, frame85, 109, frame110, 114, frame115, 124, frame125, 129, frame130, 134, frame135, 139, frame140, 144, frame145, 149, frame150, 154, frame155, 159, frame160, 164, frame165, 169, frame170, 174, frame175, 179, frame180, 184, frame185);
}
function frame1(){
stop();
}
function frame10(){
stop();
}
function frame15(){
stop();
}
function frame25(){
stop();
}
function frame30(){
stop();
}
function frame35(){
stop();
}
function frame40(){
stop();
}
function frame45(){
stop();
}
function frame50(){
stop();
}
function frame55(){
stop();
}
function frame60(){
stop();
}
function frame70(){
stop();
}
function frame75(){
stop();
}
function frame80(){
stop();
}
function frame85(){
stop();
}
function frame110(){
stop();
}
function frame115(){
stop();
}
function frame125(){
stop();
}
function frame130(){
stop();
}
function frame135(){
stop();
}
function frame140(){
stop();
}
function frame145(){
stop();
}
function frame150(){
stop();
}
function frame155(){
stop();
}
function frame160(){
stop();
}
function frame165(){
stop();
}
function frame170(){
stop();
}
function frame175(){
stop();
}
function frame180(){
stop();
}
function frame185(){
stop();
}
}
}//package LB_vanilla_fla
Section 20
//sprLexiExpression_58 (LB_vanilla_fla.sprLexiExpression_58)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class sprLexiExpression_58 extends MovieClip {
public function sprLexiExpression_58(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 21
//sprRedGlow_15 (LB_vanilla_fla.sprRedGlow_15)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class sprRedGlow_15 extends MovieClip {
public function sprRedGlow_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 22
//stars_21 (LB_vanilla_fla.stars_21)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class stars_21 extends MovieClip {
public function stars_21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 23
//tickBox_6 (LB_vanilla_fla.tickBox_6)
package LB_vanilla_fla {
import flash.display.*;
public dynamic class tickBox_6 extends MovieClip {
public function tickBox_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LB_vanilla_fla
Section 24
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 25
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package