[Red5] UUIDs in ActionScript

Walter Tak walter at waltertak.com
Tue Nov 13 13:47:23 PST 2007


>I know this isn't specifically Red5 related but I need this for the Red5 
>app I'm building.  I'm writing a flash application and corresponding Red5 
>java app that pass events back
>and forth to each other (using ActionScript NetConnection.call and Red5 
>IServiceCall stuff.  I'd like to pass a Unique Identifier back and forth 
>for each event to aid in debugging.
>In prior systems I've gotten used to using RFC 4122 UUIDs (the stuff that 
>Java and MSFT use for this).


>Generating a version 4 UUID in Red5 is trivial (java.util.UUID), but there 
>doesn't seem to be a correspondingly easy way to generate RFC-compliant 
>UUIDs in flash, and I want
>the event originator (which is Flash) to set the UUID.  Does anyone know of 
>a library or code out there that does this in ActionScript (if not, I'm 
>happy to share whatever I end
>up creating)?

>Thanks in advance,

Can't you have your Flash client initiate a connect to your Red5 server and 
then have the Red5 server generate a UUID for the client ?

In fact I often have our server generate some sort of UID for an unknown/new 
client, then let the client store the UID in it's local shared object (aka 
flash cookie) so we know who is connecting the next time the client connects 
(and then passes his UID from his local shared object as an identifier).

Walter


-- 
I am using the free version of SPAMfighter for private users.
It has removed 13730 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len





More information about the Red5 mailing list