Combined Code
movieClip 4 {
}
instance of movieClip 4 {
onClipEvent (load) {
cf = 0;
pf = 0;
playin = 0;
}
onClipEvent (enterFrame) {
cf = _root._currentframe;
if (pf == cf) {
playin = 0;
} else {
playin = 1;
pf = cf;
}
}
onClipEvent (release) {
if (playin == 1) {
_root.stop();
} else {
_root.play();
}
}
onClipEvent (keyPress '<Left>') {
if (_root._currentframe == 1 || _root._currentframe == 2) {
_root.gotoAndStop(400);
} else {
_root.prevFrame();
_root.prevFrame();
}
}
onClipEvent (keyPress '<Right>') {
if (_root._currentframe == 399 || _root._currentframe == 400) {
_root.gotoAndStop(1);
} else {
_root.nextFrame();
_root.nextFrame();
}
}
onClipEvent (keyPress '<Space>') {
if (playin == 1) {
_root.stop();
} else {
_root.play();
}
}
}