Poker Start If Anyone Wants It.
I tried starting a Texas Hold em game ages ago. I think this is the last version i started but like many overs I got stuck. At the moment it deals all the cards for a single player and evaluates the hand (doesn't do all hands and some are a bit wrong).
I am posting it so anyone can take anything from it or further it in anyway.
I stopped mainly when I tried to work out the best system to handle other players(CPU) information (the cards they have in their hand etc), what array or whatever.
If anyone does anything with it or has an idea for me to maybe be able to continue with it any reply would be appreciated.
Cheers
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-19-2005, 08:06 AM
View Complete Forum Thread with Replies
Sponsored Links:
Poker Clock Help
Hi.
I want to make a poker clock in flash. Does anyone have any tips for me.
I'd like to be able to select different blinds amounts and different time sets for each blind. Like a normal poker clock only in flash.
any help would be great.
View Replies !
View Related
Poker Pit Manager
Hey all,
I am trying to develop a new pit manager software for the casino I work for. I decided on a web base to keep it within my realms of programming. I have go the database and admin stuff working, I just need to make a nice pretty Flash waiting list for the poker *&%^s to look at while they wait.
I have made a php that creates this piece of XML:
Code:
<?xml version="1.0"?>
<lists>
<list>
<game>$100/$250 NL</game>
<player>Sam</player>
<player>James</player>
<player>Michael</player>
</list>
<list>
<game>$200/$500 NL</game>
</list>
<list>
<game>$80 NL</game>
</list>
<list>
<game>$5/$10 LIMIT</game>
<player>Steve</player>
</list>
<list>
<game>$10/$20 LIMIT</game>
<player>Jesus</player>
</list>
<list>
<game>$500/$2000 NL</game>
</list>
</lists>
Now I would like to get this into 6 separate lists in flash. Can someone help me out? Or knows where a step by step tutorial is for something similar because I haven't found many very helpful XML Flash tutorials out there. Even the one on this site wasn't enough for me.
Thanks,
THEfish!
View Replies !
View Related
Flash Poker
Howdy .
I've been doing flash for quite some time now, and this is the only problem I've come against that i cant figure out, without taking along time to do it. Here's the situation. I'm making an online multiplayer poker game for vizzed (www.vizzed.com/vizzedboard/)and i can make all cards come out, and go to there positions on the table, i can do everything except make the part where flash decides who wins.
Each card is give a certain code name, S4 , 4 of spades, HA ace of hearts. This is in a big array, that gets randomized (shuffled). I can get the suit (by making each bit of the array a string, then splitting it) , and the card number (as told before), and i have all the rules on how poker works (Texas hold-em).. i just cant figure out how to do this bit.
I was going to give each hand a rank (royal flush being 10, and highest card being 1 (thus being 10 to 2 not occurring any-ware)). Then i can say player 1 has a rank of 4, but player 2 has a rank of 5, so player 2 wins. The only way i could think of making flash decide who won is by making alot of if statements... And this could take me alot of time, and might even slow the game down abit.
If anyone has any ideas it'd be great. And if anyone comes up with a super idea, that totally works, ill give them 5000 viz (currency on the vizzedboard) to play flash poker with when its done.
Also, if you do register on vizzed (http://www.vizzed.com/vizzedboard/register.php), please set BigBob85 as referral, and send me a PM that you joined. Thanks.
View Replies !
View Related
Scoring For Poker Machine
I NEED A SCOREBOARD FOR MY GAME!
I've created a poker machine type game in a single frame, with 3 instances of a movie clip (with their own instance names: 1st; 2nd ;3rd) which represent the spinning reels. (The reels clip is simply a sequence of frames with a different graphic on each).
A "spin again" button plays all three reel clips. Each reel has a button which stops the reel above it.
WHAT I WANT TO DO IS... create a "score" so that when the reels stop at particular frames in relation to the other reels, points are scored.
(I've also got a second frame with a gamble (black/red) feature, which i want to activate if the player 'wins'... but I can save that for the next session!!)
Can anyone guide me through this score creating process? Especially the actionscripting...
View Replies !
View Related
Score For Poker Machine
I NEED A SCOREBOARD FOR MY GAME!
I've created a poker machine type game in a single frame, with 3 instances of a movie clip (with their own instance names: 1st; 2nd ;3rd) which represent the spinning reels. (The reels clip is simply a sequence of frames with a different graphic on each).
A "spin again" button plays all three reel clips. Each reel has a button which stops the reel above it.
WHAT I WANT TO DO IS... create a "score" so that when the reels stop at particular frames in relation to the other reels, points are scored.
(I've also got a second frame with a gamble (black/red) feature, which i want to activate if the player 'wins'... but I can save that for the next session!!)
Can anyone guide me through this score creating process? Especially the actionscripting...
View Replies !
View Related
Array And Game Poker
Hello everybody!
I'm doing my video poker game. Up to now, everything is ok. Unfortunately, now I have got some problems as I need to add the joker to this game. The joker is worth as much as you want. I had some problems with the straight. Thus I'm sending you the original functioning code without the joker and also the one I modified.
cards = ["c1", "s4", "d2", "d3", "h5"];
handValue(cards);
function handValue() {
hand = cards.slice();
hand.sort(compareHands);
nums = new Array();
for (i=0; i<5; i++) {
nums.push(Number(hand[i].substr(1, 2)));
}
straight = true;
for (i=0; i<4; i++) {
if (nums[i]+1 != nums[i+1]) {
straight = false;
}
}
if (straight) {
trace("straight");
return ("Straight");
} else {
return ("Nothing");
}
}
function compareHands(a, b) {
numa = Number(a.substr(1, 2));
numb = Number(b.substr(1, 2));
if (numa<numb) {
return (-1);
}
if (numa == numb) {
return (0);
}
if (numa>numb) {
return (1);
}
}
That's what I did in order to add the joker to my game
I've used a five-card-array in order the determine the winning but now I've got a four-card-array without the joker
cards = ["j15", "c2", "s3", "d4", "h5"];
handValue(cards);
function handValue() {
hand = new Array();
for (i=0; i<5; i++) {
if (cards[i] != "j15") {
hand.push(cards[i]);
}
}
hand.sort(compareHands);
nums = new Array();
for (i=0; i<5; i++) {
nums.push(Number(hand[i].substr(1, 2)));
}
straight = true;
for (i=0; i<4; i++) {
if (nums[i]+1 != nums[i+1]) {
straight = false;
}
}
if (straight) {
trace("youwin");
return ("Straight");
} else {
return ("Nothing");
}
}
function compareHands(a, b) {
numa = Number(a.substr(1, 2));
numb = Number(b.substr(1, 2));
if (numa<numb) {
return (-1);
}
if (numa == numb) {
return (0);
}
if (numa>numb) {
return (1);
}
}
If the joker is worth as much as you want, how can I evaluate the straight?
View Replies !
View Related
Flash Poker Table
I am a new member to FlashKit.com and was told to go here for my question:
I was wondering if you would be able to make a Flash Poker Table. What would I need to know and what would I have to get in order to make this happen, if it can possibly happen. Thanks in advance for your help.
Cheers!
View Replies !
View Related
Poker Hand Evaluation
I'm creating a Texas Hold'em poker game and I was wondering if there was any poker hand evaluation code around that I could use or learn from. So far I have everything worked out, dealing the cards, etc. I only need to work out this code. Figured I can do it long hand no problem, but it might take me a good 8 hours worth of coding. Hopefully this 2 minutes of thread typing will alleviate that
Thanks
webG
View Replies !
View Related
Flash Game : Video Poker Help
HI !
i have some prob in the flash game im dev.
(video poker)
u can view the game here :
http://64.210.25.80/videopoker.html
u'll notice that when u hold the card , he's actually throwing it away.. =(
can some one help me debug the scripts.
u can download the .fla here:
http://64.210.25.80/videopoker.fla
pls this is urgent ,,, thanks100x !=)
email me here: sgaytano@hotmail.com
[Edited by cid23 on 01-05-2002 at 07:42 AM]
View Replies !
View Related
Countdown Poker Timer In Flash 5
Yeah, I'm behind with Flash 5. Haven't used it in a long time but I'm now waiting for CS3 so I can get all the upgrades...
I've been all over the web and found a few tutorials on making timers. Some I've gotten to work, other not so much luck. The problem is all the tutorials I've seen tend to be more in depth than I think I need. I'm trying to make a poker timer for the blinds that I can run on my laptop during tournaments.
I want to be able to launch my SWF onscreen and it should ask me an interval. Typically this will be 15 minutes but could change. When the start button is pressed that variable, I'll call it "TimerInterval", will be passed to the timer movie clip and the blinders movie clip should progress to show the current blinds. After 15 minutes is up it should stop. When the start button is pressed again the timer starts again and the movie progresses to the next blind level. I will also need the ability to pause the timer and skip or go back frames (blind levels).
So what I'll have is a movie with the timer movie clip in it and another movie clip with the blind amounts. Hitting the start button in the main movie starts the timer movie clip and advances the blinds movie clip to the next frame, which will just be a static block of text.
Hopefully, that all makes sense.
So, I think I've got a pretty good grasp on what I need to do with the controls but the timer is still a mystery to me. All I need is minutes:seconds and maybe milliseconds (just 'cause it looks cool) counting down from TimerInterval to 0. I would however like to keep the minutes, seconds, and milliseconds as separate entities so I can keep the numbers from jumping around due to number width (1 is thinner than 8 so the text jumps to the left).
So, like I said, all the tutorials I've found use the Date() function to countdown to another specific date and I don't know how that will work with my situation. I did see one that used a Timer() function but can't seem to locate that bookmark.
I do have some script I used for a different site for a slideshow type of thing where I had:
Frame 1
currently = getTimer();
end = currently + 3000;
Frame 2
currently = getTimer();
Frame 3
if (currently <= end) {
gotoAndPlay ("Timer2");
}
which I might be able to adapt but there is no visual display associated with this script.
Anyone got some ActionScript laying around that will work or an easy way to adapt the above script to output the time counting down backwards?
Thank you,
Mike
View Replies !
View Related
Flash Game : Video Poker Question
im trying 2 develop a video poker game
pls help out!
cash=100
i have buttons:
bet1
betmax
clear
dynamic txt:
yourCash= displays "cash"
currentBet= displays how many bet(s)
currentWin= displays the winnings
i need 2 display ( dynamic txt )
bet1 = (-)minus 1 from "cash"
betmax = (-)minus 5 from "cash"
clear = clears the (currentBet)
thanks alot =)
View Replies !
View Related
Problems Adding Pages To My Poker Website
Hi
I"m pretty new to flash and I bought a website online to make a poker website.
Problem is I can't seem to add pages to the template. If you use the link below, clicking on the Game Menu -> Overall Rankings link produces a stuttering effect, and you dont' really make it to the right page. Same goes for the Game -> Overall Stats page. Can anyone take a look at the code and tell me why this isn't linking properly?
I"m guessing its because of the "item" array. I see this array referenced, but I dont see where it is declared, and I don't see any mc or buttons labeled "item". Since I just cutted and pasted code to add pages, I'm guessing this confuses the "item" array. The more pages I add this way, the more bizarre issues I begin to see.
The code can be found in the actionscript for buttons such as:
on (release) {
if (_root.link<>5) {
_parent["item"+_root.link].gotoAndPlay("s2");
_root.link = 5;
_root.play();
}
}
Please Help!!!
http://www.igvargas.com/flash/main5.fla
View Replies !
View Related
Has Anyone Ever Action Scripted Card Dealing In A Poker Game?
I'm messing around, trying to figure out how to action script a simple poker game in Flash4.
I'm having a problem trying to script out the same card "randomly" appearing in more than 1 of the 5 different card positions of the movie clips when my "deal cards" button is clicked.
This is what I have so far:
(A) I have a movie clip with the entire deck of cards that has a stop action on each frame (1 card graphic per frame);
(B) I have that clip copied into 5 position on the stage and named them as 5 different instances (position-1 through position-5);
(C) I have a deal button that uses the tell target command (and the random function) 5 times in a row to fetch a frame (with a card graphic in it) for each of the five card (movie clip) positions (with their instances called out).
(D) When the 5 cards appear, often the same card appears in 2 of the 5 positions. That's the core of the problem.
So my question is - how can I make sure that 5 different cards always appear in these 5 movie instances (as if an actual deck of cards was dealt)?
How can I use action scripting to prevent a card (frame) from being chosen randomly - twice, in these five separate movie clips? (because it's starting to look more like a slot machine game than a poker game )
Does my movie clip structure make this goal impossible and is there a more appropriate way to structure a deck of cards for poker (that avoids duplicate cards) than I have described?
If anyone has ever gone through this exercise ever before, I'd sure appreciate the help (my noggin is starting to grow a flat spot on top trying to figure this one out )
Thanks in advance!
- James
View Replies !
View Related
Start And Stop Streaming Sounds (start Stopping Currently Playing)
Hi there
I am novice user of flash and have no real AS experience.
What I want to do is..
I have 18 songs from an album and have taken 30 sec from each and down sampled them ready for flash.
I want to be able preview them all from one flash file.
I will be streaming the songs in, so the initial download time is minimal.
With 18 start stop buttons for each one, but because customers are lazy, they are likely just going to click the next play button for the next preview, so I need the play buttons to stop 'this' preview before playing the next with stop control also being a stop control for those who have had enough or are well behaved browsers : )
I hope this makes sense and look forward to hearing from someone.
Cheers
Ian Hill
View Replies !
View Related
Start And Stop Streaming Sounds (start Stopping Currently Playing)
Hi there
I am novice user of flash and have no real AS experience.
What I want to do is..
I have 18 songs from an album and have taken 30 sec from each and down sampled them ready for flash.
I want to be able preview them all from one flash file.
I will be streaming the songs in, so the initial download time is minimal.
With 18 start stop buttons for each one, but because customers are lazy, they are likely just going to click the next play button for the next preview, so I need the play buttons to stop 'this' preview before playing the next with stop control also being a stop control for those who have had enough or are well behaved browsers : )
I hope this makes sense and look forward to hearing from someone.
Cheers
Ian Hill
View Replies !
View Related
How To Delay The Start Of External Swf(start From Say 10th Frame)
I am using the following code to load an external swf.Now I need to start the playing of the swf movie not from frame 1 but from say 10th frame.
Please help
Code:
var myMcl:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes, totalBytes) {
//swfToLoad._visible = false;
loadedPercent = Math.floor((loadedBytes/totalBytes)*100);
_root.bar_mc._xscale = loadedPercent;
//trace(bar_mc._xscale);
c.text = loadedPercent+"%";
//trace(loadAnim.percLoaded.text);
spacer.loadMovie("images/loadingss.jpg");
};
myListener.onLoadComplete = function(targetMC:MovieClip) {
swfToLoad._visible = true;
loadAnim._visible = false;
//swfToLoad._width=367;
//swfToLoad._height=255;
}
myMcl.addListener(myListener);
myMcl.loadClip("Jason_500.swf",swfToLoad);
View Replies !
View Related
FLV Start Time? Can I Start It Playing 2 Secs In?
Is there a way with actionscript to tell an FLV to start playing 2 seconds into the video. What I have is an FLV that has 2 seconds of black at the beginning, but I don't want that to play.
Or if anyone knows a way to re-encode an flv so that I can get rid of the 1st 2 seconds. I've tried re-encoding it with Riva Encoder but it just gets all screwed up. And the Flash encoder won't even let me add it to the que. Any help would be appreciated.
Thanks,
Lady
View Replies !
View Related
Sound Start Doesn't Start
I've been experiencing this problem. Sound.start() doesn't always start. A lot of times, it does, sometimes, it doesn't start for me. Sometimes it happens even after sound load has just finished. Has anyone experienced the same? any suggestions?
Edited: 08/24/2007 at 01:26:57 AM by nehcdet
View Replies !
View Related
To Start Again, Or Not To Start Again, That Is The Question
help!
I know I'm a dumbass, no need to rub it in. Guess who just learned what a smart clip is. now here's the issue:
http://www.7inone.info/test4/
everything on this site that SHOULD be a smart clip, ISN'T. Every single button and movie clip and movie clip holder has been scripted individually. And now, this far along, I realize that the smarter thing to do would have been to use smart clips. So do you think I should start over, and do it right? or should I just leave it, and learn from my mistake for future work. I would love to start again and get it perfect, but the reality of the matter is that the boss want's the site ready to go - and SOON.
any additional comments on over all design, etc. would be appricated.
thanks guys
sid.
View Replies !
View Related
Immediate Start Instead Of Clic Start
I have a fla-file which almost is just perfect for my needs. The only thing I need to change is :
on (release, keyPress "<Enter>") {
gotoAndPlay ("start");
}
I would like the movie to start immediately instead of after the visitor clicking a key. No need for saying that I am totally new to flash, is there.
Roger
View Replies !
View Related
How To Start And Do Nothing
I have made it through the tutorials and now am trying to create my first flash movie. I don't want it to go from frame to frame. I want it to go the first frame and then stop. Then I am going to build some buttons for frame navigations.
My buttons are on one layer, the different frames I want to navigate to are on layer 2. 5 frames, 5 different pictures.
How do I stop the movie from just shooting from frame 1 to frame 5. I just see all 5 frames flash by when I play the movie.
Thanks,
Peace
View Replies !
View Related
Where To Start
If all you knew about FLASH is how to spell it, where would you start? What software must you have. Is there any freeware that one can use to learn?
I am older, and not wealthy. Thanks
View Replies !
View Related
Its Just A Start So Lz Help
well,im working on a construction site and they need a flash verison,so my question is how do i make a site simply like 2advanced projects,like loading the middle part from my movie from an external swf file,and load it in the middle and if i choosed another link another text"clip" is loaded in the middle with a preloader,i dont want to make my site into scenes,i think this a very old way,is there a way to preload a symbole or is it just that ther is a code that calls this movie clip,plz help me with the code.
View Replies !
View Related
Where To Start?
I am new to Flash and I am contemplating a nice starting book.. I am conflicting between Foundation Flash 5 and the Visual Start Guide for Flash 5. Anyone have an opinion, good or bad on these publications or perhaps another that I may have overlooked. Thanks
View Replies !
View Related
How To Start, Anyone?
Ok, planning to make a board game, anyone got any idea how to make one?
I am a real dummy in creating action script and therefore, i need advise. Example like for the things to move on the board, how to program the board etc...
What is recommended to program a board? Is there is special way? What about multi players? My board game is played up to 4 players. How to program a dice, any example?
I really know nothing much about it. Hope to get some help, thanks!!!
Rgds,
CL
View Replies !
View Related
Where Do I Start?
Hi - I would like to know how to do the kind of animations (quick, flickering and smooth as in this site: http://www.skvisual.com). Are the home box animations in actionscript? Does the smooth collapse and expand of the "more>" button also result from actionscript? How do I do this? I'm just getting started with actionscript, so any help is gratefully accepted!
View Replies !
View Related
Where Do I Start?
Hi
I'm fairly new to Flash, and I'd like to take it on as I've gotten bored of HTML.
Any help would be useful.
I would like to "write" a web page in Flash but I'm not sure if this is possible. Write back with suggestions - nice and slowly
TBo6
View Replies !
View Related
.start()
in sounds control i can't get the .start() funtion to do anything.
I have a sound clip playing and I have 2 buttons that can adjust the volume, they work
another stops the sound altogether, this works
another starts the sound, and i've been told from the reference that it can also start it form a certain position of the song.
I cannnot get this to work )=/
what the hell!?
help please =[...
View Replies !
View Related
My MC Won't Start
Hi,
I've posted a message earlier about this, but now I putted the file on the internet so you can download it and maybe then you can check out what's wrong.
http://users.pandora.be/cambien/interface.fla
The problem is, I have a button that is linked to the frame with instance dornbracht.
When I push the button everythingn works except one thing.In the frame with instance dornbracht I putted a movieclip with the instance dornbrachtmc.
Then I added the following actionscript to the movie:
on (EnterFrame) {
dornbrachtmc.play();
}
But when I go to the frame with the movieclip in it, the movieclip doesn't work. If you can't figure it out from here, then you can download the flas file from the link above.
Thanks in advance
Greetings
Camme
View Replies !
View Related
I Don't Know Where To Start.
Can some please point me in the right direction?
I want to create a flash site that looks like you are walking around in side of a building/house and there are interactive things going on inside it and you can move from room to room and so on.
I have seen something like this before but I don't know where to start.
Any suggestions?
Thank you.
View Replies !
View Related
Where To Start?
Yeah, I'm dedicated to learning flash before the new year. So, where is a good place to start. I tried some tutorials from this site but they seemed to difficult. Even the help files of Flash gave me a bit of trouble. It isn't like I am dumb or anything. I know HTML,Photoshop,Premier, and various other design programs and languages but Flash is just hard for me. So any suggestions??Thanks in advance.
View Replies !
View Related
How To Start?
i am having problems with my flash projects and would really appreciate some advice. my problem is that everytime i start a project i never follow what i first planned, and tend to rush things. the worst thing is that i start, then get discouraged after being blown away by some other flash guru's work. so i start over again, without a script or plan, just putting anything anywhere, only to end up starting over again. HELPPPPP!!!!. please give some advice or offer some words of encouragement to this frustrated flasher.
View Replies !
View Related
Where To Start?
I am so overwelmed I have no idea where to start I own flash mx but have no idea how to use it. Where should i start? I see these awsome websites that jump off the screen and id like to do somthing, i dont expect to learn in a day or even a year but i REALLY need to start now its too cool not to. I have no problem with html i dont know if that matters at all but i tought myself.So where should i start? id be useing it primarly as web design i dont even know where to begin any suggestions or tutorials to follow?
View Replies !
View Related
Where To Start...
Hey.
Right, I'm totally new to Flash, and want to make an Intro movie to my site.
Just something simple, showing the name of the site etc.
Anyway, I have absolutely no idea where to start. What program(s) do I need?
I'm willing to learn, so complication of use isn't that much of a problem.
Any feedback appreciated, cheers.
View Replies !
View Related
Where To Start?
Hey guys,
I want a calender based news section on my site.
I want it to start at any year I want and go up to any year I want.
With buttons you can skip thru years/months/dates and the days will have whatever news I put there.
The main problem I have is where to start? I don't know how to get flash to align the days to the dates? Any pointers??
View Replies !
View Related
Where Do I Start
I currently come across websites where you are taken through morphed animated scenes on the website.
Before I take my action script newby self to learning -- How do those guys actually do that?
Is it like director with marker jumping with that specific animation.
If yes please give me some resources also for that along with a good STARTING POINT for action script. To be quite honest some of these tutorials on the site still gets me lost
Thank You
View Replies !
View Related
How Could I Start To Do This?
I am a Flash Developer that is fairly new, 1 1/2 years experience. I have had no formal training. I am probably much more a newbie when it comes to actionscript and ASP.
I would appreciate any resources (knowledge, code, tutorials, etc.)you know of to point me in the direction of doing a flash project with the following criteria:
1. I'm working with ASP and Flash technology.
2. I would like to do a project where you click on a link. The link calls an ASP page that queries a database, the results of the query return a set of URLS for some media (pictures or MP3s) that will in turn be dynamically loaded into a Flash widget (application) to be displayed in the case of an image(s) or listed and played in the case of MP3s.
Anyone got a good starting point?
What would be a methodical way of completing a job like this?
Thanks in advance
View Replies !
View Related
Where Do I Start?
I am 100% new to Flash. Just hired in a new job and they want me to learn!!!
So, my question: what program do you need to create Flash movies? I've got Dreamweaver - can I do it with that? And where do you recommend I start learning?
Any advice would be greatly appreciated!
Thanks in advance,
Michelle
View Replies !
View Related
Where Should I Start?
I think I'm well ahead of my self. I don't know the first thing about Flash MX and I'm already trying to do motion tweens and such without even familiarizing my self with the program. I'm gonna make a fresh start, but I don't know where to began. Can anyone suggest a site where I can first learn the basics and capabilities of FMX? Thanks a bunch
View Replies !
View Related
Where To Start?
If i want to be able to get really godo at flash stuff where should i start and can anyone help me so i can start designing my stuff for a site i would like to build.
thanks
-Sayles
View Replies !
View Related
Where To Start? Lol
yes, Today is my first day at Trying to learn flash..except..a dumb question..WHere to start?! ..i wanna just learn how to make like..movies and stuff (Like on NG) and buttons so people can play it and stop it and stuff like that. Anyways, please list things i need to DL, books, tutorials, etc, etc. Thx alot, sorry.
-Cadmium
View Replies !
View Related
How To Start
ok, i need to know how to start making a flash movie. how do i start. if some one could pm me a step by step instuction to how to make one, that be great. thanks.
View Replies !
View Related
|