Frame 1
_root._xscale = 145;
_root._yscale = 145;
Instance of Symbol 16 MovieClip "seekbar" in Frame 1
onClipEvent (mouseDown) {
if (doubleClick >= 2) {
delete doubleClick;
} else {
doubleClick++;
}
}
onClipEvent (load) {
movie = new Color(_root);
shade = new Object();
value = 50;
shade = {ra:value, rb:"0", ga:value, gb:0, ba:value, bb:"0", aa:"100", ab:"0"};
noshade = {ra:"100", rb:"0", ga:"100", gb:0, ba:"100", bb:"0", aa:"100", ab:"0"};
status = "";
_root.seekbar._visible = false;
}
onClipEvent (enterFrame) {
if (status == "Stop") {
movie.setTransform(shade);
} else if (status == "Play") {
movie.setTransform(noshade);
}
if (statusTimer >= 50) {
status = "";
delete statusTimer;
} else {
statusTimer++;
}
_root.tests = doubleClickTimer;
if (doubleClick >= 2) {
if (movie_stop == true) {
if (_root._ymouse >= 350) {
_root.gotoAndStop(formula);
_root.seekbar.head._x = _root._xmouse;
}
status = "Play";
delete statusTimer;
_root.play();
delete movie_stop;
} else {
status = "Stop";
delete statusTimer;
_root.stop();
movie_stop = true;
}
delete doubleClick;
delete doubleClickTimer;
} else if (doubleClick >= 1) {
if (doubleClickTimer >= 10) {
delete doubleClick;
delete doubleClickTimer;
} else {
doubleClickTimer++;
}
}
fps = 25;
if (_root._ymouse >= 350) {
_root.seekbar._y = 378;
_root.seekbar._x = 11;
_root.seekbar._visible = true;
} else if (_root.seekbar.mouseHit == 1) {
} else {
_root.seekbar._visible = false;
}
if (second == null) {
second = 0;
min = 0;
ten = 0;
}
second = Math.round(_root._currentframe / fps);
ten = Math.floor(second / 10);
min = Math.floor(ten / 6);
ms1 = ((_root._currentframe / fps) * 1000) - (Math.round(_root._currentframe / fps) * 1000);
ms2 = ((_root._currentframe / 3) * 1000) - (Math.round(_root._currentframe / 3) * 1000);
ms3 = ((_root._currentframe / 2) * 1000) - (Math.round(_root._currentframe / 2) * 1000);
milsec = (((Math.floor((ms1 + 500) / 100) + "") + Math.floor((ms2 + 500) / 100)) + "") + Math.ceil((ms3 + 500) / 100);
_root.playTimer = (((((min + ":") + (ten - (min * 6))) + "") + (second - (ten * 10))) + ":") + milsec;
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;
_root.seekbar.head._x = _root._xmouse;
_root.gotoAndStop(formula);
} else if (_root.seekbar.head.hitTest(_root._xmouse, _root._ymouse, false)) {
delete _root.seekbar.mouseHit;
}
if (_root.seekbar.mouseHit == 1) {
_root.seekbar.head.gotoAndStop(3);
status = "Stop";
delete statusTimer;
if (_root.seekbar.head._x < 0) {
_root.seekbar.head._x = 0;
delete _root.seekbar.mouseHit;
} else if (_root.seekbar.head._x > 539) {
_root.seekbar.head._x = 539;
delete _root.seekbar.mouseHit;
} else {
_root.gotoAndStop(formula);
_root.seekbar.head._x = _root._xmouse;
stopAllSounds();
delete playMusic;
}
} else {
if (playMusic == null) {
_root.gotoAndPlay(_root._currentframe);
status = "Play";
delete statusTimer;
playMusic = 1;
}
_root.seekbar.head._x = (_root._currentframe * 539) / (_root._totalframes - 1);
}
}
Symbol 10 Button
on (press) {
m = 1;
mouseHit = 1;
}
on (rollOut, release, releaseOutside) {
delete m;
delete mouseHit;
}
Instance of Symbol 12 MovieClip in Symbol 16 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.mouseHit == 1) {
this._x = _root._xmouse;
this._visible = true;
} else {
this._visible = false;
}
}