Packageorg.spicefactory.lib.util
Classpublic class WeakReference
InheritanceWeakReference Inheritance Object

Wraps a weakly referenced instance. Uses a flash.utils.Dictionary with the wrapped instance as the single key internal. If this weak reference is the only reference left, it is eligible for garbage collection.



Public Properties
 PropertyDefined By
  value : Object
[read-only] The wrapped instance.
WeakReference
Public Methods
 MethodDefined By
  
WeakReference(reference:Object)
Creates a new instance.
WeakReference
Property Detail
valueproperty
value:Object  [read-only]

The wrapped instance. The property is null if the wrapped instance was already garbage collected.


Implementation
    public function get value():Object
Constructor Detail
WeakReference()Constructor
public function WeakReference(reference:Object)

Creates a new instance.

Parameters
reference:Object — the instance to wrap weakly referenced