Section 1
//MainTimeline (BJ_vixine_zandria_full_fla.MainTimeline)
package BJ_vixine_zandria_full_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var tug;
public var shuffleDelay;
public var loader:URLLoader;
public var b_stay:SimpleButton;
public var cardTimer;
public var b_deal:SimpleButton;
public var myContainer:MovieClip;
public var b_hit:SimpleButton;
public var flashVars:Object;
public var loader_txt:TextField;
public var about_r:SimpleButton;
public var exposureid;
public var extras;
public var guylist:Array;
public var ad_dir;
public var s_singleclick:singleclick;
public var gamestatus;
public var roll;
public var gameid;
public var credits:SimpleButton;
public var girl:MovieClip;
public var request:URLRequest;
public var ads:Array;
public var stayDelay;
public var cid;
public var decklist:Array;
public var h1t;
public var player;
public var clothes3;
public var instr:SimpleButton;
public var h2t;
public var herContainer:MovieClip;
public var loc2;
public var bid;
public var clothes1;
public var adactive:Array;
public var clothes2;
public var b_restart:SimpleButton;
public var girllist:Array;
public var aid;
public var loc;
public var guy:MovieClip;
public var errorText:TextField;
public var currenturl:Array;
public var curranim;
public var currentad;
public var guyexcited;
public var player_clothes_container:MovieClip;
public var tuglimit;
public var adlinks:Array;
public var s_cshuffle:cshuffle;
public var srcCheck:Boolean;
public var url;
public var minuteTimer;
public var girlstate;
public var whattime;
public var referID;
public var about:SimpleButton;
public var adobjects:Array;
public var lastanim;
public var instructions:SimpleButton;
public var listanim:Array;
public var hitDelay;
public var adcontainer:MovieClip;
public var chances;
public var s_dealcard:dealcard;
public var adstatus;
public var currguy;
public var adtype;
public var hands:Array;
public var instr_r:SimpleButton;
public var redbar:MovieClip;
public var mesg_container:MovieClip;
public var blah;
public var cross2;
public var cross1;
public function MainTimeline(){
addFrameScript(0, frame1, 18, frame19);
}
public function restartbutton(_arg1:MouseEvent){
var _local2:SoundChannel;
var _local3:*;
chances = 3;
girlstate = 0;
decklist = [];
_local2 = s_singleclick.play();
b_deal.visible = true;
b_deal.addEventListener(MouseEvent.CLICK, dealbutton);
b_hit.visible = false;
b_stay.visible = false;
b_restart.visible = false;
_local3 = 0;
while (_local3 < herContainer.numChildren) {
herContainer.removeChildAt(_local3);
};
_local3 = 0;
while (_local3 < myContainer.numChildren) {
myContainer.removeChildAt(_local3);
};
_local3 = 0;
while (_local3 < mesg_container.numChildren) {
mesg_container.removeChildAt(_local3);
};
_local3 = 0;
while (_local3 < girl.numChildren) {
girl.removeChildAt(_local3);
};
reset_my_clothes();
tug = 4;
getgirl(girlstate);
}
public function do_chances(){
if (chances == 2){
player_clothes_container.removeChild(clothes1);
};
if (chances == 1){
player_clothes_container.removeChild(clothes2);
};
if (chances == 0){
player_clothes_container.removeChild(clothes3);
};
}
public function onTick(_arg1:TimerEvent){
}
public function hitbuttoncontinue(_arg1:TimerEvent){
var _local2:*;
hitDelay.removeEventListener(TimerEvent.TIMER_COMPLETE, hitbuttoncontinue);
addCard(1);
if (getValue(1) > 21){
do_message("mesg_bust");
ilose();
} else {
if (hands[1].length >= 5){
_local2 = (Math.floor((Math.random() * 3)) + 1);
do_message(("mesg_win" + _local2));
iwin();
} else {
b_hit.visible = true;
b_stay.visible = true;
};
};
}
public function animateme(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (adstatus == "idle"){
if (getTimer() > (whattime + 30000)){
exposureid++;
_local1 = (exposureid % 10);
trace(ads[_local1]);
adactive.push(_local1);
_local2 = ((((((ad_dir + "banners/") + ads[_local1].substr(0, 3)) + "/") + ads[_local1].substr(3, 3)) + "/") + ads[_local1]);
trace(_local2);
_local3 = new Loader();
_local3.unload();
_local3.load(new URLRequest(_local2));
if (currentad == "ad1"){
currenturl[0] = adlinks[_local1];
currenturl[2] = ads[_local1];
} else {
currenturl[1] = adlinks[_local1];
currenturl[3] = ads[_local1];
};
_local4 = new ((getDefinitionByName(currentad) as Class));
_local4.buttonMode = true;
_local4.useHandCursor = true;
if (_local4.numChildren > 0){
_local4.removeChildAt(0);
};
_local4.addEventListener(MouseEvent.CLICK, goad);
_local4.addChild(_local3);
adstatus = "go";
adcontainer.addChild(_local4);
_local4.x = 724;
adobjects.push(_local4);
if (currentad == "ad1"){
currentad = "ad2";
} else {
if (currentad == "ad2"){
currentad = "ad1";
};
};
};
};
if (adstatus == "go"){
_local5 = 0;
while (_local5 < adobjects.length) {
_local4 = adobjects[_local5];
adobjects[_local5].x = (_local4.x - 6);
if (_local4.x <= -468){
adstatus = "idle";
adobjects.splice(_local5, 1);
adactive.splice(_local5, 1);
adcontainer.removeChild(_local4);
whattime = getTimer();
break;
};
_local5++;
};
};
}
public function getguy(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local2 = 0;
while (_local2 < guy.numChildren) {
guy.removeChildAt(_local2);
};
listanim = [];
curranim = "";
lastanim = getTimer();
_local3 = (4 - _arg1);
if (_local3 < 0){
_local3 = 0;
};
if (_local3 >= guylist.length){
_local3 = (guylist.length - 1);
};
_local4 = guylist[_local3].length;
_local5 = Math.floor((Math.random() * _local4));
_local6 = guylist[_local3][_local5];
trace(((((("guy tug " + _arg1) + "ind ") + _local3) + " showing ") + _local6));
if (_arg1 == (tuglimit - 2)){
_local6 = "guy_01a";
};
if (_arg1 == (tuglimit - 1)){
_local6 = "guy_excited";
};
if (_arg1 == tuglimit){
_local6 = "guyanim_win";
};
currguy = _local6;
_local7 = new ((getDefinitionByName(_local6) as Class));
guy.addChild(_local7);
if ((((_local6 == "guy_excited")) || ((_local6 == "guyanim_win")))){
_local7.x = -49;
};
}
function frame19(){
hitDelay = new Timer(300, 1);
stayDelay = new Timer(300, 1);
shuffleDelay = new Timer(300, 1);
h1t = new cardback();
reset_my_clothes();
chances = 3;
girlstate = 0;
whattime = getTimer();
curranim = "";
currguy = "";
lastanim = 0;
listanim = [];
adobjects = [];
adactive = [];
adstatus = "idle";
currentad = "ad1";
currenturl = ["", "", "", ""];
roll = new blank();
currenturl[0] = adlinks[0];
roll.addEventListener(MouseEvent.CLICK, goad);
roll.buttonMode = true;
roll.useHandCursor = true;
adcontainer.addChild(roll);
adobjects.push(roll);
adactive.push(0);
roll.x = 128;
b_deal.addEventListener(MouseEvent.CLICK, dealbutton);
b_hit.visible = false;
b_stay.visible = false;
b_restart.visible = false;
instr.addEventListener(MouseEvent.CLICK, instrbutton);
about.addEventListener(MouseEvent.CLICK, aboutbutton);
instr_r.addEventListener(MouseEvent.CLICK, clearoverlay);
about_r.addEventListener(MouseEvent.CLICK, clearoverlay);
credits.visible = false;
instructions.visible = false;
credits.addEventListener(MouseEvent.CLICK, clearoverlay);
instructions.addEventListener(MouseEvent.CLICK, clearoverlay);
about_r.visible = false;
instr_r.visible = false;
getgirl(girlstate);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
stop();
}
public function do_message(_arg1){
var _local2:*;
var _local3:*;
_local2 = new (getDefinitionByName(_arg1));
_local3 = 0;
while (_local3 < mesg_container.numChildren) {
mesg_container.removeChildAt(_local3);
};
mesg_container.addChild(_local2);
}
public function staybuttoncontinue(_arg1:TimerEvent){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:SoundChannel;
var _local6:*;
trace("numchildrenbefore: ", herContainer.numChildren);
herContainer.removeChild(h1t);
trace("numchildrenafter: ", herContainer.numChildren);
_local2 = hands[0][0].charAt(0);
_local3 = hands[0][0].charAt(1);
_local4 = (("card" + _local2) + _local3);
h1t = new ((getDefinitionByName(_local4) as Class));
herContainer.addChild(h1t);
herContainer.swapChildren(h2t, h1t);
_local5 = s_dealcard.play();
trace(("her: " + getValue(0)));
trace(("me: " + getValue(1)));
if (getValue(0) < 17){
minuteTimer = new Timer(600, 1);
minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE, girlHit);
minuteTimer.start();
} else {
if (getValue(0) > getValue(1)){
_local6 = (Math.floor((Math.random() * 3)) + 1);
do_message(("mesg_lose" + _local6));
ilose();
};
if (getValue(0) < getValue(1)){
_local6 = Math.floor(((Math.random() * 3) + 1));
do_message(("mesg_win" + _local6));
iwin();
};
if (getValue(0) == getValue(1)){
do_message("mesg_push");
tie();
};
};
}
public function hitbutton(_arg1:MouseEvent){
var _local2:SoundChannel;
_local2 = s_singleclick.play();
b_hit.visible = false;
b_stay.visible = false;
hitDelay = new Timer(300, 1);
hitDelay.addEventListener(TimerEvent.TIMER_COMPLETE, hitbuttoncontinue);
hitDelay.start();
}
public function tie(){
b_hit.visible = false;
b_stay.visible = false;
b_hit.removeEventListener(MouseEvent.CLICK, hitbutton);
b_stay.removeEventListener(MouseEvent.CLICK, staybutton);
b_deal.visible = true;
b_deal.addEventListener(MouseEvent.CLICK, dealbutton);
}
function frame1(){
srcCheck = false;
blah = loaderInfo.loaderURL;
trace(("url=" + loaderInfo.url));
trace(("loaderurl=" + loaderInfo.loaderURL));
girllist = [["b1_1"], ["b2_1"], ["b3_1"], ["b4_1"], ["b5_1"], ["b6_1"], ["b7_1"], ["b8_1"]];
guylist = [["guy_01a", "guy_01b"], ["guy_02"], ["guy_03"], ["guy_04a", "guy_04b"]];
guyexcited = "guy_excited";
decklist = [];
hands = [[], []];
tug = 4;
tuglimit = 10;
player = 0;
gamestatus = "pre";
referID = "0";
s_singleclick = new singleclick();
s_cshuffle = new cshuffle();
s_dealcard = new dealcard();
aid = "0";
bid = "0";
cid = "0";
exposureid = -1;
ad_dir = "http://www.eadultgames.com/freexgames/";
ads = [];
adlinks = [];
if (blah){
if (blah.indexOf("http://holdem.eadultgames.com/") == 0){
srcCheck = true;
};
if (blah.indexOf("http://www.eadultgames.com/") == 0){
srcCheck = true;
};
if (blah.indexOf("http://www.vixine.com/") == 0){
srcCheck = true;
};
if (blah.indexOf("http://www.eadultcomics.com/") == 0){
srcCheck = true;
};
if (blah.indexOf("http://www.eadultfun.com/") == 0){
srcCheck = true;
};
};
if (srcCheck == false){
errorText.visible = true;
stop();
} else {
flashVars = this.loaderInfo.parameters;
trace(("flashvars: " + flashVars));
aid = flashVars.aid;
bid = flashVars.bid;
cid = flashVars.cid;
adtype = flashVars.adtype;
if (adtype == undefined){
adtype = "free";
};
adtype = "vixine";
if (aid == undefined){
aid = 0;
};
errorText.visible = false;
stop();
this.addEventListener(Event.ENTER_FRAME, loading);
loc = blah.lastIndexOf("/");
loc2 = blah.indexOf("?");
if (loc2 == -1){
loc2 = blah.length;
};
gameid = (blah.substr((loc + 1), ((loc2 - loc) - 5)) + ".swf");
extras = ((((("?adtype=" + adtype) + "&affiliateid=") + aid) + "&gameID=") + gameid);
url = ((ad_dir + "banners.cgi") + extras);
trace(("url = " + url));
request = new URLRequest(url);
request.method = URLRequestMethod.GET;
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
};
}
public function drawcards(){
var _local1:*;
var _local2:SoundChannel;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
_local1 = 0;
while (_local1 < hands[0].length) {
if (_local1 == 0){
h1t = new cardback();
herContainer.addChild(h1t);
};
if (_local1 == 1){
_local3 = hands[0][_local1].charAt(0);
_local4 = hands[0][_local1].charAt(1);
_local5 = (("card" + _local3) + _local4);
h2t = new ((getDefinitionByName(_local5) as Class));
herContainer.addChild(h2t);
h2t.x = 41;
h2t.y = 3;
};
_local1++;
};
_local1 = 0;
while (_local1 < hands[1].length) {
_local7 = hands[1][_local1].charAt(0);
_local8 = hands[1][_local1].charAt(1);
_local5 = (("card" + _local7) + _local8);
_local6 = new ((getDefinitionByName(_local5) as Class));
myContainer.addChild(_local6);
if (_local1 == 1){
_local6.x = 41;
_local6.y = 3;
};
_local1++;
};
_local2 = s_dealcard.play();
}
public function dealbutton(_arg1:MouseEvent){
var _local2:*;
var _local3:SoundChannel;
var _local4:*;
_local2 = 0;
_local3 = s_singleclick.play();
if (decklist.length < 14){
_local2 = 1000;
shuffleDelay = new Timer(200, 1);
shuffleDelay.addEventListener(TimerEvent.TIMER_COMPLETE, makeDeck);
shuffleDelay.start();
};
hands = [[], []];
trace("dealing now");
b_deal.visible = false;
b_deal.removeEventListener(MouseEvent.CLICK, dealbutton);
gamestatus = "deal";
cardTimer = new Timer((200 + _local2), 1);
cardTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
cardTimer.start();
_local4 = 0;
while (_local4 < herContainer.numChildren) {
herContainer.removeChildAt(_local4);
};
_local4 = 0;
while (_local4 < myContainer.numChildren) {
myContainer.removeChildAt(_local4);
};
_local4 = 0;
while (_local4 < mesg_container.numChildren) {
mesg_container.removeChildAt(_local4);
};
}
public function onEnterFrame(_arg1:Event):void{
crossfade();
}
public function crossfade(){
var _local1:*;
if (((!((cross1 == 0))) && (!((cross1 == undefined))))){
cross2.alpha = (cross2.alpha + 0.02);
if (cross2.alpha >= 1){
_local1 = girl.getChildIndex(cross1);
trace(("girl child loc:" + _local1));
girl.removeChildAt(_local1);
cross1 = null;
cross1 = 0;
cross2 = 0;
if (girlstate == (girllist.length - 1)){
grats();
} else {
b_deal.visible = true;
b_deal.addEventListener(MouseEvent.CLICK, dealbutton);
};
};
};
}
public function iwin(){
b_hit.visible = false;
b_stay.visible = false;
b_hit.removeEventListener(MouseEvent.CLICK, hitbutton);
b_stay.removeEventListener(MouseEvent.CLICK, staybutton);
girlstate = (girlstate + 1);
getgirl(girlstate);
}
public function showhitstay(_arg1:TimerEvent){
b_hit.visible = true;
b_stay.visible = true;
b_hit.addEventListener(MouseEvent.CLICK, hitbutton);
b_stay.addEventListener(MouseEvent.CLICK, staybutton);
}
public function staybutton(_arg1:MouseEvent){
var _local2:SoundChannel;
_local2 = s_singleclick.play();
stayDelay = new Timer(400, 1);
stayDelay.addEventListener(TimerEvent.TIMER_COMPLETE, staybuttoncontinue);
stayDelay.start();
b_hit.visible = false;
b_stay.visible = false;
b_hit.removeEventListener(MouseEvent.CLICK, hitbutton);
b_stay.removeEventListener(MouseEvent.CLICK, staybutton);
}
public function dealnextcard(_arg1:int){
var _local2:*;
hands[player].push(decklist[0]);
decklist.splice(0, 1);
player = (1 - _arg1);
trace(player);
drawcards();
if (hands[1].length >= 2){
if (getValue(1) == 21){
do_message("mesg_blackjack");
iwin();
} else {
_local2 = new Timer(1000, 1);
_local2.addEventListener(TimerEvent.TIMER_COMPLETE, showhitstay);
_local2.start();
};
} else {
cardTimer = new Timer(300, 1);
cardTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
cardTimer.start();
};
}
public function gv(_arg1){
if (_arg1 == "A"){
return (0);
};
if (_arg1 == "2"){
return (2);
};
if (_arg1 == "3"){
return (3);
};
if (_arg1 == "4"){
return (4);
};
if (_arg1 == "5"){
return (5);
};
if (_arg1 == "6"){
return (6);
};
if (_arg1 == "7"){
return (7);
};
if (_arg1 == "8"){
return (8);
};
if (_arg1 == "9"){
return (9);
};
if (_arg1 == "T"){
return (10);
};
if (_arg1 == "J"){
return (10);
};
if (_arg1 == "Q"){
return (10);
};
if (_arg1 == "K"){
return (10);
};
}
public function aboutbutton(_arg1:MouseEvent){
var _local2:SoundChannel;
_local2 = s_singleclick.play();
instructions.visible = false;
credits.visible = true;
about.visible = !(about.visible);
about_r.visible = !(about_r.visible);
instr_r.visible = false;
instr.visible = true;
}
public function ilose(){
b_hit.visible = false;
b_stay.visible = false;
b_hit.removeEventListener(MouseEvent.CLICK, hitbutton);
b_stay.removeEventListener(MouseEvent.CLICK, staybutton);
if (girlstate == 0){
chances = (chances - 1);
do_chances();
b_deal.visible = true;
b_deal.addEventListener(MouseEvent.CLICK, dealbutton);
} else {
girlstate = (girlstate - 1);
getgirl(girlstate);
};
if (chances == 0){
gameover();
};
}
public function goad(_arg1:MouseEvent){
var nm:*;
var myad:*;
var myimg:*;
var exposureget:*;
var extras:*;
var url:String;
var request:URLRequest;
var e = _arg1;
nm = getQualifiedClassName(e.currentTarget);
trace(nm);
if (nm == "ad1"){
myad = currenturl[0];
myimg = currenturl[2];
} else {
myad = currenturl[1];
myimg = currenturl[3];
};
exposureget = (exposureid + 1);
extras = ((((((((("?URL=" + myad) + "&adID=") + myimg) + "&gameID=") + gameid) + "&affiliate=") + aid) + "&exposure=") + exposureget);
if (bid != undefined){
extras = (extras + ("&bid=" + bid));
};
if (cid != undefined){
extras = (extras + ("&cid=" + cid));
};
url = ((ad_dir + "clickthru.cgi") + extras);
trace(url);
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function getgirl(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local2 = "";
if (girl.numChildren > 0){
_local2 = getQualifiedClassName(girl.getChildAt(0));
};
_local3 = _arg1;
if (_local3 < 0){
_local3 = 0;
};
if (_local3 >= girllist.length){
_local3 = (girllist.length - 1);
};
_local4 = girllist[_local3].length;
_local5 = Math.floor((Math.random() * _local4));
_local6 = girllist[_local3][_local5];
trace(((((("girl tug " + _arg1) + "ind ") + _local3) + " showing ") + _local6));
_local7 = new ((getDefinitionByName(_local6) as Class));
girl.addChild(_local7);
trace(("girl numchild: " + girl.numChildren));
if (girl.numChildren > 1){
cross1 = girl.getChildAt(0);
cross1.alpha = 1;
cross2 = _local7;
cross2.alpha = 0;
};
}
public function instrbutton(_arg1:MouseEvent){
var _local2:SoundChannel;
_local2 = s_singleclick.play();
credits.visible = false;
instructions.visible = true;
instr.visible = !(instr.visible);
instr_r.visible = !(instr_r.visible);
about_r.visible = false;
about.visible = true;
}
public function loading(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = this.stage.loaderInfo.bytesTotal;
_local3 = this.stage.loaderInfo.bytesLoaded;
if (_local2 == 0){
gotoAndPlay(19);
} else {
redbar.scaleX = (1 - (_local3 / _local2));
loader_txt.text = (Math.floor(((_local3 / _local2) * 100)) + "%");
if (_local2 == _local3){
gotoAndPlay(19);
this.removeEventListener(Event.ENTER_FRAME, loading);
};
};
}
public function girlHit(_arg1:TimerEvent){
var _local2:*;
minuteTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, girlHit);
addCard(0);
if (getValue(0) > 21){
_local2 = (Math.floor((Math.random() * 3)) + 1);
do_message(("mesg_win" + _local2));
iwin();
} else {
if ((((getValue(0) < 17)) && ((hands[0].length < 5)))){
trace("girl hits");
minuteTimer = new Timer(600, 1);
minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE, girlHit);
minuteTimer.start();
} else {
if (getValue(0) > getValue(1)){
_local2 = (Math.floor((Math.random() * 3)) + 1);
do_message(("mesg_lose" + _local2));
ilose();
};
if (getValue(0) < getValue(1)){
_local2 = (Math.floor((Math.random() * 3)) + 1);
do_message(("mesg_win" + _local2));
iwin();
};
if (getValue(0) == getValue(1)){
do_message("mesg_push");
tie();
};
};
};
}
public function addCard(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:SoundChannel;
trace(("adding " + decklist[0]));
hands[_arg1].push(decklist[0]);
decklist.splice(0, 1);
_local2 = (hands[_arg1].length - 1);
_local3 = hands[_arg1][_local2].charAt(0);
_local4 = hands[_arg1][_local2].charAt(1);
_local6 = (("card" + _local3) + _local4);
_local5 = new ((getDefinitionByName(_local6) as Class));
if (_arg1 == 1){
myContainer.addChild(_local5);
} else {
herContainer.addChild(_local5);
trace("drew hit card");
};
_local7 = s_dealcard.play();
_local5.x = (41 * _local2);
_local5.y = (3 * _local2);
}
public function clearoverlay(_arg1:MouseEvent){
var _local2:SoundChannel;
_local2 = s_singleclick.play();
credits.visible = false;
instructions.visible = false;
about_r.visible = false;
instr_r.visible = false;
about.visible = true;
instr.visible = true;
}
public function reset_my_clothes(){
var _local1:*;
_local1 = 0;
while (_local1 < player_clothes_container.numChildren) {
player_clothes_container.removeChildAt(_local1);
};
clothes1 = new player_clothes1();
clothes2 = new player_clothes2();
clothes3 = new player_clothes3();
player_clothes_container.addChild(clothes1);
player_clothes_container.addChild(clothes2);
player_clothes_container.addChild(clothes3);
clothes2.x = 62;
clothes3.x = 124;
}
public function makeDeck(_arg1:TimerEvent){
var _local2:SoundChannel;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = s_cshuffle.play();
shuffleDelay.removeEventListener(TimerEvent.TIMER_COMPLETE, makeDeck);
decklist = ["2C", "3C", "4C", "5C", "6C", "7C", "8C", "9C", "TC", "JC", "QC", "KC", "AC", "2D", "3D", "4D", "5D", "6D", "7D", "8D", "9D", "TD", "JD", "QD", "KD", "AD", "2H", "3H", "4H", "5H", "6H", "7H", "8H", "9H", "TH", "JH", "QH", "KH", "AH", "2S", "3S", "4S", "5S", "6S", "7S", "8S", "9S", "TS", "JS", "QS", "KS", "AS"];
_local3 = 0;
while (_local3 < decklist.length) {
_local4 = Math.floor((Math.random() * _local3));
_local5 = decklist[_local3];
decklist[_local3] = decklist[_local4];
decklist[_local4] = _local5;
_local3++;
};
}
public function getValue(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = 0;
_local3 = 0;
_local4 = 0;
while (_local4 < hands[_arg1].length) {
_local6 = gv(hands[_arg1][_local4].charAt(0));
if (_local6 == 0){
_local3++;
};
_local2 = (_local2 + _local6);
_local4++;
};
_local2 = (_local2 + _local3);
_local5 = (_local2 + 10);
if ((((_local5 <= 21)) && (_local3))){
_local2 = _local5;
};
return (_local2);
}
public function gameover(){
b_deal.visible = false;
b_restart.visible = true;
b_restart.addEventListener(MouseEvent.CLICK, restartbutton);
do_message("mesg_gameover");
}
public function completeHandler(_arg1:Event){
var _local2:String;
var _local3:Array;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
_local2 = _arg1.target.data;
_local3 = _local2.split("\n");
_local4 = 0;
while (_local4 < (_local3.length - 1)) {
_local6 = _local3[_local4].split(" ");
adlinks.push(_local6[1]);
ads.push(_local6[0]);
_local4++;
};
_local5 = Math.floor((Math.random() * 2));
if (_local5){
trace(adlinks);
trace(ads);
trace(ads.length);
trace(adlinks.length);
_local7 = adlinks[0];
_local8 = ads[0];
_local4 = 0;
while (_local4 < (adlinks.length - 1)) {
adlinks[_local4] = adlinks[(_local4 + 1)];
ads[_local4] = ads[(_local4 + 1)];
_local4++;
};
adlinks[(adlinks.length - 1)] = _local7;
ads[(ads.length - 1)] = _local8;
};
trace(("rotated? " + _local5));
trace(adlinks);
trace(ads);
}
public function grats(){
b_deal.visible = false;
b_restart.visible = true;
b_restart.addEventListener(MouseEvent.CLICK, restartbutton);
do_message("mesg_grats");
}
public function onTimerComplete(_arg1:TimerEvent){
cardTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
dealnextcard(player);
}
}
}//package BJ_vixine_zandria_full_fla
Section 2
//ad1 (ad1)
package {
import flash.display.*;
public dynamic class ad1 extends MovieClip {
}
}//package
Section 3
//ad2 (ad2)
package {
import flash.display.*;
public dynamic class ad2 extends MovieClip {
}
}//package
Section 4
//b1_1 (b1_1)
package {
import flash.display.*;
public dynamic class b1_1 extends Sprite {
}
}//package
Section 5
//b2_1 (b2_1)
package {
import flash.display.*;
public dynamic class b2_1 extends Sprite {
}
}//package
Section 6
//b3_1 (b3_1)
package {
import flash.display.*;
public dynamic class b3_1 extends Sprite {
}
}//package
Section 7
//b4_1 (b4_1)
package {
import flash.display.*;
public dynamic class b4_1 extends Sprite {
}
}//package
Section 8
//b5_1 (b5_1)
package {
import flash.display.*;
public dynamic class b5_1 extends Sprite {
}
}//package
Section 9
//b6_1 (b6_1)
package {
import flash.display.*;
public dynamic class b6_1 extends Sprite {
}
}//package
Section 10
//b7_1 (b7_1)
package {
import flash.display.*;
public dynamic class b7_1 extends MovieClip {
}
}//package
Section 11
//b8_1 (b8_1)
package {
import flash.display.*;
public dynamic class b8_1 extends MovieClip {
}
}//package
Section 12
//blank (blank)
package {
import flash.display.*;
public dynamic class blank extends MovieClip {
}
}//package
Section 13
//card2C (card2C)
package {
import flash.display.*;
public dynamic class card2C extends MovieClip {
}
}//package
Section 14
//card2D (card2D)
package {
import flash.display.*;
public dynamic class card2D extends MovieClip {
}
}//package
Section 15
//card2H (card2H)
package {
import flash.display.*;
public dynamic class card2H extends MovieClip {
}
}//package
Section 16
//card2S (card2S)
package {
import flash.display.*;
public dynamic class card2S extends MovieClip {
}
}//package
Section 17
//card3C (card3C)
package {
import flash.display.*;
public dynamic class card3C extends MovieClip {
}
}//package
Section 18
//card3D (card3D)
package {
import flash.display.*;
public dynamic class card3D extends MovieClip {
}
}//package
Section 19
//card3H (card3H)
package {
import flash.display.*;
public dynamic class card3H extends MovieClip {
}
}//package
Section 20
//card3S (card3S)
package {
import flash.display.*;
public dynamic class card3S extends MovieClip {
}
}//package
Section 21
//card4C (card4C)
package {
import flash.display.*;
public dynamic class card4C extends MovieClip {
}
}//package
Section 22
//card4D (card4D)
package {
import flash.display.*;
public dynamic class card4D extends MovieClip {
}
}//package
Section 23
//card4H (card4H)
package {
import flash.display.*;
public dynamic class card4H extends MovieClip {
}
}//package
Section 24
//card4S (card4S)
package {
import flash.display.*;
public dynamic class card4S extends MovieClip {
}
}//package
Section 25
//card5C (card5C)
package {
import flash.display.*;
public dynamic class card5C extends MovieClip {
}
}//package
Section 26
//card5D (card5D)
package {
import flash.display.*;
public dynamic class card5D extends MovieClip {
}
}//package
Section 27
//card5H (card5H)
package {
import flash.display.*;
public dynamic class card5H extends MovieClip {
}
}//package
Section 28
//card5S (card5S)
package {
import flash.display.*;
public dynamic class card5S extends MovieClip {
}
}//package
Section 29
//card6C (card6C)
package {
import flash.display.*;
public dynamic class card6C extends MovieClip {
}
}//package
Section 30
//card6D (card6D)
package {
import flash.display.*;
public dynamic class card6D extends MovieClip {
}
}//package
Section 31
//card6H (card6H)
package {
import flash.display.*;
public dynamic class card6H extends MovieClip {
}
}//package
Section 32
//card6S (card6S)
package {
import flash.display.*;
public dynamic class card6S extends MovieClip {
}
}//package
Section 33
//card7C (card7C)
package {
import flash.display.*;
public dynamic class card7C extends MovieClip {
}
}//package
Section 34
//card7D (card7D)
package {
import flash.display.*;
public dynamic class card7D extends MovieClip {
}
}//package
Section 35
//card7H (card7H)
package {
import flash.display.*;
public dynamic class card7H extends MovieClip {
}
}//package
Section 36
//card7S (card7S)
package {
import flash.display.*;
public dynamic class card7S extends MovieClip {
}
}//package
Section 37
//card8C (card8C)
package {
import flash.display.*;
public dynamic class card8C extends MovieClip {
}
}//package
Section 38
//card8D (card8D)
package {
import flash.display.*;
public dynamic class card8D extends MovieClip {
}
}//package
Section 39
//card8H (card8H)
package {
import flash.display.*;
public dynamic class card8H extends MovieClip {
}
}//package
Section 40
//card8S (card8S)
package {
import flash.display.*;
public dynamic class card8S extends MovieClip {
}
}//package
Section 41
//card9C (card9C)
package {
import flash.display.*;
public dynamic class card9C extends MovieClip {
}
}//package
Section 42
//card9D (card9D)
package {
import flash.display.*;
public dynamic class card9D extends MovieClip {
}
}//package
Section 43
//card9H (card9H)
package {
import flash.display.*;
public dynamic class card9H extends MovieClip {
}
}//package
Section 44
//card9S (card9S)
package {
import flash.display.*;
public dynamic class card9S extends MovieClip {
}
}//package
Section 45
//cardAC (cardAC)
package {
import flash.display.*;
public dynamic class cardAC extends MovieClip {
}
}//package
Section 46
//cardAD (cardAD)
package {
import flash.display.*;
public dynamic class cardAD extends MovieClip {
}
}//package
Section 47
//cardAH (cardAH)
package {
import flash.display.*;
public dynamic class cardAH extends MovieClip {
}
}//package
Section 48
//cardAS (cardAS)
package {
import flash.display.*;
public dynamic class cardAS extends MovieClip {
}
}//package
Section 49
//cardback (cardback)
package {
import flash.display.*;
public dynamic class cardback extends MovieClip {
}
}//package
Section 50
//cardJC (cardJC)
package {
import flash.display.*;
public dynamic class cardJC extends MovieClip {
}
}//package
Section 51
//cardJD (cardJD)
package {
import flash.display.*;
public dynamic class cardJD extends MovieClip {
}
}//package
Section 52
//cardJH (cardJH)
package {
import flash.display.*;
public dynamic class cardJH extends MovieClip {
}
}//package
Section 53
//cardJS (cardJS)
package {
import flash.display.*;
public dynamic class cardJS extends MovieClip {
}
}//package
Section 54
//cardKC (cardKC)
package {
import flash.display.*;
public dynamic class cardKC extends MovieClip {
}
}//package
Section 55
//cardKD (cardKD)
package {
import flash.display.*;
public dynamic class cardKD extends MovieClip {
}
}//package
Section 56
//cardKH (cardKH)
package {
import flash.display.*;
public dynamic class cardKH extends MovieClip {
}
}//package
Section 57
//cardKS (cardKS)
package {
import flash.display.*;
public dynamic class cardKS extends MovieClip {
}
}//package
Section 58
//cardQC (cardQC)
package {
import flash.display.*;
public dynamic class cardQC extends MovieClip {
}
}//package
Section 59
//cardQD (cardQD)
package {
import flash.display.*;
public dynamic class cardQD extends MovieClip {
}
}//package
Section 60
//cardQH (cardQH)
package {
import flash.display.*;
public dynamic class cardQH extends MovieClip {
}
}//package
Section 61
//cardQS (cardQS)
package {
import flash.display.*;
public dynamic class cardQS extends MovieClip {
}
}//package
Section 62
//cardTC (cardTC)
package {
import flash.display.*;
public dynamic class cardTC extends MovieClip {
}
}//package
Section 63
//cardTD (cardTD)
package {
import flash.display.*;
public dynamic class cardTD extends MovieClip {
}
}//package
Section 64
//cardTH (cardTH)
package {
import flash.display.*;
public dynamic class cardTH extends MovieClip {
}
}//package
Section 65
//cardTS (cardTS)
package {
import flash.display.*;
public dynamic class cardTS extends MovieClip {
}
}//package
Section 66
//cshuffle (cshuffle)
package {
import flash.media.*;
public dynamic class cshuffle extends Sound {
}
}//package
Section 67
//dealcard (dealcard)
package {
import flash.media.*;
public dynamic class dealcard extends Sound {
}
}//package
Section 68
//mesg_blackjack (mesg_blackjack)
package {
import flash.display.*;
public dynamic class mesg_blackjack extends MovieClip {
}
}//package
Section 69
//mesg_bust (mesg_bust)
package {
import flash.display.*;
public dynamic class mesg_bust extends MovieClip {
}
}//package
Section 70
//mesg_gameover (mesg_gameover)
package {
import flash.display.*;
public dynamic class mesg_gameover extends MovieClip {
}
}//package
Section 71
//mesg_grats (mesg_grats)
package {
import flash.display.*;
public dynamic class mesg_grats extends MovieClip {
}
}//package
Section 72
//mesg_lose1 (mesg_lose1)
package {
import flash.display.*;
public dynamic class mesg_lose1 extends MovieClip {
}
}//package
Section 73
//mesg_lose2 (mesg_lose2)
package {
import flash.display.*;
public dynamic class mesg_lose2 extends MovieClip {
}
}//package
Section 74
//mesg_lose3 (mesg_lose3)
package {
import flash.display.*;
public dynamic class mesg_lose3 extends MovieClip {
}
}//package
Section 75
//mesg_push (mesg_push)
package {
import flash.display.*;
public dynamic class mesg_push extends MovieClip {
}
}//package
Section 76
//mesg_win1 (mesg_win1)
package {
import flash.display.*;
public dynamic class mesg_win1 extends MovieClip {
}
}//package
Section 77
//mesg_win2 (mesg_win2)
package {
import flash.display.*;
public dynamic class mesg_win2 extends MovieClip {
}
}//package
Section 78
//mesg_win3 (mesg_win3)
package {
import flash.display.*;
public dynamic class mesg_win3 extends MovieClip {
}
}//package
Section 79
//player_clothes1 (player_clothes1)
package {
import flash.display.*;
public dynamic class player_clothes1 extends MovieClip {
}
}//package
Section 80
//player_clothes2 (player_clothes2)
package {
import flash.display.*;
public dynamic class player_clothes2 extends MovieClip {
}
}//package
Section 81
//player_clothes3 (player_clothes3)
package {
import flash.display.*;
public dynamic class player_clothes3 extends MovieClip {
}
}//package
Section 82
//singleclick (singleclick)
package {
import flash.media.*;
public dynamic class singleclick extends Sound {
}
}//package