Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
ITransientDeferredInstance

Package | mx.core
Interface | public interface ITransientDeferredInstance extends IDeferredInstance
Implementors | DeferredInstanceFromClass, DeferredInstanceFromFunction

Language Version : | ActionScript 3.0

Product Version : | Flex 4

Runtime Versions : | Flash Player 10, AIR 1.5

The ITransientDeferredInstance interface extends IDeferredInstance and adds the ability for the user to reset the deferred instance factory to its initial state (usually this implies releasing any known references to the component, such as the setting the owning document property that refers to the instance to null). This additional capability is leveraged by the AddItems states override when the desired behavior is to destroy a state-specific element when a state no longer applies. The Flex compiler uses the same automatic coercion rules as with IDeferredInstance.

See also

mx.states.AddItems
mx.core.IDeferredInstance

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | getInstance():Object Creates an instance Object from a class or function, if the instance does not yet exist. | IDeferredInstance
|  | reset():void Resets the state of our factory to its initial state, clearing any references to the cached instance. | ITransientDeferredInstance

Method Detail

reset | () | method

`public function reset():void`

Language Version : | ActionScript 3.0

Product Version : | Flex 4

Runtime Versions : | Flash Player 10, AIR 1.5

Resets the state of our factory to its initial state, clearing any references to the cached instance.

Wed Nov 15 2017, 09:50 AM +01:00