Re: Flash and pubsub...

"jos" <[email protected]>
Newsgroups gmane.comp.web.mod-pubsub.devel
Organization the organization
Message-ID <017901c31d79$90dc2260$6601a8c0@jos>
Humm. Ok this and your previous message really help, thanks! For the
kn_apps/flashdemo1 and /flashdemo2 it would be helpful to have the .fla's as
well as the .swf's - just a note for future distros...

Just a quick note - i've not done too much playing with this yet - my
partner and i just had a kid a couple of weeks ago, and my "playing with the
computer" time is fairly low on the list of things to do right now ;)

So, with that out of the way, here are some of my quick observations...

I think (think) when i start playing with the flashTunnel in python, i might
look at a way of 'escaping' the null's except for the "end of message" null
byte. I've written a base64 en/decoder for flash, which might be a way to
go, with the caveat that it slows down the process of receiving the data. I
just think that trying to "recombine" messages which are split by random
null bytes might be more difficult then encoding them at the server. Prehaps
a less "heavy" encoding then base64'ing the whole message is an more
practicle approach. Anyway, that's just what i'm thinking right now, before
even really setting out...

I'm also interested in the idea of the flash/javascript "gateway", allowing
flash to use the XMLsocket object on ports lower then 1024 is very cool. I
will look at the two examples for more info/understanding (again, including
the .fla's in the .tar file is important). It seems that it might currently
be using the FScommand style to pass method/function calls from Flash to
Javascript. This is not idea as it is not supported on all browsers. I'd
look at using the getURL("javascript:function(arg1,arg2)"); style, which _i
think_ is cross-browser... but that really needs some
testing/experimentation.

Thanks for the replys, going to try to get some "computer time" in today or
tomorrow!

jos (sourceforge id: hyakugei)

----- Original Message -----
From: "Adam Rifkin" <[email protected]>
Subject: RE: [Mod-pubsub-developer] Flash and pubsub...
By the way, (just fyi) the mod_pubsub distribution does include
two examples of using the JavaScript Client Library to do networking
in conjunction with Flash for doing rendering:

   mod_pubsub/kn_apps/flashdemo1/
   mod_pubsub/kn_apps/flashdemo2/

This style of JavaScript/Flash hybrid is particularly useful in
two scenarios:

1. Whenever you need SSL to encrypt the channel.
(XMLSocket requires NUL-termination, which prevents SSL usage.)

2. Whenever you need to use a port under 1000.
(XMLSocket requires a port greater than 1000.)




-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java
code to make your application fit in a relational database is painful, 
don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.