PDA

View Full Version : Where to begin(PHP and Flash)


Danny Shumway
02-20-2008, 02:31 AM
I have a few different ideas for multiplayer realtime flash games played online. I've looked around online, but most of the tutorials I find suggest different methods and languages. I would really like to use PHP for this, and found a really great tutorial about it. My question though -

Can I make a real time game with just PHP and Actionscript, or do I need to include MySQL. If so, does anyone know any really good tutorials or can show me how to set it up with my website? I am using the host www.byethost.com which claims support for pretty much any coding. The most important thing is that the connection runs very quickly even when using a dial up connection. Other than that pretty much the only thing I want to do is hold variables in my PHP object. My idea was to use this type of coding-

onEnterFrame = function(){
//After establishing a connection
phpVar = flashVar;
OtherFlashVar = phpVar2;
//etc...
}

Is this possible? If I'm going about this wrong please tell me.

Thanks!

sneakyimp
02-22-2008, 09:54 PM
Something like this is possible, although dialup is not ideal. It's also quite involved. I've written some code that attempts to make it easier (see the link in my signature) but it's only valid for Actionscript 2. I'm in the process of upgrading it to AS3 now.

Danny Shumway
02-23-2008, 11:28 PM
Thank you so much, I'll check that out. I only know actionscript 2.0, and I really haven't thought much about learning 3.0 so it's fine. There are a lot of tutorials on this, but they seem to disagree about the way to do it. A good example of what I'm trying to do can be found at www.kongregate.com in the real time multiplayer games found there. They work well enough on my dialup, so I'm trying to find out how they set up their code. Thank you so much though.

a5c3ndant
06-05-2008, 05:54 PM
Something like this is possible, although dialup is not ideal. It's also quite involved. I've written some code that attempts to make it easier (see the link in my signature) but it's only valid for Actionscript 2. I'm in the process of upgrading it to AS3 now.

hi sneakyimp, i can only find the latest version of flashMOG which is for ActionScript 3, can i have links to earlier versions for ActionScript 2?

sneakyimp
06-05-2008, 07:46 PM
I just updated it yesterday ;)

The only version that supports AS2 is here:
http://flashmog.net/src/FlashMOG_0.1.2.zip
http://flashmog.net/src/FlashMOG_0.1.2.tgz