Home » ActionScript 2.0

Create Unique GUID – AS2

18 February 2009 No Comment

In my project there was a need to create unique alpha numeric value + to act as a substitute for session variables.

I serached internet and got this Class GUID.

It has one drawback that it always create GUID of length 40. So i made some change to generate GUID of specified length.

Version of Actionscript:
Actionscript 2.0

Here is the usage of the Class GUID

trace(GUID.create(40))

Note:
Make sure that GUID resides in the same folder.

VN:F [1.7.7_1013]
Rating: 6.0/10 (1 vote cast)
VN:F [1.7.7_1013]
Rating: +1 (from 1 vote)
Create Unique GUID - AS26.0101
Translate this post
        
        
        
        
  

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.