stop(); //停止
_root.ss.xx1.onRollOver=function(){ //在主场景中的“ss”元件里的“xx1”元件添加按钮触及函数
_root.onEnterFrame=function(){ //主场景进入侦函数处理
_root.aa._x+=(1179-_root.aa._x)*0.2; //主场景的“aa”元件的X坐标=主场景“aa”元件+(1179-主场景“aa”元件的X坐标)*0.2
}
this._alpha=50; //这个元件的透明值设为“50”
};
_root.ss.xx1.onRollOut=function(){ //在主场景中的“ss”元件里的“xx1”元件添加按钮触及函数
this._alpha=100; //这个元件的透明值设为“100”
};
_root.ss.xx2.onRollOver=function(){ //在主场景中的“ss”元件里的“xx2”元件添加按钮触及函数
_root.onEnterFrame=function(){ //主场景进入函数侦处理
_root.aa._x+=((1179-179)-_root.aa._x)*0.2; // _root.aa._x= _root.aa._x+((1179-179)-_root.aa._x)*0.2上面有类似解释就不说了..
}
this._alpha=50; //这个元件透明值为“50”
}
_root.ss.xx2.onRollOut=function(){ //同上同理
this._alpha=100; //“alpha用来设透明值的
};
_root.ss.xx3.onRollOver=function(){ //接下来的与上面相同
_root.onEnterFrame=function(){
_root.aa._x+=((1179-179*2)-_root.aa._x)*0.2;
}
this._alpha=50;
}
_root.ss.xx3.onRollOut=function(){
this._alpha=100;
};
_root.ss.xx4.onRollOver=function(){
_root.onEnterFrame=function(){
_root.aa._x+=((1179-179*3)-_root.aa._x)*0.2;
}
_root.ss.xx4._alpha=50;
}
_root.ss.xx4.onRollOut=function(){
this._alpha=100;
};
_root.ss.xx5.onRollOver=function(){
_root.onEnterFrame=function(){
_root.aa._x+=((1179-179*4)-_root.aa._x)*0.2;
}
this._alpha=50;
};
_root.ss.xx5.onRollOut=function(){
this._alpha=100;
};
_root.ss.xx6.onRollOver=function(){
_root.onEnterFrame=function(){
_root.aa._x+=((1179-179*5)-_root.aa._x)*0.2;
}
this._alpha=50;
}
_root.ss.xx6.onRollOut=function(){
this._alpha=100;
};//函数结束
取消
评论