Packageorg.spicefactory.lib.util
Classpublic class WeakReference

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