看板 C_and_CPP 關於我們 聯絡資訊
沒有人寫action script... 來插花... import mx.controls.Alert; import mx.controls.Button; import mx.controls.TextInput; private var weightkg:TextInput = new TextInput(); private var btn:Button = new Button(); private function init():void { btn.addEventListener(MouseEvent.CLICK,caculate); } private function caculate(event:MouseEvent):void { var weightb:Number = Number(weightkg.text); Alert.show("你的體重為" + weightkg.text + "公斤, 合" + weightb.toString() + "磅"); } 應該很多人看到會很眼熟... 這明明就是c#的偽裝吧~~~ (  ̄ c ̄)y▂ξ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.63.2.183
james732:as真的超像C#的...所以上手相當的容易 XD 10/14 17:44
legnaleurc:我一直以為它是 JavaScript 學 Java 的版本 orz 10/14 17:46