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.
| 







![[Google]](http://www.designscripting.com/wp-content/plugins/easy-adsenser/google-dark.gif)