- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
var dictionary:Dictionary = new Dictionary(true);
var a:Sprite = new Sprite();
dictionary[a] = new Object();
trace(dictionary[a]); //Outputs [object Object]
a = null; //Clear reference to the Sprite.
trace(dictionary[a]); //Outputs undefined
expl 26.04.2011 20:33 # 0