| Package | mx.utils |
| Class | public class UIDUtil |
| Inheritance | UIDUtil Object |
UIDUtil.createUID() method.
Note: I you have a dynamic object that has no [Bindable] properties
(which force the object to implement the IUID interface), Flex adds an
mx_internal_uid property that contains a UID to the object.
To avoid having this field
in your dynamic object, make it [Bindable], implement the IUID interface
in the object class, or set a
| Method | Defined by | ||
|---|---|---|---|
|
[static]
Generates a UID (unique identifier) based on ActionScript's
pseudo-random number generator and the current time.
| UIDUtil | ||
|
[static]
Returns the UID (unique identifier) for the specified object.
| UIDUtil | ||
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Returns the string representation of the specified object.
| Object | |
![]() |
Returns the primitive value of the specified object.
| Object | |
| createUID | () | method |
public static function createUID():StringGenerates a UID (unique identifier) based on ActionScript's pseudo-random number generator and the current time.
The UID has the form
"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
where X is a hexadecimal digit (0-9, A-F).
This UID will not be truly globally unique; but it is the best we can do without player support for UID generation.
ReturnsString —
The newly-generated UID.
|
| getUID | () | method |
public static function getUID(item:Object):StringReturns the UID (unique identifier) for the specified object. If the specified object doesn't have an UID then the method assings one to it. If a map is specified this method will use the map to construct the UID. As a special case, if the item passed in is null, this method returns a null UID.
Parametersitem:Object — Object that we need to find the UID for.
|
String —
The UID that was either found or generated.
|
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/2/langref/mx/utils/UIDUtil.html
Comments
Rambo 007 said on Dec 28, 2006 at 8:27 PM :