Packagecom.addicted2flash.util
Classpublic class WeakReference
ImplementsIDisposable

Flash based interpretation of an weak referenced object (influenced by http://www.bigroom.co.uk/blog/create-your-own-weak-references-in-actionscript-3). A weak reference is a reference that does not protect the referent object from collection by a garbage collector. An object referenced only by weak references is considered unreachable (or "weakly reachable") and so may be collected at any time. Weak references are used to prevent circular references and to avoid keeping in memory referenced by unneeded objects.



Public Properties
 PropertyDefined by
  reference : *
[read-only] return the referenced object.
WeakReference
Public Methods
 MethodDefined by
  
WeakReference(value:*)
Create a new WeakReference.
WeakReference
  
dispose():void
free memory for garbage collection.
WeakReference
  
toString():String
String representation of WeakReference.
WeakReference
Property detail
referenceproperty
reference:*  [read-only]

return the referenced object.

Implementation
    public function get reference():*
Constructor detail
WeakReference()constructor
public function WeakReference(value:*)

Create a new WeakReference.

Parameters
value:* — referenced object
Method detail
dispose()method
public function dispose():void

free memory for garbage collection.

toString()method 
public function toString():String

String representation of WeakReference.

Returns
String — String representation of WeakReference