I have a Flex/AIR application communicating with a PHP server application. Recently my client requested real-time-like connectivity between the applications to replace what we c
I'm no flex developer so I'm not going to provide you some code to help with this situation but I can provide you some ideas of how you would go about aproaching this.
Instead of looking for PHP to push to Flex I would setup your Flex code to constantly probe the PHP for new happenings. You can probe every second if you can be sure that the server will respond quick enough. Alternatively something that probes ever 5 seconds would still be real time.
If PHP is sending DATA back to your flex app then I would make sure it sends IDs with the data so that you can use that ID in your flex app to know what was the last data returned. Each time you probe PHP send the last ID you recieved that way telling PHP only to send new DATA after that ID. Many a time you will probe and there wont be anything comming back but its better than recieving the same data over and over again and wasting bandwidth and proccesses figuring out if the data is already shown on screen.