Package | mx.utils |
Class | public class DescribeTypeCache |
Inheritance | DescribeTypeCache ![]() |
flash.utils.describeType()
so that calls made subsequent times return faster.
This class also lets you set handler functions for specific value types.
These will get called when the user tries to access these values on
the DescribeTypeCacheRecord
class.
See also
Method | Defined By | ||
---|---|---|---|
[static]
Calls flash.utils.describeType() for the first time and caches
the return value so that subsequent calls return faster. | DescribeTypeCache | ||
![]() |
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 | |
[static]
registerCacheHandler lets you add function handler for specific strings. | DescribeTypeCache | ||
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
![]() |
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
Returns the primitive value of the specified object. | Object |
describeType | () | method |
public static function describeType(o:*):mx.utils:DescribeTypeCacheRecord
Calls flash.utils.describeType()
for the first time and caches
the return value so that subsequent calls return faster.
Parameters
o:* — Can be either a string describing a fully qualified class name or any
ActionScript value, including all available ActionScript types, object instances,
primitive types (such as uint ), and class objects.
|
mx.utils:DescribeTypeCacheRecord — Returns the cached record.
|
See also
registerCacheHandler | () | method |
public static function registerCacheHandler(valueName:String, handler:Function):void
registerCacheHandler lets you add function handler for specific strings.
These functions get called when the user refers to these values on a
instance of DescribeTypeCacheRecord
.
Parameters
valueName:String — String that specifies the value for which the handler must be set.
| |
handler:Function — Function that should be called when user references valueName.
|