|
|
onClipEvent (load) {
run = 0;
rep = 1;
}
onClipEvent (enterFrame) {
if (run == 1 & rep == 0){this.play();}
if (run == 1 & rep == 1){this.play();}
if (run == 0 & rep == 1){this.stop();}
if (run == 0 & rep == 0){this.gotoAndPlay(1);}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
if (run == 1) {
run = 0;
} else {
run = 1;
}
if (rep == 0){
rep = 1}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 40) {
if (rep == 1) {
rep = 0;
}
}
}
------------------------------------------
惃人家的代码拿来改了下,惃影片组件放入场景中,右键点击改组件,放入就可以了,按空格键播放和停止,在停止时按下方向键就能REREST |
|