stop();
var user_name:String = "";
enterBtn.addEventListener(MouseEvent.CLICK, clickedHandler)
//input_txt是一個文字輸入框
function clickedHandler(e:MouseEvent):void
{
if( input_txt.text == "")
{
trace("文字框沒有輸入")
}
else
{
//送資料給user_name變數
user_name = input_txt.text;
trace("do some thing")
}
trace(user_name);
}
stop();
No comments:
Post a Comment