You can only push data "on demand" with Flash Remoting. You cannot control when you'll get the response from a remoting call... (you'll get the response as soon as the request is finished on the server). It is a request/response mechanism.
If you need to be able to push data from a server to a Flash client in REAL TIME, you'll need to open a socket connection on your flash client (with XMLSocket() object). On the server side, you'll need a socket server to handle those connections (for example Unity from www.moock.org). But, you'll have to handle the interaction between the socket server and your CFCs. For example, you could write some java class that will call your CFCs and return XML formatted data to your Flash client. So, it is possible, but it requires quite a lot of coding... In fact, the easiest way to do it is to use Flash Communication Server MX and it's remote Shared Objects (more info : http://www.macromedia.com/devnet/mx/flashcom/articles/whiteboard_3.html). On the server side, you would write the Flash Remoting ActionScript that will call your CFCs and populate a remote Shared Object. All the interaction with your CFCs are on the server side, between FlashCom and ColdFusion. As soon as the remote shared objects is modified on FlashCom server, all the Flash clients connected to this shared object will be automatically notified ("onSync" event). FlashCom hides all the complexity of the socket connection and notification mechanism. It's really great! Benoit Hediard www.benorama.com > -----Message d'origine----- > De : Frank Mamone [mailto:[EMAIL PROTECTED] > Envoy� : lundi 17 mars 2003 15:26 > � : CF-Talk > Objet : Re: Remoting... > > > I see what your trying to do do, but somewhere, something has to > poll to see > if an update has happenned. How does the CFC know if there was an > update? Do > you mean a DB update? > > BTW, it's a great question. Looking forward to other's responses. > > -Frank > > ----- Original Message ----- > From: "Tim Blair" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Monday, March 17, 2003 9:05 AM > Subject: Remoting... > > > > Evening all, > > > > When you make a call to createGatewayConnection() from within the Action > > Script, what happens? What I mean is, does Flash make a call to the CFC > > purely to check if it exists and then discards anything, or does it hold > > a reference to the new instance? > > > > What we'd like to do is PUSH data to the flash component, rather than > > PULL it from the server... We could set up a timer on the component to > > re-cal la function in a CFC every x seconds, but what we'd rather do is > > (somehow) have the CFC inform flash that an update has happened. > > > > As far as I can work out, it's not possible. Am I right in this > > thinking? > > > > Alternatively, is there a way around it? Say having flash call the CFC > > straight away (once) and the CFC will wait until an update has occurred, > > then return the new data to Flash, whereupon Flash will update and call > > the CFC again, which will wait etc etc etc... > > > > How about creating an instance of a java class on the CFC call and > > storing that in a global scope somewhere, which does nothing but wait() > > until an update has occurred, whereupon CF will call a method on that > > java object to break out of the wait statement, so the initial CFC call > > will then complete etc... > > > > Would that work? I sure there must be an easier way... > > > > Pah, what a thing to be doing on a Monday. > > > > Cheers, > > > > Tim. > > > > > > ------------------------------------------------------- > > OUR NEW SITE IS NOW LIVE > > Visit our new website at http://www.rawnet.com/ and > > race around the beautiful Bracknell streets at http://xmas.rawnet.com/ > > ------------------------------------------------------- > > Tim Blair > > Web Application Engineer, Rawnet Limited > > Direct Phone : +44 (0) 1344 393 441 > > Switchboard : +44 (0) 1344 393 040 > > ------------------------------------------------------- > > This message may contain information which is legally privileged and/or > > confidential. If you are not the intended recipient, you are hereby > > notified that any unauthorised disclosure, copying, distribution or use > > of this information is strictly prohibited. Such notification > > notwithstanding, any comments, opinions, information or conclusions > > expressed in this message are those of the originator, not of rawnet > > limited, unless otherwise explicitly and independently indicated by an > > authorised representative of rawnet limited. > > ------------------------------------------------------- > > > > > > > > > > > > -- > > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] For > > human help, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

