Packagecom.yworks.support
Classpublic class WeakReference
InheritanceWeakReference Inheritance Object

This class allows to create weak references to arbitrary instances. It uses a Flex Dictionary to create the weak reference.



Public Properties
 PropertyDefined By
  target : Object
Returns the object that was set as the target of this weak reference, or null if the object has been garbage collected.
WeakReference
Public Methods
 MethodDefined By
  
WeakReference(obj:Object)
Creates a weak reference to the passed instance.
WeakReference
Property Detail
targetproperty
target:Object

Returns the object that was set as the target of this weak reference, or null if the object has been garbage collected.


Implementation
    public function get target():Object
    public function set target(value:Object):void
Constructor Detail
WeakReference()Constructor
public function WeakReference(obj:Object)

Creates a weak reference to the passed instance.

Parameters
obj:Object