MMO-game : PHP vs AS2

Ive been working on a virtual chat-room where you walk around with your avatar.

After having created a class (in AS2) that takes care of the creation of all the avatars, I also included the code for how they should navigate.

Since it is a click-n-walk type of game, this navigation-code becomes pretty big.

But now I figure I should probably have coded a navigation-function in PHP instead, that all the different avatars can call.

What course do you take when implementing the navigation-code in a MMO? What parts should be programmed in AS, and what parts should be programmed in PHP?

Everything that has to do with actions should be programmed in AS. Everything that needs to sent over via the net to other players should be done via PHP.

So… PHP should handle that… Whenever a person clicks a certain tile. it sends information out to let everyone know that you are moving to a specific location… that specific tile. Then it will gather that information and make that character move. this is where AS comes in. Making the character move as per commands issued by yourself.