[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Instance of Symbol 63 MovieClip "laineinst" in Frame 1 (618 B)
onClipEvent (load) {
stop();
numframes = 29;
frame = 0;
x = 0;
auto = 0;
}
onClipEvent (enterFrame) {
if (auto == 1) {
frame = frame + 0.5;
}
frame = frame % numframes;
gotoAndStop(Math.round(frame));
}
onClipEvent (mouseDown) {
_root.click = 1;
x = _root._xmouse;
}
onClipEvent (mouseUp) {
_root.click = 0;
}
onClipEvent (mouseMove) {
if (_root.click == 1) {
frame = frame + ((_root._xmouse - x) / 10);
if (frame < 0) {
frame = frame + numframes;
} else {
frame = frame % numframes;
if (frame == 0) {
frame = 1;
}
}
x = _root._xmouse;
gotoAndStop(Math.round(frame));
}
}
Instance of Symbol 66 MovieClip in Frame 1 (107 B)
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.click == 1) {
gotoAndStop (2);
}
}
Instance of Symbol 68 MovieClip in Frame 1 (107 B)
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.click == 1) {
gotoAndStop (2);
}
}
Symbol 71 Button (58 B)
on (press) {
laineinst.auto = (laineinst.auto + 1) % 2;
}