Packagemx.utils
Classpublic class DescribeTypeCache
InheritanceDescribeTypeCache Inheritance Object

DescribeTypeCache is a convenience class that is used to cache the return values of 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

mx.utils.DescribeTypeCacheRecord


Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
  
[static] Calls flash.utils.describeType() for the first time and caches the return value so that subsequent calls return faster.
DescribeTypeCache
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
[static] registerCacheHandler lets you add function handler for specific strings.
DescribeTypeCache
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Method Detail
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.

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