Section 1
//Bando_5 (poker_fla.Bando_5)
package poker_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Bando_5 extends MovieClip {
public var resStr:TextField;
public function Bando_5(){
addFrameScript(0, frame1, 1, frame2, 30, frame31);
}
function frame1(){
stop();
}
function frame2(){
this.visible = true;
}
function frame31(){
stop();
this.visible = false;
}
}
}//package poker_fla
Section 2
//Cheat_4 (poker_fla.Cheat_4)
package poker_fla {
import flash.display.*;
public dynamic class Cheat_4 extends MovieClip {
public function Cheat_4(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package poker_fla
Section 3
//McBet_8 (poker_fla.McBet_8)
package poker_fla {
import flash.display.*;
public dynamic class McBet_8 extends MovieClip {
public var bt20:SimpleButton;
public var bt5:SimpleButton;
public var bt10:SimpleButton;
public var bt15:SimpleButton;
public function McBet_8(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package poker_fla
Section 4
//Fotos_3 (pokerAxaJay_fla.Fotos_3)
package pokerAxaJay_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.system.*;
import flash.ui.*;
public dynamic class Fotos_3 extends MovieClip {
public function Fotos_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package pokerAxaJay_fla
Section 5
//Carte (Carte)
package {
import flash.events.*;
import flash.display.*;
public class Carte extends MovieClip {
public var valeur:int;
private var clip:MovieClip;
private var nb:int;
public var retournee:Boolean;
public var couleur:int;
public function Carte(_arg1:int, _arg2:int){
this.x = _arg1;
this.y = _arg2;
nb = 0;
retournee = false;
}
public function card_Click(_arg1:MouseEvent){
if (this.currentFrame == (nb + 1)){
gotoAndStop(53);
retournee = true;
} else {
retournee = false;
gotoAndStop((nb + 1));
};
}
public function valCoul(_arg1:int){
var _local2:int;
var _local3:*;
_local2 = 0;
nb = _arg1;
couleur = -1;
valeur = 2;
_local2 = 0;
while (_local2 < 52) {
_local3 = (couleur + 1);
couleur = _local3;
if (couleur == 4){
couleur = 0;
valeur = (valeur + 1);
};
if (_local2 == _arg1){
break;
};
_local2++;
};
}
public function carteCliquable(_arg1:Boolean){
if (_arg1){
this.addEventListener(MouseEvent.CLICK, card_Click);
} else {
this.removeEventListener(MouseEvent.CLICK, card_Click);
};
}
public function affiche(_arg1:int){
valCoul(_arg1);
this.gotoAndStop((_arg1 + 1));
this.addEventListener(MouseEvent.CLICK, card_Click);
}
}
}//package
Section 6
//Deck (Deck)
package {
import flash.display.*;
import flash.text.*;
public class Deck extends MovieClip {
var cc:int;
private var cartes:Array;
private var mCcartes:Array;
public function Deck(){
nouveauDeck();
shuffle();
}
public function tirer(){
var _local1:*;
_local1 = (cc + 1);
cc = _local1;
return (cartes[cc]);
}
public function nouveauDeck(){
var _local1:int;
_local1 = 0;
cartes = new Array();
mCcartes = new Array();
_local1 = 0;
while (_local1 < 52) {
cartes[_local1] = _local1;
_local1++;
};
}
public function shuffle(){
var _local1:int;
var _local2:*;
var _local3:*;
_local1 = 0;
_local2 = undefined;
_local3 = undefined;
cc = -1;
_local1 = 0;
while (_local1 < 52) {
_local2 = Math.floor((Math.random() * 52));
_local3 = cartes[_local1];
cartes[_local1] = cartes[_local2];
cartes[_local2] = _local3;
_local1++;
};
}
public function affiche(){
var _local1:int;
_local1 = 0;
_local1 = 0;
while (_local1 < 52) {
mCcartes[_local1] = new Carte((_local1 * 40), 50);
addChild(mCcartes[_local1]);
mCcartes[_local1].affiche(cartes[_local1]);
_local1++;
};
}
}
}//package
Section 7
//Jeu (Jeu)
package {
import flash.display.*;
public class Jeu extends MovieClip {
public var sous:int;
public var strDescrMain:String;
var cc:int;
public var mainType:int;
public var mainVal:int;
var valRef:int;
var valRef0:int;
private var cartes:Array;
private var mCcartes:Array;
public function Jeu(){
nouveauJeu();
}
public function nouvelleCarte(_arg1:int){
var _local2:*;
cartes[cc] = _arg1;
_local2 = (cc + 1);
cc = _local2;
}
public function affiche(){
var _local1:int;
_local1 = 0;
trier();
_local1 = 0;
while (_local1 < 5) {
if (mCcartes[_local1] == null){
mCcartes[_local1] = new Carte((_local1 * 110), 0);
addChild(mCcartes[_local1]);
};
mCcartes[_local1].affiche(cartes[_local1]);
_local1++;
};
strMain();
}
public function cartesCliquables(_arg1:Boolean){
var _local2:int;
_local2 = 0;
_local2 = 0;
while (_local2 < 5) {
mCcartes[_local2].carteCliquable(_arg1);
_local2++;
};
}
public function nouveauJeu(){
cc = 0;
sous = 400;
cartes = new Array();
mCcartes = new Array();
}
public function isBrelan(){
var _local1:*;
var _local2:int;
var _local3:int;
var _local4:int;
_local1 = undefined;
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local1 = false;
_local2 = 0;
_local3 = 0;
while (_local3 < 3) {
valRef = mCcartes[_local3].valeur;
_local2 = 0;
_local4 = 0;
while (_local4 < 5) {
if (valRef == mCcartes[_local4].valeur){
_local2++;
};
_local4++;
};
if (_local2 == 3){
_local1 = true;
break;
};
_local3++;
};
if (_local1){
mainType = 3;
mainVal = valRef;
strDescrMain = "Three of a kind";
} else {
isDoublePaire();
};
}
public function isQuinte(){
var _local1:*;
_local1 = undefined;
_local1 = true;
if (isCouleur(true)){
_local1 = isSuite(true);
} else {
_local1 = false;
};
if (_local1){
mainType = 8;
mainVal = mCcartes[4].valeur;
strDescrMain = "a Straight Flush";
} else {
isCarre();
};
}
public function selectCarteAvirer(){
var _local1:int;
_local1 = 0;
switch (mainType){
case 0:
if (couleurPossible() == false){
_local1 = 0;
while (_local1 < 4) {
mCcartes[_local1].retournee = true;
_local1++;
};
};
break;
case 1:
_local1 = 0;
while (_local1 < 5) {
if (valRef != mCcartes[_local1].valeur){
mCcartes[_local1].retournee = true;
};
_local1++;
};
break;
case 2:
_local1 = 0;
while (_local1 < 5) {
if (((!((valRef == mCcartes[_local1].valeur))) && (!((valRef0 == mCcartes[_local1].valeur))))){
mCcartes[_local1].retournee = true;
};
_local1++;
};
break;
case 3:
_local1 = 0;
while (_local1 < 5) {
if (valRef != mCcartes[_local1].valeur){
mCcartes[_local1].retournee = true;
};
_local1++;
};
break;
default:
break;
};
}
public function isCouleur(_arg1:Boolean){
var _local2:*;
var _local3:int;
var _local4:int;
var _local5:*;
_local2 = undefined;
_local3 = 0;
_local4 = 0;
_local5 = undefined;
_local2 = true;
_local3 = mCcartes[0].couleur;
_local4 = 1;
while (_local4 < 5) {
if (_local3 != mCcartes[_local4].couleur){
_local2 = false;
};
_local4++;
};
if (!_arg1){
if (_local2){
mainType = 5;
_local5 = 1;
mainVal = 0;
_local4 = 0;
while (_local4 < 5) {
mainVal = (mainVal + (mCcartes[_local4].valeur * _local5));
_local5 = (_local5 * 100);
_local4++;
};
strDescrMain = "a Flush";
} else {
isSuite(false);
};
};
return (_local2);
}
public function couleurPossible(){
var _local1:*;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
_local1 = undefined;
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local5 = 0;
_local6 = 0;
_local1 = true;
_local2 = mCcartes[0].couleur;
_local3 = mCcartes[0].couleur;
_local5 = 0;
_local4 = 0;
_local6 = 1;
while (_local6 < 5) {
if (_local2 != mCcartes[_local6].couleur){
_local4++;
_local5 = _local6;
_local3 = mCcartes[_local6].couleur;
};
_local6++;
};
if (_local4 >= 3){
_local5 = 0;
_local4 = 0;
_local6 = 0;
while (_local6 < 5) {
if (_local3 != mCcartes[_local6].couleur){
_local4++;
_local5 = _local6;
};
_local6++;
};
_local2 = _local3;
};
if (_local4 < 3){
_local6 = 0;
while (_local6 < 5) {
if (_local2 != mCcartes[_local6].couleur){
mCcartes[_local6].retournee = true;
};
_local6++;
};
_local1 = true;
} else {
_local1 = false;
};
return (_local1);
}
public function compareJeu(_arg1:Jeu){
if (_arg1.mainType == mainType){
if (_arg1.mainVal > mainVal){
return (1);
};
if (_arg1.mainVal == mainVal){
return (0);
};
return (-1);
//unresolved jump
};
if (_arg1.mainType > mainType){
return (1);
};
return (-1);
}
public function selectCarteAvirerBluff(){
var _local1:*;
_local1 = undefined;
_local1 = (Math.random() * 3);
if (_local1 < 2){
mCcartes[0].retournee = true;
};
}
public function montrerCartes(_arg1:Boolean){
var _local2:int;
_local2 = 0;
_local2 = 0;
while (_local2 < 5) {
mCcartes[_local2].visible = _arg1;
_local2++;
};
}
public function strMain(){
isQuinte();
}
public function trier(){
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = 0;
_local2 = 0;
_local3 = 0;
_local1 = 0;
_local2 = 0;
while (_local2 < 5) {
valRef = cartes[_local2];
_local1 = _local2;
_local3 = _local1;
while (_local3 < 5) {
if (cartes[_local3] < valRef){
_local1 = _local3;
valRef = cartes[_local3];
};
_local3++;
};
valRef = cartes[_local2];
cartes[_local2] = cartes[_local1];
cartes[_local1] = valRef;
_local2++;
};
}
public function nbCartesRetournees(){
var _local1:*;
var _local2:int;
_local1 = undefined;
_local2 = 0;
_local1 = 0;
_local2 = 0;
while (_local2 < 5) {
if (mCcartes[_local2].retournee){
_local1 = (_local1 + 1);
};
_local2++;
};
return (_local1.toString());
}
public function retournee(_arg1:int){
return (mCcartes[_arg1].retournee);
}
public function isPaire(){
var _local1:*;
var _local2:int;
var _local3:int;
var _local4:*;
var _local5:int;
_local1 = undefined;
_local2 = 0;
_local3 = 0;
_local4 = undefined;
_local5 = 0;
_local1 = false;
_local2 = 0;
_local3 = 0;
while (_local3 < 4) {
valRef = mCcartes[_local3].valeur;
_local2 = 0;
_local5 = 0;
while (_local5 < 5) {
if (valRef == mCcartes[_local5].valeur){
_local2++;
};
_local5++;
};
if (_local2 == 2){
_local1 = true;
break;
};
_local3++;
};
_local4 = 1;
if (_local1){
mainType = 1;
mainVal = (valRef * 1000000);
_local3 = 0;
while (_local3 < 5) {
if (mCcartes[_local3].valeur != valRef){
mainVal = (mainVal + (mCcartes[_local3].valeur * _local4));
_local4 = (_local4 * 100);
};
_local3++;
};
strDescrMain = "a Pair";
} else {
mainType = 0;
mainVal = 0;
_local4 = 1;
_local3 = 0;
while (_local3 < 5) {
mainVal = (mainVal + (mCcartes[_local3].valeur * _local4));
_local4 = (_local4 * 100);
_local3++;
};
strDescrMain = "nothing";
};
}
public function changerCarte(_arg1:int, _arg2:int){
mCcartes[_arg1].retournee = false;
cartes[_arg1] = _arg2;
strMain();
}
public function isFull(){
var _local1:*;
var _local2:int;
var _local3:int;
var _local4:int;
_local1 = undefined;
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local1 = false;
valRef = mCcartes[0].valeur;
_local2 = -1;
_local3 = 0;
_local4 = 1;
while (_local4 < 5) {
if (((!((valRef == mCcartes[_local4].valeur))) && (!((_local2 == mCcartes[_local4].valeur))))){
_local2 = mCcartes[_local4].valeur;
_local3++;
};
_local4++;
};
if (_local3 == 1){
_local1 = true;
};
if (_local1){
valRef0 = _local2;
_local3 = 0;
_local4 = 1;
while (_local4 < 5) {
if (valRef != mCcartes[_local4].valeur){
_local3++;
};
_local4++;
};
if (_local3 == 2){
valRef0 = valRef;
};
mainType = 6;
mainVal = valRef0;
strDescrMain = "a FullHouse";
} else {
isCouleur(false);
};
return (_local1);
}
public function isSuite(_arg1:Boolean){
var _local2:*;
var _local3:int;
_local2 = undefined;
_local3 = 0;
_local2 = true;
_local3 = 1;
while (_local3 < 5) {
if ((mCcartes[(_local3 - 1)].valeur + 1) != mCcartes[_local3].valeur){
_local2 = false;
};
_local3++;
};
if (!_arg1){
if (_local2){
mainType = 4;
mainVal = mCcartes[4].valeur;
strDescrMain = "a Straight";
} else {
isBrelan();
};
};
return (_local2);
}
public function nouveauTour(){
var _local1:int;
_local1 = 0;
cc = 0;
_local1 = 0;
while (_local1 < 5) {
if (mCcartes[_local1] == null){
removeChild(mCcartes[_local1]);
};
_local1++;
};
cartes = new Array();
mCcartes = new Array();
}
public function isCarre(){
var _local1:*;
var _local2:int;
var _local3:int;
_local1 = undefined;
_local2 = 0;
_local3 = 0;
_local1 = false;
valRef = mCcartes[0].valeur;
_local2 = 0;
_local3 = 1;
while (_local3 < 5) {
if (valRef == mCcartes[_local3].valeur){
_local2++;
};
_local3++;
};
if (_local2 == 3){
_local1 = true;
} else {
_local2 = 0;
valRef = mCcartes[1].valeur;
_local3 = 0;
while (_local3 < 5) {
if (_local3 != 1){
if (valRef == mCcartes[_local3].valeur){
_local2++;
};
};
if (_local2 == 3){
_local1 = true;
};
_local3++;
};
};
if (_local1){
mainType = 7;
mainVal = valRef;
strDescrMain = "Four of a kind";
} else {
isFull();
};
}
public function isDoublePaire(){
var _local1:*;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
_local1 = undefined;
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local5 = 0;
_local1 = false;
_local2 = 0;
_local3 = 0;
_local4 = 0;
while (_local4 < 5) {
valRef = mCcartes[_local4].valeur;
_local2 = 0;
_local5 = 0;
while (_local5 < 5) {
if (valRef == mCcartes[_local5].valeur){
_local2++;
};
_local5++;
};
if (_local2 == 2){
_local3++;
if (_local3 == 4){
_local1 = true;
break;
};
if (_local3 < 3){
valRef0 = valRef;
};
};
_local4++;
};
if (_local1){
mainType = 2;
mainVal = ((valRef0 * 10000) + (valRef * 100));
_local4 = 0;
while (_local4 < 5) {
if (((!((mCcartes[_local4].valeur == valRef))) && (!((mCcartes[_local4].valeur == valRef0))))){
mainVal = (mainVal + mCcartes[_local4].valeur);
};
_local4++;
};
strDescrMain = "Two Pair";
} else {
isPaire();
};
}
}
}//package
Section 8
//PaletteJoueur (PaletteJoueur)
package {
import flash.display.*;
public dynamic class PaletteJoueur extends MovieClip {
public var mcBet:MovieClip;
public var btParie:SimpleButton;
public var btCouche:SimpleButton;
public var btReste:SimpleButton;
public function PaletteJoueur(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 9
//Partie (Partie)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public class Partie extends MovieClip {
private var ilCommence:Boolean;
private var lePot:int;
private var jeuEnCours:Boolean;
public var tbDiagF:TextField;
private var jeu:Jeu;
public var btChange:SimpleButton;
private var deck:Deck;
public var bando:MovieClip;
private var jeuF:Jeu;
public var btBonus:SimpleButton;
private var mise:int;
public var tbDiag:TextField;
public var palJ:PaletteJoueur;
private var comp:String;
public var lesSous:TextField;
private var blind:int;// = 10
private var aChange:Boolean;
public var lesSousF:TextField;
public var potStr:TextField;
public var lbl:TextField;
public var cheat0:MovieClip;
public var cheat1:MovieClip;
private var nbTours:int;
var timerSexy:Timer;
public var cheat2:MovieClip;
public function Partie(){
blind = 10;
super();
blind = 10;
}
public function afficheSous(){
potStr.text = lePot.toString();
lesSous.text = jeu.sous.toString();
lesSousF.text = jeuF.sous.toString();
}
public function newTour(){
jeu.nouveauTour();
jeuF.nouveauTour();
}
public function ilParie(_arg1:int){
lePot = (lePot + mise);
jeu.sous = (jeu.sous - mise);
mise = _arg1;
lePot = (lePot + mise);
jeu.sous = (jeu.sous - mise);
afficheSous();
tbDiag.text = ("You bet " + mise.toString());
elleJoue();
}
public function elleChange(){
if (comp == "bluff"){
jeuF.selectCarteAvirerBluff();
} else {
jeuF.selectCarteAvirer();
};
bando.resStr.text = (("She changes " + jeuF.nbCartesRetournees()) + " cards");
bando.gotoAndPlay(2);
}
public function ilJoue(){
var _local1:*;
if (jeu.sous > 60){
btBonus.visible = true;
};
_local1 = (nbTours + 1);
nbTours = _local1;
palJ.gotoAndPlay(2);
palJ.visible = true;
}
public function btParie5_Click(_arg1:MouseEvent){
ilParie(5);
}
public function cheat0_Click(_arg1:MouseEvent){
if (jeuEnCours){
cheat0.gotoAndStop(2);
jeuF.visible = true;
cheat0.removeEventListener(MouseEvent.CLICK, cheat0_Click);
timerSexy.addEventListener(TimerEvent.TIMER, timerSexy_Tick);
timerSexy.start();
};
}
public function btParie_Click(_arg1:MouseEvent){
if (palJ.mcBet.currentFrame == 1){
palJ.mcBet.gotoAndPlay(2);
};
}
public function btChanger_Click(_arg1:MouseEvent){
var _local2:int;
_local2 = 0;
btChange.visible = false;
aChange = true;
elleChange();
_local2 = 0;
while (_local2 < 5) {
if (jeu.retournee(_local2)){
jeu.changerCarte(_local2, deck.tirer());
};
_local2++;
};
_local2 = 0;
while (_local2 < 5) {
if (jeuF.retournee(_local2)){
jeuF.changerCarte(_local2, deck.tirer());
};
_local2++;
};
if (ilCommence){
ilJoue();
} else {
elleJoue();
};
jeu.affiche();
jeuF.affiche();
}
public function elleReste(){
tbDiagF.text = "I stay";
jeuF.sous = (jeuF.sous - mise);
lePot = (lePot + mise);
mise = 0;
if (nbTours < 2){
ilJoue();
} else {
finTour();
};
}
public function elleStrip(_arg1:String){
bando.resStr.text = _arg1;
bando.gotoAndPlay(2);
}
function btBonusClick(){
jeu.sous = (jeu.sous - 60);
afficheSous();
palJ.visible = false;
}
public function btParie10_Click(_arg1:MouseEvent){
ilParie(5);
}
public function elleGagne(){
jeuEnCours = false;
jeuF.sous = (jeuF.sous + lePot);
lbl.text = "gagne";
bando.resStr.text = ("She wins " + lePot.toString());
lePot = 0;
bando.gotoAndPlay(2);
}
public function StartPoker(){
tbDiagF.text = "";
tbDiag.text = "";
jeuEnCours = false;
palJ.visible = false;
deck = new Deck();
jeu = new Jeu();
jeuF = new Jeu();
palJ.stop();
jeu.x = -272;
jeu.y = 121.5;
jeuF.x = -259;
jeuF.y = 134;
jeu.sous = 200;
addChild(deck);
addChild(jeu);
addChild(jeuF);
ilCommence = true;
btChange.visible = false;
bando.gotoAndStop(31);
btChange.addEventListener(MouseEvent.CLICK, btChanger_Click);
palJ.btParie.addEventListener(MouseEvent.CLICK, btParie_Click);
palJ.btReste.addEventListener(MouseEvent.CLICK, btReste_Click);
palJ.btCouche.addEventListener(MouseEvent.CLICK, btCouche_Click);
palJ.mcBet.bt5.addEventListener(MouseEvent.CLICK, btParie5_Click);
palJ.mcBet.bt10.addEventListener(MouseEvent.CLICK, btParie10_Click);
palJ.mcBet.bt15.addEventListener(MouseEvent.CLICK, btParie15_Click);
palJ.mcBet.bt20.addEventListener(MouseEvent.CLICK, btParie20_Click);
cheat0.mouseChildren = false;
cheat1.mouseChildren = false;
cheat2.mouseChildren = false;
cheat0.buttonMode = true;
cheat1.buttonMode = true;
cheat2.buttonMode = true;
cheat0.useHandCursor = true;
cheat1.useHandCursor = true;
cheat2.useHandCursor = true;
cheat0.addEventListener(MouseEvent.CLICK, cheat0_Click);
cheat1.addEventListener(MouseEvent.CLICK, cheat1_Click);
cheat2.addEventListener(MouseEvent.CLICK, cheat2_Click);
timerSexy = new Timer(5000);
timerSexy.stop();
afficheSous();
}
public function btParie15_Click(_arg1:MouseEvent){
ilParie(15);
}
public function cheat2_Click(_arg1:MouseEvent){
if (jeuEnCours){
cheat2.gotoAndStop(2);
jeuF.visible = true;
cheat2.removeEventListener(MouseEvent.CLICK, cheat2_Click);
timerSexy.addEventListener(TimerEvent.TIMER, timerSexy_Tick);
timerSexy.start();
};
}
public function distribue(){
var _local1:int;
_local1 = 0;
btBonus.visible = false;
palJ.visible = false;
lbl.text = "";
lePot = 0;
mise = 0;
nbTours = 0;
comp = "";
aChange = false;
ilCommence = !(ilCommence);
deck.shuffle();
_local1 = 0;
while (_local1 < 5) {
jeu.nouvelleCarte(deck.tirer());
_local1++;
};
_local1 = 0;
while (_local1 < 5) {
jeuF.nouvelleCarte(deck.tirer());
_local1++;
};
jeu.affiche();
jeuF.affiche();
afficheSous();
tbDiagF.text = "";
tbDiag.text = "";
jeuF.visible = false;
btChange.visible = false;
jeu.cartesCliquables(false);
}
public function elleCouche(){
tbDiagF.text = "I drop";
ellePerd();
}
public function elleParie(_arg1:int){
tbDiagF.text = ("I bet " + _arg1.toString());
jeuF.sous = (jeuF.sous - mise);
lePot = (lePot + mise);
mise = _arg1;
lePot = (lePot + mise);
jeuF.sous = (jeuF.sous - mise);
ilJoue();
}
public function finTour(){
btBonus.visible = false;
comp = "";
if (!aChange){
btChange.visible = true;
bando.resStr.text = "Let's change cards";
bando.gotoAndPlay(2);
jeu.cartesCliquables(true);
} else {
jeuEnCours = false;
afficheJeux();
tbDiagF.text = ("I've got " + jeuF.strDescrMain);
tbDiag.text = ("You've got " + jeu.strDescrMain);
if (jeu.compareJeu(jeuF) == 0){
elleNul();
} else {
if (jeu.compareJeu(jeuF) == 1){
elleGagne();
} else {
if (jeu.compareJeu(jeuF) == -1){
ellePerd();
};
};
};
};
nbTours = 0;
palJ.visible = false;
}
public function elleNul(){
lbl.text = "nul";
bando.resStr.text = "Draw";
bando.gotoAndPlay(2);
}
public function btReste_Click(_arg1:MouseEvent){
jeu.sous = (jeu.sous - mise);
lePot = (lePot + mise);
mise = 0;
tbDiag.text = "You stay";
if (nbTours < 2){
elleJoue();
} else {
finTour();
};
}
public function btCouche_Click(_arg1:MouseEvent){
tbDiag.text = "You drop";
palJ.visible = false;
elleGagne();
}
public function elleJoue(){
var _local1:*;
var _local2:int;
var _local3:*;
_local1 = undefined;
_local2 = 0;
btBonus.visible = false;
_local3 = (nbTours + 1);
nbTours = _local3;
palJ.visible = false;
palJ.mcBet.gotoAndStop(0);
if (comp == ""){
switch (jeuF.mainType){
case 0:
_local1 = (Math.random() * 3);
if (_local1 < 1){
comp = "bluff";
} else {
comp = "was";
};
break;
case 1:
comp = "was";
break;
default:
comp = "joueGros";
break;
};
};
switch (comp){
case "was":
if (mise > 14){
_local1 = (Math.random() * 4);
if (_local1 < 1){
elleCouche();
} else {
if (_local1 < 3){
elleReste();
} else {
_local2 = (Math.floor((Math.random() * 3)) + 1);
elleParie((5 * _local2));
};
};
} else {
elleReste();
};
break;
case "bluff":
if (nbTours < 3){
_local1 = (Math.random() * 2);
if (_local1 < 1){
elleParie(20);
} else {
elleParie(15);
};
} else {
_local1 = (Math.random() * 2);
if (_local1 < 1){
elleCouche();
} else {
elleReste();
};
};
break;
default:
if (nbTours >= 10){
elleReste();
} else {
_local1 = (Math.random() * (10 - nbTours));
if (_local1 < 1){
elleReste();
} else {
_local1 = (Math.random() * 2);
if (_local1 < 1){
elleParie(20);
} else {
elleParie(15);
};
};
};
break;
};
afficheSous();
}
public function afficheJeux(){
timerSexy.removeEventListener(TimerEvent.TIMER, timerSexy_Tick);
jeuF.visible = true;
palJ.visible = false;
}
public function supSex(){
btBonus.visible = true;
palJ.gotoAndPlay(2);
palJ.visible = true;
}
public function lancerPartie(){
jeuEnCours = true;
jeu.sous = (jeu.sous - blind);
jeuF.sous = (jeuF.sous - blind);
lePot = (lePot + (2 * blind));
afficheSous();
if (ilCommence){
ilJoue();
} else {
elleJoue();
};
}
public function ellePerd(){
jeuEnCours = false;
jeu.sous = (jeu.sous + lePot);
lbl.text = "perd";
bando.resStr.text = ("You win " + lePot.toString());
lePot = 0;
bando.gotoAndPlay(2);
}
public function btParie20_Click(_arg1:MouseEvent){
ilParie(20);
}
public function sousM(){
return (jeu.sous);
}
public function cheat1_Click(_arg1:MouseEvent){
if (jeuEnCours){
cheat1.gotoAndStop(2);
jeuF.visible = true;
cheat1.removeEventListener(MouseEvent.CLICK, cheat1_Click);
timerSexy.addEventListener(TimerEvent.TIMER, timerSexy_Tick);
timerSexy.start();
};
}
function timerSexy_Tick(_arg1:TimerEvent){
timerSexy.removeEventListener(TimerEvent.TIMER, timerSexy_Tick);
jeuF.visible = false;
}
public function sous(){
return (jeuF.sous);
}
}
}//package
Section 10
//poker (poker)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
public dynamic class poker extends MovieClip {
public var progressText:TextField;
public var tcStop:int;
public var btDebut:SimpleButton;
public var btLinkFSG:SimpleButton;
public var action:String;
public var strVid:String;
public var partie:Partie;
public var TC:Object;
public var habit:int;
public var angleSexy:int;
public var btLinkUpis:SimpleButton;
public var myVid:MovieClip;
public var myFoto:MovieClip;
public var timerSexy:Timer;
public var timerAction:Timer;
public var btDeal:SimpleButton;
public var tcAff:int;
public function poker(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
public function btDebut_Click(_arg1:MouseEvent){
btDebut.removeEventListener(MouseEvent.CLICK, btDebut_Click);
gotoAndStop(4);
btDebut.visible = false;
}
function btLinkFSG_Click(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.free-strip-games.com/");
navigateToURL(_local2, "_blank");
}
public function fin_Tour(_arg1:Event){
if (partie.lbl.text != ""){
timerSexy.stop();
myVid.removeEventListener(Event.ENTER_FRAME, videoEvent);
partie.removeEventListener(Event.ENTER_FRAME, fin_Tour);
switch (partie.lbl.text){
case "gagne":
if (partie.sousM() < 0){
vidPlay(1, "finLoose");
} else {
vidPlay(1, "nvTour");
};
break;
default:
vidPlay(2, "nvTour");
break;
};
};
}
public function strip(_arg1:String){
if (partie.sous() < ((3 - habit) * 100)){
action = _arg1;
timerAction.start();
} else {
btDeal.visible = true;
};
}
public function timerSexy_Tick(_arg1:TimerEvent){
timerSexy.stop();
vidPlay(3, "Sexy");
}
function frame3(){
stop();
}
function frame6(){
btDebut.addEventListener(MouseEvent.CLICK, btDebut_Click);
btDebut.visible = true;
}
function frame5(){
btDebut.addEventListener(MouseEvent.CLICK, btDebut_Click);
btDebut.visible = true;
}
function frame1(){
addEventListener(Event.ENTER_FRAME, loadProgress);
btDebut.addEventListener(MouseEvent.CLICK, btDebut_Click);
btDebut.visible = false;
btLinkUpis.addEventListener(MouseEvent.CLICK, btLinkUpis_Click);
btLinkFSG.addEventListener(MouseEvent.CLICK, btLinkFSG_Click);
}
public function startGame(){
habit = 0;
partie.lbl.visible = false;
btDeal.visible = false;
timerSexy = new Timer(5000);
timerAction = new Timer(3000);
timerAction.stop();
timerSexy.stop();
partie.StartPoker();
timerAction.addEventListener(TimerEvent.TIMER, timerAction_Tick);
timerSexy.addEventListener(TimerEvent.TIMER, timerSexy_Tick);
myVid.gotoAndPlay(0);
myVid.addEventListener(Event.ENTER_FRAME, videoEvent);
strVid = "Intro";
tcStop = (TC[0] - 1);
btDeal.addEventListener(MouseEvent.CLICK, btDeal_Click);
partie.btBonus.addEventListener(MouseEvent.CLICK, btBonus_Click);
partie.btBonus.visible = false;
}
public function loadProgress(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local5 = 0;
_local2 = this.root.loaderInfo.bytesLoaded;
_local3 = this.root.loaderInfo.bytesTotal;
_local4 = (_local2 / 0x0400);
_local5 = (_local3 / 0x0400);
progressText.text = (((("Loading: " + _local4) + "/") + _local5) + "Kb");
if (_local2 >= _local3){
gotoAndStop(3);
removeEventListener(Event.ENTER_FRAME, loadProgress);
btDebut.visible = true;
progressText.visible = false;
};
}
function btLinkUpis_Click(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.uplay-istrip.com/");
navigateToURL(_local2, "_blank");
}
public function videoEve(){
var _local1:*;
if (myVid.currentFrame >= (tcStop - 1)){
myVid.removeEventListener(Event.ENTER_FRAME, videoEvent);
myVid.stop();
timerSexy.stop();
switch (strVid){
case "Intro":
btDeal.visible = true;
break;
case "Distrib":
partie.lancerPartie();
partie.addEventListener(Event.ENTER_FRAME, fin_Tour);
angleSexy = 0;
timerSexy.start();
break;
case "nvTour":
partie.newTour();
strip("She has to strip");
break;
case "Strip":
partie.removeEventListener(Event.ENTER_FRAME, fin_Tour);
_local1 = (habit + 1);
habit = _local1;
strip("She has to strip again");
break;
case "Sexy":
timerSexy.start();
break;
case "SupSex":
partie.supSex();
timerSexy.start();
break;
case "finVictoire":
gotoAndStop(6);
break;
case "finLoose":
gotoAndStop(5);
break;
default:
break;
};
};
}
public function timerAction_Tick(_arg1:TimerEvent){
if ((((partie.sous() < 0)) && ((habit == 3)))){
vidPlay(5, "finVictoire");
partie.elleStrip("Congratulation, you win!");
} else {
vidPlay(5, "Strip");
partie.elleStrip(action);
};
timerAction.stop();
}
function frame4(){
TC = new Array(93, 149, 198, 264, 297, 338, 406, 477, 864, 891, 938, 986, 1033, 1089, 1127, 1192, 1434, 1471, 1521, 1574, 1627, 1658, 1687, 1780, 1954, 2012, 2119, 2164, 2234, 2272, 2389, 2564, 3151);
tcStop = 0;
tcStop = 0;
tcAff = 0;
strVid = "";
startGame();
}
public function btDeal_Click(_arg1:MouseEvent){
btDeal.visible = false;
partie.distribue();
vidPlay(0, "Distrib");
}
public function btBonus_Click(_arg1:MouseEvent){
partie.btBonus.visible = false;
timerSexy.stop();
partie.btBonusClick();
vidPlay(4, "SupSex");
}
public function videoEvent(_arg1:Event){
videoEve();
}
function frame2(){
stop();
}
public function vidPlay(_arg1:int, _arg2:String){
var _local3:int;
var _local4:int;
_local3 = 0;
_local3 = _arg1;
if (_arg1 < 3){
_local3 = ((Math.floor((Math.random() * 2)) + (2 * _arg1)) + 2);
};
if (_arg1 == 3){
_local3 = (Math.floor((Math.random() * 3)) + (3 * angleSexy));
if (angleSexy == 0){
angleSexy = 1;
} else {
angleSexy = 0;
};
};
if (_arg1 > 3){
_local3 = (_arg1 + 2);
};
_local4 = 0;
_local4 = (habit * 8);
strVid = _arg2;
if (_arg1 < 3){
tcStop = 0;
myFoto.gotoAndStop((_local3 + (habit * 6)));
myVid.visible = false;
videoEve();
} else {
myVid.visible = true;
tcStop = (TC[((_local3 + _local4) + 1)] - 1);
myVid.gotoAndPlay(TC[(_local3 + _local4)]);
myVid.addEventListener(Event.ENTER_FRAME, videoEvent);
};
}
}
}//package