Questions: Flash Game Server With Only PHP

Hi,

This post belongs in 2 sections it seems (Server-Side and Flash as2 and below). If a mod wants to move it, please do.

I started making an MORPG as a personal challenge using Flash (as2), a MySQL database and PHP only. I am trying to make all the server files with PHP. They will process the people moving, change information in the database and send the database information to the Flash client file. To be clear: the client file will launch a PHP file when somebody presses the up key for example or onClipEvent (enterFrame) the peoples’ locations will be refreshed with a PHP script.

Note: This game is grid based so the users’ positions are exact.

I have a few questions that I would greatly appreciate being answered.

  1. Is my idea possible?
  2. What flash command do I use to “_POST” variables?
  3. What method should I use to get variable values from the PHP files?

The following questions are more specific and I might not need to know the answers for quite a while. Don’t worry about answering these unless the answer is very obvious to you.

  1. How would I accomplish showing a user attacking?
  2. How would I make it so the enemies move automatically?
  3. How would I make a chat system.