csdstudio
12-06-2007, 10:24 PM
I've been using Remoting for years and live by it, but I've recently wondered if a connection can be created, and then have the server decide when IT wants to communicate with Flash. As far as I know it's only Flash->Remoting->CF->Immediately back to Flash when process completes.
Say I have a program where a user uploads a video, then flash communicates with the server via remoting and instructs the server where the file is, it's name etc. The server will then step aside and convert the video to FLV via a serverside COM object. This could take minutes so I want the server to notify the GUI when it has completed WITHOUT the GUI having to poll the server at set intervals waiting for it to complete.
I've done this in the past by having flash check with the server once every second for a status, but the server cannot talk with flash without flash talking first and requesting something.
An example of this would be ExternalInterface, where at anytime Javascript can call and execute a method in flash.
Rob
Say I have a program where a user uploads a video, then flash communicates with the server via remoting and instructs the server where the file is, it's name etc. The server will then step aside and convert the video to FLV via a serverside COM object. This could take minutes so I want the server to notify the GUI when it has completed WITHOUT the GUI having to poll the server at set intervals waiting for it to complete.
I've done this in the past by having flash check with the server once every second for a status, but the server cannot talk with flash without flash talking first and requesting something.
An example of this would be ExternalInterface, where at anytime Javascript can call and execute a method in flash.
Rob