forked from: Object と Dictionary
/**
* Copyright o8que ( http://wonderfl.net/user/o8que )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/qrdh
*/
// forked from bkzen's Object と Dictionary
package {
import flash.display.Sprite;
import com.actionscriptbible.Example;
import flash.utils.Dictionary;
public class FlashTest extends Example {
public function FlashTest() {
// write as3 code here..
var o:Object = {};
var d:Dictionary = new Dictionary();
var k:String = "a";
var k2:String = "a";
o[k] = "ok";
d[k] = "ok";
trace("o['a']: " + o["a"]);
trace("d['a']: " + d["a"]);
trace("o[k]: " + o[k]);
trace("d[k]: " + d[k]);
trace("o[k2]: " + o[k2]);
trace("d[k2]: " + d[k2]);
}
}
}