The only way to achieve that is to use a socket server and to have the
possibility to run it somewhere (some providers offer that). You have
plenty of choice regarding which server you need and some are free, some
aren't.
To name a few: Flash Data Services, Red5 (if I remember well), Oregano,
Offbeat, ElectroServer, WebOrb...
Regards
Julien V.
Millie Niss a écrit :
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
_______________________________________________
[email protected]
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
_______________________________________________
[email protected]
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