PDA

View Full Version : Flash Poker



SirChick
January 22nd, 2008, 10:47 PM
I am going to attempt to create a flash poker game that sites into my site where by my uses can connect to the flash and play against each other. The game money and all that comes from my database etc.

Now my question is, has any one ever tried this? Getting flash communicating with mysql/php for multi player online poker.. if so .. is it do-able or more headache prone?

I don't want to end up doing it then someone telling me theres a better scripting language out there for this. The graphics i don't want to be all animated and fancy.. just simple but flash is alot easier for real time so when the players do something the others are updated which i am going to use Red5 media center to get that aspect going.

So yeah, do you think its do-able in flash?

Sirisian
January 23rd, 2008, 01:00 AM
Yeah, we have people here working on multiplayer games much more complicated than a card game. It's very possible. Honestly I'm not one for trying to get PHP to do it, but if that's all you know then go for it.

zemm
January 23rd, 2008, 03:22 AM
Have you not used Facebook and the Texas Holdem Poker application? They appear to use Flash and PHP to do this already. I would assume they use sockets to do the data transfer. I'd also have the flash app only do what it's told: as in all the game logic is on the server to stop anyone cheating the system.

Jerryscript
January 25th, 2008, 01:01 PM
There is a good tutorial to get you started, with example source code, right here at Kirupa: http://www.kirupa.com/developer/flash8/php5sockets_flash8.htm

It's for a basic chat room, which is all you really need for multiplayer, just send your data to the server, perform your game logic, then broadcast the results back out.

lancerawks
January 26th, 2008, 04:02 AM
You know what? i came up with this idea to... and then figured out i suck at programing in flash and have no idea how to do any kinda database stuff... so i didnt get any farther than makeing the cards rofl. Ill check out that tut jerryscript, thanks.

sivachaitu
March 26th, 2011, 06:42 AM
i want sample code of poker game in flash as3.0
my email id is sivachaitu07@gmail.com.
send me code of poker game

SirChick
March 26th, 2011, 02:24 PM
No, make your own.

etsija0
May 22nd, 2011, 09:27 PM
I think the problem is passing of variables. I hope this will help.
http://code2design.com/tutorial/sending_variables_from_flash_to_php_and_back

I've used it mere on my casino (http://fi.unibet.com/casino) game applications.