作者biouio (赖大木)
看板Flash
标题Re: [问题] 关於按钮
时间Sat Dec 16 00:25:13 2006
※ 引述《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