Combined Code
frame 1 {
isPlay = 0;
isDrag = 0;
this.display.gotoAndStop(1);
flvSound = new Sound(this.display);
prevVol = 100;
prVol = 100;
pY = 0;
pX = 0;
lTime = 0;
dt = 0;
flvSound.setVolume(100);
Stage.scaleMode = 'noScale';
obj2 = new Object();
obj2.onResize = function () {
if (_root.display._width > 320) {
_root.display._x = 0;
_root.controls._x = _root.display._x;
this.check_mouse._x = _root.display._x;
this.check_mouse._y = _root.display._y;
this.check_mouse._width = _root.display._width;
if (_root.display._height < 240) {
_root.display._y = (240 - _root.display._height) / 2;
_root.controls._y = 196;
this.check_mouse._height = 240;
} else {
_root.display._y = 0;
_root.controls._y = _root.display._y + _root.display._height - _root.controls.controls._height;
this.check_mouse._height = _root.display._height;
}
} else {
if (_root.display._height > 240) {
this.check_mouse._x = 0;
this.check_mouse._y = 0;
this.check_mouse._width = 320;
this.check_mouse._height = _root.display._height;
_root.display._x = (320 - _root.display._width) / 2;
_root.display._y = 0;
_root.controls._x = 0;
_root.controls._y = _root.display._height - 44;
} else {
this.check_mouse._x = 0;
this.check_mouse._y = 0;
this.check_mouse._width = 320;
this.check_mouse._height = 240;
_root.display._x = (320 - _root.display._width) / 2;
_root.display._y = (240 - _root.display._height) / 2;
_root.controls._x = 0;
_root.controls._y = 196;
}
}
};
Stage.addListener(obj2);
if (this.display._width > 320) {
_root.display._x = 0;
_root.controls._x = _root.display._x;
this.check_mouse._x = 0;
this.check_mouse._y = 0;
this.check_mouse._width = _root.display._width;
this.controls.controls.but._x = 0;
this.controls.controls.but._y = this.controls.controls.pr_line._y + this.controls.controls.pr_line._height + 15;
this.controls.controls.volume_all._x = display._width - this.controls.controls.volume_all._width;
this.controls.controls.volume_all._y = this.controls.controls.pr_line._y + this.controls.controls.pr_line._height + 19;
this.controls.controls.mute._x = this.controls.controls.volume_all._x - this.controls.controls.mute._width - 10;
this.controls.controls.mute._y = this.controls.controls.pr_line._y + this.controls.controls.pr_line._height + 15;
this.controls.controls.pr_line.right._x = display._width - this.controls.controls.pr_line.right._width;
this.controls.controls.pr_line.pr_line._width = display._width - this.controls.controls.pr_line.right._width * 2;
if (_root.display._height < 240) {
_root.display._y = (240 - _root.display._height) / 2;
_root.controls._y = 196;
this.check_mouse._height = 240;
} else {
_root.display._y = 0;
_root.controls._y = _root.display._y + _root.display._height - _root.controls.controls._height;
this.check_mouse._height = _root.display._height;
}
} else {
if (_root.display._height > 240) {
this.check_mouse._x = 0;
this.check_mouse._y = 0;
this.check_mouse._width = 320;
this.check_mouse._height = _root.display._height;
_root.display._x = (320 - _root.display._width) / 2;
_root.display._y = 0;
_root.controls._x = 0;
_root.controls._y = _root.display._height - 44;
} else {
this.check_mouse._x = 0;
this.check_mouse._y = 0;
this.check_mouse._width = 320;
this.check_mouse._height = 240;
_root.display._x = (320 - _root.display._width) / 2;
_root.display._y = (240 - _root.display._height) / 2;
_root.controls._x = 0;
_root.controls._y = 196;
}
}
}
movieClip 2 {
}
movieClip 4 {
}
instance check_mouse of movieClip 4 {
onClipEvent (rollOver) {
this.useHandCursor = false;
if (_root.controls._currentframe == 1 or _root.controls._currentframe == 7) {
_root.controls.gotoAndPlay('show');
}
}
onClipEvent (rollOut) {
this.useHandCursor = false;
if (_root.controls._currentframe == 4) {
if (_root._xmouse >= 10 and _root._xmouse <= this._parent.controls._x + this._parent.controls._width - 5 and _root._ymouse >= this._parent.controls._y and _root._ymouse <= this._parent.controls._y + this._parent.controls._height - 10) {
} else {
_root.controls.gotoAndPlay('hide');
}
}
}
}
movieClip 7 {
}
movieClip 9 {
}
movieClip 10 {
}
movieClip 13 {
}
movieClip 16 {
}
movieClip 19 {
}
movieClip 20 {
frame 1 {
isDrag = 0;
}
instance volume_reg of movieClip 13 {
onClipEvent (load) {
this._x = 0;
top = 0;
bottom = 0;
left = this._x;
right = this._parent._width - 3;
len = this._parent._width - 3;
}
onClipEvent (enterFrame) {
if (_parent.isDrag == 1) {
perc = Math.round((this._x + 3) * 100 / len);
if (_parent._parent.isMute == 1) {
_root.prVol = perc;
this._parent._parent.mute_button.gotoAndStop(1);
} else {
_root.flvSound.setVolume(perc);
}
_parent.shad._width = this._x;
}
}
onClipEvent (press) {
_parent.isDrag = 1;
startDrag('', false, left, top, right, bottom);
}
onClipEvent (release, releaseOutside, rollOut) {
_parent.isDrag = 0;
stopDrag();
}
}
instance of movieClip 16 {
onClipEvent (enterFrame) {
this._width = this._parent.volume_reg._x;
}
}
instance of movieClip 19 {
onClipEvent (mouseDown) {
if (_parent._xmouse >= this._x and _parent._xmouse <= this._x + this._width and _parent._ymouse >= this._y and _parent._ymouse <= this._y + this._height) {
_parent.isDrag = 1;
_parent.volume_reg._x = _parent._xmouse;
}
}
}
}
movieClip 23 {
}
movieClip 25 {
}
movieClip 26 {
}
movieClip 27 {
instance prog_reg of movieClip 26 {
onClipEvent (load) {
this._x = 0;
top = 0;
bottom = 0;
left = this._x;
right = this._parent._width - 4;
len = this._parent._width - 4;
}
onClipEvent (enterFrame) {
if (_root.isDrag == 1) {
perc = (this._x + 3) * 100 / len;
cFr = Math.round((_root.display._totalframes / 100) * perc);
if (cFr == 0) {
cFr = 1;
}
_root.display.gotoAndStop(cFr);
} else {
perc = _root.display._currentframe * 100 / _root.display._totalframes;
if (_root.display._currentframe == 1) {
perc = 0;
}
cFr = len * perc / 100;
this._x = cFr;
}
_parent.shad._width = this._x;
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
}
onClipEvent (press) {
_root.isDrag = 1;
_root.display.stop();
startDrag('', false, left, top, right, bottom);
this.gotoAndStop(3);
}
onClipEvent (release, releaseOutside, rollOut) {
_root.isDrag = 0;
if (_root.isPlay == 1) {
_root.display.play();
}
stopDrag();
this.gotoAndStop(1);
}
}
instance cover of movieClip 19 {
onClipEvent (mouseDown) {
if (_parent._xmouse >= this._x and _parent._xmouse <= this._x + this._width and _parent._ymouse >= this._y and _parent._ymouse <= this._y + this._height) {
_root.isDrag = 1;
_parent.prog_reg._x = _parent._xmouse - 3;
}
}
}
}
movieClip 30 {
}
movieClip 32 {
}
movieClip 33 {
}
button 35 {
on (press) {
gotoAndStop(3);
}
on (rollOver, release) {
gotoAndStop(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release, releaseOutside) {
if (_root.display._currentframe < _root.display._totalframes) {
tf = _root.display._currentframe + Math.round(_root.display._totalframes / 10);
if (tf > _root.display._totalframes) {
tf = _root.display._totalframes;
}
if (_root.isPlay == 0) {
_root.display.gotoAndStop(tf);
} else {
_root.display.gotoAndPlay(tf);
}
}
nextFrame();
}
}
movieClip 37 {
}
movieClip 38 {
}
movieClip 40 {
}
movieClip 41 {
}
movieClip 42 {
}
movieClip 43 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
button 44 {
on (press) {
gotoAndStop(3);
}
on (rollOver, release) {
gotoAndStop(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release, releaseOutside) {
if (_root.display._currentframe > 1) {
tf = _root.display._currentframe - Math.round(_root.display._totalframes / 10);
if (tf < 1) {
tf = 1;
}
if (_root.isPlay == 0) {
_root.display.gotoAndStop(tf);
} else {
_root.display.gotoAndPlay(tf);
}
}
nextFrame();
}
}
movieClip 45 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 46 {
}
movieClip 48 {
}
movieClip 49 {
}
movieClip 52 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 53 {
on (press) {
gotoAndStop(3);
}
on (rollOver) {
gotoAndStop(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release) {
if (this.icon_mc._currentframe == 1) {
this.icon_mc.gotoAndStop(2);
_root.isPlay = 1;
_root.display.play();
} else {
this.icon_mc.gotoAndStop(1);
_root.isPlay = 0;
_root.display.stop();
}
gotoAndStop(2);
nextFrame();
}
}
movieClip 55 {
}
movieClip 56 {
}
movieClip 58 {
}
movieClip 59 {
}
movieClip 60 {
}
movieClip 61 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 63 {
}
movieClip 65 {
}
movieClip 66 {
}
button 67 {
on (press) {
gotoAndStop(3);
}
on (rollOver) {
gotoAndStop(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release) {
_parent.nextFrame();
nextFrame();
}
}
movieClip 69 {
}
movieClip 70 {
}
movieClip 72 {
}
movieClip 73 {
}
movieClip 74 {
}
movieClip 75 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 77 {
}
movieClip 78 {
}
button 79 {
on (press) {
gotoAndStop(3);
}
on (rollOver) {
gotoAndStop(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release) {
_parent.gotoAndStop(1);
nextFrame();
}
}
movieClip 80 {
}
movieClip 81 {
}
movieClip 82 {
}
movieClip 83 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 84 {
frame 1 {
if (_root.prVol > 100) {
_root.prVol = 100;
}
_root.flvSound.setVolume(_root.prVol);
this._parent.volume_reg.volume_reg._x = Math.round((this._parent.volume_reg._width / 100) * _root.flvSound.getVolume()) - 3;
_parent.isMute = 0;
stop();
}
frame 2 {
_root.prVol = _root.flvSound.getVolume();
if (_root.prVol > 100) {
_root.prVol = 100;
}
_root.flvSound.setVolume(0);
_parent.isMute = 1;
this._parent.volume_reg.volume_reg._x = 0;
stop();
}
}
movieClip 85 {
}
movieClip 87 {
}
movieClip 88 {
}
button 89 {
on (press) {
gotoAndStop(3);
}
on (rollOver, release) {
gotoAndStop(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release, releaseOutside) {
_root.display.gotoAndStop(1);
this._parent.play_n_pause.icon_mc.gotoAndStop(1);
_root.isPlay = 0;
nextFrame();
}
}
movieClip 90 {
}
movieClip 91 {
}
movieClip 93 {
}
movieClip 94 {
}
movieClip 95 {
}
movieClip 96 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 97 {
frame 1 {
isMute = 0;
}
instance bg of movieClip 10 {
onClipEvent (load) {
if (_root.display._width > 320) {
bg_line._width = _root.display._width - 30;
bg_left._x = bg_line._width + bg_line._x;
_parent.volume_reg._x = this._width - 70;
_parent.mute_button._x = this._width - 97;
_parent.prog_bar.prog_line._width = this._width - 251;
_parent.prog_bar.cover._width = _parent.prog_bar._width;
_parent.prog_bar.prog_left._x = this._width - 246;
}
}
}
}
movieClip 98 {
frame 1 {
stop();
}
frame 4 {
stop();
}
frame 7 {
stop();
}
}