2010-09-29 62 views

回答

1

這應該這樣做。 (雖然我的AS3是有點生疏了。)

textbox.addEventListener(FocusEvent.FOCUS_IN, clearBox); 

function clearBox(e:FocusEvent){ 
    textbox.setText(""); 
} 
3

試試這個代碼

txtMessage.addEventListener(FocusEvent.FOCUS_IN, clearBox); 
    function textclearBox(FocusEvent) 
    { 
    txtUser.text="";//To Clear the Text Box 
    } 
1

重要:用戶名是影片剪輯,這MovieClip的裏面我有文本字段這名字是TXT。

userName.addEventListener(FocusEvent.FOCUS_IN, clearBox); 
function clearBox(evt:FocusEvent):void 
{ 
    userName.text=""; 
} 
相關問題