home *** CD-ROM | disk | FTP | other *** search
- function CashAdd(Cvalue)
- {
- currentBetUpdate = currentBet[0] + Cvalue;
- currentBet.unshift(currentBetUpdate);
- betHistory.unshift(currentBet[0]);
- _root.amountPot = currentBet[0];
- playerTotalUpdate = playerTotal[0] - Cvalue;
- playerTotal.unshift(playerTotalUpdate);
- _root.amountPlayer = playerTotal[0];
- }
- function CashRemove(Cvalue)
- {
- currentBetUpdate = currentBet[0] - Cvalue;
- currentBet.unshift(currentBetUpdate);
- betHistory.unshift(currentBet[0]);
- _root.amountPot = currentBet[0];
- playerTotalUpdate = playerTotal[0] + Cvalue;
- playerTotal.unshift(playerTotalUpdate);
- _root.amountPlayer = playerTotal[0];
- }
- function maxBet()
- {
- CashAdd(200);
- c++;
- _root.chip100_.duplicateMovieClip("chip" + c,c);
- setProperty("chip" + c, _X, posChipx[random(7)]);
- setProperty("chip" + c, _Y, posChipy[random(6)]);
- c++;
- _root.chip100_.duplicateMovieClip("chip" + c,c);
- setProperty("chip" + c, _X, posChipx[random(7)]);
- setProperty("chip" + c, _Y, posChipy[random(6)]);
- }
- function minBet()
- {
- CashAdd(1);
- c++;
- _root.chip1_.duplicateMovieClip("chip" + c,c);
- setProperty("chip" + c, _X, posChipx[random(7)]);
- setProperty("chip" + c, _Y, posChipy[random(6)]);
- }
- function Sponds(winStatus1)
- {
- if(winStatus1 == 1)
- {
- _root.netMov.gotoAndStop("remove");
- _root.netMov.amountNet = currentBet[0];
- return undefined;
- }
- if(winStatus1 == 2)
- {
- _root.netMov.gotoAndStop("add");
- _root.netMov.amountNet = currentBet[0];
- currentBet[0] *= 2;
- playerTotal[0] += currentBet[0];
- _root.amountPlayer = playerTotal[0];
- return undefined;
- }
- if(winStatus1 == 3)
- {
- _root.netMov.gotoAndStop("add");
- _root.netMov.amountNet = 0;
- playerTotal[0] += currentBet[0];
- _root.amountPlayer = playerTotal[0];
- return undefined;
- }
- if(winStatus1 == 4)
- {
- Bjack = currentBet[0] * 1.5;
- currentBet.unshift(currentBet[0] + Math.floor(Bjack));
- _root.netMov.gotoAndStop("add");
- _root.netMov.amountNet = Math.floor(Bjack);
- playerTotal[0] += currentBet[0];
- _root.amountPlayer = playerTotal[0];
- return currentBet.unshift(currentBet[0] + Math.floor(Bjack));
- }
- }
- posChipx = ["20","25","35","45","55","65","75"];
- posChipy = ["130","140","150","160","170","180"];
- betting = false;
- ClickChip = false;
- double = false;
- playerTotal = [2000];
- _root.amountPlayer = playerTotal[0];
- currentBet = [0];
- _root.amountPot = currentBet[0];
- c = 1;
- ca = 600;
- Bjack = 0;
- betHistory = new Array();
- stop();
-