Section 1
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 2
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 3
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
public var isPlaying:Boolean;// = false
public var obj:Object;// = null
public var prop:String;// = ""
public var func:Function;
public var begin:Number;// = NAN
public var change:Number;// = NAN
public var useSeconds:Boolean;// = false
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var looping:Boolean;// = false
private var _duration:Number;// = NAN
private var _time:Number;// = NAN
private var _fps:Number;// = NAN
private var _position:Number;// = NAN
private var _startTime:Number;// = NAN
private var _intervalID:uint;// = 0
private var _finish:Number;// = NAN
private var _timer:Timer;// = null
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function get time():Number{
return (this._time);
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get FPS():Number{
return (this._fps);
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
}
}//package fl.transitions
Section 4
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_RESUME:String = "motionResume";
public static const MOTION_LOOP:String = "motionLoop";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 5
//btn5minSpin_19 (swygm_slots_fla.btn5minSpin_19)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btn5minSpin_19 extends MovieClip {
public function btn5minSpin_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 6
//btnBetPerLineLeft_15 (swygm_slots_fla.btnBetPerLineLeft_15)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnBetPerLineLeft_15 extends MovieClip {
public function btnBetPerLineLeft_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 7
//btnBetPerLineRight_16 (swygm_slots_fla.btnBetPerLineRight_16)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnBetPerLineRight_16 extends MovieClip {
public function btnBetPerLineRight_16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 8
//btnChoice_18 (swygm_slots_fla.btnChoice_18)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnChoice_18 extends MovieClip {
public function btnChoice_18(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 9
//btnElectric_57 (swygm_slots_fla.btnElectric_57)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnElectric_57 extends MovieClip {
public function btnElectric_57(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 10
//btnInflate_54 (swygm_slots_fla.btnInflate_54)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnInflate_54 extends MovieClip {
public function btnInflate_54(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 11
//btnPunish_17 (swygm_slots_fla.btnPunish_17)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnPunish_17 extends MovieClip {
public function btnPunish_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 12
//btnRemote_10 (swygm_slots_fla.btnRemote_10)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnRemote_10 extends MovieClip {
public function btnRemote_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 13
//btnRodeo_53 (swygm_slots_fla.btnRodeo_53)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnRodeo_53 extends MovieClip {
public function btnRodeo_53(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 14
//btnSpank_52 (swygm_slots_fla.btnSpank_52)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnSpank_52 extends MovieClip {
public function btnSpank_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 15
//btnStop_58 (swygm_slots_fla.btnStop_58)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnStop_58 extends MovieClip {
public function btnStop_58(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 16
//btnStrip_51 (swygm_slots_fla.btnStrip_51)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnStrip_51 extends MovieClip {
public function btnStrip_51(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 17
//btnTickle_55 (swygm_slots_fla.btnTickle_55)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnTickle_55 extends MovieClip {
public function btnTickle_55(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 18
//btnWedgie_56 (swygm_slots_fla.btnWedgie_56)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnWedgie_56 extends MovieClip {
public function btnWedgie_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 19
//btnWinLinesLeft_13 (swygm_slots_fla.btnWinLinesLeft_13)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnWinLinesLeft_13 extends MovieClip {
public function btnWinLinesLeft_13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 20
//btnWinLinesRight_14 (swygm_slots_fla.btnWinLinesRight_14)
package swygm_slots_fla {
import flash.display.*;
public dynamic class btnWinLinesRight_14 extends MovieClip {
public function btnWinLinesRight_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 21
//Handle_21 (swygm_slots_fla.Handle_21)
package swygm_slots_fla {
import flash.display.*;
public dynamic class Handle_21 extends MovieClip {
public function Handle_21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 22
//MainTimeline (swygm_slots_fla.MainTimeline)
package swygm_slots_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 btnHandle:MovieClip;
public var btnBetPerLineRight:MovieClip;
public var btnPayTable:MovieClip;
public var reel1:MovieClip;
public var star:MovieClip;
public var wndWildIndicator:MovieClip;
public var btnWinLinesRight:MovieClip;
public var btnRemote:MovieClip;
public var reel2:MovieClip;
public var btnQuad:MovieClip;
public var reel3:MovieClip;
public var txtTotalwin:TextField;
public var btnDouble:MovieClip;
public var reel4:MovieClip;
public var btnPunish:MovieClip;
public var reel5:MovieClip;
public var btnIntroStart:introStartButton;
public var wndCredits:MovieClip;
public var letter1:TextField;
public var letter2:TextField;
public var glass:MovieClip;
public var letter3:TextField;
public var txtBetPerLine:TextField;
public var wildGraphic:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var wndWinlines:MovieClip;
public var outOfOrder:MovieClip;
public var letter4:TextField;
public var starIndicator:MovieClip;
public var btnWinLinesLeft:MovieClip;
public var punishReel:MovieClip;
public var letter5:TextField;
public var introLogo:MovieClip;
public var wndPayTable:MovieClip;
public var wildArt:MovieClip;
public var btnCredits:MovieClip;
public var txtTotalBet:TextField;
public var txtWinLines:TextField;
public var wndWild:MovieClip;
public var machineArt:MovieClip;
public var wndWallpaper:MovieClip;
public var wndRemoteControl:MovieClip;
public var redlight:MovieClip;
public var btnBetPerLineLeft:MovieClip;
public var arrReels:Array;
public var arrGrid:Array;
public var arrReelRotation:Array;
public var arrReelPos:Array;
public var iPhase;
public var iRandomSpinsLeft;
public var iCredits;
public var iCreditTransfer;
public var iTotalWin;
public var bFlipSprite;
public var iWinLines;
public var iBetPerLine;
public var iTotalBet;
public var bBetValid;
public var iPunishmentID;
public var iCountDown;
public var iReturnToSleepCounter;
public var bCharIdle;
public var iActionSecondsCountDown;
public var bWILD;
public var bSaveInProgress;
public var iWildDecay;
public var upTween:Tween;
public var rlTween:Tween;
public var wildTween:Tween;
public var iPunishmentTokens;
public var iRealPunishDuration;
public var iPunishDuration;
public var arrPhaseOut:Array;
public var arrPhaseIn:Array;
public var objCurrentSprite:MovieClip;
public var bPhaseOutSprites;
public var bSwitchSprites;
public var strQueuedCharacter;
public var programID;
public var strLetter1;
public var strLetter2;
public var strLetter3;
public var strLetter4;
public var strLetter5;
public var iLatestVariation;
public var myInterval:uint;
public var myInterval2:uint;
public var myInterval3:uint;
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){
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
};
}
public function startGame(_arg1:MouseEvent):void{
btnIntroStart.removeEventListener(MouseEvent.CLICK, startGame);
gotoAndStop(2);
}
public function addChar():void{
var _local1:* = 0;
bFlipSprite = false;
removeChild(objCurrentSprite);
if (strQueuedCharacter == "sleep"){
iReturnToSleepCounter = 0;
if (_local1 == 0){
objCurrentSprite = new sleep00();
arrPhaseIn = [1, 3];
arrPhaseOut = [1];
};
} else {
if (strQueuedCharacter == "idle"){
_local1 = Math.floor((Math.random() * 5));
if (_local1 == 0){
iReturnToSleepCounter = 100;
objCurrentSprite = new idle01();
arrPhaseIn = [1, 3];
arrPhaseOut = [1];
} else {
if (_local1 == 1){
iReturnToSleepCounter = 75;
objCurrentSprite = new idle03();
arrPhaseIn = [1, 3];
arrPhaseOut = [3, 1];
} else {
if (_local1 == 2){
iReturnToSleepCounter = 15;
objCurrentSprite = new idle04();
arrPhaseIn = [1, 1];
arrPhaseOut = [1, 1];
} else {
if (_local1 == 3){
iReturnToSleepCounter = 30;
objCurrentSprite = new idle02();
arrPhaseIn = [1, 3];
arrPhaseOut = [1];
} else {
iReturnToSleepCounter = 100;
bFlipSprite = true;
objCurrentSprite = new idle01();
arrPhaseIn = [1, 3];
arrPhaseOut = [1];
};
};
};
};
} else {
if (strQueuedCharacter == "strip"){
iReturnToSleepCounter = 0;
if (_local1 == 0){
objCurrentSprite = new strip01();
arrPhaseIn = [1, 2, 3];
arrPhaseOut = [2, 1];
};
} else {
if (strQueuedCharacter == "spank"){
iReturnToSleepCounter = 0;
if (_local1 == 0){
objCurrentSprite = new spnk01();
arrPhaseIn = [1, 2, 3];
arrPhaseOut = [2, 1];
};
} else {
if (strQueuedCharacter == "rodeo"){
iReturnToSleepCounter = 0;
if (_local1 == 0){
objCurrentSprite = new horse01();
arrPhaseIn = [1, 2, 3, 4];
arrPhaseOut = [4, 3, 2, 1];
};
} else {
if (strQueuedCharacter == "inflate"){
iReturnToSleepCounter = 0;
if (_local1 == 0){
objCurrentSprite = new inflate01();
arrPhaseIn = [1, 2, 2, 3, 3, 4, 4, 5, 5, 6];
arrPhaseOut = [5, 4, 3, 2, 1];
};
} else {
if (strQueuedCharacter == "tickle"){
iReturnToSleepCounter = 0;
if (_local1 == 0){
objCurrentSprite = new tk01();
arrPhaseIn = [1, 2];
arrPhaseOut = [1];
};
} else {
if (strQueuedCharacter == "wedgie"){
iReturnToSleepCounter = 0;
if (_local1 == 0){
objCurrentSprite = new wedgie01();
arrPhaseIn = [1, 2];
arrPhaseOut = [1];
};
} else {
if (strQueuedCharacter == "electric"){
iReturnToSleepCounter = 0;
if (_local1 == 0){
objCurrentSprite = new electro01();
arrPhaseIn = [1, 2];
arrPhaseOut = [1];
};
};
};
};
};
};
};
};
};
};
if (bFlipSprite == false){
objCurrentSprite.x = 658;
objCurrentSprite.y = 4;
} else {
objCurrentSprite.x = 1102;
objCurrentSprite.y = 4;
objCurrentSprite.scaleX = -1;
};
objCurrentSprite.gotoAndStop(Number(arrPhaseIn[0]));
arrPhaseIn.splice(0, 1);
addChild(objCurrentSprite);
setChildIndex(glass, (numChildren - 1));
iLatestVariation = _local1;
}
public function handleSpriteSwitching():void{
if (bPhaseOutSprites == true){
if ((((arrPhaseOut.length > 0)) && ((bSwitchSprites == false)))){
objCurrentSprite.gotoAndStop(Number(arrPhaseOut[0]));
arrPhaseOut.splice(0, 1);
} else {
if (bSwitchSprites == false){
bSwitchSprites = true;
addChar();
} else {
if (arrPhaseIn.length > 1){
objCurrentSprite.gotoAndStop(Number(arrPhaseIn[0]));
arrPhaseIn.splice(0, 1);
} else {
if (arrPhaseIn.length == 1){
objCurrentSprite.gotoAndPlay(Number(arrPhaseIn[0]));
arrPhaseIn = [];
bPhaseOutSprites = false;
bSwitchSprites = false;
};
};
};
};
};
}
public function doRemote():void{
wndRemoteControl.txtSeconds.text = iRealPunishDuration;
wndRemoteControl.x = 400;
iActionSecondsCountDown = (iRealPunishDuration + 1);
bCharIdle = false;
}
public function doPunish():void{
iActionSecondsCountDown = (iRealPunishDuration + 1);
bCharIdle = false;
if (iPunishmentID == 1){
doStrip();
} else {
if (iPunishmentID == 3){
doSpank();
} else {
if (iPunishmentID == 5){
doRodeo();
} else {
if (iPunishmentID == 7){
doInflate();
} else {
if (iPunishmentID == 9){
doTickle();
} else {
if (iPunishmentID == 11){
doWedgie();
} else {
if (iPunishmentID == 13){
doElectric();
} else {
trace("Not yet implemented, returning to phase 0");
iPhase = 0;
};
};
};
};
};
};
};
}
public function doSleep():void{
strQueuedCharacter = "sleep";
bPhaseOutSprites = true;
bCharIdle = true;
}
public function doStrip():void{
strQueuedCharacter = "strip";
bPhaseOutSprites = true;
bCharIdle = false;
}
public function doSpank():void{
strQueuedCharacter = "spank";
bPhaseOutSprites = true;
bCharIdle = false;
}
public function doRodeo():void{
strQueuedCharacter = "rodeo";
bPhaseOutSprites = true;
bCharIdle = false;
}
public function doInflate():void{
strQueuedCharacter = "inflate";
bPhaseOutSprites = true;
bCharIdle = false;
}
public function doTickle():void{
strQueuedCharacter = "tickle";
bPhaseOutSprites = true;
bCharIdle = false;
}
public function doWedgie():void{
strQueuedCharacter = "wedgie";
bPhaseOutSprites = true;
bCharIdle = false;
}
public function doElectric():void{
strQueuedCharacter = "electric";
bPhaseOutSprites = true;
bCharIdle = false;
}
public function resumeIdle():void{
doAnyIdle();
}
public function doAnyIdle():void{
strQueuedCharacter = "idle";
bPhaseOutSprites = true;
}
public function thirdTimer():void{
handleSpriteSwitching();
}
public function secondsTimer():void{
if (iReturnToSleepCounter > 0){
iReturnToSleepCounter--;
if (iReturnToSleepCounter == 0){
doSleep();
};
};
if ((((bCharIdle == false)) && ((bPhaseOutSprites == false)))){
if (iActionSecondsCountDown > 0){
iActionSecondsCountDown--;
wndRemoteControl.txtSeconds.text = iActionSecondsCountDown;
} else {
bCharIdle = true;
doAnyIdle();
wndRemoteControl.x = -500;
iPhase = 0;
};
};
}
public function mouseClicked(_arg1:MouseEvent):void{
var _local2:* = "";
if (_arg1.target.name != null){
_local2 = _arg1.target.name;
};
if (_local2 == "btnPayTable"){
if (wndPayTable.x > 0){
wndPayTable.x = -600;
} else {
wndPayTable.x = 63;
hideDefaultWinLines();
};
} else {
if ((((((_local2 == "btnHandle")) && ((iPhase == 0)))) && ((bBetValid == true)))){
validateCredits();
if (bBetValid == true){
if ((((bWILD == true)) && ((wndWildIndicator.currentFrame == 1)))){
bWILD = false;
wndWild.alpha = 0;
};
hideDefaultWinLines();
iTotalWin = 0;
txtTotalwin.alpha = 0;
wildArt.y = -400;
btnHandle.gotoAndPlay(2);
iRandomSpinsLeft = (Math.ceil((Math.random() * 15)) + 10);
iCredits = (iCredits - iTotalBet);
btnCredits.txtCredits.text = iCredits;
if (bWILD == true){
wndWildIndicator.gotoAndStop((wndWildIndicator.currentFrame - 5));
};
iPhase = 1;
};
} else {
if ((((_local2 == "btnWinLinesLeft")) && ((iPhase == 0)))){
if (iWinLines > 1){
iWinLines--;
showDefaultWinLines(iWinLines);
txtWinLines.text = iWinLines;
iTotalBet = (iWinLines * iBetPerLine);
txtTotalBet.text = iTotalBet;
validateCredits();
};
} else {
if ((((_local2 == "btnWinLinesRight")) && ((iPhase == 0)))){
if (iWinLines < 15){
iWinLines++;
showDefaultWinLines(iWinLines);
txtWinLines.text = iWinLines;
iTotalBet = (iWinLines * iBetPerLine);
txtTotalBet.text = iTotalBet;
validateCredits();
};
} else {
if ((((_local2 == "btnBetPerLineLeft")) && ((iPhase == 0)))){
if (iBetPerLine > 1){
if (iBetPerLine < 6){
iBetPerLine--;
} else {
if (iBetPerLine < 50){
iBetPerLine = (iBetPerLine - 5);
} else {
if (iBetPerLine < 200){
iBetPerLine = (iBetPerLine - 10);
} else {
if (iBetPerLine < 500){
iBetPerLine = (iBetPerLine - 50);
} else {
if (iBetPerLine < 1000){
iBetPerLine = (iBetPerLine - 100);
} else {
iBetPerLine = (iBetPerLine - 250);
};
};
};
};
};
if (iBetPerLine < 1){
iBetPerLine = 1;
};
txtBetPerLine.text = iBetPerLine;
iTotalBet = (iWinLines * iBetPerLine);
txtTotalBet.text = iTotalBet;
validateCredits();
};
} else {
if ((((_local2 == "btnBetPerLineRight")) && ((iPhase == 0)))){
if (iBetPerLine < 5000){
if (iBetPerLine < 5){
iBetPerLine++;
} else {
if (iBetPerLine < 49){
iBetPerLine = (iBetPerLine + 5);
} else {
if (iBetPerLine < 199){
iBetPerLine = (iBetPerLine + 10);
} else {
if (iBetPerLine < 499){
iBetPerLine = (iBetPerLine + 50);
} else {
if (iBetPerLine < 999){
iBetPerLine = (iBetPerLine + 100);
} else {
iBetPerLine = (iBetPerLine + 250);
};
};
};
};
};
if (iBetPerLine > 5000){
iBetPerLine = 5000;
};
txtBetPerLine.text = iBetPerLine;
iTotalBet = (iWinLines * iBetPerLine);
txtTotalBet.text = iTotalBet;
validateCredits();
};
} else {
if ((((_local2 == "btnYes")) && ((wndCredits.y > -100)))){
iCredits = (iCredits + 500);
btnCredits.txtCredits.text = iCredits;
validateCredits();
saveData();
wndCredits.y = -800;
} else {
if ((((_local2 == "btnNo")) && ((wndCredits.y > -100)))){
wndCredits.y = -800;
} else {
if (_local2 == "btnRemote"){
if (btnRemote.currentFrame == 2){
letter1.text = "";
letter2.text = "";
letter3.text = "";
letter4.text = "";
letter5.text = "";
btnRemote.gotoAndStop(1);
setPunishDuration();
iPunishmentTokens = 2;
iRealPunishDuration = (iPunishmentTokens * iPunishDuration);
iPhase = 21;
doRemote();
};
} else {
if (_local2 == "btnPunish"){
if (btnPunish.currentFrame == 2){
starIndicator.gotoAndStop((starIndicator.currentFrame - 2));
checkStars();
setPunishDuration();
iPunishmentTokens = 1;
iRealPunishDuration = (iPunishmentTokens * iPunishDuration);
iPhase = 22;
doPunish();
};
} else {
if (_local2 == "btnDouble"){
if (btnDouble.currentFrame == 2){
starIndicator.gotoAndStop((starIndicator.currentFrame - 3));
checkStars();
setPunishDuration();
iPunishmentTokens = 2;
iRealPunishDuration = (iPunishmentTokens * iPunishDuration);
iPhase = 22;
doPunish();
};
} else {
if (_local2 == "btnQuad"){
if (btnQuad.currentFrame == 2){
starIndicator.gotoAndStop(1);
checkStars();
setPunishDuration();
iPunishmentTokens = 4;
iRealPunishDuration = (iPunishmentTokens * iPunishDuration);
iPhase = 22;
doPunish();
};
} else {
if (_local2 == "btnStrip"){
wndRemoteControl.btnStrip.gotoAndPlay(2);
doStrip();
} else {
if (_local2 == "btnSpank"){
wndRemoteControl.btnSpank.gotoAndPlay(2);
doSpank();
} else {
if (_local2 == "btnRodeo"){
wndRemoteControl.btnRodeo.gotoAndPlay(2);
doRodeo();
} else {
if (_local2 == "btnInflate"){
wndRemoteControl.btnInflate.gotoAndPlay(2);
doInflate();
} else {
if (_local2 == "btnTickle"){
wndRemoteControl.btnTickle.gotoAndPlay(2);
doTickle();
} else {
if (_local2 == "btnWedgie"){
wndRemoteControl.btnWedgie.gotoAndPlay(2);
doWedgie();
} else {
if (_local2 == "btnElectric"){
wndRemoteControl.btnElectric.gotoAndPlay(2);
doElectric();
} else {
if (_local2 == "btnStop"){
wndRemoteControl.btnStop.gotoAndPlay(2);
resumeIdle();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function getSymbol(_arg1, _arg2):int{
var _local3:* = 0;
_local3 = (arrReelPos[(_arg1 - 1)] + _arg2);
if (_local3 > 14){
_local3 = (_local3 - 15);
};
return (arrReels[(_arg1 - 1)][_local3]);
}
public function myTimer():void{
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if ((((bWILD == true)) && ((wndWallpaper.alpha < 1)))){
wndWallpaper.alpha = (wndWallpaper.alpha + 0.05);
} else {
if ((((bWILD == false)) && ((wndWallpaper.alpha > 0)))){
wndWallpaper.alpha = (wndWallpaper.alpha - 0.1);
if (wndWallpaper.alpha < 0.1){
wndWallpaper.alpha = 0;
};
};
};
if (wildArt.alpha > 0){
if (iWildDecay > 0){
iWildDecay--;
} else {
wildArt.alpha = (wildArt.alpha - 0.05);
if (wildArt.alpha < 0.05){
wildArt.alpha = 0;
wildArt.y = -400;
wndWild.alpha = 1;
};
};
};
if (iCreditTransfer > 100){
iCreditTransfer = (iCreditTransfer - 100);
iCredits = (iCredits + 100);
btnCredits.txtCredits.text = iCredits;
} else {
if (iCreditTransfer > 10){
iCreditTransfer = (iCreditTransfer - 10);
iCredits = (iCredits + 10);
btnCredits.txtCredits.text = iCredits;
} else {
if (iCreditTransfer > 0){
iCreditTransfer = (iCreditTransfer - 1);
iCredits = (iCredits + 1);
btnCredits.txtCredits.text = iCredits;
} else {
if (iPhase == 10){
validateCredits();
iPhase = 0;
};
};
};
};
if ((((iPhase > 0)) && ((iPhase < 6)))){
iRandomSpinsLeft--;
if (iRandomSpinsLeft < 1){
iRandomSpinsLeft = (Math.ceil((Math.random() * 15)) + 3);
iPhase++;
};
};
if (iPhase == 1){
rotateReel(1, reel1, 1);
rotateReel(2, reel2, 1);
rotateReel(3, reel3, 1);
rotateReel(4, reel4, 1);
rotateReel(5, reel5, 1);
} else {
if (iPhase == 2){
rotateReel(1, reel1, 0);
rotateReel(2, reel2, 1);
rotateReel(3, reel3, 1);
rotateReel(4, reel4, 1);
rotateReel(5, reel5, 1);
} else {
if (iPhase == 3){
rotateReel(2, reel2, 0);
rotateReel(3, reel3, 1);
rotateReel(4, reel4, 1);
rotateReel(5, reel5, 1);
} else {
if (iPhase == 4){
rotateReel(3, reel3, 0);
rotateReel(4, reel4, 1);
rotateReel(5, reel5, 1);
} else {
if (iPhase == 5){
rotateReel(4, reel4, 0);
rotateReel(5, reel5, 1);
} else {
if (iPhase == 6){
iPhase = 7;
rotateReel(5, reel5, 0);
} else {
if (iPhase == 7){
fillGrid();
_local1 = 0;
wildTween.stop();
if ((((((arrGrid[0][0] == 7)) || ((arrGrid[0][1] == 7)))) || ((arrGrid[0][2] == 7)))){
wildGraphic.bar1.alpha = 1;
_local1++;
} else {
wildGraphic.bar1.alpha = 0;
};
if ((((((arrGrid[1][0] == 7)) || ((arrGrid[1][1] == 7)))) || ((arrGrid[1][2] == 7)))){
wildGraphic.bar2.alpha = 1;
_local1++;
} else {
wildGraphic.bar2.alpha = 0;
};
if ((((((arrGrid[2][0] == 7)) || ((arrGrid[2][1] == 7)))) || ((arrGrid[2][2] == 7)))){
wildGraphic.bar3.alpha = 1;
_local1++;
} else {
wildGraphic.bar3.alpha = 0;
};
if ((((((arrGrid[3][0] == 7)) || ((arrGrid[3][1] == 7)))) || ((arrGrid[3][2] == 7)))){
wildGraphic.bar4.alpha = 1;
_local1++;
} else {
wildGraphic.bar4.alpha = 0;
};
if ((((((arrGrid[4][0] == 7)) || ((arrGrid[4][1] == 7)))) || ((arrGrid[4][2] == 7)))){
wildGraphic.bar5.alpha = 1;
_local1++;
} else {
wildGraphic.bar5.alpha = 0;
};
wildTween = new Tween(wildGraphic, "y", Strong.easeOut, 450, -200, 3, true);
wildTween.FPS = 40;
_local1 = (_local1 + wndWildIndicator.currentFrame);
if (_local1 < 1){
_local1 = 1;
};
if (_local1 > 26){
_local1 = 26;
};
wndWildIndicator.gotoAndStop(_local1);
if (_local1 == 26){
bWILD = true;
wildArt.alpha = 1;
wildArt.y = 91;
iWildDecay = 30;
changeToWildSymbols();
_local2 = 0;
while (_local2 < 3) {
_local3 = 0;
while (_local3 < 5) {
if (arrGrid[_local3][_local2] == 7){
arrGrid[_local3][_local2] = 9;
};
_local3++;
};
_local2++;
};
};
iPhase = 8;
} else {
if (iPhase == 8){
_local4 = 1;
while (_local4 < (iWinLines + 1)) {
checkWinLine(_local4);
_local4++;
};
if (iTotalWin > 0){
txtTotalwin.text = ("+ " + iTotalWin);
resetTweens();
txtTotalwin.alpha = 1;
upTween = new Tween(txtTotalwin, "x", Regular.easeIn, 552, 68, 1.5, true);
upTween.FPS = 40;
rlTween = new Tween(txtTotalwin, "y", Strong.easeOut, 507, 1, 1.5, true);
rlTween.FPS = 40;
};
if (bSaveInProgress == false){
saveData();
};
iPhase = 9;
} else {
if (iPhase == 9){
if (iTotalWin == 0){
iCountDown = 0;
iPhase = 0;
} else {
if (iCountDown > 0){
iCountDown--;
if (iCountDown < 1){
_local5 = punishReel.currentFrame;
if ((((((((((((((((((((((_local5 == 2)) || ((_local5 == 4)))) || ((_local5 == 6)))) || ((_local5 == 8)))) || ((_local5 == 10)))) || ((_local5 == 12)))) || ((_local5 == 14)))) || ((_local5 == 16)))) || ((_local5 == 18)))) || ((_local5 == 20)))) || ((_local5 == 22)))){
_local5--;
};
iPunishmentID = _local5;
punishReel.gotoAndStop(_local5);
if ((((_local5 == 1)) || ((_local5 == 3)))){
if (_local5 == 1){
starIndicator.gotoAndStop((starIndicator.currentFrame + 2));
} else {
starIndicator.gotoAndStop((starIndicator.currentFrame + 1));
};
resetTweens();
txtTotalwin.x = 68;
txtTotalwin.y = 1;
star.gotoAndStop(1);
star.alpha = 1;
upTween = new Tween(star, "x", Strong.easeOut, 208, 0x0200, 1.5, true);
upTween.FPS = 40;
rlTween = new Tween(star, "y", Regular.easeIn, 462, -50, 1.5, true);
rlTween.FPS = 40;
checkStars();
} else {
if ((((((((((_local5 == 5)) || ((_local5 == 7)))) || ((_local5 == 9)))) || ((_local5 == 11)))) || ((_local5 == 13)))){
_local6 = 0;
if (_local5 == 5){
letter1.text = strLetter1;
star.gotoAndStop(2);
_local6 = 474;
};
if (_local5 == 7){
letter2.text = strLetter2;
star.gotoAndStop(3);
_local6 = 491;
};
if (_local5 == 9){
letter3.text = strLetter3;
star.gotoAndStop(4);
_local6 = 527;
};
if (_local5 == 11){
letter4.text = strLetter4;
star.gotoAndStop(5);
_local6 = 556;
};
if (_local5 == 13){
letter5.text = strLetter5;
star.gotoAndStop(6);
_local6 = 585;
};
resetTweens();
txtTotalwin.x = 68;
txtTotalwin.y = 1;
star.alpha = 1;
upTween = new Tween(star, "x", Strong.easeOut, 208, _local6, 1.5, true);
upTween.FPS = 40;
rlTween = new Tween(star, "y", Regular.easeIn, 462, 720, 1.5, true);
rlTween.FPS = 40;
checkLetters();
};
};
iPhase = 10;
};
} else {
iCountDown = (Math.ceil((Math.random() * 15)) + 20);
punishReel.gotoAndPlay(punishReel.currentFrame);
};
};
};
};
};
};
};
};
};
};
};
}
public function resetTweens():void{
star.alpha = 0;
upTween.stop();
rlTween.stop();
}
public function fillGrid():void{
arrGrid[0][0] = reel1.symbol1.currentFrame;
arrGrid[0][1] = reel1.symbol2.currentFrame;
arrGrid[0][2] = reel1.symbol3.currentFrame;
arrGrid[1][0] = reel2.symbol1.currentFrame;
arrGrid[1][1] = reel2.symbol2.currentFrame;
arrGrid[1][2] = reel2.symbol3.currentFrame;
arrGrid[2][0] = reel3.symbol1.currentFrame;
arrGrid[2][1] = reel3.symbol2.currentFrame;
arrGrid[2][2] = reel3.symbol3.currentFrame;
arrGrid[3][0] = reel4.symbol1.currentFrame;
arrGrid[3][1] = reel4.symbol2.currentFrame;
arrGrid[3][2] = reel4.symbol3.currentFrame;
arrGrid[4][0] = reel5.symbol1.currentFrame;
arrGrid[4][1] = reel5.symbol2.currentFrame;
arrGrid[4][2] = reel5.symbol3.currentFrame;
}
public function checkWinLine(_arg1):void{
var _local4:*;
var _local2:Array = [0, 0, 0, 0, 0];
if (_arg1 == 1){
_local2[0] = arrGrid[0][1];
_local2[1] = arrGrid[1][1];
_local2[2] = arrGrid[2][1];
_local2[3] = arrGrid[3][1];
_local2[4] = arrGrid[4][1];
} else {
if (_arg1 == 2){
_local2[0] = arrGrid[0][0];
_local2[1] = arrGrid[1][0];
_local2[2] = arrGrid[2][0];
_local2[3] = arrGrid[3][0];
_local2[4] = arrGrid[4][0];
} else {
if (_arg1 == 3){
_local2[0] = arrGrid[0][2];
_local2[1] = arrGrid[1][2];
_local2[2] = arrGrid[2][2];
_local2[3] = arrGrid[3][2];
_local2[4] = arrGrid[4][2];
} else {
if (_arg1 == 4){
_local2[0] = arrGrid[0][0];
_local2[1] = arrGrid[1][0];
_local2[2] = arrGrid[2][1];
_local2[3] = arrGrid[3][2];
_local2[4] = arrGrid[4][2];
} else {
if (_arg1 == 5){
_local2[0] = arrGrid[0][2];
_local2[1] = arrGrid[1][2];
_local2[2] = arrGrid[2][1];
_local2[3] = arrGrid[3][0];
_local2[4] = arrGrid[4][0];
} else {
if (_arg1 == 6){
_local2[0] = arrGrid[0][0];
_local2[1] = arrGrid[1][1];
_local2[2] = arrGrid[2][1];
_local2[3] = arrGrid[3][1];
_local2[4] = arrGrid[4][0];
} else {
if (_arg1 == 7){
_local2[0] = arrGrid[0][2];
_local2[1] = arrGrid[1][1];
_local2[2] = arrGrid[2][1];
_local2[3] = arrGrid[3][1];
_local2[4] = arrGrid[4][2];
} else {
if (_arg1 == 8){
_local2[0] = arrGrid[0][1];
_local2[1] = arrGrid[1][0];
_local2[2] = arrGrid[2][1];
_local2[3] = arrGrid[3][0];
_local2[4] = arrGrid[4][1];
} else {
if (_arg1 == 9){
_local2[0] = arrGrid[0][1];
_local2[1] = arrGrid[1][2];
_local2[2] = arrGrid[2][1];
_local2[3] = arrGrid[3][2];
_local2[4] = arrGrid[4][1];
} else {
if (_arg1 == 10){
_local2[0] = arrGrid[0][1];
_local2[1] = arrGrid[1][0];
_local2[2] = arrGrid[2][0];
_local2[3] = arrGrid[3][0];
_local2[4] = arrGrid[4][1];
} else {
if (_arg1 == 11){
_local2[0] = arrGrid[0][1];
_local2[1] = arrGrid[1][2];
_local2[2] = arrGrid[2][2];
_local2[3] = arrGrid[3][2];
_local2[4] = arrGrid[4][1];
} else {
if (_arg1 == 12){
_local2[0] = arrGrid[0][0];
_local2[1] = arrGrid[1][1];
_local2[2] = arrGrid[2][0];
_local2[3] = arrGrid[3][1];
_local2[4] = arrGrid[4][0];
} else {
if (_arg1 == 13){
_local2[0] = arrGrid[0][2];
_local2[1] = arrGrid[1][1];
_local2[2] = arrGrid[2][2];
_local2[3] = arrGrid[3][1];
_local2[4] = arrGrid[4][2];
} else {
if (_arg1 == 14){
_local2[0] = arrGrid[0][0];
_local2[1] = arrGrid[1][1];
_local2[2] = arrGrid[2][2];
_local2[3] = arrGrid[3][1];
_local2[4] = arrGrid[4][0];
} else {
if (_arg1 == 15){
_local2[0] = arrGrid[0][2];
_local2[1] = arrGrid[1][1];
_local2[2] = arrGrid[2][0];
_local2[3] = arrGrid[3][1];
_local2[4] = arrGrid[4][2];
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
var _local3:* = checkWinnings(_local2);
if (_local3 > 0){
_local4 = (_local3 * iBetPerLine);
showSingleWinline(_arg1, _local4);
iCreditTransfer = (iCreditTransfer + _local4);
iTotalWin = (iTotalWin + _local4);
};
}
public function checkWinnings(_arg1):int{
var _local7:Array;
var _local2:* = 0;
var _local3:* = 0;
var _local4:* = 0;
var _local5:* = true;
var _local6:* = 0;
while (_local6 < 5) {
if (_local5 == true){
if (_local3 == 0){
if (_arg1[_local6] < 8){
_local3 = _arg1[_local6];
_local4++;
} else {
_local4++;
};
} else {
if (_arg1[_local6] < 8){
if (_local3 == _arg1[_local6]){
_local4++;
} else {
_local5 = false;
};
} else {
_local4++;
};
};
};
_local6++;
};
if (_local4 > 2){
_local7 = [[30, 150, 500], [4, 20, 60], [5, 25, 75], [6, 30, 90], [7, 35, 105], [8, 40, 120], [10, 50, 150], [20, 100, 300]];
_local2 = _local7[_local3][(_local4 - 3)];
};
return (_local2);
}
public function rotateReel(_arg1, _arg2, _arg3):void{
if (_arg3 == 1){
var _local4 = arrReelRotation;
var _local5 = (_arg1 - 1);
var _local6 = (_local4[_local5] + 1);
_local4[_local5] = _local6;
if (arrReelRotation[(_arg1 - 1)] > 2){
arrReelRotation[(_arg1 - 1)] = 1;
if (arrReelPos[(_arg1 - 1)] > 13){
arrReelPos[(_arg1 - 1)] = 0;
} else {
_local4 = arrReelPos;
_local5 = (_arg1 - 1);
_local6 = (_local4[_local5] + 1);
_local4[_local5] = _local6;
};
_arg2.symbol4.gotoAndStop(_arg2.symbol3.currentFrame);
_arg2.symbol3.gotoAndStop(_arg2.symbol2.currentFrame);
_arg2.symbol2.gotoAndStop(_arg2.symbol1.currentFrame);
if (bWILD == true){
if (getSymbol(_arg1, 0) == 7){
_arg2.symbol1.gotoAndStop(19);
} else {
_arg2.symbol1.gotoAndStop((getSymbol(_arg1, 0) + 10));
};
} else {
_arg2.symbol1.gotoAndStop((getSymbol(_arg1, 0) + 10));
};
_arg2.y = -12;
} else {
_arg2.y = (_arg2.y + 56);
};
} else {
_arg2.y = 100;
if (_arg2.symbol4.currentFrame > 10){
_arg2.symbol4.gotoAndStop((_arg2.symbol4.currentFrame - 10));
};
if (_arg2.symbol3.currentFrame > 10){
_arg2.symbol3.gotoAndStop((_arg2.symbol3.currentFrame - 10));
};
if (_arg2.symbol2.currentFrame > 10){
_arg2.symbol2.gotoAndStop((_arg2.symbol2.currentFrame - 10));
};
if (_arg2.symbol1.currentFrame > 10){
_arg2.symbol1.gotoAndStop((_arg2.symbol1.currentFrame - 10));
};
};
}
public function hideDefaultWinLines():void{
wndWinlines.x = -800;
wndWinlines.winline1.alpha = 0;
wndWinlines.winline2.alpha = 0;
wndWinlines.winline3.alpha = 0;
wndWinlines.winline4.alpha = 0;
wndWinlines.winline5.alpha = 0;
wndWinlines.winline6.alpha = 0;
wndWinlines.winline7.alpha = 0;
wndWinlines.winline8.alpha = 0;
wndWinlines.winline9.alpha = 0;
wndWinlines.winline10.alpha = 0;
wndWinlines.winline11.alpha = 0;
wndWinlines.winline12.alpha = 0;
wndWinlines.winline13.alpha = 0;
wndWinlines.winline14.alpha = 0;
wndWinlines.winline15.alpha = 0;
}
public function showSingleWinline(_arg1, _arg2):void{
if (_arg1 == 1){
wndWinlines.winline1.txt.text = _arg2;
wndWinlines.winline1.alpha = 1;
};
if (_arg1 == 2){
wndWinlines.winline2.txt.text = _arg2;
wndWinlines.winline2.alpha = 1;
};
if (_arg1 == 3){
wndWinlines.winline3.txt.text = _arg2;
wndWinlines.winline3.alpha = 1;
};
if (_arg1 == 4){
wndWinlines.winline4.txt.text = _arg2;
wndWinlines.winline4.alpha = 1;
};
if (_arg1 == 5){
wndWinlines.winline5.txt.text = _arg2;
wndWinlines.winline5.alpha = 1;
};
if (_arg1 == 6){
wndWinlines.winline6.txt.text = _arg2;
wndWinlines.winline6.alpha = 1;
};
if (_arg1 == 7){
wndWinlines.winline7.txt.text = _arg2;
wndWinlines.winline7.alpha = 1;
};
if (_arg1 == 8){
wndWinlines.winline8.txt.text = _arg2;
wndWinlines.winline8.alpha = 1;
};
if (_arg1 == 9){
wndWinlines.winline9.txt.text = _arg2;
wndWinlines.winline9.alpha = 1;
};
if (_arg1 == 10){
wndWinlines.winline10.txt.text = _arg2;
wndWinlines.winline10.alpha = 1;
};
if (_arg1 == 11){
wndWinlines.winline11.txt.text = _arg2;
wndWinlines.winline11.alpha = 1;
};
if (_arg1 == 12){
wndWinlines.winline12.txt.text = _arg2;
wndWinlines.winline12.alpha = 1;
};
if (_arg1 == 13){
wndWinlines.winline13.txt.text = _arg2;
wndWinlines.winline13.alpha = 1;
};
if (_arg1 == 14){
wndWinlines.winline14.txt.text = _arg2;
wndWinlines.winline14.alpha = 1;
};
if (_arg1 == 15){
wndWinlines.winline15.txt.text = _arg2;
wndWinlines.winline15.alpha = 1;
};
wndWinlines.x = 0;
}
public function showDefaultWinLines(_arg1):void{
var _local2:Array = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
if (_arg1 > 15){
_arg1 = 15;
};
var _local3:* = 0;
while (_local3 < _arg1) {
_local2[_local3] = 1;
_local3++;
};
wndWinlines.winline1.alpha = _local2[0];
wndWinlines.winline2.alpha = _local2[1];
wndWinlines.winline3.alpha = _local2[2];
wndWinlines.winline4.alpha = _local2[3];
wndWinlines.winline5.alpha = _local2[4];
wndWinlines.winline6.alpha = _local2[5];
wndWinlines.winline7.alpha = _local2[6];
wndWinlines.winline8.alpha = _local2[7];
wndWinlines.winline9.alpha = _local2[8];
wndWinlines.winline10.alpha = _local2[9];
wndWinlines.winline11.alpha = _local2[10];
wndWinlines.winline12.alpha = _local2[11];
wndWinlines.winline13.alpha = _local2[12];
wndWinlines.winline14.alpha = _local2[13];
wndWinlines.winline15.alpha = _local2[14];
wndWinlines.winline1.txt.text = "1";
wndWinlines.winline2.txt.text = "2";
wndWinlines.winline3.txt.text = "3";
wndWinlines.winline4.txt.text = "4";
wndWinlines.winline5.txt.text = "5";
wndWinlines.winline6.txt.text = "6";
wndWinlines.winline7.txt.text = "7";
wndWinlines.winline8.txt.text = "8";
wndWinlines.winline9.txt.text = "9";
wndWinlines.winline10.txt.text = "10";
wndWinlines.winline11.txt.text = "11";
wndWinlines.winline12.txt.text = "12";
wndWinlines.winline13.txt.text = "13";
wndWinlines.winline14.txt.text = "14";
wndWinlines.winline15.txt.text = "15";
wndWinlines.x = 0;
}
public function validateCredits():void{
if (iTotalBet > iCredits){
redlight.gotoAndPlay(1);
bBetValid = false;
} else {
redlight.gotoAndStop(1);
bBetValid = true;
};
}
public function checkStars():void{
btnPunish.gotoAndStop(1);
btnDouble.gotoAndStop(1);
btnQuad.gotoAndStop(1);
if (starIndicator.currentFrame > 2){
btnPunish.gotoAndStop(2);
};
if (starIndicator.currentFrame > 3){
btnDouble.gotoAndStop(2);
};
if (starIndicator.currentFrame > 5){
btnQuad.gotoAndStop(2);
};
}
public function checkLetters():void{
if (((((((((!((letter1.text == ""))) && (!((letter2.text == ""))))) && (!((letter3.text == ""))))) && (!((letter4.text == ""))))) && (!((letter5.text == ""))))){
btnRemote.gotoAndStop(2);
} else {
btnRemote.gotoAndStop(1);
};
}
public function changeToWildSymbols():void{
if (reel1.symbol1.currentFrame == 7){
reel1.symbol1.gotoAndStop(9);
};
if (reel1.symbol2.currentFrame == 7){
reel1.symbol2.gotoAndStop(9);
};
if (reel1.symbol3.currentFrame == 7){
reel1.symbol3.gotoAndStop(9);
};
if (reel2.symbol1.currentFrame == 7){
reel2.symbol1.gotoAndStop(9);
};
if (reel2.symbol2.currentFrame == 7){
reel2.symbol2.gotoAndStop(9);
};
if (reel2.symbol3.currentFrame == 7){
reel2.symbol3.gotoAndStop(9);
};
if (reel3.symbol1.currentFrame == 7){
reel3.symbol1.gotoAndStop(9);
};
if (reel3.symbol2.currentFrame == 7){
reel3.symbol2.gotoAndStop(9);
};
if (reel3.symbol3.currentFrame == 7){
reel3.symbol3.gotoAndStop(9);
};
if (reel4.symbol1.currentFrame == 7){
reel4.symbol1.gotoAndStop(9);
};
if (reel4.symbol2.currentFrame == 7){
reel4.symbol2.gotoAndStop(9);
};
if (reel4.symbol3.currentFrame == 7){
reel4.symbol3.gotoAndStop(9);
};
if (reel5.symbol1.currentFrame == 7){
reel5.symbol1.gotoAndStop(9);
};
if (reel5.symbol2.currentFrame == 7){
reel5.symbol2.gotoAndStop(9);
};
if (reel5.symbol3.currentFrame == 7){
reel5.symbol3.gotoAndStop(9);
};
}
public function loadData():void{
var _local1:SharedObject = SharedObject.getLocal(programID);
if (_local1.data.credits != null){
iCredits = _local1.data.credits;
iWinLines = _local1.data.winLines;
iBetPerLine = _local1.data.betPerLine;
};
}
public function saveData():void{
bSaveInProgress = true;
var _local1:SharedObject = SharedObject.getLocal(programID);
var _local2:* = (iCredits + iCreditTransfer);
_local1.data.credits = _local2;
_local1.data.winLines = iWinLines;
_local1.data.betPerLine = iBetPerLine;
bSaveInProgress = false;
}
public function setPunishDuration():void{
iPunishDuration = 0;
if (iCredits > 10000){
iPunishDuration = 30;
} else {
if (iCredits > 7500){
iPunishDuration = 25;
} else {
if (iCredits > 5000){
iPunishDuration = 20;
} else {
if (iCredits > 2500){
iPunishDuration = 15;
} else {
if (iCredits > 1000){
iPunishDuration = 10;
} else {
iPunishDuration = 5;
};
};
};
};
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
stop();
stop();
arrReels = [[8, 1, 2, 6, 3, 4, 3, 1, 5, 2, 1, 5, 7, 4, 2], [8, 3, 1, 7, 5, 3, 2, 4, 5, 1, 2, 4, 6, 1, 3], [8, 5, 7, 6, 3, 1, 1, 3, 2, 4, 1, 4, 2, 6, 2], [8, 4, 2, 4, 5, 1, 2, 7, 3, 5, 6, 2, 1, 3, 1], [8, 6, 5, 4, 1, 3, 2, 3, 1, 6, 7, 3, 1, 4, 2]];
arrGrid = [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]];
arrReelRotation = [1, 1, 1, 1, 1];
arrReelPos = [13, 13, 13, 13, 13];
iPhase = 0;
iRandomSpinsLeft = 0;
iCredits = 1000;
iCreditTransfer = 0;
iTotalWin = 0;
bFlipSprite = false;
iWinLines = 15;
iBetPerLine = 5;
iTotalBet = (iWinLines * iBetPerLine);
bBetValid = true;
iPunishmentID = 1;
iCountDown = 0;
iReturnToSleepCounter = 0;
bCharIdle = true;
iActionSecondsCountDown = 0;
bWILD = false;
bSaveInProgress = false;
iWildDecay = 0;
iPunishmentTokens = 0;
iRealPunishDuration = 5;
iPunishDuration = 5;
upTween = new Tween(star, "x", Strong.easeIn, -100, -100, 0.5, true);
upTween.FPS = 40;
rlTween = new Tween(star, "y", Strong.easeOut, -100, -100, 0.5, true);
rlTween.FPS = 40;
wildTween = new Tween(wildGraphic, "y", Strong.easeOut, 480, 480, 0.5, true);
wildTween.FPS = 40;
arrPhaseOut = [1];
arrPhaseIn = [];
objCurrentSprite = new sleep00();
bPhaseOutSprites = false;
bSwitchSprites = false;
strQueuedCharacter = "";
objCurrentSprite.x = 658;
objCurrentSprite.y = 4;
objCurrentSprite.gotoAndPlay(3);
addChild(objCurrentSprite);
setChildIndex(glass, (numChildren - 1));
punishReel.gotoAndStop(1);
programID = "illionoreFM06102017";
strLetter1 = "S";
strLetter2 = "W";
strLetter3 = "Y";
strLetter4 = "G";
strLetter5 = "M";
iLatestVariation = 1;
loadData();
iTotalBet = (iWinLines * iBetPerLine);
wndWild.alpha = 0;
wildArt.alpha = 0;
reel1.symbol1.gotoAndStop(getSymbol(1, 0));
reel1.symbol2.gotoAndStop(getSymbol(1, 1));
reel1.symbol3.gotoAndStop(getSymbol(1, 2));
reel1.symbol4.gotoAndStop(getSymbol(1, 3));
reel2.symbol1.gotoAndStop(getSymbol(2, 0));
reel2.symbol2.gotoAndStop(getSymbol(2, 1));
reel2.symbol3.gotoAndStop(getSymbol(2, 2));
reel2.symbol4.gotoAndStop(getSymbol(2, 3));
reel3.symbol1.gotoAndStop(getSymbol(3, 0));
reel3.symbol2.gotoAndStop(getSymbol(3, 1));
reel3.symbol3.gotoAndStop(getSymbol(3, 2));
reel3.symbol4.gotoAndStop(getSymbol(3, 3));
reel4.symbol1.gotoAndStop(getSymbol(4, 0));
reel4.symbol2.gotoAndStop(getSymbol(4, 1));
reel4.symbol3.gotoAndStop(getSymbol(4, 2));
reel4.symbol4.gotoAndStop(getSymbol(4, 3));
reel5.symbol1.gotoAndStop(getSymbol(5, 0));
reel5.symbol2.gotoAndStop(getSymbol(5, 1));
reel5.symbol3.gotoAndStop(getSymbol(5, 2));
reel5.symbol4.gotoAndStop(getSymbol(5, 3));
txtWinLines.text = iWinLines;
txtBetPerLine.text = iBetPerLine;
txtTotalBet.text = iTotalBet;
btnCredits.txtCredits.text = iCredits;
machineArt.mouseEnabled = false;
hideDefaultWinLines();
validateCredits();
letter1.text = "";
letter2.text = "";
letter3.text = "";
letter4.text = "";
letter5.text = "";
if (iCredits < 251){
wndCredits.y = 0;
};
myInterval = setInterval(myTimer, 50);
myInterval2 = setInterval(secondsTimer, 1000);
myInterval3 = setInterval(thirdTimer, 250);
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
}
}
}//package swygm_slots_fla
Section 23
//sprSymbol_8 (swygm_slots_fla.sprSymbol_8)
package swygm_slots_fla {
import flash.display.*;
public dynamic class sprSymbol_8 extends MovieClip {
public function sprSymbol_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 24
//star_45 (swygm_slots_fla.star_45)
package swygm_slots_fla {
import flash.display.*;
public dynamic class star_45 extends MovieClip {
public function star_45(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 25
//starIndicator_25 (swygm_slots_fla.starIndicator_25)
package swygm_slots_fla {
import flash.display.*;
public dynamic class starIndicator_25 extends MovieClip {
public function starIndicator_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 26
//swygmGreen_5 (swygm_slots_fla.swygmGreen_5)
package swygm_slots_fla {
import flash.display.*;
public dynamic class swygmGreen_5 extends MovieClip {
public var bar1:MovieClip;
public var bar2:MovieClip;
public var bar3:MovieClip;
public var bar4:MovieClip;
public var bar5:MovieClip;
public function swygmGreen_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 27
//wndSwygmPower_24 (swygm_slots_fla.wndSwygmPower_24)
package swygm_slots_fla {
import flash.display.*;
public dynamic class wndSwygmPower_24 extends MovieClip {
public function wndSwygmPower_24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package swygm_slots_fla
Section 28
//electro01 (electro01)
package {
import flash.display.*;
public dynamic class electro01 extends MovieClip {
public function electro01(){
addFrameScript(58, frame59);
}
function frame59(){
gotoAndPlay(2);
}
}
}//package
Section 29
//horse01 (horse01)
package {
import flash.display.*;
public dynamic class horse01 extends MovieClip {
public function horse01(){
addFrameScript(52, frame53);
}
function frame53(){
gotoAndPlay(4);
}
}
}//package
Section 30
//idle01 (idle01)
package {
import flash.display.*;
public dynamic class idle01 extends MovieClip {
public function idle01(){
addFrameScript(80, frame81);
}
function frame81(){
gotoAndPlay(3);
}
}
}//package
Section 31
//idle02 (idle02)
package {
import flash.display.*;
public dynamic class idle02 extends MovieClip {
public function idle02(){
addFrameScript(22, frame23);
}
function frame23(){
gotoAndPlay(3);
}
}
}//package
Section 32
//idle03 (idle03)
package {
import flash.display.*;
public dynamic class idle03 extends MovieClip {
public function idle03(){
addFrameScript(243, frame244);
}
function frame244(){
gotoAndPlay(3);
}
}
}//package
Section 33
//idle04 (idle04)
package {
import flash.display.*;
public dynamic class idle04 extends MovieClip {
}
}//package
Section 34
//inflate01 (inflate01)
package {
import flash.display.*;
public dynamic class inflate01 extends MovieClip {
public function inflate01(){
addFrameScript(32, frame33);
}
function frame33(){
gotoAndPlay(6);
}
}
}//package
Section 35
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 36
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package
Section 37
//sleep00 (sleep00)
package {
import flash.display.*;
public dynamic class sleep00 extends MovieClip {
public function sleep00(){
addFrameScript(92, frame93);
}
function frame93(){
gotoAndPlay(3);
}
}
}//package
Section 38
//spnk01 (spnk01)
package {
import flash.display.*;
public dynamic class spnk01 extends MovieClip {
public function spnk01(){
addFrameScript(0, frame1, 13, frame14);
}
function frame1(){
}
function frame14(){
gotoAndPlay(3);
}
}
}//package
Section 39
//strip01 (strip01)
package {
import flash.display.*;
public dynamic class strip01 extends MovieClip {
public function strip01(){
addFrameScript(14, frame15);
}
function frame15(){
gotoAndPlay(3);
}
}
}//package
Section 40
//tk01 (tk01)
package {
import flash.display.*;
public dynamic class tk01 extends MovieClip {
public function tk01(){
addFrameScript(13, frame14);
}
function frame14(){
gotoAndPlay(2);
}
}
}//package
Section 41
//wedgie01 (wedgie01)
package {
import flash.display.*;
public dynamic class wedgie01 extends MovieClip {
public function wedgie01(){
addFrameScript(7, frame8);
}
function frame8(){
gotoAndPlay(2);
}
}
}//package