Is there any way to push information from a server side script (PHP) to a flash client, rather than having the Flash ask for it by calling a PHP page? I want to create a virtual world whose state will be maintained in a MySQL database.

Multiple users will be able to connect, view, and interact with the world.

I need a way for the view (flash client) seen by one user to know when something another user has done has changed the world. I could poll the server regularly with a setInterval, but that seems wasteful of bandwidth.

Most of the action in the world will be computed by the clients on their own; they just need to be informed when relatively rare events happen caused by other users. (The creatures who live in the world will keep moving around on their own according to a prescribed behavior, and will just need to be informed when someone does something to them.) Ideally, the creatures would do the same thing in all the users' views, but this would require constant back-and-forth communication with the server. I am debating whether to fake it by having them work independently (so that viewers won't really see the same world) except when they interact.

Millie Niss
[EMAIL PROTECTED]
http://www.sporkworld.org
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to