[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.Combined Code (1.3 KiB) ●
movieClip 36 {
}
button 39 {
on (press) {
m = 1;
mouseHit = 1;
}
on (release, releaseOutside, rollOut) {
delete m;
delete mouseHit;
}
}
movieClip 43 {
}
instance seekbar of movieClip 43 {
onClipEvent (enterFrame) {
if (_root._ymouse >= 360) {
this._visible = true;
} else {
this._visible = false;
}
trace(_root.playTimer);
if (second == null) {
second = 0;
min = 0;
ten = 0;
}
second = Math.round(_root._currentframe / 25);
ten = Math.floor(second / 10);
min = Math.floor(ten / 6);
_root.playTimer = min + ':' + (ten - min * 6) + '' + (second - ten * 10);
formula = Math.ceil(_root._xmouse * _root._totalframes / 550);
if (_root.seekbar.head.hitTest(_root._xmouse, _root._ymouse, true) && _root.seekbar.m == 1) {
_root.seekbar.mouseHit = 1;
} else {
if (_root.seekbar.head.hitTest(_root._xmouse, _root._ymouse, false)) {
delete _root.seekbar.mouseHit;
}
}
if (_root.seekbar.mouseHit == 1) {
_root.gotoAndStop(formula);
_root.seekbar.head._x = _root._xmouse;
stopAllSounds();
delete playMusic;
} else {
if (playMusic == null) {
_root.gotoAndPlay(_root._currentframe);
playMusic = 1;
}
_root.seekbar.head._x = _root._currentframe * 550 / (_root._totalframes - 1);
}
}
}