actionscript Json 写法和 flash 位移实现整形转化

package code
{
import flash.display.MovieClip;
public class MainTimeline extends MovieClip
{
public function MainTimeline(){
//var tmp:Array=["a":7,"b":8];
//trace(tmp["a"]>>0);
//trace('--------------');
//trace(7>>1);

var myobj:Object = new Object();
myobj.prop1="name";
trace(myobj["prop1"]);

trace(7>>0);
trace(1>>0);

var myObject:Object = {"a":"1","b":"2"};
trace(myObject["a"]);
trace("-----------------------");
var i:int=7;
trace(i>>1);
trace(i<<1);
}
}
}

actionscript json 写法

  

你可能感兴趣的:(actionscript)