Section 1
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 2
//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 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
//btn10_20 (spp_LITE_fla.btn10_20)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btn10_20 extends MovieClip {
public function btn10_20(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 6
//btn20_21 (spp_LITE_fla.btn20_21)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btn20_21 extends MovieClip {
public function btn20_21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 7
//btn2Jokers_6 (spp_LITE_fla.btn2Jokers_6)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btn2Jokers_6 extends MovieClip {
public function btn2Jokers_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 8
//btn30_22 (spp_LITE_fla.btn30_22)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btn30_22 extends MovieClip {
public function btn30_22(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 9
//btn40_23 (spp_LITE_fla.btn40_23)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btn40_23 extends MovieClip {
public function btn40_23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 10
//btnAnte_17 (spp_LITE_fla.btnAnte_17)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnAnte_17 extends MovieClip {
public function btnAnte_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 11
//btnApril_7 (spp_LITE_fla.btnApril_7)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnApril_7 extends MovieClip {
public function btnApril_7(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 12
//btnAuto_13 (spp_LITE_fla.btnAuto_13)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnAuto_13 extends MovieClip {
public function btnAuto_13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 13
//btnBridle_48 (spp_LITE_fla.btnBridle_48)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnBridle_48 extends MovieClip {
public var btnLocked:MovieClip;
public var btnPurchase:MovieClip;
public function btnBridle_48(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 14
//btnButtSpank_57 (spp_LITE_fla.btnButtSpank_57)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnButtSpank_57 extends MovieClip {
public var btnPurchase100:MovieClip;
public var btnLocked:MovieClip;
public function btnButtSpank_57(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 15
//btnCall_15 (spp_LITE_fla.btnCall_15)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnCall_15 extends MovieClip {
public function btnCall_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 16
//btnCam_41 (spp_LITE_fla.btnCam_41)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnCam_41 extends MovieClip {
public var btnLocked:MovieClip;
public var btnPurchase:MovieClip;
public function btnCam_41(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 17
//btnCandle_61 (spp_LITE_fla.btnCandle_61)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnCandle_61 extends MovieClip {
public var btnPurchase100:MovieClip;
public var btnLocked:MovieClip;
public function btnCandle_61(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 18
//btnCombo1_52 (spp_LITE_fla.btnCombo1_52)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnCombo1_52 extends MovieClip {
public var btnLocked:MovieClip;
public var btnPurchase:MovieClip;
public function btnCombo1_52(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 19
//btnCombo2_53 (spp_LITE_fla.btnCombo2_53)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnCombo2_53 extends MovieClip {
public var btnLocked:MovieClip;
public var btnPurchase:MovieClip;
public function btnCombo2_53(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 20
//btnCombo3_54 (spp_LITE_fla.btnCombo3_54)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnCombo3_54 extends MovieClip {
public var btnLocked:MovieClip;
public var btnPurchase:MovieClip;
public function btnCombo3_54(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 21
//btnCombo4_55 (spp_LITE_fla.btnCombo4_55)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnCombo4_55 extends MovieClip {
public var btnLocked:MovieClip;
public var btnPurchase:MovieClip;
public function btnCombo4_55(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 22
//btnExpand_10 (spp_LITE_fla.btnExpand_10)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnExpand_10 extends MovieClip {
public function btnExpand_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 23
//btnFootSpank_56 (spp_LITE_fla.btnFootSpank_56)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnFootSpank_56 extends MovieClip {
public var btnPurchase100:MovieClip;
public var btnLocked:MovieClip;
public function btnFootSpank_56(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 24
//btnFootTickler_49 (spp_LITE_fla.btnFootTickler_49)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnFootTickler_49 extends MovieClip {
public var btnPurchase100:MovieClip;
public var btnLocked:MovieClip;
public function btnFootTickler_49(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 25
//btnGuillotine_44 (spp_LITE_fla.btnGuillotine_44)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnGuillotine_44 extends MovieClip {
public var btnLocked:MovieClip;
public var btnPurchase:MovieClip;
public function btnGuillotine_44(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 26
//btnHiLo_11 (spp_LITE_fla.btnHiLo_11)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnHiLo_11 extends MovieClip {
public function btnHiLo_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 27
//btnHorse_46 (spp_LITE_fla.btnHorse_46)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnHorse_46 extends MovieClip {
public var btnPurchase:MovieClip;
public function btnHorse_46(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package spp_LITE_fla
Section 28
//btnNoJokers_5 (spp_LITE_fla.btnNoJokers_5)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnNoJokers_5 extends MovieClip {
public function btnNoJokers_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 29
//btnNora_8 (spp_LITE_fla.btnNora_8)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnNora_8 extends MovieClip {
public function btnNora_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 30
//btnRaise_14 (spp_LITE_fla.btnRaise_14)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnRaise_14 extends MovieClip {
public function btnRaise_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 31
//btnRodeo_59 (spp_LITE_fla.btnRodeo_59)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnRodeo_59 extends MovieClip {
public var btnPurchase100:MovieClip;
public var btnLocked:MovieClip;
public function btnRodeo_59(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 32
//btnRope_58 (spp_LITE_fla.btnRope_58)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnRope_58 extends MovieClip {
public var btnPurchase100:MovieClip;
public var btnLocked:MovieClip;
public function btnRope_58(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 33
//btnSawtooth_47 (spp_LITE_fla.btnSawtooth_47)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnSawtooth_47 extends MovieClip {
public var btnLocked:MovieClip;
public var btnPurchase:MovieClip;
public function btnSawtooth_47(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 34
//btnSideTickler_51 (spp_LITE_fla.btnSideTickler_51)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnSideTickler_51 extends MovieClip {
public var btnPurchase100:MovieClip;
public var btnLocked:MovieClip;
public function btnSideTickler_51(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 35
//btnStocks_45 (spp_LITE_fla.btnStocks_45)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnStocks_45 extends MovieClip {
public var btnPurchase:MovieClip;
public function btnStocks_45(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package spp_LITE_fla
Section 36
//btnWeights_60 (spp_LITE_fla.btnWeights_60)
package spp_LITE_fla {
import flash.display.*;
public dynamic class btnWeights_60 extends MovieClip {
public var btnPurchase100:MovieClip;
public var btnLocked:MovieClip;
public function btnWeights_60(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package spp_LITE_fla
Section 37
//cardSprite_9 (spp_LITE_fla.cardSprite_9)
package spp_LITE_fla {
import flash.display.*;
public dynamic class cardSprite_9 extends MovieClip {
public function cardSprite_9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 38
//chip100_25 (spp_LITE_fla.chip100_25)
package spp_LITE_fla {
import flash.display.*;
public dynamic class chip100_25 extends MovieClip {
public function chip100_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 39
//MainTimeline (spp_LITE_fla.MainTimeline)
package spp_LITE_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 wndOppPunish:MovieClip;
public var txtPlayerCredits:TextField;
public var btnHiLoAuto:MovieClip;
public var cardDeal:MovieClip;
public var wndClothesOpp:MovieClip;
public var wndClothesPlayer:MovieClip;
public var txtPot:TextField;
public var txtOppBet:TextField;
public var txtOppCredits:TextField;
public var wndIntro:MovieClip;
public var btnPunish:MovieClip;
public var txtPlayerRank:TextField;
public var btnIntroStart:introStartButton;
public var wndCardDraw:MovieClip;
public var card1b:MovieClip;
public var txtInfo:TextField;
public var txtIphase:TextField;
public var card3b:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var card2b:MovieClip;
public var card1:MovieClip;
public var wndOppDiscard:MovieClip;
public var card5b:MovieClip;
public var wndBetAmount:MovieClip;
public var txtPlayerBet:TextField;
public var btnExpand:MovieClip;
public var card2:MovieClip;
public var introLogo:MovieClip;
public var wndPlayerPunish:MovieClip;
public var card4b:MovieClip;
public var btnFold:MovieClip;
public var card3:MovieClip;
public var wndDealer:MovieClip;
public var btnCall:MovieClip;
public var btnHiLo:MovieClip;
public var card4:MovieClip;
public var chipsPlayer:MovieClip;
public var btnAnte:MovieClip;
public var btnRaise:MovieClip;
public var card5:MovieClip;
public var wndBetBar:MovieClip;
public var wndReset:MovieClip;
public var txtOppRank:TextField;
public var btnHiLoSwap:MovieClip;
public var bJokers:Boolean;
public var bCardAnimation:Boolean;
public var bDealAllCardsAtOnce:Boolean;
public var bCharChosen;
public var bDeckChosen;
public var iOppChar;
public var strOppName;
public var iPlayerBets;
public var iPlayerCalls;
public var iOppBets;
public var arrPotOdds:Array;
public var bBluff;
public var iBluffRounds;
public var bPostDeal;
public var iPlayerDrawAmount;
public var iExpectedRank;
public var arrBluff:Array;
public var arrBetsLowPair:Array;
public var iPot;
public var iHighestBet;
public var iPlayerBet;
public var iOppBet;
public var iPlayerCredits;
public var iOppCredits;
public var iClothValue;
public var iDealer;
public var iTurn;
public var bCardSelectEnabled;
public var iOppClothes;
public var iPlayerClothes;
public var lastPlayerMove;
public var lastOppMove;
public var myInterval:uint;
public var iCountDown;
public var iPhase;
public var iInStock;
public var iCallDiff;
public var bGameOver;
public var myTween:Tween;
public var myTweenBetCall:Tween;
public var myTweenRedraw:Tween;
public var secondsCount;
public var iSocks;
public var iShirt;
public var iSkirt;
public var iBra;
public var iPanties;
public var bBumpyRide;
public var charArt:MovieClip;
public var arrDeck:Array;
public var arrPlayerHand:Array;
public var arrOppHand:Array;
public var arrPlayerRank:Array;
public var arrOppRank:Array;
public var arrPlayerLock:Array;
public var arrOppLock:Array;
public var arrOuts:Array;
public var iR;
public var i1;
public var i2;
public var i3;
public var i4;
public var i5;
public var lock1;
public var lock2;
public var lock3;
public var lock4;
public var lock5;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
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){
wndIntro.alpha = 1;
btnIntroStart.alpha = 0.2;
stage.addEventListener(MouseEvent.CLICK, introMouseClicked);
};
}
public function introMouseClicked(_arg1:MouseEvent):void{
if (_arg1.target.name == "btnApril"){
iOppChar = 0;
strOppName = "April";
wndIntro.btnApril.gotoAndStop(2);
wndIntro.btnNora.gotoAndStop(1);
bCharChosen = true;
if ((((bCharChosen == true)) && ((bDeckChosen == true)))){
btnIntroStart.alpha = 1;
};
} else {
if (_arg1.target.name == "btnNoJokers"){
bJokers = false;
wndIntro.btnNoJokers.gotoAndStop(2);
wndIntro.btn2Jokers.gotoAndStop(1);
bDeckChosen = true;
if ((((bCharChosen == true)) && ((bDeckChosen == true)))){
btnIntroStart.alpha = 1;
};
} else {
if (_arg1.target.name == "btn2Jokers"){
bJokers = true;
wndIntro.btnNoJokers.gotoAndStop(1);
wndIntro.btn2Jokers.gotoAndStop(2);
bDeckChosen = true;
if ((((bCharChosen == true)) && ((bDeckChosen == true)))){
btnIntroStart.alpha = 1;
};
} else {
if (_arg1.target.name == "btnIntroStart"){
if ((((bCharChosen == true)) && ((bDeckChosen == true)))){
stage.removeEventListener(MouseEvent.CLICK, introMouseClicked);
gotoAndStop(2);
};
};
};
};
};
}
public function updatePunWindow():void{
if (wndPlayerPunish.btnStocks.currentFrame == 1){
if (wndPlayerPunish.btnCam.currentFrame == 3){
wndPlayerPunish.btnCam.gotoAndStop(2);
};
if (wndPlayerPunish.btnGuillotine.currentFrame == 3){
wndPlayerPunish.btnGuillotine.gotoAndStop(2);
};
};
if (wndPlayerPunish.btnHorse.currentFrame == 1){
if (wndPlayerPunish.btnSawtooth.currentFrame == 3){
wndPlayerPunish.btnSawtooth.gotoAndStop(2);
};
if (wndPlayerPunish.btnBridle.currentFrame == 3){
wndPlayerPunish.btnBridle.gotoAndStop(2);
};
};
}
public function clearMemory():void{
iPlayerBets = 0;
iOppBets = 0;
iBluffRounds = 0;
iPlayerCalls = 0;
iPlayerDrawAmount = 0;
bPostDeal = false;
iExpectedRank = 0;
if (Math.floor((Math.random() * 100)) < arrBluff[iOppChar]){
bBluff = true;
};
}
public function charDecision():int{
if (iOppCredits == 0){
return (2);
};
var _local1:* = (iPlayerBet - iOppBet);
if (iDealer == 0){
arrPotOdds[0] = ((_local1 / (_local1 + iPot)) * 100);
arrPotOdds[1] = (((_local1 + 10) / ((_local1 + iPot) + 10)) * 100);
arrPotOdds[2] = (((_local1 + 20) / ((_local1 + iPot) + 20)) * 100);
arrPotOdds[3] = (((_local1 + 30) / ((_local1 + iPot) + 30)) * 100);
arrPotOdds[4] = (((_local1 + 40) / ((_local1 + iPot) + 40)) * 100);
} else {
arrPotOdds[0] = ((_local1 / (_local1 + iPot)) * 100);
arrPotOdds[1] = (((_local1 + 10) / ((_local1 + iPot) + 10)) * 100);
arrPotOdds[2] = (((_local1 + 20) / ((_local1 + iPot) + 20)) * 100);
arrPotOdds[3] = (((_local1 + 30) / ((_local1 + iPot) + 30)) * 100);
arrPotOdds[4] = (((_local1 + 40) / ((_local1 + iPot) + 40)) * 100);
};
var _local2:* = 47;
if (bJokers == true){
_local2 = 49;
};
var _local3:* = ((int(arrOuts[1]) / _local2) * 100);
var _local4:* = (((_local2 - int(arrOuts[1])) - 1) / (_local2 - 1));
_local4 = (_local4 * ((_local2 - int(arrOuts[1])) / _local2));
_local4 = ((1 - _local4) * 100);
var _local5:* = 2;
if (arrOppRank[0] == 1){
_local5 = getBestBet(arrPotOdds, _local4);
if (bBluff == true){
if (_local5 == 3){
_local5 = 2;
};
if (Math.floor((Math.random() * 100)) < 40){
_local5 = 10;
};
if (Math.floor((Math.random() * 100)) < 25){
_local5 = 20;
};
if (Math.floor((Math.random() * 100)) < 5){
_local5 = 30;
};
return (_local5);
} else {
if (iPot == 10){
return (2);
};
if (iPlayerBets == 15){
return (2);
};
return (3);
};
} else {
if (arrOppRank[0] == 2){
_local5 = getBestBet(arrPotOdds, _local4);
if (bBluff == true){
if (_local5 == 3){
_local5 = 2;
};
if (Math.floor((Math.random() * 100)) < 40){
_local5 = 10;
};
if (Math.floor((Math.random() * 100)) < 25){
_local5 = 20;
};
if (Math.floor((Math.random() * 100)) < 5){
_local5 = 30;
};
return (_local5);
} else {
if (int(arrOppRank[1]) < 9){
if (Math.floor((Math.random() * 100)) < arrBetsLowPair[iOppChar]){
return (_local5);
};
if (iPot == 10){
return (2);
};
return (3);
} else {
if (_local5 > 20){
_local5 = 2;
};
return (_local5);
};
};
} else {
if (arrOppRank[0] == 3){
_local5 = getBestBet(arrPotOdds, _local3);
if (_local5 == 3){
_local5 = 2;
};
if ((((_local5 > 9)) && ((_local5 < 30)))){
_local5 = (_local5 + 10);
};
return (_local5);
} else {
if (arrOppRank[0] == 4){
_local5 = getBestBet(arrPotOdds, _local4);
if (_local5 == 3){
_local5 = 2;
};
if ((((_local5 > 9)) && ((_local5 < 30)))){
_local5 = (_local5 + 10);
};
return (_local5);
} else {
if ((((arrOppRank[0] == 5)) || ((arrOppRank[0] == 6)))){
_local5 = getBestBet(arrPotOdds, 100);
if ((((_local5 > 9)) && ((_local5 < 30)))){
_local5 = (_local5 + 10);
};
} else {
if (arrOppRank[0] > 6){
_local5 = getBestBet(arrPotOdds, 100);
if ((((_local5 > 9)) && ((_local5 < 40)))){
_local5 = (_local5 + 10);
};
};
};
};
};
};
};
return (_local5);
}
public function getBestBet(_arg1, _arg2):int{
if (bPostDeal == false){
if (_arg2 > int(_arg1[0])){
return (2);
};
if (_arg2 > int(_arg1[1])){
return (10);
};
if (_arg2 > int(_arg1[2])){
return (20);
};
if (_arg2 > int(_arg1[3])){
return (30);
};
if (_arg2 > int(_arg1[4])){
return (40);
};
return (3);
} else {
compareExpectedRank();
if (iExpectedRank == int(arrOppRank[0])){
return (2);
};
if (iExpectedRank > int(arrOppRank[0])){
if ((((iExpectedRank < 5)) && ((Math.floor((Math.random() * 100)) < (arrBluff[iOppChar] - 20))))){
bBluff = true;
return (2);
};
return (3);
};
};
return (2);
}
public function compareExpectedRank():void{
if (iPlayerDrawAmount == 0){
iExpectedRank = 5;
} else {
if (iPlayerDrawAmount == 1){
iExpectedRank = 3;
} else {
if (iPlayerDrawAmount == 2){
iExpectedRank = 4;
} else {
if (iPlayerDrawAmount == 3){
iExpectedRank = 2;
} else {
iExpectedRank = 0;
};
};
};
};
}
public function myTimer():void{
var _local1:* = 99;
if ((((((((((((btnAnte.alpha < 1)) && ((btnRaise.alpha < 1)))) && ((btnCall.alpha < 1)))) && ((btnFold.alpha < 1)))) && ((btnPunish.alpha < 1)))) && ((bGameOver == false)))){
secondsCount++;
if (secondsCount > 29){
the30SecondRule();
};
} else {
secondsCount = 0;
};
if (iCountDown > 0){
iCountDown--;
if (iCountDown == 0){
};
} else {
if (iPhase == 1){
if (arrPlayerHand[0].length < 5){
showPlayerHand();
if (iDealer == 1){
if (bDealAllCardsAtOnce == true){
deal5Cards();
} else {
dealCard(0);
dealCard(1);
};
} else {
if (bDealAllCardsAtOnce == true){
deal5Cards();
} else {
dealCard(1);
dealCard(0);
};
};
if (arrPlayerHand[0].length == 1){
insertCard(card1);
} else {
if (arrPlayerHand[0].length == 2){
insertCard(card2);
} else {
if (arrPlayerHand[0].length == 3){
insertCard(card3);
} else {
if (arrPlayerHand[0].length == 4){
insertCard(card4);
} else {
if (arrPlayerHand[0].length == 5){
insertCard(card5);
};
};
};
};
};
} else {
detectRank();
updatePlayerRankText();
if (btnHiLoAuto.currentFrame == 2){
sortPlayerHand();
};
if (bCardAnimation == true){
myTween.stop();
cardDeal.alpha = 0;
cardDeal.y = 900;
};
showPlayerHand();
if (iTurn == 0){
enterPhase("BetRound");
iPhase = 20;
} else {
enterPhase("OppTurn");
iPhase = 30;
};
};
} else {
if (iPhase == 20){
if (check2CallsInARow() == true){
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
iPhase = 22;
};
} else {
if (iPhase == 21){
if (lastPlayerMove == 3){
iPhase = 22;
} else {
if (check2CallsInARow() == true){
iPhase = 22;
} else {
aiMove();
};
};
} else {
if (iPhase == 22){
checkBettingOutcome();
} else {
if (iPhase == 30){
if (check2CallsInARow() == true){
iPhase = 22;
} else {
aiMove();
};
} else {
if (iPhase == 31){
if (check2CallsInARow() == true){
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
iPhase = 32;
};
} else {
if (iPhase == 32){
checkBettingOutcome();
} else {
if ((((iPhase == 24)) || ((iPhase == 34)))){
if (iPhase == 24){
enterPhase("BetRound");
};
iPhase++;
} else {
if (iPhase == 25){
if (check2CallsInARow() == true){
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
iPhase = 27;
};
} else {
if (iPhase == 26){
if (lastPlayerMove == 3){
iPhase = 27;
} else {
if (check2CallsInARow() == true){
iPhase = 27;
} else {
aiMove();
};
};
} else {
if (iPhase == 27){
checkBettingOutcome();
} else {
if (iPhase == 35){
if (check2CallsInARow() == true){
iPhase = 27;
} else {
aiMove();
};
} else {
if (iPhase == 36){
if (check2CallsInARow() == true){
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
iPhase = 37;
};
} else {
if (iPhase == 37){
checkBettingOutcome();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function updateCreditsUI():void{
txtPlayerCredits.text = iPlayerCredits;
txtOppCredits.text = iOppCredits;
txtPlayerBet.text = iPlayerBet;
txtOppBet.text = iOppBet;
txtPot.text = iPot;
wndDealer.gotoAndStop((iDealer + 2));
if (iOppBet > iPlayerBet){
iHighestBet = iOppBet;
} else {
iHighestBet = iPlayerBet;
};
wndClothesOpp.gotoAndStop(iOppClothes);
wndClothesPlayer.gotoAndStop(iPlayerClothes);
wndPlayerPunish.txtCredits.text = iPlayerCredits;
}
public function coinFlip():void{
iPhase = 0;
if (Math.floor((Math.random() * 100)) < 50){
iDealer = 0;
iTurn = 1;
} else {
iDealer = 1;
iTurn = 0;
};
wndDealer.gotoAndStop((iDealer + 2));
btnAnte.gotoAndStop(1);
btnAnte.alpha = 1;
iOppCredits = (iOppCredits - 5);
iOppBet = (iOppBet + 5);
iPot = (iPot + 5);
updateCreditsUI();
enterPhase("Ante");
}
public function enterPhase(_arg1):void{
if (_arg1 == "Ante"){
btnAnte.alpha = 1;
btnAnte.gotoAndStop(1);
wndBetBar.alpha = 0;
wndBetBar.x = -250;
btnRaise.gotoAndStop(2);
btnRaise.alpha = 0.2;
btnCall.gotoAndStop(2);
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
btnPunish.alpha = 0.2;
txtInfo.text = "Ante phase";
} else {
if (_arg1 == "DealCards"){
btnAnte.alpha = 0.2;
wndBetBar.alpha = 0;
wndBetBar.x = -250;
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
btnPunish.alpha = 0.2;
txtInfo.text = "Dealing cards...";
} else {
if (_arg1 == "BetRound"){
btnAnte.alpha = 0.2;
btnAnte.gotoAndStop(2);
wndBetBar.alpha = 0;
wndBetBar.x = -250;
if (iPlayerCredits > 0){
btnRaise.alpha = 1;
} else {
btnRaise.alpha = 0.2;
};
if (iPot == 10){
btnRaise.gotoAndStop(2);
btnCall.gotoAndStop(2);
} else {
btnRaise.gotoAndStop(1);
btnCall.gotoAndStop(1);
};
btnCall.alpha = 1;
btnFold.alpha = 1;
btnPunish.alpha = 0.2;
} else {
if (_arg1 == "OppTurn"){
btnAnte.alpha = 0.2;
btnAnte.gotoAndStop(2);
wndBetBar.alpha = 0;
wndBetBar.x = -250;
btnRaise.gotoAndStop(2);
btnRaise.alpha = 0.2;
btnCall.gotoAndStop(2);
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
btnPunish.alpha = 0.2;
txtInfo.text = ("Betting round, waiting for " + strOppName);
} else {
if (_arg1 == "Punish"){
btnAnte.alpha = 0.2;
btnAnte.gotoAndStop(1);
wndBetBar.alpha = 0;
wndBetBar.x = -250;
btnRaise.gotoAndStop(2);
btnRaise.alpha = 0.2;
btnCall.gotoAndStop(2);
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
} else {
if (_arg1 == "Draw"){
btnAnte.alpha = 1;
btnAnte.gotoAndStop(2);
wndBetBar.alpha = 0;
wndBetBar.x = -250;
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
btnPunish.alpha = 0.2;
txtInfo.text = "Draw phase: Select 0-5 cards to replace";
bCardSelectEnabled = true;
wndCardDraw.alpha = 1;
};
};
};
};
};
};
}
public function aiMove():void{
var _local3:*;
var _local1:* = 1;
var _local2:* = 10;
_local2 = charDecision();
if (_local2 == 2){
_local1 = 2;
};
if (_local2 == 3){
_local1 = 3;
};
if (_local1 > 9){
iBluffRounds++;
};
if (iBluffRounds > 3){
_local1 = 2;
};
iCallDiff = (iHighestBet - iOppBet);
if ((((_local1 == 1)) && ((iOppCredits == 0)))){
_local1 = 2;
} else {
if ((((_local1 == 1)) && (((iOppCredits - iCallDiff) <= _local2)))){
_local1 = 2;
} else {
if ((((_local1 == 1)) && ((iPlayerCredits == 0)))){
_local1 = 2;
};
};
};
if (_local1 == 1){
lastOppMove = 1;
if (iPot > 10){
if (iOppCredits > iCallDiff){
iOppCredits = (iOppCredits - iCallDiff);
iOppBet = (iOppBet + iCallDiff);
iPot = (iPot + iCallDiff);
} else {
iOppBet = (iOppBet + iOppCredits);
iPot = (iPot + iOppCredits);
iOppCredits = 0;
};
if (_local2 >= iOppCredits){
iOppBet = (iOppBet + iOppCredits);
iPot = (iPot + iOppCredits);
iOppBets = (iOppBets + iOppCredits);
iOppCredits = 0;
} else {
iOppCredits = (iOppCredits - _local2);
iOppBet = (iOppBet + _local2);
iOppBets = (iOppBets + _local2);
iPot = (iPot + _local2);
};
wndBetAmount.gotoAndStop((5 + (_local2 / 10)));
blinkWndBetAmount();
txtInfo.text = ((strOppName + " raises ") + _local2);
} else {
if (_local2 >= iOppCredits){
iOppBet = (iOppBet + iOppCredits);
iPot = (iPot + iOppCredits);
iOppBets = (iOppBets + iOppCredits);
iOppCredits = 0;
} else {
iOppCredits = (iOppCredits - _local2);
iOppBet = (iOppBet + _local2);
iOppBets = (iOppBets + _local2);
iPot = (iPot + _local2);
};
wndBetAmount.gotoAndStop((1 + (_local2 / 10)));
blinkWndBetAmount();
txtInfo.text = ((strOppName + " bets ") + _local2);
};
updateCreditsUI();
if ((((iPhase == 30)) || ((iPhase == 35)))){
enterPhase("BetRound");
};
iPhase++;
} else {
if (_local1 == 2){
lastOppMove = 2;
if (iPot == 10){
txtInfo.text = (strOppName + " checks");
wndBetAmount.gotoAndStop(10);
blinkWndBetAmount();
} else {
txtInfo.text = (strOppName + " calls");
_local3 = (iHighestBet - iOppBet);
if (_local3 >= iOppCredits){
wndBetAmount.gotoAndStop(12);
blinkWndBetAmount();
iOppBet = (iOppBet + iOppCredits);
iPot = (iPot + iOppCredits);
iOppCredits = 0;
} else {
wndBetAmount.gotoAndStop(11);
blinkWndBetAmount();
iOppCredits = (iOppCredits - _local3);
iOppBet = (iOppBet + _local3);
iPot = (iPot + _local3);
};
};
updateCreditsUI();
if ((((iPhase == 30)) || ((iPhase == 35)))){
enterPhase("BetRound");
};
iPhase++;
} else {
if (_local1 == 3){
lastOppMove = 3;
txtInfo.text = (strOppName + " folds");
wndBetAmount.gotoAndStop(13);
blinkWndBetAmount();
updateCreditsUI();
if ((((iPhase == 21)) || ((iPhase == 26)))){
iPhase++;
} else {
iPhase = (iPhase + 2);
};
};
};
};
}
public function checkBettingOutcome():void{
var _local1:*;
var _local2:*;
if (lastPlayerMove == 3){
txtInfo.text = ((("You fold, " + strOppName) + " wins ") + iPot);
iOppCredits = (iOppCredits + iPot);
iPot = 0;
iOppBet = 0;
iPlayerBet = 0;
updateCreditsUI();
iPhase = 40;
oppWins();
} else {
if (lastOppMove == 3){
txtInfo.text = ((strOppName + " folds, you win ") + iPot);
iPlayerCredits = (iPlayerCredits + iPot);
iPot = 0;
iOppBet = 0;
iPlayerBet = 0;
updateCreditsUI();
iPhase = 40;
playerWins();
} else {
if ((((lastPlayerMove == 2)) && ((lastOppMove == 2)))){
if ((((iPhase == 22)) || ((iPhase == 32)))){
lastPlayerMove = 0;
lastOppMove = 0;
iPhase++;
enterPhase("Draw");
} else {
detectRank();
showOppHand(true);
_local1 = 99;
_local2 = 0;
while (_local2 < 6) {
if (_local1 == 99){
if (int(arrPlayerRank[_local2]) > int(arrOppRank[_local2])){
_local1 = 0;
} else {
if (int(arrOppRank[_local2]) > int(arrPlayerRank[_local2])){
_local1 = 1;
};
};
};
_local2++;
};
if (_local1 == 99){
txtInfo.text = "Equal hands, bets returned.";
iPlayerCredits = (iPlayerCredits + iPlayerBet);
iOppCredits = (iOppCredits + iOppBet);
iPot = 0;
iPlayerBet = 0;
iOppBet = 0;
updateCreditsUI();
} else {
if (_local1 == 0){
txtInfo.text = "You win!";
iPlayerCredits = (iPlayerCredits + iPot);
iPot = 0;
iPlayerBet = 0;
iOppBet = 0;
updateCreditsUI();
playerWins();
} else {
txtInfo.text = (strOppName + " wins!");
iOppCredits = (iOppCredits + iPot);
iPot = 0;
iPlayerBet = 0;
iOppBet = 0;
updateCreditsUI();
oppWins();
};
};
};
} else {
iPhase = (iPhase - 2);
if ((((((((iPhase == 20)) || ((iPhase == 25)))) || ((iPhase == 31)))) || ((iPhase == 36)))){
enterPhase("BetRound");
};
};
};
};
}
public function oppWins():void{
if (iOppCredits >= 150){
iInStock++;
iOppCredits = (iOppCredits - 75);
if (iInStock == 1){
wndOppPunish.txtPurchase.text = (strOppName + " buys a rack!");
} else {
if (iInStock == 2){
wndOppPunish.txtPurchase.text = (strOppName + " buys a set of donkey ears!");
} else {
if (iInStock == 3){
wndOppPunish.txtPurchase.text = (strOppName + " buys a pair of handcuffs!");
} else {
if (iInStock == 4){
wndOppPunish.txtPurchase.text = (strOppName + " buys a rotten tomato cannon!");
} else {
if (iInStock == 5){
wndOppPunish.txtPurchase.text = (strOppName + " buys a butt spanking robot!");
} else {
if (iInStock == 6){
wndOppPunish.txtPurchase.text = (strOppName + " buys a butt tickle robot!");
} else {
wndOppPunish.txtPurchase.text = (strOppName + " buys herself a nice expensive alcoholic drink.");
};
};
};
};
};
};
} else {
wndOppPunish.txtPurchase.text = "";
};
if (iInStock == 0){
wndOppPunish.txtStory.text = (strOppName + " personally straps a ball gag to your face, tightly. This will be your punishment for losing to her! She enjoys seeing you sit there in embarrassment for at least the next hand! She watches for a moment to see how you drool all over yourself uncontrollably!");
} else {
if (iInStock == 1){
wndOppPunish.txtStory.text = (((strOppName + " locks you into the rack. It delights her to see you stand in shame in front of her. That's what you get when you lose from ") + strOppName) + ", fellow! She likes feeling superior to you like this!");
} else {
if (iInStock == 2){
wndOppPunish.txtStory.text = (((strOppName + " locks you into the rack. It delights her to see you stand in shame in front of her. That's what you get when you lose from ") + strOppName) + ", fellow! She likes feeling superior to you like this! She has placed donkey ears on top of your head, to embarrass you even further.");
} else {
if (iInStock == 3){
wndOppPunish.txtStory.text = (("You find yourself in stocks again, wearing donkey ears and having your ankles locked in handcuffs. " + strOppName) + " clearly enjoys seeing you in that helpless position, so much it almost distracts her from the card game...");
} else {
if (iInStock == 4){
wndOppPunish.txtStory.text = (((("You're in stocks, wearing donkey ears and having your ankles locked in handcuffs. " + strOppName) + " switches on a rotten tomato cannon, which hurls a rotten tomato into your face every now and then. ") + strOppName) + " REALLY enjoys seeing you suffering like this!");
} else {
if (iInStock == 5){
wndOppPunish.txtStory.text = (("While you're in stocks, wearing donkey ears, having your ankles locked in handcuffs and being bombed with the occasional rotten tomato, " + strOppName) + " licks her lips every time she sees the new robot spank your sore bottom! She LOVES it! She's been winning so much, all at your expense!");
} else {
wndOppPunish.txtStory.text = (((strOppName + " can watch this all day! You are back in the rack, wearing donkey ears and handcuffs, rotten tomatoes hit you in the face, a robot is spanking your butt and another is tickling you senseless. ") + strOppName) + " loves every bit of it!");
};
};
};
};
};
};
showBase();
wndOppPunish.x = 5;
wndOppPunish.alpha = 1;
if (iDealer == 0){
iDealer = 1;
iTurn = 0;
} else {
iDealer = 0;
iTurn = 1;
};
wndDealer.gotoAndStop((iDealer + 2));
if (iOppCredits >= 5){
iOppCredits = (iOppCredits - 5);
iOppBet = (iOppBet + 5);
iPot = (iPot + 5);
updateCreditsUI();
iPhase = 0;
} else {
undressOppAndPayAnte();
};
enterPhase("Ante");
iPhase = 0;
}
public function playerWins():void{
if (iDealer == 0){
iDealer = 1;
iTurn = 0;
} else {
iDealer = 0;
iTurn = 1;
};
wndDealer.gotoAndStop((iDealer + 2));
btnPunish.alpha = 1;
enterPhase("Punish");
iPhase = 41;
}
public function check2CallsInARow():Boolean{
if ((((lastPlayerMove == 2)) && ((lastOppMove == 2)))){
return (true);
};
return (false);
}
public function mouseClicked(_arg1:MouseEvent):void{
var _local2:* = "";
if (_arg1.target.name != null){
_local2 = _arg1.target.name;
};
if ((((_local2 == "btnRaise")) && ((btnRaise.alpha == 1)))){
if (iPlayerCredits < 11){
wndBetBar.btn10.gotoAndStop(2);
} else {
wndBetBar.btn10.gotoAndStop(1);
};
if (iPlayerCredits < 21){
wndBetBar.btn20.gotoAndStop(2);
} else {
wndBetBar.btn20.gotoAndStop(1);
};
if (iPlayerCredits < 31){
wndBetBar.btn30.gotoAndStop(2);
} else {
wndBetBar.btn30.gotoAndStop(1);
};
if (iPlayerCredits < 41){
wndBetBar.btn40.gotoAndStop(2);
} else {
wndBetBar.btn40.gotoAndStop(1);
};
wndBetBar.x = 160;
wndBetBar.alpha = 1;
} else {
if (_local2 == "btnExit"){
wndOppPunish.alpha = 0;
wndOppPunish.x = -500;
} else {
if ((((_local2 == "btn10")) && ((wndBetBar.alpha == 1)))){
wndBetBar.x = -250;
wndBetBar.alpha = 0;
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
lastPlayerMove = 1;
iCallDiff = (iOppBet - iPlayerBet);
if (iPlayerCredits > iCallDiff){
iPlayerCredits = (iPlayerCredits - iCallDiff);
iPlayerBet = (iPlayerBet + iCallDiff);
iPot = (iPot + iCallDiff);
} else {
iPlayerBet = (iPlayerBet + iPlayerCredits);
iPot = (iPot + iPlayerCredits);
iPlayerCredits = 0;
};
if (iPlayerCredits < 11){
iPlayerBet = (iPlayerBet + iPlayerCredits);
iPot = (iPot + iPlayerCredits);
iPlayerBets = (iPlayerBets + iPlayerCredits);
iPlayerCredits = 0;
updateCreditsUI();
iPhase++;
} else {
iPlayerCredits = (iPlayerCredits - 10);
iPlayerBet = (iPlayerBet + 10);
iPot = (iPot + 10);
iPlayerBets = (iPlayerBets + 10);
updateCreditsUI();
iPhase++;
};
} else {
if ((((_local2 == "btn20")) && ((wndBetBar.alpha == 1)))){
wndBetBar.x = -250;
wndBetBar.alpha = 0;
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
lastPlayerMove = 1;
iCallDiff = (iOppBet - iPlayerBet);
if (iPlayerCredits > iCallDiff){
iPlayerCredits = (iPlayerCredits - iCallDiff);
iPlayerBet = (iPlayerBet + iCallDiff);
iPot = (iPot + iCallDiff);
} else {
iPlayerBet = (iPlayerBet + iPlayerCredits);
iPot = (iPot + iPlayerCredits);
iPlayerCredits = 0;
};
if (iPlayerCredits < 21){
iPlayerBet = (iPlayerBet + iPlayerCredits);
iPot = (iPot + iPlayerCredits);
iPlayerBets = (iPlayerBets + iPlayerCredits);
iPlayerCredits = 0;
updateCreditsUI();
iPhase++;
} else {
iPlayerCredits = (iPlayerCredits - 20);
iPlayerBet = (iPlayerBet + 20);
iPot = (iPot + 20);
iPlayerBets = (iPlayerBets + 20);
updateCreditsUI();
iPhase++;
};
} else {
if ((((_local2 == "btn30")) && ((wndBetBar.alpha == 1)))){
wndBetBar.x = -250;
wndBetBar.alpha = 0;
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
lastPlayerMove = 1;
iCallDiff = (iOppBet - iPlayerBet);
if (iPlayerCredits > iCallDiff){
iPlayerCredits = (iPlayerCredits - iCallDiff);
iPlayerBet = (iPlayerBet + iCallDiff);
iPot = (iPot + iCallDiff);
} else {
iPlayerBet = (iPlayerBet + iPlayerCredits);
iPot = (iPot + iPlayerCredits);
iPlayerCredits = 0;
};
if (iPlayerCredits < 31){
iPlayerBet = (iPlayerBet + iPlayerCredits);
iPot = (iPot + iPlayerCredits);
iPlayerBets = (iPlayerBets + iPlayerCredits);
iPlayerCredits = 0;
updateCreditsUI();
iPhase++;
} else {
iPlayerCredits = (iPlayerCredits - 30);
iPlayerBet = (iPlayerBet + 30);
iPot = (iPot + 30);
iPlayerBets = (iPlayerBets + 30);
updateCreditsUI();
iPhase++;
};
} else {
if ((((_local2 == "btn40")) && ((wndBetBar.alpha == 1)))){
wndBetBar.x = -250;
wndBetBar.alpha = 0;
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
lastPlayerMove = 1;
iCallDiff = (iOppBet - iPlayerBet);
if (iPlayerCredits > iCallDiff){
iPlayerCredits = (iPlayerCredits - iCallDiff);
iPlayerBet = (iPlayerBet + iCallDiff);
iPot = (iPot + iCallDiff);
} else {
iPlayerBet = (iPlayerBet + iPlayerCredits);
iPot = (iPot + iPlayerCredits);
iPlayerCredits = 0;
};
if (iPlayerCredits < 41){
iPlayerBet = (iPlayerBet + iPlayerCredits);
iPot = (iPot + iPlayerCredits);
iPlayerBets = (iPlayerBets + iPlayerCredits);
iPlayerCredits = 0;
updateCreditsUI();
iPhase++;
} else {
iPlayerCredits = (iPlayerCredits - 40);
iPlayerBet = (iPlayerBet + 40);
iPot = (iPot + 40);
iPlayerBets = (iPlayerBets + 40);
updateCreditsUI();
iPhase++;
};
} else {
if ((((_local2 == "btnCall")) && ((btnCall.alpha == 1)))){
wndBetBar.x = -250;
wndBetBar.alpha = 0;
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
lastPlayerMove = 2;
iCallDiff = (iOppBet - iPlayerBet);
if (iPlayerCredits > iCallDiff){
iPlayerCredits = (iPlayerCredits - iCallDiff);
iPlayerBet = (iPlayerBet + iCallDiff);
iPot = (iPot + iCallDiff);
} else {
iPlayerBet = (iPlayerBet + iPlayerCredits);
iPot = (iPot + iPlayerCredits);
iPlayerCredits = 0;
};
iPlayerCalls++;
updateCreditsUI();
iPhase++;
} else {
if ((((_local2 == "btnFold")) && ((btnFold.alpha == 1)))){
wndBetBar.x = -250;
wndBetBar.alpha = 0;
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
lastPlayerMove = 3;
card1.gotoAndStop(55);
card2.gotoAndStop(55);
card3.gotoAndStop(55);
card4.gotoAndStop(55);
card5.gotoAndStop(55);
iPhase++;
} else {
if (_local2 == "btnExpand"){
if (btnExpand.currentFrame == 1){
card1.x = 92;
card1.y = 528;
card1.rotation = 0;
card2.x = 246;
card2.y = 528;
card2.rotation = 0;
card3.x = 400;
card3.y = 528;
card3.rotation = 0;
card4.x = 554;
card4.y = 528;
card4.rotation = 0;
card5.x = 708;
card5.y = 528;
card5.rotation = 0;
btnExpand.gotoAndStop(2);
} else {
card1.x = 547;
card1.y = 543;
card1.rotation = -20;
card2.x = 577;
card2.y = 533;
card2.rotation = -10;
card3.x = 607;
card3.y = 524;
card3.rotation = 0;
card4.x = 637;
card4.y = 533;
card4.rotation = 10;
card5.x = 667;
card5.y = 543;
card5.rotation = 20;
btnExpand.gotoAndStop(1);
};
} else {
if (_local2 == "btnHiLo"){
if (((((((((!((card1.currentFrame == 55))) && (!((card2.currentFrame == 55))))) && (!((card3.currentFrame == 55))))) && (!((card4.currentFrame == 55))))) && (!((card5.currentFrame == 55))))){
sortPlayerHand();
showPlayerHand();
};
} else {
if (_local2 == "btnHiLoSwap"){
btnHiLo.gotoAndStop((3 - btnHiLo.currentFrame));
} else {
if (_local2 == "btnHiLoAuto"){
btnHiLoAuto.gotoAndStop((3 - btnHiLoAuto.currentFrame));
} else {
if (_local2 == "card1"){
playerToggleLock(0);
} else {
if (_local2 == "card2"){
playerToggleLock(1);
} else {
if (_local2 == "card3"){
playerToggleLock(2);
} else {
if (_local2 == "card4"){
playerToggleLock(3);
} else {
if (_local2 == "card5"){
playerToggleLock(4);
} else {
if ((((_local2 == "btnAnte")) && ((btnAnte.alpha == 1)))){
if (btnAnte.currentFrame == 1){
card1.alpha = 0;
card2.alpha = 0;
card3.alpha = 0;
card4.alpha = 0;
card5.alpha = 0;
card1b.alpha = 0;
card2b.alpha = 0;
card3b.alpha = 0;
card4b.alpha = 0;
card5b.alpha = 0;
txtOppRank.text = "";
lastPlayerMove = 0;
lastOppMove = 0;
clearMemory();
btnAnte.alpha = 0.2;
btnAnte.gotoAndStop(2);
if (iPlayerCredits >= 5){
iPlayerCredits = (iPlayerCredits - 5);
iPlayerBet = (iPlayerBet + 5);
iPot = (iPot + 5);
updateCreditsUI();
} else {
undressPlayerAndPayAnte();
};
fillAndShuffleDeck();
if (bGameOver == false){
iPhase = 1;
enterPhase("DealCards");
};
} else {
if (btnAnte.currentFrame == 2){
bPostDeal = true;
bCardSelectEnabled = false;
wndCardDraw.alpha = 0;
btnAnte.alpha = 0.2;
redrawCards();
detectRank();
updatePlayerRankText();
if (btnHiLoAuto.currentFrame == 2){
sortPlayerHand();
};
showPlayerHand();
iPhase++;
} else {
coinFlip();
};
};
} else {
if ((((_local2 == "btnPunish")) && ((btnPunish.alpha == 1)))){
wndPlayerPunish.x = 0;
wndPlayerPunish.alpha = 1;
card1.alpha = 0;
card2.alpha = 0;
card3.alpha = 0;
card4.alpha = 0;
card5.alpha = 0;
card1b.alpha = 0;
card2b.alpha = 0;
card3b.alpha = 0;
card4b.alpha = 0;
card5b.alpha = 0;
txtOppRank.text = "";
txtPlayerRank.text = "";
} else {
if (_local2 == "btnPurchase"){
if (iPlayerCredits >= 50){
iPlayerCredits = (iPlayerCredits - 50);
_arg1.target.parent.gotoAndStop(1);
updateCreditsUI();
updatePunWindow();
};
} else {
if (_local2 == "btnPurchase100"){
if (iPlayerCredits >= 100){
iPlayerCredits = (iPlayerCredits - 100);
_arg1.target.parent.gotoAndStop(1);
updateCreditsUI();
updatePunWindow();
};
} else {
if (_local2 == "btnGag"){
showBase();
charArt.gag.alpha = 1;
hidePunishWindowAndResume();
} else {
if (_local2 == "btnStocks"){
showStocks();
hidePunishWindowAndResume();
} else {
if (_local2 == "btnHorse"){
showHorse();
hidePunishWindowAndResume();
} else {
if (_local2 == "btnFootSpank"){
showStocks();
charArt.stocksWhip11.alpha = 1;
charArt.stocksWhip11.gotoAndPlay(1);
hidePunishWindowAndResume();
} else {
if (_local2 == "btnButtSpank"){
showStocks();
charArt.stocksSpank11.alpha = 1;
charArt.stocksSpank11.gotoAndPlay(1);
hidePunishWindowAndResume();
} else {
if (_local2 == "btnCombo2"){
showStocks();
charArt.stocksWhip11.alpha = 1;
charArt.stocksWhip11.gotoAndPlay(1);
charArt.stocksSpank11.alpha = 1;
charArt.stocksSpank11.gotoAndPlay(1);
hidePunishWindowAndResume();
} else {
if (_local2 == "btnFootTickler"){
showStocks();
charArt.footWheel11.alpha = 1;
charArt.footWheel11.gotoAndPlay(1);
hidePunishWindowAndResume();
} else {
if (_local2 == "btnSideTickler"){
showStocks();
charArt.tkDeluxe11.alpha = 1;
charArt.tkDeluxe11.gotoAndPlay(1);
hidePunishWindowAndResume();
} else {
if (_local2 == "btnCombo1"){
showStocks();
charArt.footWheel11.alpha = 1;
charArt.footWheel11.gotoAndPlay(1);
charArt.tkDeluxe11.alpha = 1;
charArt.tkDeluxe11.gotoAndPlay(1);
hidePunishWindowAndResume();
} else {
if (_local2 == "btnRodeo"){
showHorse();
bBumpyRide = true;
hidePunishWindowAndResume();
} else {
if (_local2 == "btnRope"){
showHorse();
charArt.horseTop.rope11.alpha = 1;
hidePunishWindowAndResume();
} else {
if (_local2 == "btnCombo3"){
showHorse();
bBumpyRide = true;
charArt.horseTop.rope11.alpha = 1;
hidePunishWindowAndResume();
} else {
if (_local2 == "btnWeights"){
showHorse();
charArt.horseTop.weights11.alpha = 1;
hidePunishWindowAndResume();
} else {
if (_local2 == "btnCandle"){
showHorse();
charArt.horseTop.candle11.alpha = 1;
hidePunishWindowAndResume();
} else {
if (_local2 == "btnCombo4"){
showHorse();
charArt.horseTop.candle11.alpha = 1;
charArt.horseTop.weights11.alpha = 1;
hidePunishWindowAndResume();
} else {
if (_local2 == "btnReset"){
wndReset.alpha = 0;
wndReset.y = -400;
secondsCount = 0;
iPlayerCredits = ((iPlayerCredits + iPlayerBet) + 5);
iOppCredits = (iOppCredits + iOppBet);
iPlayerBet = 0;
iOppBet = 5;
iPot = 0;
updateCreditsUI();
enterPhase("Ante");
iPhase = 0;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function hidePunishWindowAndResume():void{
enterPhase("Ante");
if (iOppCredits >= 5){
iOppCredits = (iOppCredits - 5);
iOppBet = (iOppBet + 5);
iPot = (iPot + 5);
updateCreditsUI();
iPhase = 0;
} else {
undressOppAndPayAnte();
};
wndPlayerPunish.alpha = 0;
wndPlayerPunish.x = -900;
}
public function undressOppAndPayAnte():void{
if (iOppClothes < 6){
iOppClothes++;
iOppCredits = (iOppCredits + (iClothValue - 5));
iOppBet = (iOppBet + 5);
iPot = (iPot + 5);
updateCreditsUI();
iPhase = 0;
} else {
bGameOver = true;
iPhase = -1;
btnAnte.alpha = 0.2;
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
btnPunish.alpha = 0.2;
txtInfo.text = (("You won! " + strOppName) + " has nothing left!");
};
updateClothes();
}
public function undressPlayerAndPayAnte():void{
if (iPlayerClothes < 6){
iPlayerClothes++;
iPlayerCredits = (iPlayerCredits + (iClothValue - 5));
iPlayerBet = (iPlayerBet + 5);
iPot = (iPot + 5);
updateCreditsUI();
} else {
bGameOver = true;
iPhase = -1;
btnAnte.alpha = 0.2;
btnRaise.alpha = 0.2;
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
btnPunish.alpha = 0.2;
txtInfo.text = "You lost everything! Game Over!";
};
}
public function showPlayerHand():void{
if (arrPlayerHand[1][0] != null){
if (arrPlayerHand[1][0] == 99){
card1.gotoAndStop(54);
} else {
card1.gotoAndStop((((Number(arrPlayerHand[1][0]) - 1) * 13) + Number(arrPlayerHand[0][0])));
};
card1.alpha = 1;
};
if (arrPlayerHand[1][1] != null){
if (arrPlayerHand[1][1] == 99){
card2.gotoAndStop(54);
} else {
card2.gotoAndStop((((Number(arrPlayerHand[1][1]) - 1) * 13) + Number(arrPlayerHand[0][1])));
};
card2.alpha = 1;
};
if (arrPlayerHand[1][2] != null){
if (arrPlayerHand[1][2] == 99){
card3.gotoAndStop(54);
} else {
card3.gotoAndStop((((Number(arrPlayerHand[1][2]) - 1) * 13) + Number(arrPlayerHand[0][2])));
};
card3.alpha = 1;
};
if (arrPlayerHand[1][3] != null){
if (arrPlayerHand[1][3] == 99){
card4.gotoAndStop(54);
} else {
card4.gotoAndStop((((Number(arrPlayerHand[1][3]) - 1) * 13) + Number(arrPlayerHand[0][3])));
};
card4.alpha = 1;
};
if (arrPlayerHand[1][4] != null){
if (arrPlayerHand[1][4] == 99){
card5.gotoAndStop(54);
} else {
card5.gotoAndStop((((Number(arrPlayerHand[1][4]) - 1) * 13) + Number(arrPlayerHand[0][4])));
};
card5.alpha = 1;
};
}
public function showOppHand(_arg1:Boolean):void{
if (_arg1 == true){
if (arrOppHand[1][0] == 99){
card1b.gotoAndStop(54);
} else {
card1b.gotoAndStop((((Number(arrOppHand[1][0]) - 1) * 13) + Number(arrOppHand[0][0])));
};
card1b.alpha = 1;
if (arrOppHand[1][1] == 99){
card2b.gotoAndStop(54);
} else {
card2b.gotoAndStop((((Number(arrOppHand[1][1]) - 1) * 13) + Number(arrOppHand[0][1])));
};
card2b.alpha = 1;
if (arrOppHand[1][2] == 99){
card3b.gotoAndStop(54);
} else {
card3b.gotoAndStop((((Number(arrOppHand[1][2]) - 1) * 13) + Number(arrOppHand[0][2])));
};
card3b.alpha = 1;
if (arrOppHand[1][3] == 99){
card4b.gotoAndStop(54);
} else {
card4b.gotoAndStop((((Number(arrOppHand[1][3]) - 1) * 13) + Number(arrOppHand[0][3])));
};
card4b.alpha = 1;
if (arrOppHand[1][4] == 99){
card5b.gotoAndStop(54);
} else {
card5b.gotoAndStop((((Number(arrOppHand[1][4]) - 1) * 13) + Number(arrOppHand[0][4])));
};
card5b.alpha = 1;
updateOppRankText();
} else {
card1b.alpha = 0;
card2b.alpha = 0;
card3b.alpha = 0;
card4b.alpha = 0;
card5b.alpha = 0;
txtOppRank.text = "";
};
}
public function sortPlayerHand():void{
var _local1:Array = [[], []];
var _local2:* = 2;
while (_local2 < 14) {
if (int(arrPlayerHand[0][0]) == _local2){
_local1[0].push(arrPlayerHand[0][0]);
_local1[1].push(arrPlayerHand[1][0]);
};
if (int(arrPlayerHand[0][1]) == _local2){
_local1[0].push(arrPlayerHand[0][1]);
_local1[1].push(arrPlayerHand[1][1]);
};
if (int(arrPlayerHand[0][2]) == _local2){
_local1[0].push(arrPlayerHand[0][2]);
_local1[1].push(arrPlayerHand[1][2]);
};
if (int(arrPlayerHand[0][3]) == _local2){
_local1[0].push(arrPlayerHand[0][3]);
_local1[1].push(arrPlayerHand[1][3]);
};
if (int(arrPlayerHand[0][4]) == _local2){
_local1[0].push(arrPlayerHand[0][4]);
_local1[1].push(arrPlayerHand[1][4]);
};
_local2++;
};
if (int(arrPlayerHand[0][0]) == 1){
_local1[0].push(arrPlayerHand[0][0]);
_local1[1].push(arrPlayerHand[1][0]);
};
if (int(arrPlayerHand[0][1]) == 1){
_local1[0].push(arrPlayerHand[0][1]);
_local1[1].push(arrPlayerHand[1][1]);
};
if (int(arrPlayerHand[0][2]) == 1){
_local1[0].push(arrPlayerHand[0][2]);
_local1[1].push(arrPlayerHand[1][2]);
};
if (int(arrPlayerHand[0][3]) == 1){
_local1[0].push(arrPlayerHand[0][3]);
_local1[1].push(arrPlayerHand[1][3]);
};
if (int(arrPlayerHand[0][4]) == 1){
_local1[0].push(arrPlayerHand[0][4]);
_local1[1].push(arrPlayerHand[1][4]);
};
if (int(arrPlayerHand[0][0]) == 99){
_local1[0].push(arrPlayerHand[0][0]);
_local1[1].push(arrPlayerHand[1][0]);
};
if (int(arrPlayerHand[0][1]) == 99){
_local1[0].push(arrPlayerHand[0][1]);
_local1[1].push(arrPlayerHand[1][1]);
};
if (int(arrPlayerHand[0][2]) == 99){
_local1[0].push(arrPlayerHand[0][2]);
_local1[1].push(arrPlayerHand[1][2]);
};
if (int(arrPlayerHand[0][3]) == 99){
_local1[0].push(arrPlayerHand[0][3]);
_local1[1].push(arrPlayerHand[1][3]);
};
if (int(arrPlayerHand[0][4]) == 99){
_local1[0].push(arrPlayerHand[0][4]);
_local1[1].push(arrPlayerHand[1][4]);
};
if (btnHiLo.currentFrame == 2){
arrPlayerHand[0][0] = _local1[0][0];
arrPlayerHand[1][0] = _local1[1][0];
arrPlayerHand[0][1] = _local1[0][1];
arrPlayerHand[1][1] = _local1[1][1];
arrPlayerHand[0][2] = _local1[0][2];
arrPlayerHand[1][2] = _local1[1][2];
arrPlayerHand[0][3] = _local1[0][3];
arrPlayerHand[1][3] = _local1[1][3];
arrPlayerHand[0][4] = _local1[0][4];
arrPlayerHand[1][4] = _local1[1][4];
} else {
arrPlayerHand[0][0] = _local1[0][4];
arrPlayerHand[1][0] = _local1[1][4];
arrPlayerHand[0][1] = _local1[0][3];
arrPlayerHand[1][1] = _local1[1][3];
arrPlayerHand[0][2] = _local1[0][2];
arrPlayerHand[1][2] = _local1[1][2];
arrPlayerHand[0][3] = _local1[0][1];
arrPlayerHand[1][3] = _local1[1][1];
arrPlayerHand[0][4] = _local1[0][0];
arrPlayerHand[1][4] = _local1[1][0];
};
}
public function updatePlayerRankText():void{
var _local1:Array = ["-/-", "High card", "One pair", "Two pair", "Three of a kind", "Straight", "Flush", "Full house", "Four of a kind", "Straight flush", "Royal flush", "Five of a kind"];
if (arrPlayerRank[0] == 1){
if (arrPlayerRank[1] == 14){
txtPlayerRank.text = "Ace high";
} else {
if (arrPlayerRank[1] == 13){
txtPlayerRank.text = "King high";
} else {
if (arrPlayerRank[1] == 12){
txtPlayerRank.text = "Queen high";
} else {
if (arrPlayerRank[1] == 11){
txtPlayerRank.text = "Jack high";
} else {
if (arrPlayerRank[1] == 10){
txtPlayerRank.text = "Ten high";
} else {
txtPlayerRank.text = "-/-";
};
};
};
};
};
} else {
txtPlayerRank.text = _local1[arrPlayerRank[0]];
};
}
public function updateOppRankText():void{
var _local1:Array = ["-/-", "High card", "One pair", "Two pair", "Three of a kind", "Straight", "Flush", "Full house", "Four of a kind", "Straight flush", "Royal flush", "Five of a kind"];
if (arrOppRank[0] == 1){
if (arrOppRank[1] == 14){
txtOppRank.text = "Ace high";
} else {
if (arrOppRank[1] == 13){
txtOppRank.text = "King high";
} else {
if (arrOppRank[1] == 12){
txtOppRank.text = "Queen high";
} else {
if (arrOppRank[1] == 11){
txtOppRank.text = "Jack high";
} else {
if (arrOppRank[1] == 10){
txtOppRank.text = "Ten high";
} else {
txtOppRank.text = "-/-";
};
};
};
};
};
} else {
txtOppRank.text = _local1[arrOppRank[0]];
};
}
public function playerCancelLocks():void{
arrPlayerLock = [1, 1, 1, 1, 1];
showPlayerHand();
}
public function playerToggleLock(_arg1):void{
if (bCardSelectEnabled == true){
if (arrPlayerLock[_arg1] == 0){
arrPlayerLock[_arg1] = 1;
if (_arg1 == 0){
if (arrPlayerHand[1][_arg1] == 99){
card1.gotoAndStop(54);
} else {
card1.gotoAndStop((((Number(arrPlayerHand[1][_arg1]) - 1) * 13) + Number(arrPlayerHand[0][_arg1])));
};
} else {
if (_arg1 == 1){
if (arrPlayerHand[1][_arg1] == 99){
card2.gotoAndStop(54);
} else {
card2.gotoAndStop((((Number(arrPlayerHand[1][_arg1]) - 1) * 13) + Number(arrPlayerHand[0][_arg1])));
};
} else {
if (_arg1 == 2){
if (arrPlayerHand[1][_arg1] == 99){
card3.gotoAndStop(54);
} else {
card3.gotoAndStop((((Number(arrPlayerHand[1][_arg1]) - 1) * 13) + Number(arrPlayerHand[0][_arg1])));
};
} else {
if (_arg1 == 3){
if (arrPlayerHand[1][_arg1] == 99){
card4.gotoAndStop(54);
} else {
card4.gotoAndStop((((Number(arrPlayerHand[1][_arg1]) - 1) * 13) + Number(arrPlayerHand[0][_arg1])));
};
} else {
if (_arg1 == 4){
if (arrPlayerHand[1][_arg1] == 99){
card5.gotoAndStop(54);
} else {
card5.gotoAndStop((((Number(arrPlayerHand[1][_arg1]) - 1) * 13) + Number(arrPlayerHand[0][_arg1])));
};
};
};
};
};
};
} else {
arrPlayerLock[_arg1] = 0;
if (_arg1 == 0){
card1.gotoAndStop(55);
} else {
if (_arg1 == 1){
card2.gotoAndStop(55);
} else {
if (_arg1 == 2){
card3.gotoAndStop(55);
} else {
if (_arg1 == 3){
card4.gotoAndStop(55);
} else {
if (_arg1 == 4){
card5.gotoAndStop(55);
};
};
};
};
};
};
};
}
public function insertCard(_arg1):void{
if (bCardAnimation == true){
cardDeal.alpha = 1;
cardDeal.y = _arg1.y;
myTween.stop();
myTween = new Tween(cardDeal, "x", None.easeNone, -100, _arg1.x, 1, true);
myTween.FPS = 40;
};
}
public function blinkWndBetAmount():void{
myTweenBetCall.stop();
myTweenBetCall = new Tween(wndBetAmount, "alpha", Regular.easeIn, 1, 0, 4, true);
myTweenBetCall.FPS = 40;
}
public function the30SecondRule():void{
if (secondsCount > 29){
wndReset.y = 3;
wndReset.txtId.text = ("ID: " + iPhase);
wndReset.alpha = 1;
};
}
public function showBase():void{
clearArt();
charArt.base.alpha = 1;
if (wndClothesOpp.currentFrame == 1){
charArt.socks11.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 2){
charArt.shirt11.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 3){
charArt.skirt11.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 4){
charArt.bra11.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 5){
charArt.panties11.alpha = 1;
};
}
public function showStocks():void{
clearArt();
charArt.stocks.alpha = 1;
if (wndClothesOpp.currentFrame == 1){
charArt.socks12.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 2){
charArt.shirt12.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 3){
charArt.skirt12.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 4){
charArt.bra12.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 5){
charArt.panties12.alpha = 1;
};
if (wndPlayerPunish.btnGuillotine.currentFrame == 1){
charArt.guillotine.alpha = 1;
};
if (wndPlayerPunish.btnCam.currentFrame == 1){
charArt.camera.alpha = 1;
};
}
public function showHorse():void{
clearArt();
charArt.horseSocket11.alpha = 1;
charArt.horseTop.alpha = 1;
bBumpyRide = false;
if (wndClothesOpp.currentFrame == 1){
charArt.horseTop.socks13.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 2){
charArt.horseTop.shirt13.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 3){
charArt.horseTop.skirt13.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 4){
charArt.horseTop.bra13.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 5){
charArt.horseTop.panties13.alpha = 1;
};
if (wndPlayerPunish.btnSawtooth.currentFrame == 1){
charArt.horseTop.sawtooth11.alpha = 1;
};
if (wndPlayerPunish.btnBridle.currentFrame == 1){
charArt.horseTop.bridle11.alpha = 1;
};
}
public function updateClothes():void{
if (charArt.base.alpha == 1){
charArt.socks11.alpha = 0;
charArt.shirt11.alpha = 0;
charArt.skirt11.alpha = 0;
charArt.bra11.alpha = 0;
charArt.panties11.alpha = 0;
if (wndClothesOpp.currentFrame == 1){
charArt.socks11.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 2){
charArt.shirt11.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 3){
charArt.skirt11.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 4){
charArt.bra11.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 5){
charArt.panties11.alpha = 1;
};
} else {
if (charArt.stocks.alpha == 1){
charArt.socks12.alpha = 0;
charArt.shirt12.alpha = 0;
charArt.skirt12.alpha = 0;
charArt.bra12.alpha = 0;
charArt.panties12.alpha = 0;
if (wndClothesOpp.currentFrame == 1){
charArt.socks12.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 2){
charArt.shirt12.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 3){
charArt.skirt12.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 4){
charArt.bra12.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 5){
charArt.panties12.alpha = 1;
};
} else {
if (charArt.horseTop.alpha == 1){
charArt.horseTop.socks13.alpha = 0;
charArt.horseTop.shirt13.alpha = 0;
charArt.horseTop.skirt13.alpha = 0;
charArt.horseTop.bra13.alpha = 0;
charArt.horseTop.panties13.alpha = 0;
if (wndClothesOpp.currentFrame == 1){
charArt.horseTop.socks13.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 2){
charArt.horseTop.shirt13.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 3){
charArt.horseTop.skirt13.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 4){
charArt.horseTop.bra13.alpha = 1;
};
if (wndClothesOpp.currentFrame <= 5){
charArt.horseTop.panties13.alpha = 1;
};
};
};
};
}
public function clearArt():void{
charArt.base.alpha = 0;
charArt.gag.alpha = 0;
charArt.socks11.alpha = 0;
charArt.panties11.alpha = 0;
charArt.bra11.alpha = 0;
charArt.shirt11.alpha = 0;
charArt.skirt11.alpha = 0;
charArt.stocks.alpha = 0;
charArt.stocksWhip11.alpha = 0;
charArt.stocksWhip11.gotoAndStop(1);
charArt.stocksSpank11.alpha = 0;
charArt.stocksSpank11.gotoAndStop(1);
charArt.tkDeluxe11.alpha = 0;
charArt.tkDeluxe11.gotoAndStop(1);
charArt.footWheel11.alpha = 0;
charArt.footWheel11.gotoAndStop(1);
charArt.socks12.alpha = 0;
charArt.panties12.alpha = 0;
charArt.bra12.alpha = 0;
charArt.shirt12.alpha = 0;
charArt.skirt12.alpha = 0;
charArt.guillotine.alpha = 0;
charArt.camera.alpha = 0;
charArt.horseTop.alpha = 0;
charArt.horseSocket11.alpha = 0;
charArt.horseTop.candle11.alpha = 0;
charArt.horseTop.rope11.alpha = 0;
charArt.horseTop.weights11.alpha = 0;
charArt.horseTop.sawtooth11.alpha = 0;
charArt.horseTop.bridle11.alpha = 0;
charArt.horseTop.socks13.alpha = 0;
charArt.horseTop.panties13.alpha = 0;
charArt.horseTop.bra13.alpha = 0;
charArt.horseTop.shirt13.alpha = 0;
charArt.horseTop.skirt13.alpha = 0;
}
public function fillAndShuffleDeck():void{
var _local2:*;
var _local1:Array = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]];
if (bJokers == true){
_local1[0].push(99);
_local1[1].push(99);
_local1[0].push(99);
_local1[1].push(99);
};
arrDeck = [[], []];
arrPlayerHand = [[], []];
arrOppHand = [[], []];
arrPlayerRank = [0, 0, 0, 0, 0, 0];
arrOppRank = [0, 0, 0, 0, 0, 0];
arrOuts = [0, 0];
while (_local1[0].length > 0) {
_local2 = Math.floor((Math.random() * _local1[0].length));
arrDeck[0].push(_local1[0].splice(_local2, 1));
arrDeck[1].push(_local1[1].splice(_local2, 1));
};
}
public function deal5Cards():void{
var _local1:* = 0;
while (_local1 < 5) {
dealCard(0);
dealCard(1);
_local1++;
};
}
public function redrawCards():void{
var _local1:* = 0;
_local1 = 4;
while (_local1 > -1) {
if (arrPlayerLock[_local1] == 0){
arrPlayerHand[0].splice(_local1, 1);
arrPlayerHand[1].splice(_local1, 1);
iPlayerDrawAmount++;
};
_local1--;
};
if (arrPlayerHand[0].length < 5){
while (arrPlayerHand[0].length < 5) {
dealCard(0);
};
};
arrPlayerLock = [1, 1, 1, 1, 1];
var _local2:* = 0;
_local1 = 4;
while (_local1 > -1) {
if (arrOppLock[_local1] == 0){
arrOppHand[0].splice(_local1, 1);
arrOppHand[1].splice(_local1, 1);
_local2++;
};
_local1--;
};
if (arrOppHand[0].length < 5){
while (arrOppHand[0].length < 5) {
dealCard(1);
};
};
arrOppLock = [0, 0, 0, 0, 0];
wndOppDiscard.gotoAndStop((_local2 + 1));
myTweenRedraw.stop();
myTweenRedraw = new Tween(wndOppDiscard, "alpha", Regular.easeIn, 1, 0, 3, true);
myTweenRedraw.FPS = 40;
}
public function dealCard(_arg1):void{
if (_arg1 == 0){
arrPlayerHand[0].push(arrDeck[0].splice(0, 1));
arrPlayerHand[1].push(arrDeck[1].splice(0, 1));
} else {
arrOppHand[0].push(arrDeck[0].splice(0, 1));
arrOppHand[1].push(arrDeck[1].splice(0, 1));
};
}
public function detectRank():void{
iR = 0;
i1 = 0;
i2 = 0;
i3 = 0;
i4 = 0;
i5 = 0;
lock1 = 0;
lock2 = 0;
lock3 = 0;
lock4 = 0;
lock5 = 0;
arrPlayerRank = [0, 0, 0, 0, 0, 0];
arrPlayerLock = [1, 1, 1, 1, 1];
check11(arrPlayerHand, 0);
check10(arrPlayerHand, 0);
check9(arrPlayerHand, 0);
check8(arrPlayerHand, 0);
check7(arrPlayerHand, 0);
check6(arrPlayerHand, 0);
check5(arrPlayerHand, 0);
check4(arrPlayerHand, 0);
check3(arrPlayerHand, 0);
check2(arrPlayerHand, 0);
arrPlayerRank[0] = iR;
arrPlayerRank[1] = i1;
arrPlayerRank[2] = i2;
arrPlayerRank[3] = i3;
arrPlayerRank[4] = i4;
arrPlayerRank[5] = i5;
iR = 0;
i1 = 0;
i2 = 0;
i3 = 0;
i4 = 0;
i5 = 0;
lock1 = 0;
lock2 = 0;
lock3 = 0;
lock4 = 0;
lock5 = 0;
arrOppRank = [0, 0, 0, 0, 0, 0];
arrOppLock = [0, 0, 0, 0, 0];
check11(arrOppHand, 1);
check10(arrOppHand, 1);
check9(arrOppHand, 1);
check8(arrOppHand, 1);
check7(arrOppHand, 1);
check6(arrOppHand, 1);
check5(arrOppHand, 1);
check4(arrOppHand, 1);
check3(arrOppHand, 1);
check2(arrOppHand, 1);
arrOppRank[0] = iR;
arrOppRank[1] = i1;
arrOppRank[2] = i2;
arrOppRank[3] = i3;
arrOppRank[4] = i4;
arrOppRank[5] = i5;
arrOppLock[0] = lock1;
arrOppLock[1] = lock2;
arrOppLock[2] = lock3;
arrOppLock[3] = lock4;
arrOppLock[4] = lock5;
}
public function highest(_arg1):Number{
if (_arg1 == 1){
return (14);
};
return (_arg1);
}
public function setRank(_arg1):void{
if (_arg1 == 0){
arrPlayerRank[0] = iR;
arrPlayerRank[1] = i1;
arrPlayerRank[2] = i2;
arrPlayerRank[3] = i3;
arrPlayerRank[4] = i4;
arrPlayerRank[5] = i5;
} else {
arrOppRank[0] = iR;
arrOppRank[1] = i1;
arrOppRank[2] = i2;
arrOppRank[3] = i3;
arrOppRank[4] = i4;
arrOppRank[5] = i5;
};
}
public function check11(_arg1:Array, _arg2):void{
var _local3:*;
var _local4:*;
if (iR == 0){
iR = 11;
_local3 = 99;
_local4 = 0;
while (_local3 == 99) {
if (_arg1[0][_local4] != 99){
_local3 = _arg1[0][_local4];
};
_local4++;
};
_local4 = 0;
while (_local4 < 5) {
if (((!((_arg1[0][_local4] == 99))) && (!((_arg1[0][_local4] == _local3))))){
iR = 0;
};
_local4++;
};
if (iR != 0){
i1 = highest(_local3);
setRank(_arg2);
lock1 = 1;
lock2 = 1;
lock3 = 1;
lock4 = 1;
lock5 = 1;
};
};
}
public function check10(_arg1:Array, _arg2):void{
var _local3:*;
var _local4:*;
if (iR == 0){
iR = 10;
_local3 = 99;
_local4 = 0;
while (_local3 == 99) {
if (int(_arg1[1][_local4]) != 99){
_local3 = int(_arg1[1][_local4]);
};
_local4++;
};
_local4 = 0;
while (_local4 < 5) {
if (((!((int(_arg1[1][_local4]) == 99))) && (!((int(_arg1[1][_local4]) == _local3))))){
iR = 0;
};
_local4++;
};
if (iR > 0){
_local4 = findAllCards(_arg1);
if (int(_arg1[1][0]) == 99){
_local4++;
};
if (int(_arg1[1][1]) == 99){
_local4++;
};
if (int(_arg1[1][2]) == 99){
_local4++;
};
if (int(_arg1[1][3]) == 99){
_local4++;
};
if (int(_arg1[1][4]) == 99){
_local4++;
};
if (_local4 < 5){
iR = 0;
};
if (iR != 0){
setRank(_arg2);
lock1 = 1;
lock2 = 1;
lock3 = 1;
lock4 = 1;
lock5 = 1;
};
};
};
}
public function check9(_arg1:Array, _arg2):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:Array;
if (iR == 0){
iR = 9;
_local3 = 99;
_local4 = 0;
_local5 = 0;
while (_local3 == 99) {
if (_arg1[1][_local5] != 99){
_local3 = int(_arg1[1][_local5]);
};
++_local5;
if (_local5 > 4){
_local3 = 100;
};
};
_local5 = 0;
while (_local5 < 5) {
if (int(_arg1[1][_local5]) != 99){
if (int(_arg1[1][_local5]) != _local3){
iR = 0;
};
};
_local5++;
};
if (iR != 0){
_local6 = 99;
_local7 = 0;
_local8 = [];
_local8.push(_arg1[0][0]);
_local8.push(_arg1[0][1]);
_local8.push(_arg1[0][2]);
_local8.push(_arg1[0][3]);
_local8.push(_arg1[0][4]);
_local8.sort(Array.NUMERIC);
if ((((_local8[0] == 1)) && ((_local8[4] == 13)))){
_local8[0] = 14;
_local8.sort(Array.NUMERIC);
};
_local6 = _local8[0];
_local5 = 1;
while (_local5 < 5) {
if (_local8[(_local5 - _local7)] == (int(_local6) + _local5)){
} else {
if (_local4 > 0){
_local4--;
_local7++;
} else {
iR = 0;
i1 = (_local6 + 4);
if (i1 > 14){
i1 = 14;
};
};
};
_local5++;
};
if (iR != 0){
lock1 = 1;
lock2 = 1;
lock3 = 1;
lock4 = 1;
lock5 = 1;
};
};
};
}
public function check8(_arg1:Array, _arg2):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (iR == 0){
_local3 = 99;
_local4 = 99;
_local5 = 0;
_local3 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local3, _local4, 99, 99);
_local4 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local3, _local4, 99, 99);
_local6 = 0;
_local7 = 0;
_local8 = 0;
_local5 = 0;
while (_local5 < 5) {
if (_arg1[0][_local5] == _local3){
_local6++;
} else {
if (_arg1[0][_local5] == _local4){
_local7++;
} else {
if (_arg1[0][_local5] == 99){
_local8++;
} else {
i2 = _arg1[0][_local5];
i2 = highest(i2);
};
};
};
_local5++;
};
if ((_local6 + _local8) == 4){
iR = 8;
i1 = _local3;
} else {
if ((_local7 + _local8) == 4){
iR = 8;
i1 = _local4;
};
};
if (iR != 0){
setRank(_arg2);
if ((((_arg1[0][0] == i1)) || ((_arg1[0][0] == 99)))){
lock1 = 1;
};
if ((((_arg1[0][1] == i1)) || ((_arg1[0][1] == 99)))){
lock2 = 1;
};
if ((((_arg1[0][2] == i1)) || ((_arg1[0][2] == 99)))){
lock3 = 1;
};
if ((((_arg1[0][3] == i1)) || ((_arg1[0][3] == 99)))){
lock4 = 1;
};
if ((((_arg1[0][4] == i1)) || ((_arg1[0][4] == 99)))){
lock5 = 1;
};
i1 = highest(i1);
if (bJokers == true){
arrOuts[_arg2] = 2;
};
};
};
}
public function check7(_arg1:Array, _arg2):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (iR == 0){
_local3 = 99;
_local4 = 99;
_local5 = 0;
_local6 = 0;
_local7 = 0;
_local8 = 0;
_local3 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local3, _local4, 99, 99);
_local4 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local3, _local4, 99, 99);
_local8 = 0;
while (_local8 < 5) {
if (_arg1[0][_local8] == 99){
_local7++;
} else {
if (_arg1[0][_local8] == _local3){
_local5++;
} else {
if (_arg1[0][_local8] == _local4){
_local6++;
};
};
};
_local8++;
};
if (((((_local5 + _local7) == 3)) && ((_local6 == 2)))){
iR = 7;
};
if (((((_local6 + _local7) == 3)) && ((_local5 == 2)))){
iR = 7;
};
if (iR != 0){
_local3 = highest(_local3);
_local4 = highest(_local4);
if (_local3 > _local4){
i1 = _local3;
i2 = _local4;
} else {
i1 = _local4;
i2 = _local3;
};
lock1 = 1;
lock2 = 1;
lock3 = 1;
lock4 = 1;
lock5 = 1;
};
};
}
public function check6(_arg1:Array, _arg2):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:Array;
if (iR == 0){
iR = 6;
_local3 = 0;
_local4 = 99;
_local5 = 0;
while (_local4 == 99) {
if (int(_arg1[1][_local5]) != 99){
_local4 = int(_arg1[1][_local5]);
};
_local5++;
};
_local5 = 0;
while (_local5 < 5) {
if (((!((int(_arg1[1][_local5]) == 99))) && (!((int(_arg1[1][_local5]) == _local4))))){
iR = 0;
};
_local5++;
};
if (iR != 0){
_local6 = [];
_local6.push(_arg1[0][0]);
_local6.push(_arg1[0][1]);
_local6.push(_arg1[0][2]);
_local6.push(_arg1[0][3]);
_local6.push(_arg1[0][4]);
_local6.sort(Array.NUMERIC);
i1 = _local6[0];
i2 = _local6[1];
i3 = _local6[2];
if (_local3 < 2){
i4 = _local6[3];
};
if (_local3 == 0){
i5 = _local6[4];
};
lock1 = 1;
lock2 = 1;
lock3 = 1;
lock4 = 1;
lock5 = 1;
};
};
}
public function check5(_arg1:Array, _arg2):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:Array;
if (iR == 0){
iR = 5;
_local3 = 0;
_local4 = 0;
_local4 = 0;
while (_local4 < 5) {
if (_arg1[1][_local4] == 99){
_local3++;
};
_local4++;
};
if (iR != 0){
_local5 = 99;
_local6 = 0;
_local7 = [];
_local7.push(_arg1[0][0]);
_local7.push(_arg1[0][1]);
_local7.push(_arg1[0][2]);
_local7.push(_arg1[0][3]);
_local7.push(_arg1[0][4]);
_local7.sort(Array.NUMERIC);
if ((((_local7[0] == 1)) && ((_local7[4] == 13)))){
_local7[0] = 14;
_local7.sort(Array.NUMERIC);
};
_local5 = _local7[0];
_local4 = 1;
while (_local4 < 5) {
if (_local7[(_local4 - _local6)] == (int(_local5) + _local4)){
} else {
if (_local3 > 0){
_local3--;
_local6++;
} else {
iR = 0;
};
};
_local4++;
};
if (iR != 0){
i1 = (_local5 + 4);
if (i1 > 14){
i1 = 14;
};
lock1 = 1;
lock2 = 1;
lock3 = 1;
lock4 = 1;
lock5 = 1;
};
};
};
}
public function check4(_arg1:Array, _arg2):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:Array;
if (iR == 0){
_local3 = 99;
_local4 = 99;
_local5 = 99;
_local6 = 0;
_local7 = 0;
_local8 = 0;
_local9 = 0;
_local10 = 0;
_local3 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local3, _local4, _local5, 99);
_local4 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local3, _local4, _local5, 99);
_local5 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local3, _local4, _local5, 99);
_local10 = 0;
while (_local10 < 5) {
if (_arg1[0][_local10] == 99){
_local9++;
} else {
if (_arg1[0][_local10] == _local3){
_local6++;
} else {
if (_arg1[0][_local10] == _local4){
_local7++;
} else {
if (_arg1[0][_local10] == _local5){
_local8++;
};
};
};
};
_local10++;
};
if (((((((_local6 + _local9) == 3)) || (((_local7 + _local9) == 3)))) || (((_local8 + _local9) == 3)))){
iR = 4;
};
if (iR != 0){
if (_local9 == 2){
_local11 = [];
_local11.push(_local3);
_local11.push(_local4);
_local11.push(_local5);
_local11.sort(Array.NUMERIC);
i1 = _local11[2];
i2 = _local11[1];
i3 = _local11[0];
} else {
if (_local6 > 1){
i1 = highest(_local3);
if (highest(_local7) > highest(_local8)){
i2 = highest(_local4);
i3 = highest(_local5);
} else {
i2 = highest(_local5);
i3 = highest(_local4);
};
} else {
if (_local7 > 1){
i1 = highest(_local4);
if (highest(_local6) > highest(_local8)){
i2 = highest(_local3);
i3 = highest(_local5);
} else {
i2 = highest(_local5);
i3 = highest(_local3);
};
} else {
i1 = _local5;
if (highest(_local6) > highest(_local7)){
i2 = highest(_local3);
i3 = highest(_local4);
} else {
i2 = highest(_local4);
i3 = highest(_local3);
};
};
};
};
if ((((_arg1[0][0] == i1)) || ((_arg1[0][0] == 99)))){
lock1 = 1;
};
if ((((_arg1[0][1] == i1)) || ((_arg1[0][1] == 99)))){
lock2 = 1;
};
if ((((_arg1[0][2] == i1)) || ((_arg1[0][2] == 99)))){
lock3 = 1;
};
if ((((_arg1[0][3] == i1)) || ((_arg1[0][3] == 99)))){
lock4 = 1;
};
if ((((_arg1[0][4] == i1)) || ((_arg1[0][4] == 99)))){
lock5 = 1;
};
i1 = highest(i1);
if (bJokers == true){
arrOuts[_arg2] = 3;
} else {
arrOuts[_arg2] = 1;
};
};
};
}
public function check3(_arg1:Array, _arg2):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
if (iR == 0){
_local3 = 99;
_local4 = 99;
_local5 = 99;
_local6 = 0;
_local7 = 0;
_local8 = 0;
_local9 = 0;
_local3 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local3, _local4, _local5, 99);
_local4 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local3, _local4, _local5, 99);
_local5 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local3, _local4, _local5, 99);
_local9 = 0;
while (_local9 < 5) {
if (_arg1[0][_local9] == _local3){
_local6++;
} else {
if (_arg1[0][_local9] == _local4){
_local7++;
} else {
if (_arg1[0][_local9] == _local5){
_local8++;
};
};
};
_local9++;
};
if ((((_local6 == 2)) && ((_local7 == 2)))){
iR = 3;
i3 = _local5;
if (highest(_local3) < highest(_local4)){
i1 = highest(_local4);
i2 = highest(_local3);
} else {
i1 = highest(_local3);
i2 = highest(_local4);
};
} else {
if ((((_local6 == 2)) && ((_local8 == 2)))){
iR = 3;
i3 = _local4;
if (highest(_local3) < highest(_local5)){
i1 = highest(_local5);
i2 = highest(_local3);
} else {
i1 = highest(_local3);
i2 = highest(_local5);
};
} else {
if ((((_local7 == 2)) && ((_local8 == 2)))){
iR = 3;
i3 = _local3;
if (highest(_local4) < highest(_local5)){
i1 = highest(_local5);
i2 = highest(_local4);
} else {
i1 = highest(_local4);
i2 = highest(_local5);
};
};
};
};
if (iR != 0){
lock1 = 1;
lock2 = 1;
lock3 = 1;
lock4 = 1;
lock5 = 1;
if (_arg1[0][0] == i3){
lock1 = 0;
};
if (_arg1[0][1] == i3){
lock2 = 0;
};
if (_arg1[0][2] == i3){
lock3 = 0;
};
if (_arg1[0][3] == i3){
lock4 = 0;
};
if (_arg1[0][4] == i3){
lock5 = 0;
};
i1 = highest(i1);
if (bJokers == true){
arrOuts[_arg2] = 4;
} else {
arrOuts[_arg2] = 2;
};
};
};
}
public function check2(_arg1:Array, _arg2):void{
var _local3:Array;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
_local3 = [];
if (iR == 0){
_local3.push(_arg1[0][0]);
_local3.push(_arg1[0][1]);
_local3.push(_arg1[0][2]);
_local3.push(_arg1[0][3]);
_local3.push(_arg1[0][4]);
_local3.sort(Array.NUMERIC);
};
if (iR == 0){
_local4 = 99;
_local5 = 99;
_local6 = 99;
_local7 = 99;
_local8 = 0;
_local9 = 0;
_local10 = 0;
_local11 = 0;
_local12 = 0;
_local13 = 0;
_local4 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local4, _local5, _local6, _local7);
_local5 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local4, _local5, _local6, _local7);
_local6 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local4, _local5, _local6, _local7);
_local7 = getUniqueNr(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4], _local4, _local5, _local6, _local7);
_local13 = 0;
while (_local13 < 5) {
if (_arg1[0][_local13] == 99){
_local12++;
} else {
if (_arg1[0][_local13] == _local4){
_local8++;
} else {
if (_arg1[0][_local13] == _local5){
_local9++;
} else {
if (_arg1[0][_local13] == _local6){
_local10++;
} else {
if (_arg1[0][_local13] == _local7){
_local11++;
};
};
};
};
};
_local13++;
};
if (_local12 > 0){
iR = 2;
if (_local3[0] == 1){
i1 = 14;
i2 = _local3[3];
i3 = _local3[2];
i4 = _local3[1];
} else {
i1 = _local3[3];
i2 = _local3[2];
i3 = _local3[1];
i4 = _local3[0];
};
if ((((_arg1[0][0] == i1)) || ((_arg1[0][0] == 99)))){
lock1 = 1;
};
if ((((_arg1[0][1] == i1)) || ((_arg1[0][1] == 99)))){
lock2 = 1;
};
if ((((_arg1[0][2] == i1)) || ((_arg1[0][2] == 99)))){
lock3 = 1;
};
if ((((_arg1[0][3] == i1)) || ((_arg1[0][3] == 99)))){
lock4 = 1;
};
if ((((_arg1[0][4] == i1)) || ((_arg1[0][4] == 99)))){
lock5 = 1;
};
if (((!((_arg1[0][0] == i1))) && ((((_arg1[0][0] == 1)) || ((_arg1[0][0] > 9)))))){
lock1 = 1;
} else {
if (((!((_arg1[0][1] == i1))) && ((((_arg1[0][1] == 1)) || ((_arg1[0][1] > 9)))))){
lock2 = 1;
} else {
if (((!((_arg1[0][2] == i1))) && ((((_arg1[0][2] == 1)) || ((_arg1[0][2] > 9)))))){
lock3 = 1;
} else {
if (((!((_arg1[0][3] == i1))) && ((((_arg1[0][3] == 1)) || ((_arg1[0][3] > 9)))))){
lock4 = 1;
} else {
if (((!((_arg1[0][4] == i1))) && ((((_arg1[0][4] == 1)) || ((_arg1[0][4] > 9)))))){
lock5 = 1;
};
};
};
};
};
} else {
if (_local8 == 2){
iR = 2;
i1 = highest(_local4);
} else {
if (_local9 == 2){
iR = 2;
i1 = highest(_local5);
} else {
if (_local10 == 2){
iR = 2;
i1 = highest(_local6);
} else {
if (_local11 == 2){
iR = 2;
i1 = highest(_local7);
};
};
};
};
if (iR == 2){
if (_arg1[0][0] == i1){
lock1 = 1;
};
if (_arg1[0][1] == i1){
lock2 = 1;
};
if (_arg1[0][2] == i1){
lock3 = 1;
};
if (_arg1[0][3] == i1){
lock4 = 1;
};
if (_arg1[0][4] == i1){
lock5 = 1;
};
if (((!((_arg1[0][0] == i1))) && ((((_arg1[0][0] == 1)) || ((_arg1[0][0] > 10)))))){
lock1 = 1;
} else {
if (((!((_arg1[0][1] == i1))) && ((((_arg1[0][1] == 1)) || ((_arg1[0][1] > 9)))))){
lock2 = 1;
} else {
if (((!((_arg1[0][2] == i1))) && ((((_arg1[0][2] == 1)) || ((_arg1[0][2] > 9)))))){
lock3 = 1;
} else {
if (((!((_arg1[0][3] == i1))) && ((((_arg1[0][3] == 1)) || ((_arg1[0][3] > 9)))))){
lock4 = 1;
} else {
if (((!((_arg1[0][4] == i1))) && ((((_arg1[0][4] == 1)) || ((_arg1[0][4] > 9)))))){
lock5 = 1;
};
};
};
};
};
i1 = highest(i1);
if (_local3[0] == 1){
i2 = 14;
i3 = _local3[4];
i4 = _local3[3];
i5 = _local3[2];
} else {
i2 = _local3[4];
i3 = _local3[3];
i4 = _local3[2];
i5 = _local3[1];
};
};
};
};
if (iR == 2){
if (bJokers == true){
arrOuts[_arg2] = 12;
} else {
arrOuts[_arg2] = 10;
};
};
if (iR == 0){
if (_local3[0] == 1){
_local3[0] = 14;
_local3.sort(Array.NUMERIC);
};
i1 = _local3[4];
i2 = _local3[3];
i3 = _local3[2];
i4 = _local3[1];
i5 = _local3[0];
_local14 = false;
_local15 = 0;
_local16 = 0;
_local17 = 0;
_local18 = 0;
_local13 = 0;
while (_local13 < 5) {
if (_arg1[1][_local13] == 1){
_local15++;
} else {
if (_arg1[1][_local13] == 2){
_local16++;
} else {
if (_arg1[1][_local13] == 3){
_local17++;
} else {
if (_arg1[1][_local13] == 4){
_local18++;
};
};
};
};
_local13++;
};
if (_local15 == 4){
_local14 = true;
if (_arg1[1][0] == 1){
lock1 = 1;
};
if (_arg1[1][1] == 1){
lock2 = 1;
};
if (_arg1[1][2] == 1){
lock3 = 1;
};
if (_arg1[1][3] == 1){
lock4 = 1;
};
if (_arg1[1][4] == 1){
lock5 = 1;
};
iR = 1;
if (bJokers == true){
arrOuts[_arg2] = 11;
} else {
arrOuts[_arg2] = 9;
};
} else {
if (_local16 == 4){
_local14 = true;
if (_arg1[1][0] == 2){
lock1 = 1;
};
if (_arg1[1][1] == 2){
lock2 = 1;
};
if (_arg1[1][2] == 2){
lock3 = 1;
};
if (_arg1[1][3] == 2){
lock4 = 1;
};
if (_arg1[1][4] == 2){
lock5 = 1;
};
iR = 1;
if (bJokers == true){
arrOuts[_arg2] = 11;
} else {
arrOuts[_arg2] = 9;
};
} else {
if (_local17 == 4){
_local14 = true;
if (_arg1[1][0] == 3){
lock1 = 1;
};
if (_arg1[1][1] == 3){
lock2 = 1;
};
if (_arg1[1][2] == 3){
lock3 = 1;
};
if (_arg1[1][3] == 3){
lock4 = 1;
};
if (_arg1[1][4] == 3){
lock5 = 1;
};
iR = 1;
if (bJokers == true){
arrOuts[_arg2] = 11;
} else {
arrOuts[_arg2] = 9;
};
} else {
if (_local18 == 4){
_local14 = true;
if (_arg1[1][0] == 4){
lock1 = 1;
};
if (_arg1[1][1] == 4){
lock2 = 1;
};
if (_arg1[1][2] == 4){
lock3 = 1;
};
if (_arg1[1][3] == 4){
lock4 = 1;
};
if (_arg1[1][4] == 4){
lock5 = 1;
};
iR = 1;
if (bJokers == true){
arrOuts[_arg2] = 11;
} else {
arrOuts[_arg2] = 9;
};
};
};
};
};
if (_local14 == false){
if (checkSequence(_arg1[0][0], _arg1[0][1], _arg1[0][2], _arg1[0][3], _arg1[0][4]) == true){
_local14 = true;
iR = 1;
if (bJokers == true){
arrOuts[_arg2] = 10;
} else {
arrOuts[_arg2] = 8;
};
};
};
};
if (iR == 0){
if ((((_arg1[0][0] == 1)) || ((_arg1[0][0] == 14)))){
lock1 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if ((((_arg1[0][1] == 1)) || ((_arg1[0][1] == 14)))){
lock2 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if ((((_arg1[0][2] == 1)) || ((_arg1[0][2] == 14)))){
lock3 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if ((((_arg1[0][3] == 1)) || ((_arg1[0][3] == 14)))){
lock4 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if ((((_arg1[0][4] == 1)) || ((_arg1[0][4] == 14)))){
lock5 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][0] == 13){
lock1 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][1] == 13){
lock2 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][2] == 13){
lock3 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][3] == 13){
lock4 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][4] == 13){
lock5 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][0] == 12){
lock1 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][1] == 12){
lock2 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][2] == 12){
lock3 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][3] == 12){
lock4 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][4] == 12){
lock5 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][0] == 11){
lock1 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][1] == 11){
lock2 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][2] == 11){
lock3 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][3] == 11){
lock4 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][4] == 11){
lock5 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][0] == 10){
lock1 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][1] == 10){
lock2 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][2] == 10){
lock3 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][3] == 10){
lock4 = 1;
iR = 1;
arrOuts[_arg2] = 3;
} else {
if (_arg1[0][4] == 10){
lock5 = 1;
iR = 1;
arrOuts[_arg2] = 3;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if ((((iR == 1)) && ((bJokers == true)))){
arrOuts[_arg2] = (arrOuts[_arg2] + 2);
};
};
}
public function checkSequence(_arg1, _arg2, _arg3, _arg4, _arg5):Boolean{
var _local6:Array;
var _local7:Array;
var _local8:*;
var _local9:*;
_local6 = [0, 0, 0, 0, 0, 99];
_local7 = [];
_local8 = 1;
_local6[0] = _arg1;
_local6[1] = _arg2;
_local6[2] = _arg3;
_local6[3] = _arg4;
_local6[4] = _arg5;
_local6.sort(Array.NUMERIC);
if (_local6.indexOf(1) != -1){
_local6[5] = 14;
};
_local9 = 0;
while (_local9 < 5) {
if ((_local6[_local9] + 1) == _local6[(_local9 + 1)]){
++_local8;
if (_local8 == 2){
_local7.push(_local6[_local9]);
};
if (_local6[(_local9 + 1)] == 14){
_local7.push(1);
} else {
_local7.push(_local6[(_local9 + 1)]);
};
};
_local9++;
};
if (_local8 == 4){
if (_local7.indexOf(_arg1) != -1){
lock1 = 1;
};
if (_local7.indexOf(_arg2) != -1){
lock2 = 1;
};
if (_local7.indexOf(_arg3) != -1){
lock3 = 1;
};
if (_local7.indexOf(_arg4) != -1){
lock4 = 1;
};
if (_local7.indexOf(_arg5) != -1){
lock5 = 1;
};
return (true);
//unresolved jump
};
return (false);
}
public function getUniqueNr(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6, _arg7, _arg8, _arg9):Number{
if ((((((((_arg1 == _arg6)) || ((_arg1 == _arg7)))) || ((_arg1 == _arg8)))) || ((_arg1 == _arg9)))){
_arg1 = 99;
};
if ((((((((_arg2 == _arg6)) || ((_arg2 == _arg7)))) || ((_arg2 == _arg8)))) || ((_arg2 == _arg9)))){
_arg2 = 99;
};
if ((((((((_arg3 == _arg6)) || ((_arg3 == _arg7)))) || ((_arg3 == _arg8)))) || ((_arg3 == _arg9)))){
_arg3 = 99;
};
if ((((((((_arg4 == _arg6)) || ((_arg4 == _arg7)))) || ((_arg4 == _arg8)))) || ((_arg4 == _arg9)))){
_arg4 = 99;
};
if ((((((((_arg5 == _arg6)) || ((_arg5 == _arg7)))) || ((_arg5 == _arg8)))) || ((_arg5 == _arg9)))){
_arg5 = 99;
};
if (_arg1 != 99){
return (_arg1);
};
if (_arg2 != 99){
return (_arg2);
};
if (_arg3 != 99){
return (_arg3);
};
if (_arg4 != 99){
return (_arg4);
};
if (_arg5 != 99){
return (_arg5);
};
return (99);
}
public function findAllCards(_arg1:Array):Number{
var _local2:*;
_local2 = 0;
if (_arg1[0].length != 5){
trace("Error: FindAllCards function got array with wrong length.");
return (0);
};
if ((((((((((int(_arg1[0][0]) == 1)) || ((int(_arg1[0][1]) == 1)))) || ((int(_arg1[0][2]) == 1)))) || ((int(_arg1[0][3]) == 1)))) || ((int(_arg1[0][4]) == 1)))){
_local2++;
};
if ((((((((((int(_arg1[0][0]) == 10)) || ((int(_arg1[0][1]) == 10)))) || ((int(_arg1[0][2]) == 10)))) || ((int(_arg1[0][3]) == 10)))) || ((int(_arg1[0][4]) == 10)))){
_local2++;
};
if ((((((((((int(_arg1[0][0]) == 11)) || ((int(_arg1[0][1]) == 11)))) || ((int(_arg1[0][2]) == 11)))) || ((int(_arg1[0][3]) == 11)))) || ((int(_arg1[0][4]) == 11)))){
_local2++;
};
if ((((((((((int(_arg1[0][0]) == 12)) || ((int(_arg1[0][1]) == 12)))) || ((int(_arg1[0][2]) == 12)))) || ((int(_arg1[0][3]) == 12)))) || ((int(_arg1[0][4]) == 12)))){
_local2++;
};
if ((((((((((int(_arg1[0][0]) == 13)) || ((int(_arg1[0][1]) == 13)))) || ((int(_arg1[0][2]) == 13)))) || ((int(_arg1[0][3]) == 13)))) || ((int(_arg1[0][4]) == 13)))){
_local2++;
};
return (_local2);
}
function frame1(){
stop();
bJokers = false;
bCardAnimation = false;
bDealAllCardsAtOnce = true;
bCharChosen = false;
bDeckChosen = false;
iOppChar = 0;
strOppName = "April";
wndIntro.alpha = 0;
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
wndPlayerPunish.textSheet.mouseEnabled = false;
wndPlayerPunish.textSheet.gotoAndStop((iOppChar + 1));
iPlayerBets = 0;
iPlayerCalls = 0;
iOppBets = 0;
arrPotOdds = [0, 0, 0, 0, 0];
bBluff = false;
iBluffRounds = 0;
bPostDeal = false;
iPlayerDrawAmount = 0;
iExpectedRank = 0;
arrBluff = [20, 25, 30];
arrBetsLowPair = [30, 40, 50];
iPot = 0;
iHighestBet = 0;
iPlayerBet = 0;
iOppBet = 0;
iPlayerCredits = 100;
iOppCredits = 100;
iClothValue = 100;
iDealer = 0;
iTurn = 0;
bCardSelectEnabled = false;
iOppClothes = 1;
iPlayerClothes = 1;
lastPlayerMove = 0;
lastOppMove = 0;
myInterval = setInterval(myTimer, 1000);
iCountDown = 0;
iPhase = -1;
iInStock = 0;
btnAnte.gotoAndStop(3);
btnAnte.alpha = 1;
btnRaise.gotoAndStop(2);
btnRaise.alpha = 0.2;
btnCall.gotoAndStop(2);
btnCall.alpha = 0.2;
btnFold.alpha = 0.2;
btnPunish.alpha = 0.2;
card1.alpha = 0;
card2.alpha = 0;
card3.alpha = 0;
card4.alpha = 0;
card5.alpha = 0;
iCallDiff = 0;
bGameOver = false;
secondsCount = 0;
wndReset.alpha = 1;
if (bCardAnimation == true){
myTween = new Tween(cardDeal, "x", None.easeNone, 200, 200, 1, true);
myTween.FPS = 40;
};
myTweenBetCall = new Tween(wndBetAmount, "alpha", Regular.easeIn, 0, 0, 1, true);
myTweenBetCall.FPS = 40;
myTweenRedraw = new Tween(wndOppDiscard, "alpha", Regular.easeIn, 0, 0, 1, true);
myTweenRedraw.FPS = 40;
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
wndBetBar.alpha = 0;
wndCardDraw.alpha = 0;
cardDeal.alpha = 0;
cardDeal.gotoAndStop(55);
wndOppDiscard.alpha = 0;
wndOppPunish.alpha = 0;
showOppHand(false);
card1.gotoAndStop(55);
card2.gotoAndStop(55);
card3.gotoAndStop(55);
card4.gotoAndStop(55);
card5.gotoAndStop(55);
iSocks = 1;
iShirt = 1;
iSkirt = 1;
iBra = 1;
iPanties = 1;
bBumpyRide = false;
charArt = new charApril();
charArt.x = 168;
charArt.y = 9;
addChild(charArt);
setChildIndex(charArt, 0);
showBase();
stop();
arrDeck = [[], []];
arrPlayerHand = [[], []];
arrOppHand = [[], []];
arrPlayerRank = [0, 0, 0, 0, 0, 0];
arrOppRank = [0, 0, 0, 0, 0, 0];
arrPlayerLock = [1, 1, 1, 1, 1];
arrOppLock = [0, 0, 0, 0, 0];
arrOuts = [0, 0];
iR = 0;
i1 = 0;
i2 = 0;
i3 = 0;
i4 = 0;
i5 = 0;
lock1 = 0;
lock2 = 0;
lock3 = 0;
lock4 = 0;
lock5 = 0;
}
}
}//package spp_LITE_fla
Section 40
//textSheet_62 (spp_LITE_fla.textSheet_62)
package spp_LITE_fla {
import flash.display.*;
public dynamic class textSheet_62 extends MovieClip {
public function textSheet_62(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 41
//wndBetAmount_29 (spp_LITE_fla.wndBetAmount_29)
package spp_LITE_fla {
import flash.display.*;
public dynamic class wndBetAmount_29 extends MovieClip {
public function wndBetAmount_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 42
//wndClothesOpp_33 (spp_LITE_fla.wndClothesOpp_33)
package spp_LITE_fla {
import flash.display.*;
public dynamic class wndClothesOpp_33 extends MovieClip {
public function wndClothesOpp_33(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 43
//wndClothesPlayer_34 (spp_LITE_fla.wndClothesPlayer_34)
package spp_LITE_fla {
import flash.display.*;
public dynamic class wndClothesPlayer_34 extends MovieClip {
public function wndClothesPlayer_34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 44
//wndDealer_28 (spp_LITE_fla.wndDealer_28)
package spp_LITE_fla {
import flash.display.*;
public dynamic class wndDealer_28 extends MovieClip {
public function wndDealer_28(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 45
//wndOppDiscard_32 (spp_LITE_fla.wndOppDiscard_32)
package spp_LITE_fla {
import flash.display.*;
public dynamic class wndOppDiscard_32 extends MovieClip {
public function wndOppDiscard_32(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spp_LITE_fla
Section 46
//charApril (charApril)
package {
import flash.display.*;
public dynamic class charApril extends MovieClip {
public var stocksWhip11:MovieClip;
public var shirt12:MovieClip;
public var skirt11:MovieClip;
public var skirt12:MovieClip;
public var stocksSpank11:MovieClip;
public var tkDeluxe11:MovieClip;
public var base:MovieClip;
public var stocks:MovieClip;
public var horseSocket11:MovieClip;
public var horseTop:MovieClip;
public var panties12:MovieClip;
public var gag:MovieClip;
public var footWheel11:MovieClip;
public var camera:MovieClip;
public var bra11:MovieClip;
public var bra12:MovieClip;
public var guillotine:MovieClip;
public var panties11:MovieClip;
public var socks11:MovieClip;
public var socks12:MovieClip;
public var shirt11:MovieClip;
}
}//package
Section 47
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 48
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package