[Red5] UUIDs in ActionScript

Thijs Triemstra | Collab lists at collab.nl
Tue Nov 13 14:06:00 PST 2007


Flex has the UIDUtil class: http://livedocs.adobe.com/flex/2/langref/ 
mx/utils/UIDUtil.html

Thijs


On Nov 13, 2007, at 10:47 PM, Walter Tak wrote:

>> 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
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org




More information about the Red5 mailing list