Re: [問題] 關於按鈕

看板Flash作者 (賴大木)時間19年前 (2006/12/16 00:07), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/7 (看更多)
※ 引述《sheauren (瞇瞇)》之銘言: : ※ 引述《biouio (賴大木)》之銘言: : : 請問讓按鈕執行一次之後就關閉嗎? : : 就是按第一次按鈕有反應, : : 然後關閉按鈕, : : 若再按第二次第三次都沒有反應 : : 請問這該怎麼做呢? : : 我只有找到Button.enabled : : 但是不行捏 : : on (release) { : : myButton.enabled = false ; : : _root.gotoAndStop("a"); : : } 我這兩段反過來寫也不能耶~ : : 不知道這樣寫對嗎? : myButton.onPress=function(){ : trace("press!"); : delete this.onPress; : } 請問一下是這樣寫嗎? on (release) { _root.gotoAndStop("a"); myButton.onPress=function(){ trace("press!"); delete this.onPress; } } 我這樣寫,還是不行,有可能是哪裡出了問題嗎? 在問一下很蠢的問題~ 如果我的按鈕名稱是btn0 那是不是要寫成btn0Button.onPress=function() 謝謝回答. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.71.41.234
文章代碼(AID): #15WiXRYv (Flash)
討論串 (同標題文章)
本文引述了以下文章的的內容:
以下文章回應了本文
完整討論串 (本文為第 3 之 7 篇):
2
8
1
1
文章代碼(AID): #15WiXRYv (Flash)