Re: [問題] c語言程式求助
沒有人寫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
→
10/14 17:44, , 1F
10/14 17:44, 1F
→
10/14 17:46, , 2F
10/14 17:46, 2F
討論串 (同標題文章)