Snooble Posted September 25, 2008 Share Posted September 25, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/125760-looking-to-create-a-slot-machine-help/ Share on other sites More sharing options...
Zane Posted September 25, 2008 Share Posted September 25, 2008 It's called LoadVars......in Actionscript 3.0 http://www.devarticles.com/c/a/Flash/The-Power-of-LoadVars-Object/ in Actionscript 2.0 it is loadVariablesNum() and this is not a PHP question Quote Link to comment https://forums.phpfreaks.com/topic/125760-looking-to-create-a-slot-machine-help/#findComment-650314 Share on other sites More sharing options...
Snooble Posted September 25, 2008 Author Share Posted September 25, 2008 should i use java or flash? Thinking about user interaction with the machine. I've looked at popular casinos, and i see .swf's. Apologies for the wrong section. Thanks Snoobs Quote Link to comment https://forums.phpfreaks.com/topic/125760-looking-to-create-a-slot-machine-help/#findComment-650320 Share on other sites More sharing options...
Zane Posted September 25, 2008 Share Posted September 25, 2008 I'm no Java expert, but if it were up to me I'd use Flash.. Quote Link to comment https://forums.phpfreaks.com/topic/125760-looking-to-create-a-slot-machine-help/#findComment-650321 Share on other sites More sharing options...
RichardRotterdam Posted September 25, 2008 Share Posted September 25, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/125760-looking-to-create-a-slot-machine-help/#findComment-650334 Share on other sites More sharing options...
Snooble Posted September 25, 2008 Author Share Posted September 25, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/125760-looking-to-create-a-slot-machine-help/#findComment-650342 Share on other sites More sharing options...
Snooble Posted October 1, 2008 Author Share Posted October 1, 2008 Thanks for the tip! Do you have any tips when it comes to learning flash? Any good tutorials to start with? Sam Quote Link to comment https://forums.phpfreaks.com/topic/125760-looking-to-create-a-slot-machine-help/#findComment-654577 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.