views:

26

answers:

2

Is it possible to call a client method from server using AMFPHP?

For example if there is a Flash chat app with PHP backend. Everytime a new chat is logged from one of the clients, server would call update in all of the clients?

+1  A: 

You are thinking it backwards. Server doesn't update the client on time or event basis. Client need to send request periodically, and server responds.

dd
Why not, media servers use this approach typically.
Jordan
Maybe there is atleast Remote Shared Object possibilities?
Jordan
A: 

In order for the server to broadcast events to your flash client, it would have to have a constant connection, which is not how amfphp works. Your best bet would be to either set the client to periodically check amfphp for changes and act accordingly, or to look into a java-based server like Flash Media Server or SmartFoxServer.

producerism