red*_*ory 6 actionscript dictionary object
Actionscript中对象和字典之间究竟有什么区别?
var obj:Object = new Object();
obj.something = "something";
var dict:Dictionary = new Dictionary();
dict.something = "something";
trace(obj.something, dict.something);
Run Code Online (Sandbox Code Playgroud)
跟踪声明似乎相同......
Object()使用字符串作为键,而Dictionary()使用对象作为键.
请参阅http://gskinner.com/blog/archives/2006/07/as3_dictionary_.html