Frame 1
stop();
this.loadbar._xscale = 0;
var total = this.getBytesTotal();
var startTime = getTimer();
var timeOut = 8000;
trace(total);
if ((this.getBytesLoaded() >= this.getBytesTotal()) && (this.getBytesTotal != 0)) {
this.gotoAndPlay("reset");
} else {
this.gotoAndPlay("loading");
}
Frame 2
loaded = this.getBytesLoaded();
if (loaded >= total) {
this.gotoAndPlay("reset");
} else {
LWidh = Math.floor((loaded / total) * 100);
trace(((((LWidh + "=") + loaded) + "/") + total) + "*100");
this.loadbar._xscale = LWidh;
}
Frame 3
this.gotoAndPlay("loading");
Frame 6
mySound = new Sound(main_MC);
mySound.attachSound("sound1");
mySound.setVolume(80);
var playCheck = false;
var dragCheck = true;
var stopFlag = true;
var stopTime = 0;
Frame 7
this.stop();
Symbol 14 Button
on (release) {
startTime = _root.stopTime / 1000;
_root.mySound.start(startTime);
trace(startTime + "\u79D2\u304B\u3089\u518D\u751F\u958B\u59CB");
_root.playCheck = true;
_root.stopFlag = false;
_root.stopTime = 0;
this.gotoAndPlay("play");
}
Symbol 23 Button
on (press) {
_root.dragCheck = false;
this.startDrag(false, 0, 0, 217, 0);
}
on (release, dragOut) {
mouseX = this._x;
trace(mouseX);
if (mouseX > 217) {
mouseX = 217;
}
myTime = Math.floor((_root.mySound.duration * mouseX) / 217) / 1000;
if ((mouseX = 211)) {
myTime = Math.floor(myTime);
}
if (!_root.dragCheck) {
if (!_root.stopFlag) {
_root.mySound.stop();
_root.mySound.start(myTime);
trace(myTime + "\u79D2\u304B\u3089\u518D\u751F\u958B\u59CB");
} else {
_root.stopTime = myTime * 1000;
trace(myTime + "\u79D2\u306B\u30BB\u30C3\u30C8");
}
}
this.stopDrag();
_root.dragCheck = true;
trace("\u66F2\u6642\u9593 = " + _root.mySound.duration);
}
Instance of Symbol 24 MovieClip in Symbol 25 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dragCheck) {
if (!_root.stopFlag) {
this._x = (_root.mySound.position / _root.mySound.duration) * 217;
} else {
this._x = (_root.stopTime / _root.mySound.duration) * 217;
}
}
if (_root.mySound.position >= _root.mySound.duration) {
_root.mySound.stop();
_root.gotoAndPlay("reset");
}
}
Symbol 30 Button
on (release) {
_root.mySound.stop();
_root.stopTime = _root.mySound.position;
_root.stopFlag = true;
gotoAndPlay ("stop2");
}
Symbol 33 Button
on (release) {
_root.mySound.stop();
_root.gotoAndPlay("reset");
}
Symbol 34 MovieClip Frame 2
this.stop();
Symbol 34 MovieClip Frame 4
this.stop();
Symbol 34 MovieClip Frame 6
this.stop();