主题:  复选框的问题

长刀

职务:普通成员
等级:1
金币:0.0
发贴:18
注册:2001/10/30 22:01:06
#12001/12/18 21:28:46
on (release) {
    dd=!dd;
    trace (dd);
    if (dd=true) {
        setProperty (_root.aa, _alpha, 100);
    } else {
        setProperty (_root.aa, _alpha, 0);
    }
}
//dd is a Boolean,aa is a MC,this is a Button,what's wrong?i need a check box.



janlay

职务:管理员
等级:7
金币:28.0
发贴:7244
注册:2003/11/27 18:07:11
#22001/12/19 17:26:50
//bounding as with _root.aa:
onclipevent(load){
//initialize it true
checked=true;
this._alpha=100;
}

//bounding as with the button:
onrelease(){
if (_root.aa.checked) {
_root.aa.checked=false;
_root.aa._alpha=100;
} else {
_root.aa.checked=true;
_root.aa._alpha=0;
}
}



困龙在天

职务:普通成员
等级:7
金币:10.0
发贴:2942
注册:2001/5/17 23:14:57
#32001/12/19 20:41:43
其实要是复选框不多,用不同的关键帧,
使用跳转效果也可以做到。


[url]http://sintian.chinaccd.net[/url]