Jump to content

Recommended Posts

Hey everyone,

 

I'm starting a project, I want to create a working slot machine, with balance, amount of spin, animated slots, it all.

 

I'm guessing i need a client side, and a server. For the server i'd like to use PHP, for the client, i think flash? (Suggestions welcome)

 

I have a pretty good knowledge of php. To start with, It's going to have to use a lot of rand(), and i'm going to have to work out probability.

 

My question to you all is, is it possible to pass variables between php and flash? if so, how, and how would you go about making it?

 

I want it to be 5 reels with multiple win lines.

 

Thanks in advance for your help.

 

Snoobs

Link to comment
https://forums.phpfreaks.com/topic/125760-looking-to-create-a-slot-machine-help/
Share on other sites

with flash there are a couple of ways to send data from php to flash.

a couple of plausible solutions are:

1. amfphp

2. loadvars

3. xml data exchange

4. javascript calls (using a flash framework/library so you can use external javascript to do actions inside flash)

 

and there really isnt a best solution for choosing your client solution.

you could use a couple of things like:

1. ajax

2. Silverlight

3. Flash

4. Java applet

 

 

So I'll create it in Flash and PHP. I've looked into exchanging variables and it seems fine.

 

Can someone please give me a sample script to take a variable from php ($1a) and output the correct image (switch statement?) in flash?

 

As I need somewhere to start.

 

Thanks so much for your help.

 

Sam

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.