Home » ActionScript 2.0

Create Unique GUID – AS2

18 February 2009 No Comment
Share on Facebook

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.

GET THE UPDATES VIA EMAIL

We don't share your email anywhere, grab our rss via feedburner