From: <mod...@li...> - 2004-12-06 17:38:33
|
Yes, I'm working on a Flash ActionScript 2 client library. I hope to have it together in the "not-too-distant future." In the meantime, if you would like to try using the existing flash_pubsub code, do something like: // setup tunnel var tunnelUrl = "/who/anonymous/s/" + Math.random().toString().substring(2,9) + "/kn_journal"; var tunnel = new pubSubSocket ("yourhost", 8080); var message = new pubSubData("flash"); message.setFromPath(tunnelUrl); message.setMethod("route"); tunnel.onData = function (msg) { // handle message ... trace("[" + msg.split("\r\n") + "]"); } tunnel.send(message); // send subscription var subscribeRequest = new LoadVars(); var subscribeReceiver = new LoadVars(); subscribeRequest.kn_from = "/what/imagepublish"; subscribeRequest.kn_to = tunnelUrl; subscribeRequest.do_method = "route"; subscribeRequest.kn_response_format = "flash"; subscribeRequest.sendAndLoad("http://yourhost:8080/kn", subscribeReceiver); -Patrick Thompson > Hi Danda, > > Funny you should mention that! Someone is actively working on it now. > Patrick, would you like to reply? JP > > > --- mod-pubsub-developer-admin@li... wrote: > >> Hi, >> >> I"m about to attempt to create a flash client for subscribing (no >> publishing necessary) to a pubsub server. >> >> I found the "0.1" code release of flash_pubsub in the mod_pubsub >> distro. I was wondering if any more work has been done on this since >> the library was released. >> >> regards, >> >> Dan Libby |