Packageimpression.utilities
Classpublic class GUID
InheritanceGUID Inheritance Object

The GUID class provides support for creating globally unique identifiers.

GUIDs generated by this class are RFC 4122 Version 4 conformant, consisting of random numbers, the version number, and two reserved bits. These GUIDs have the form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxx where x is any hexidecimal digit and y is (randomly) one of 8, 9, A, or B.



Public Methods
 MethodDefined By
  
newGUID(format:String = D):String
[static] Returns a new GUID.
GUID
Public Constants
 ConstantDefined By
  EMPTY : String = 00000000-0000-0000-0000-000000000000
[static] Defines an empty GUID.
GUID
Method Detail
newGUID()method
public static function newGUID(format:String = D):String

Returns a new GUID.

Parameters

format:String (default = D) — Optional character specifying the format of the result. format can be one of the following values:
ValueResult
DDefault value. 32 digits separated by hyphens. Characters are uppercase.
d32 digits separated by hyphens. Characters are lowercase.
N32 digits. Characters are uppercase.
n32 digits. Characters are lowercase.
B32 digits separated by hyphens, enclosed in braces. Characters are uppercase.
b32 digits separated by hyphens, enclosed in braces. Characters are lowercase.
P32 digits separated by hyphens, enclosed in parentheses. Characters are uppercase.
p32 digits separated by hyphens, enclosed in parentheses. Characters are lowercase.

The GUID is RFC 4122 Version 4 conformant.

Returns
String
Constant Detail
EMPTYConstant
public static const EMPTY:String = 00000000-0000-0000-0000-000000000000

Defines an empty GUID.

The GUID.EMPTY constant defines a GUID with no value.