按纽事件

      游戏作品 2005-6-22 21:32
哈,flashmx帮助文档真是要细细品味

on(release){
    
    _root.mc._visible = !_root.mc._visible;
}

//这段代码真简单
你也可以用这个笨方法
设置一个变量,当第一次击把这个变量为真,再击就假,这中方法我都用得比较多,哈哈,

另:
一次按就用
on (press) {
    _root.image._visible=true;
}
on (release) {
    _root.image._visible=false;
}
//这虽然是基本知识,吃透了可以做很多工了,比如整站的按纽,等...
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}