日期:2013-12-07  浏览次数:20970 次

大家看看效果 :

http://bbs.flash8.net/bbs/UploadFile/2005-5/200551912126735.swf


代码如下:

btn1.onPress=function(){//261 285 309
onEnterFrame=function(){
if(btn2._y<241){
btn2._y+=60;
}
if(btn2._y<261){
btn2._y+=10;
}
if(btn3._y<265){
btn3._y+=60;
}
if(btn3._y<285){
btn3._y+=10;
}
if(btn4._y<289){
btn4._y+=60;
}
if(btn4._y<309){
btn4._y+=10;
}
}
}
btn2.onPress=function(){
//44 68 92
onEnterFrame=function(){
if(btn2._y>65){
btn2._y-=60;
}
if(btn2._y>45){
btn2._y-=10;
}
if(btn3._y<265){
btn3._y+=60;
}
if(btn3._y<285){
btn3._y+=10;
}
if(btn4._y<289){
btn4._y+=60;
}
if(btn4._y<309){
btn4._y+=10;
}
}
}
btn3.onPress=function(){//44 68 92
onEnterFrame=function(){
if(btn2._y>65){
btn2._y-=60;
}
if(btn2._y>45){
btn2._y-=10;
}
if(btn3._y>88){
btn3._y-=60;
}
if(btn3._y>68){
btn3._y-=10;
}
if(btn4._y<289){
btn4._y+=60;
}
if(btn4._y<309){
btn4._y+=10;
}
}
}
btn4.onPress=function(){//44 68 92
onEnterFrame=function(){
if(btn2._y>65){
btn2._y-=60;
}
if(btn2._y>45){
btn2._y-=10;
}
if(btn3._y>88){
btn3._y-=60;
}
if(btn3._y>68){
btn3._y-=10;
}
if(btn4._y>112){
btn4._y-=60;
}
if(btn4._y>92){
btn4._y-=10;
}
}
}