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
//btnNextRound_26 (strip_fla.btnNextRound_26)
package strip_fla {
import flash.display.*;
public dynamic class btnNextRound_26 extends MovieClip {
public function btnNextRound_26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package strip_fla
Section 6
//card_9 (strip_fla.card_9)
package strip_fla {
import flash.display.*;
public dynamic class card_9 extends MovieClip {
public function card_9(){
addFrameScript(0, frame1, 13, frame14, 26, frame27, 39, frame40, 52, frame53);
}
function frame1(){
stop();
}
function frame14(){
stop();
}
function frame27(){
stop();
}
function frame40(){
stop();
}
function frame53(){
stop();
}
}
}//package strip_fla
Section 7
//cloth1_12 (strip_fla.cloth1_12)
package strip_fla {
import flash.display.*;
public dynamic class cloth1_12 extends MovieClip {
public function cloth1_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package strip_fla
Section 8
//cloth2_13 (strip_fla.cloth2_13)
package strip_fla {
import flash.display.*;
public dynamic class cloth2_13 extends MovieClip {
public function cloth2_13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package strip_fla
Section 9
//MainTimeline (strip_fla.MainTimeline)
package strip_fla {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
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 youTmpCard:MovieClip;
public var textLine:MovieClip;
public var btnOc:MovieClip;
public var youResult:MovieClip;
public var card_a1:MovieClip;
public var btnLose:MovieClip;
public var deckSprite:MovieClip;
public var girlText:TextField;
public var playerHandTxt:MovieClip;
public var card_b1:MovieClip;
public var card_a2:MovieClip;
public var btnEqual:MovieClip;
public var card_b2:MovieClip;
public var card_a3:MovieClip;
public var node1:MovieClip;
public var card_b3:MovieClip;
public var card_a4:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var node2:MovieClip;
public var card_b4:MovieClip;
public var card_a5:MovieClip;
public var btnStay:MovieClip;
public var btnDraw:MovieClip;
public var btnWin:MovieClip;
public var card_b5:MovieClip;
public var card_a6:MovieClip;
public var card_b6:MovieClip;
public var spriteGirl:MovieClip;
public var oppTmpCard:MovieClip;
public var cloth1:MovieClip;
public var btnFemale:MovieClip;
public var cloth2:MovieClip;
public var btnCoding:MovieClip;
public var cloth3:MovieClip;
public var iAmText:MovieClip;
public var oppResult:MovieClip;
public var cloth4:MovieClip;
public var btnMale:MovieClip;
public var btnArt:MovieClip;
public var btnNextRound:MovieClip;
public var cloth5:MovieClip;
public var iGender;
public var deck:Array;
public var youHand:Array;
public var oppHand:Array;
public var i;
public var j;
public var k;
public var x2;
public var y2;
public var totCardsYou;
public var totCardsOpp;
public var bDrawInProgress;
public var bOppReady;
public var bGameLocked;
public var youTweenX:Tween;
public var youTweenY:Tween;
public var oppTweenX:Tween;
public var oppTweenY:Tween;
public var myInterval:uint;
public var iGirlPhase;
public var iPlayerPhase;
public var opp_to_phase_1m:Array;
public var opp_to_phase_2m:Array;
public var opp_to_phase_3m:Array;
public var opp_to_phase_4m:Array;
public var opp_to_phase_5m:Array;
public var opp_to_phase_1f:Array;
public var opp_to_phase_2f:Array;
public var opp_to_phase_3f:Array;
public var opp_to_phase_4f:Array;
public var opp_to_phase_5f:Array;
public var male_to_phase_1:Array;
public var male_to_phase_2:Array;
public var male_to_phase_3:Array;
public var male_to_phase_4:Array;
public var male_to_phase_5:Array;
public var female_to_phase_1:Array;
public var female_to_phase_2:Array;
public var female_to_phase_3:Array;
public var female_to_phase_4:Array;
public var female_to_phase_5:Array;
public var draw_opp_at_phase_0f:Array;
public var draw_opp_at_phase_1f:Array;
public var draw_opp_at_phase_2f:Array;
public var draw_opp_at_phase_3f:Array;
public var draw_opp_at_phase_4f:Array;
public var draw_opp_at_phase_0m:Array;
public var draw_opp_at_phase_1m:Array;
public var draw_opp_at_phase_2m:Array;
public var draw_opp_at_phase_3m:Array;
public var draw_opp_at_phase_4m:Array;
public var drawArr:Array;
public var oppLoseArr:Array;
public var playerLoseArr:Array;
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.";
iAmText.alpha = 1;
btnMale.alpha = 1;
btnFemale.alpha = 1;
btnMale.addEventListener(MouseEvent.CLICK, startMale);
btnFemale.addEventListener(MouseEvent.CLICK, startFemale);
}
public function startMale(_arg1:MouseEvent):void{
iGender = 0;
btnMale.removeEventListener(MouseEvent.CLICK, startMale);
btnFemale.removeEventListener(MouseEvent.CLICK, startFemale);
btnArt.removeEventListener(MouseEvent.CLICK, artWeb);
btnOc.removeEventListener(MouseEvent.CLICK, ocWeb);
btnCoding.removeEventListener(MouseEvent.CLICK, codingWeb);
gotoAndStop(2);
}
public function startFemale(_arg1:MouseEvent):void{
iGender = 1;
btnMale.removeEventListener(MouseEvent.CLICK, startMale);
btnFemale.removeEventListener(MouseEvent.CLICK, startFemale);
btnArt.removeEventListener(MouseEvent.CLICK, artWeb);
btnOc.removeEventListener(MouseEvent.CLICK, ocWeb);
btnCoding.removeEventListener(MouseEvent.CLICK, codingWeb);
gotoAndStop(2);
}
public function artWeb(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://drawuscloser.deviantart.com/");
navigateToURL(_local2, "_blank");
}
public function codingWeb(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://illionore.deviantart.com/");
navigateToURL(_local2, "_blank");
}
public function ocWeb(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://krisslanza.deviantart.com/");
navigateToURL(_local2, "_blank");
}
public function createDeck():void{
deck = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
i = 1;
while (i < 53) {
k = 0;
while (k == 0) {
j = Math.floor((Math.random() * 52));
if (deck[j] == 0){
deck[j] = i;
k = 1;
};
};
i++;
};
}
public function dealCard(_arg1:uint){
if (_arg1 == 0){
bDrawInProgress = true;
if (totCardsYou == 0){
x2 = 37;
y2 = 755;
};
if (totCardsYou == 1){
x2 = 87;
y2 = 755;
};
if (totCardsYou == 2){
x2 = 137;
y2 = 755;
};
if (totCardsYou == 3){
x2 = 58;
y2 = 842;
};
if (totCardsYou == 4){
x2 = 108;
y2 = 842;
};
if (totCardsYou == 5){
x2 = 158;
y2 = 842;
};
youHand[totCardsYou] = deck[0];
deck.splice(0, 1);
youTweenX = new Tween(youTmpCard, "x", Regular.easeIn, 452, x2, 0.8, true);
youTweenX.FPS = 40;
youTweenY = new Tween(youTmpCard, "y", Strong.easeIn, 685, y2, 0.8, true);
youTweenY.FPS = 40;
youTweenY.addEventListener(TweenEvent.MOTION_FINISH, youCardDealt);
youTmpCard.alpha = 1;
} else {
if (totCardsOpp == 0){
x2 = 393;
y2 = 305;
};
if (totCardsOpp == 1){
x2 = 443;
y2 = 305;
};
if (totCardsOpp == 2){
x2 = 493;
y2 = 305;
};
if (totCardsOpp == 3){
x2 = 415;
y2 = 392;
};
if (totCardsOpp == 4){
x2 = 465;
y2 = 392;
};
if (totCardsOpp == 5){
x2 = 515;
y2 = 392;
};
oppHand[totCardsOpp] = deck[0];
deck.splice(0, 1);
oppTweenX = new Tween(oppTmpCard, "x", Regular.easeIn, 452, x2, 0.8, true);
oppTweenX.FPS = 40;
oppTweenY = new Tween(oppTmpCard, "y", Strong.easeIn, 685, y2, 0.8, true);
oppTweenY.FPS = 40;
oppTweenY.addEventListener(TweenEvent.MOTION_FINISH, oppCardDealt);
oppTmpCard.alpha = 1;
};
}
public function youCardDealt(_arg1:TweenEvent):void{
youTmpCard.alpha = 0;
if (totCardsYou == 0){
card_b1.gotoAndStop(youHand[totCardsYou]);
card_b1.rotation = (Math.floor((Math.random() * 7)) - 3);
card_b1.alpha = 1;
} else {
if (totCardsYou == 1){
btnStay.alpha = 1;
card_b2.gotoAndStop(youHand[totCardsYou]);
card_b2.rotation = (Math.floor((Math.random() * 7)) - 3);
card_b2.alpha = 1;
} else {
if (totCardsYou == 2){
card_b3.gotoAndStop(youHand[totCardsYou]);
card_b3.rotation = (Math.floor((Math.random() * 7)) - 3);
card_b3.alpha = 1;
} else {
if (totCardsYou == 3){
card_b4.gotoAndStop(youHand[totCardsYou]);
card_b4.rotation = (Math.floor((Math.random() * 7)) - 3);
card_b4.alpha = 1;
} else {
if (totCardsYou == 4){
card_b5.gotoAndStop(youHand[totCardsYou]);
card_b5.rotation = (Math.floor((Math.random() * 7)) - 3);
card_b5.alpha = 1;
} else {
if (totCardsYou == 5){
btnDraw.alpha = 0.2;
card_b6.gotoAndStop(youHand[totCardsYou]);
card_b6.rotation = (Math.floor((Math.random() * 7)) - 3);
card_b6.alpha = 1;
};
};
};
};
};
};
totCardsYou++;
bDrawInProgress = false;
}
public function oppCardDealt(_arg1:TweenEvent):void{
oppTmpCard.alpha = 0;
if (totCardsOpp == 0){
card_a1.rotation = (Math.floor((Math.random() * 7)) - 3);
card_a1.alpha = 1;
} else {
if (totCardsOpp == 1){
card_a2.rotation = (Math.floor((Math.random() * 7)) - 3);
card_a2.alpha = 1;
} else {
if (totCardsOpp == 2){
card_a3.rotation = (Math.floor((Math.random() * 7)) - 3);
card_a3.alpha = 1;
} else {
if (totCardsOpp == 3){
card_a4.rotation = (Math.floor((Math.random() * 7)) - 3);
card_a4.alpha = 1;
} else {
if (totCardsOpp == 4){
card_a5.rotation = (Math.floor((Math.random() * 7)) - 3);
card_a5.alpha = 1;
} else {
if (totCardsOpp == 5){
bOppReady = true;
card_a6.rotation = (Math.floor((Math.random() * 7)) - 3);
card_a6.alpha = 1;
};
};
};
};
};
};
totCardsOpp++;
if (calculateCardTotal(1) > 17){
bOppReady = true;
};
}
public function calculateCardTotal(_arg1):uint{
var _local2:Array = [0, 0, 0, 0, 0, 0];
var _local3:* = 0;
var _local4:* = 0;
var _local5:* = 0;
if (_arg1 == 0){
_local2 = youHand;
} else {
_local2 = oppHand;
};
var _local6:* = 0;
while (_local6 < 6) {
_local5 = 0;
if ((((((((_local2[_local6] == 1)) || ((_local2[_local6] == 14)))) || ((_local2[_local6] == 27)))) || ((_local2[_local6] == 40)))){
_local4++;
_local3 = (_local3 + 11);
} else {
if (_local2[_local6] > 40){
_local5 = ((_local2[_local6] - 40) + 1);
} else {
if (_local2[_local6] > 27){
_local5 = ((_local2[_local6] - 27) + 1);
} else {
if (_local2[_local6] > 14){
_local5 = ((_local2[_local6] - 14) + 1);
} else {
_local5 = _local2[_local6];
};
};
};
};
if (_local5 > 10){
_local5 = 10;
};
_local3 = (_local3 + _local5);
_local6++;
};
if ((((_local4 > 0)) && ((_local3 > 21)))){
_local4--;
_local3 = (_local3 - 10);
};
if ((((_local4 > 0)) && ((_local3 > 21)))){
_local4--;
_local3 = (_local3 - 10);
};
if ((((_local4 > 0)) && ((_local3 > 21)))){
_local4--;
_local3 = (_local3 - 10);
};
if ((((_local4 > 0)) && ((_local3 > 21)))){
_local4--;
_local3 = (_local3 - 10);
};
return (_local3);
}
public function myTimer():void{
var _local1:*;
var _local2:*;
var _local3:*;
if ((((((((((btnStay.alpha < 0.5)) && ((totCardsOpp > 1)))) && ((totCardsYou > 1)))) && ((bOppReady == true)))) && ((bGameLocked == false)))){
bGameLocked = true;
if (oppHand[0] > 0){
card_a1.gotoAndStop(oppHand[0]);
};
if (oppHand[1] > 0){
card_a2.gotoAndStop(oppHand[1]);
};
if (oppHand[2] > 0){
card_a3.gotoAndStop(oppHand[2]);
};
if (oppHand[3] > 0){
card_a4.gotoAndStop(oppHand[3]);
};
if (oppHand[4] > 0){
card_a5.gotoAndStop(oppHand[4]);
};
if (oppHand[5] > 0){
card_a6.gotoAndStop(oppHand[5]);
};
_local1 = calculateCardTotal(1);
_local2 = calculateCardTotal(0);
_local3 = 0;
if ((((_local1 > 21)) && ((_local2 > 21)))){
_local3 = 0;
youResult.gotoAndStop(2);
oppResult.gotoAndStop(2);
} else {
if ((((_local1 > 21)) && ((_local2 < 22)))){
_local3 = 1;
youResult.gotoAndStop(1);
oppResult.gotoAndStop(2);
} else {
if ((((_local1 < 22)) && ((_local2 > 21)))){
_local3 = 2;
youResult.gotoAndStop(2);
oppResult.gotoAndStop(1);
} else {
if (_local1 == _local2){
_local3 = 0;
youResult.gotoAndStop(3);
oppResult.gotoAndStop(3);
} else {
if (_local1 > _local2){
_local3 = 2;
youResult.gotoAndStop(2);
oppResult.gotoAndStop(1);
} else {
_local3 = 1;
youResult.gotoAndStop(1);
oppResult.gotoAndStop(2);
};
};
};
};
};
if (_local3 == 0){
displayText("draw");
} else {
if (_local3 == 1){
displayText("win");
iGirlPhase++;
if (iGirlPhase == 1){
spriteGirl.gotoAndStop(6);
} else {
if (iGirlPhase == 2){
spriteGirl.gotoAndStop(11);
} else {
if (iGirlPhase == 3){
spriteGirl.gotoAndStop(16);
} else {
if (iGirlPhase == 4){
spriteGirl.gotoAndPlay(21);
} else {
if (iGirlPhase == 5){
spriteGirl.gotoAndPlay(26);
};
};
};
};
};
if (iGirlPhase > 4){
endGame();
};
} else {
displayText("lose");
iPlayerPhase++;
if (iPlayerPhase == 1){
cloth5.alpha = 0;
} else {
if (iPlayerPhase == 2){
cloth4.alpha = 0;
} else {
if (iPlayerPhase == 3){
cloth3.alpha = 0;
} else {
if (iPlayerPhase == 4){
cloth2.alpha = 0;
} else {
if (iPlayerPhase == 5){
cloth1.alpha = 0;
};
};
};
};
};
if (iPlayerPhase > 4){
endGame();
};
};
};
oppResult.alpha = 0.5;
youResult.alpha = 0.5;
btnNextRound.alpha = 1;
} else {
if ((((calculateCardTotal(1) < 18)) && ((bGameLocked == false)))){
if (totCardsOpp > 2){
if (Math.floor(((Math.random() * totCardsOpp) - 1)) == 0){
dealCard(1);
};
} else {
dealCard(1);
};
};
};
}
public function mouseClicked(_arg1:MouseEvent):void{
var _local2:* = _arg1.target.name;
if (_local2 == "node1"){
node1.x = 237;
node1.y = 175.5;
node2.x = 18;
node2.y = 100;
} else {
if (_local2 == "node2"){
node1.x = 18;
node1.y = 50;
node2.x = 237;
node2.y = 175.5;
} else {
if (_local2 == "spriteGirl"){
node1.x = 18;
node1.y = 50;
node2.x = 18;
node2.y = 100;
};
};
};
if (_local2 == "btnWin"){
displayText("win");
iGirlPhase++;
if (iGirlPhase == 1){
spriteGirl.gotoAndStop(6);
} else {
if (iGirlPhase == 2){
spriteGirl.gotoAndStop(11);
} else {
if (iGirlPhase == 3){
spriteGirl.gotoAndStop(16);
} else {
if (iGirlPhase == 4){
spriteGirl.gotoAndPlay(21);
} else {
if (iGirlPhase == 5){
spriteGirl.gotoAndPlay(26);
};
};
};
};
};
if (iGirlPhase > 4){
endGame();
};
} else {
if (_local2 == "btnLose"){
displayText("lose");
iPlayerPhase++;
if (iPlayerPhase == 1){
cloth5.alpha = 0;
} else {
if (iPlayerPhase == 2){
cloth4.alpha = 0;
} else {
if (iPlayerPhase == 3){
cloth3.alpha = 0;
} else {
if (iPlayerPhase == 4){
cloth2.alpha = 0;
} else {
if (iPlayerPhase == 5){
cloth1.alpha = 0;
};
};
};
};
};
if (iPlayerPhase > 4){
endGame();
};
} else {
if ((((_local2 == "btnNextRound")) && ((btnNextRound.alpha == 1)))){
btnNextRound.alpha = 0.2;
if (deck.length < 20){
createDeck();
};
youHand = [0, 0, 0, 0, 0, 0];
oppHand = [0, 0, 0, 0, 0, 0];
totCardsYou = 0;
totCardsOpp = 0;
bDrawInProgress = false;
bOppReady = false;
setExpression(0);
girlText.text = "";
textLine.alpha = 0;
btnStay.alpha = 0.2;
btnDraw.alpha = 1;
oppResult.alpha = 0;
youResult.alpha = 0;
card_a1.alpha = 0;
card_a2.alpha = 0;
card_a3.alpha = 0;
card_a4.alpha = 0;
card_a5.alpha = 0;
card_a6.alpha = 0;
card_b1.alpha = 0;
card_b2.alpha = 0;
card_b3.alpha = 0;
card_b4.alpha = 0;
card_b5.alpha = 0;
card_b6.alpha = 0;
card_a1.gotoAndStop(53);
card_a2.gotoAndStop(53);
card_a3.gotoAndStop(53);
card_a4.gotoAndStop(53);
card_a5.gotoAndStop(53);
card_a6.gotoAndStop(53);
if (btnNextRound.currentFrame == 2){
btnNextRound.alpha = 0.2;
btnNextRound.gotoAndStop(1);
if (deck.length < 20){
createDeck();
};
youHand = [0, 0, 0, 0, 0, 0];
oppHand = [0, 0, 0, 0, 0, 0];
totCardsYou = 0;
totCardsOpp = 0;
bDrawInProgress = false;
bOppReady = false;
setExpression(0);
girlText.text = "";
textLine.alpha = 0;
btnStay.alpha = 0.2;
btnDraw.alpha = 1;
iGirlPhase = 0;
iPlayerPhase = 0;
cloth1.alpha = 1;
cloth2.alpha = 1;
cloth3.alpha = 1;
cloth4.alpha = 1;
cloth5.alpha = 1;
spriteGirl.gotoAndStop(0);
setExpression(0);
};
bGameLocked = false;
} else {
if (_local2 == "btnEqual"){
displayText("draw");
} else {
if (_local2 == "btnStay"){
if (btnStay.alpha == 1){
btnStay.alpha = 0.2;
btnDraw.alpha = 0.2;
};
} else {
if ((((_local2 == "btnDraw")) || ((_local2 == "deckSprite")))){
if ((((btnDraw.alpha == 1)) && ((bDrawInProgress == false)))){
dealCard(0);
};
};
};
};
};
};
};
}
public function endGame():void{
bGameLocked = true;
btnNextRound.gotoAndStop(2);
btnNextRound.alpha = 1;
}
public function displayText(_arg1:String):void{
if (_arg1 == "win"){
girlText.text = oppLoseArr[iGirlPhase][iPlayerPhase];
textLine.alpha = 1;
} else {
if (_arg1 == "lose"){
girlText.text = playerLoseArr[iPlayerPhase][iGirlPhase];
textLine.alpha = 1;
} else {
if (_arg1 == "draw"){
girlText.text = drawArr[iGirlPhase][iPlayerPhase];
textLine.alpha = 1;
} else {
girlText.text = "";
};
};
};
if (girlText.text == ""){
textLine.alpha = 0;
};
}
public function setExpression(_arg1):void{
trace("to do, reset expression!");
if (_arg1 == 0){
};
}
function frame1(){
stop();
iGender = 0;
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
btnArt.addEventListener(MouseEvent.CLICK, artWeb);
btnOc.addEventListener(MouseEvent.CLICK, ocWeb);
btnCoding.addEventListener(MouseEvent.CLICK, codingWeb);
}
function frame2(){
deck = [];
youHand = [0, 0, 0, 0, 0, 0];
oppHand = [0, 0, 0, 0, 0, 0];
totCardsYou = 0;
totCardsOpp = 0;
bDrawInProgress = false;
bOppReady = false;
bGameLocked = false;
createDeck();
youTmpCard.gotoAndStop(53);
oppTmpCard.gotoAndStop(53);
myInterval = setInterval(myTimer, 2000);
stop();
iGirlPhase = 0;
iPlayerPhase = 0;
textLine.alpha = 0;
opp_to_phase_1m = ["Looks like I lost first... don't worry, there's nothing actually wrong with my eye, mister.", "Well, there goes my lead... you weren't thinking anything was wrong my eye, were you?", "I guess I couldn't keep winning. There's no missing eye behind here, don't worry mister.", "You're down to your underwear, so I guess losing my eyepatch is a small price, heehee...", "I was so close to a flawless victory too! I guess when I win, I can really enjoy the sight now..."];
opp_to_phase_2m = ["You're pretty good at this game mister, seems I'll be showing the first skin...", "I guess it's too much to hope that you have cold feet. No one really ever sees these tattoos...", "It has to be some kind of karma for you to be shirtless, and then for me to lose my own, right?", "And here I was hoping you wouldn't even get to see my bra mister.", "If you see my bra, you aren't going to be too uncomfortable, are you mister?"];
opp_to_phase_3m = ["I'm already down to my underwear, and you haven't lost yet! This makes me feel really cold...", "Down to my underwear, and you only lost your socks? You're pretty good...", "Was losing my pants worth your shirt? I wonder mister...", "I guess it's only fair for me to lose my pants after beating yours off.", "I'm so close to winning! I really hope you don't win again mister..."];
opp_to_phase_4m = ["I can't believe it! Mister, can't you let me win some? I'm down to my panties, this is so embarrassing...", "Ah... I can't believe I'm down to my panties already...", "This looks a little lopsided mister. Please don't stare too much.", "I was hoping to finish this game without having to show anymore skin, but I guess you get to see a little more...", "I guess we're both topless now mister. I somehow feel like you're getting the better deal here though."];
opp_to_phase_5m = ["I-I can't believe it, I didn't even win once... p-please don't stare too much mister. This is so humilating...", "Ah, please don't stare too much mister... you did really good...", "This is embarrassing mister, I was hoping to win a little more...", "I get you down to your underwear, and you still beat me!", "I was so close to winning! You look really uncomfortable though mister, please don't stare so much..."];
opp_to_phase_1f = ["Looks like I lose first. You weren't expecting me to be missing an eye behind this, were you?", "Well, there goes my small lead. Don't worry, I'm not hiding a hole in my face behind this...", "I was hoping to keep this on, but I guess it's a small price...", "There goes my chance at a flawless victory. Oh well, it's a small price to get a better look at your undies...", "I almost won too! Well, you won't win again I'm afraid."];
opp_to_phase_2f = ["Ah, I lost again? I guess it's nothing you haven't seen before...", "I guess this is only a small lead for you...", "Seems I have to show you my bra as well now. Do you think my tattoos look weird...?", "Well I've seen your panties, so I guess it isn't too bad to show you my bra...", "Heehee, well, I've seen your bare breasts, so showing my bra isn't too bad."];
opp_to_phase_3f = ["Down to my underwear, and you haven't lost anything! You're really good...", "You're good at this, I'm already down to my underwear...", "I guess for seeing your bra, you want to see my panties now?", "Well, I guess we can compare panties now, heehee...", "You're almost naked, so I guess showing off my underwear isn't too bad a price."];
opp_to_phase_4f = ["This is embarrassing, even if you're a girl for me to be topless like this...", "I'm kind of shy about this, sorry... you're really good.", "This is kind of weird being topless, and your breasts are still covered by a bra...", "I was hoping to get your bra off before mine...", "I guess now we both get to see how the other looks topless. I think you look better then me..."];
opp_to_phase_5f = ["I can't believe I lost so utterly... please don't stare too much...", "That was a good game, even if I lost pretty bad... do you think all my tattoos look strange?", "Ah, I lost... I was hoping to win some more...", "At least I got you to your underwear. That was a good game, just please don't stare too much...", "I was hoping I'd win! But I guess you beat me fair and square..."];
male_to_phase_1 = ["Seems I get the first win mister, it's only your socks though.", "You got to see my eyes, so I guess I get to see your feet now?", "I finally managed to get a win... even if it's just your socks, it's better then nothing...", "Even if I'm down to my underwear... I hope this is when I start winning.", "I'm almost naked and I just won your socks... you're going to keep losing, right...?"];
male_to_phase_2 = ["Heehee, I win again mister. Will you take off your shirt? Ah, you have an undershirt on, a shame...", "Seems I win again mister. A shame you're wearing an undershirt though, I'd prefer to see your bare chest...", "Okay mister, off with the shirt. If you can see my bra, I get to see your undershirt, right?", "I hope I can keep this up, I'm down to my underwear so... lose some more for me, okay?", "Are you distracted by my breasts? I-I guess that's not bad, so can you keep losing for me?"];
male_to_phase_3 = ["Looks like I beat the pants off you mister! You look kind of sexy in your boxers and undershirt...", "You look much better with your pants off, I think you should keep losing for me mister.", "I guess I got your pants off first mister. Your boxers look kind of cute...", "Looks like we're equal. I'm hoping you'll keep losing for me though.", "Ah, I hope I can keep winning... are you uncomfortable, seeing me like this mister?"];
male_to_phase_4 = ["I'm about to win mister! You look sexy in just your boxer shorts... do you have something in those, for me by the way...?", "You know, even if I had my eyepatch on, I can enjoy this sight. It doesn't actually mess with my sight...", "Heehee, is my bra distracting mister? Your boxers look uncomfortable...", "I hope my underwear is distracting you, because I want to get those boxers of yours.", "Looks like this game is coming right down to it... I hope I win!"];
male_to_phase_5 = ["I win mister! Take off the boxers, for me please! Heehee, wow you're nice and healthy and excited for losing to me... do you like losing, mister? Your friend seems to like it!", "Looks like I win, mister. You're not going to poke my eye out with that thing, are you? Heehee...", "Too bad mister, looks like I win. You're very healthy, I don't know why you wouldn't want to just lose for me.", "Off with the boxers, please. Did you get that excited seeing me in my underwear? W-wow...", "That was a close game, but I win! Did you get yourself all like that over my breasts? Wow... it's so nice..."];
female_to_phase_1 = ["Looks like the first victory is mine. You don't really need any socks, right?", "I guess my eyepatch is equal to your socks, right? I'm barefoot already, so it's not that chilly in here!", "At least I managed to win once... wish it didn't cost me half my clothes though.", "Finally! I was worried you were going to win some more before I got anything off you, even if it's just socks...", "Saved from a total defeat at least... losing your socks right now isn't a big deal, right?"];
female_to_phase_2 = ["Looks like my luck continues. Go ahead and lose the shirt, I've seen a bra before, so show me yours!", "Will you be a dear and lose your shirt? I'm curious what kind of bra you wear...", "Well I've lost my shirt, so it's only fair, right?", "You're doing really well, but I still get to see your bra at least!", "I've topless, so losing your shirt isn't a big deal, right?"];
female_to_phase_3 = ["Wow, you're already down to your underwear! You look cute like that...", "I'm not doing too bad, beat the pants off ya!", "You're doing pretty good, but I get to see your panties now, if you'd be so kind.", "Now we're both in our underwear. Yours are pretty cute, what do you think of mine...?", "If I can just win one more time... you don't mind losing so I can win your bra, right?"];
female_to_phase_4 = ["Heehee, you're not doing good at all! I like your bra, so how about you let me keep it? You have some cute breasts as well!", "If you'd be so kind, would you take off your bra now? You shouldn't be shy, you have great breasts!", "I kind of like that bra you're wearing, can I have it now? Maybe I'll try it on after the game...", "You got me down to my underwear, but seems I get to see your boobs first. They look very good, so you should be proud!", "Now we're equal. This next hand is going to decide whose panties come off. I hope it's yours."];
female_to_phase_5 = ["I win! Completely and utterly! Don't be shy now, strip for Paltina. I think you should stay like that...", "Yay, I win! I hope my eyes didn't creep you out, but I have to say you're very easy on the eyes like that.", "You did pretty good, but I win in the end. Do you mind if I keep your clothes? It was part of the rules!", "I hope you liked seeing my underwear, since that's the most you get to see. I think I'll go try yours on in a bit...", "That was a close game, but I win! Don't be shy now... you look very good naked."];
draw_opp_at_phase_0f = ["That was kind of a boring hand, wouldn't you say?", "I hope your feet aren't too cold.", "I guess getting to look at your bra more isn't so bad...", "Heehee, you look cute in your underwear.", "The game hasn't been to kind, has it? At least you have a nice body..."];
draw_opp_at_phase_1f = ["Do you like my eyes?", "Seems we're still tied!", "Your bra looks kind of nice actually.", "A draw! Well, I hope you're comfy in your undies!", "I'm going to win next round!"];
draw_opp_at_phase_2f = ["You aren't just going to let me win a hand, are you?", "I was hoping to win that time!", "Do my tattoos seem kind of weird to you? No one usually sees them...", "I've still got a little bit of a lead at least!", "I hope you don't mind that I still have my bra on, your breasts are very nice though!"];
draw_opp_at_phase_3f = ["I'm in my underwear, can't you let me win a hand?", "You're only barefoot, and I'm like this...", "If I had won, we'd both be in our underwear at least!", "Looks like the underwear game continues!", "I don't intend to lose, so I hope you aren't mad when I win next time."];
draw_opp_at_phase_4f = ["A draw...? Can't you let me win some?", "At least I didn't lose, but it's really cold...", "I'm also naked, so won't you let me win some?", "I was hoping I'd win your bra...", "I was sure I'd get your panties that time!"];
draw_opp_at_phase_0m = ["Ah, a draw... I guess no one strips this time.", "Looks like a draw, I hope you aren't getting cold feet, mister!", "Seems you won't have to strip this round, but I kind of hope that changes next time...", "That's a shame, I was hoping you would lose the undershirt this time...", "I'm hoping you'll lose next time mister, I want to get you out of your underwear! This has been a fun game..."];
draw_opp_at_phase_1m = ["A draw, I was hoping to even the score but...", "Seems the score is staying tied this round mister.", "I'm still a little bit in the lead at least!", "I hope you're comfy in your underwear like that mister.", "It's a draw, but I guess I can check you out for a bit longer..."];
draw_opp_at_phase_2m = ["I was hoping to win that hand...", "Is it a little chilly in here, or is it just me...?", "Please don't stare too much mister. I kind of wish your undershirt was nicer to look at...", "I'm still in the lead a little bit mister!", "I guess getting to see a cute boy in his boxers, is worth showing him this much skin..."];
draw_opp_at_phase_3m = ["Please don't have your eyes wander too much mister.", "Well, at least both our feet are bare...", "I was hoping to beat the pants off you mister, but maybe next time?", "Your underwear isn't as nice to look at, I think.", "I was hoping to win this hand!"];
draw_opp_at_phase_4m = ["Can't you try to lose a hand for me mister? I'm cold...", "Please don't stare so much mister, it's embarrassing...", "At least I didn't lose...", "Don't you want to lose your undershirt, mister? It would make it kind of fair, right?", "M-maybe next hand I'll win! I hope so..."];
drawArr = [];
oppLoseArr = [];
playerLoseArr = [];
if (iGender == 0){
drawArr = [draw_opp_at_phase_0m, draw_opp_at_phase_1m, draw_opp_at_phase_2m, draw_opp_at_phase_3m, draw_opp_at_phase_4m];
oppLoseArr = [opp_to_phase_1m, opp_to_phase_2m, opp_to_phase_3m, opp_to_phase_4m, opp_to_phase_5m];
playerLoseArr = [male_to_phase_1, male_to_phase_2, male_to_phase_3, male_to_phase_4, male_to_phase_5];
} else {
drawArr = [draw_opp_at_phase_0f, draw_opp_at_phase_1f, draw_opp_at_phase_2f, draw_opp_at_phase_3f, draw_opp_at_phase_4f];
oppLoseArr = [opp_to_phase_1f, opp_to_phase_2f, opp_to_phase_3f, opp_to_phase_4f, opp_to_phase_5f];
playerLoseArr = [female_to_phase_1, female_to_phase_2, female_to_phase_3, female_to_phase_4, female_to_phase_5];
};
card_a1.gotoAndStop(53);
card_a2.gotoAndStop(53);
card_a3.gotoAndStop(53);
card_a4.gotoAndStop(53);
card_a5.gotoAndStop(53);
card_a6.gotoAndStop(53);
card_b1.gotoAndStop(53);
card_b2.gotoAndStop(53);
card_b3.gotoAndStop(53);
card_b4.gotoAndStop(53);
card_b5.gotoAndStop(53);
card_b6.gotoAndStop(53);
if (iGender == 1){
cloth1.gotoAndStop(2);
cloth2.gotoAndStop(2);
};
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
}
}
}//package strip_fla
Section 10
//playerHand_10 (strip_fla.playerHand_10)
package strip_fla {
import flash.display.*;
public dynamic class playerHand_10 extends MovieClip {
public function playerHand_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package strip_fla
Section 11
//resultPic_25 (strip_fla.resultPic_25)
package strip_fla {
import flash.display.*;
public dynamic class resultPic_25 extends MovieClip {
public function resultPic_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package strip_fla
Section 12
//sprite_8 (strip_fla.sprite_8)
package strip_fla {
import flash.display.*;
public dynamic class sprite_8 extends MovieClip {
public function sprite_8(){
addFrameScript(0, frame1, 23, frame24, 28, frame29);
}
function frame1(){
stop();
}
function frame24(){
stop();
}
function frame29(){
stop();
}
}
}//package strip_fla
Section 13
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 14
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package