原创 AS3中,二進制轉成十進制和八進制、十六進制相互轉換

var a:Number=1234; trace(a.toString(2))//10011010010 trace(a.toString(8))//2322 trace(a.toString(16))//4d2   var