一、快进快退代码:
kj_btn.onRelease=function(){
gotoAndPlay(_root._currentframe+10);
}
kt_btn.onRelease=function(){
gotoAndPlay(_root._currentframe-10);
}
二、图片拖动代码
on(press){
this.startDrag(true);
}
on(release, releaseOutside){
this.stopDrag();
}
on (press) {
//Start Dragging Movieclip Behavior
startDrag(this);
//End Behavior
}
on (release) {
//Stop Dragging Movieclip Behavior
stopDrag();
//End Behavior
} |