Frame 1
if (overColor.substr(0, 1) == "#") {
overColor = overColor.substr(1, 10);
}
if (overColor == undefined) {
overColor = "2570BA";
}
if (overColor.substr(0, 2) != "0x") {
overColor = "0x" + overColor;
}
if (playerSkin == undefined) {
playerSkin = "1";
}
if (soundPath == undefined) {
soundPath = "http://www.fhqhosting.com/ui/Hands%20on%20Approach%20-%20If%20You%20Give%20Up.mp3";
}
Stage.scaleMode = "noScale";
_pc = 0;
_pcLoaded = 0;
_isLoaded = false;
_isPlaying = false;
_buffered = false;
loadingMc._visible = false;
if (autoPlay == undefined) {
autoPlay = "no";
}
_pos = 0;
progressBar._xscale = _pc;
loadingBar._xscale = _pcLoaded;
btPause._visible = false;
btTrack.enabled = false;
btTrack.onPress = function () {
startMove();
};
btTrack.onRelease = function () {
stopMove();
};
btTrack.onReleaseOutside = btTrack.onRelease;
slider.btVol.onPress = function () {
var _local2 = this;
_local2.startDrag(0, 0, _local2._y, slider.back._width, _local2._y);
_local2.onEnterFrame = function () {
var _local2 = Math.floor((this._x / slider.back._width) * 100);
this._parent._parent.setVol(_local2);
};
};
slider.btVol.onRelease = function () {
this.stopDrag();
};
slider.btVol.onReleaseOutside = slider.btVol.onRelease;
btPlay.onPress = function () {
trace("play");
if (!_buffered) {
loadMp3(soundPath);
} else {
startPlayback();
}
};
btPause.onPress = function () {
stopPlayback();
};
btStop.onPress = function () {
_snd.stop();
stopPlayback();
_buffered = false;
progressBar._xscale = 0;
delete progressBar.onEnterFrame;
btTrack.enabled = false;
};
btRW.onPress = function () {
stopPlayback();
_pos = 0;
startPlayback();
};
btRW.onPress = function () {
startRW();
};
btRW.onRelease = function () {
stopRW();
};
btRW.onReleaseOutside = btRW.onRelease;
btFF.onPress = function () {
startFF();
};
btFF.onRelease = function () {
stopFF();
};
btFF.onReleaseOutside = btFF.onRelease;
setVol = function (pc) {
_snd.setVolume(pc);
};
loadMp3 = function (path) {
var _local3 = this;
loadingMc._visible = true;
loadingBar.onEnterFrame = function () {
_pcLoaded = (_snd.getBytesLoaded() / _snd.getBytesTotal()) * 100;
loadingBar._xscale = _pcLoaded;
};
_snd = new Sound(_local3);
_local3.onEnterFrame = function () {
if (_snd.position > 0) {
btTrack.enabled = true;
startPlayback();
_buffered = true;
delete this.onEnterFrame;
_isLoaded = true;
enablePlayer();
loadingMc._visible = false;
_global.playerMc.displayTimeProgress();
}
};
_snd.loadSound(path, true);
};
setOver = function (mc) {
mc.onRollOver = function () {
this.gotoAndStop(2);
};
mc.onRollOut = function () {
this.gotoAndStop(1);
};
};
getPcPlayed = function () {
var _local1 = (_snd.position / _snd.duration) * 100;
return(_local1);
};
startPlayback = function () {
if (_buffered) {
_snd.start(_pos, 0);
}
progressBar.onEnterFrame = function () {
_pc = getPcPlayed();
_pos = _snd.position / 1000;
this._xscale = _pc;
if ((_pc == 100) && (_pcLoaded == 100)) {
_global.playerMc.songIsFinished();
}
};
btPause._visible = true;
btPlay._visible = false;
btPause.gotoAndStop(1);
btPlay.gotoAndStop(1);
_isPlaying = true;
};
stopPlayback = function () {
delete this.onEnterFrame;
_snd.stop();
btPause._visible = false;
btPlay._visible = true;
btPause.gotoAndStop(1);
btPlay.gotoAndStop(1);
_isPlaying = false;
};
startRW = function () {
stopPlayback();
progressBar.onEnterFrame = function () {
if (_pc > 0) {
_pc--;
}
_pos = (_snd.duration / 1000) * (_pc / 100);
progressBar._xscale = _pc;
};
};
stopRW = function () {
startPlayback();
};
startFF = function () {
stopPlayback();
progressBar.onEnterFrame = function () {
if (_pc < 100) {
_pc++;
}
_pos = (_snd.duration / 1000) * (_pc / 100);
progressBar._xscale = _pc;
};
};
stopFF = function () {
startPlayback();
};
startMove = function () {
stopPlayback();
progressBar.onEnterFrame = function () {
var _local1 = (btTrack._xmouse / btTrack._width) * 100;
if (_local1 > 100) {
_local1 = 100;
}
if (_local1 <= 0) {
_local1 = 0;
}
_pos = (_snd.duration / 1000) * (_local1 / 100);
progressBar._xscale = _local1;
};
};
stopMove = function () {
delete progressBar.onEnterFrame;
startPlayback();
};
setOver(btPlay);
setOver(btPause);
setOver(btStop);
setOver(btRW);
setOver(btFF);
disablePlayer();
enablePlayer = function () {
btPlay.enabled = true;
btPause.enabled = true;
btRW.enabled = true;
btFF.enabled = true;
};
disablePlayer = function () {
btPlay.enabled = false;
btPause.enabled = false;
btRW.enabled = false;
btFF.enabled = false;
};
cnt = 0;
if (autoPlay == "yes") {
this.onEnterFrame = function () {
var _local2 = this;
_local2.cnt++;
if (_local2.cnt > 5) {
delete _local2.onEnterFrame;
loadMp3(soundPath);
}
};
}
btLink.onPress = function () {
getURL ("http://www.premiumbeat.com");
};
stop();
gotoAndStop(playerSkin);
stop();
Frame 2
stop();
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Symbol 7 MovieClip Frame 1
this.onEnterFrame = function () {
var _local3 = this;
if (_parent._isPlaying) {
_local3._yscale = _local3._yscale - ((_local3._yscale - (random(80) + 20)) / 2);
}
};
_color = new Color(this);
_color.setRGB(_root.overColor);
Symbol 12 MovieClip Frame 1
_color = new Color(this);
_color.setRGB(_root.overColor);
Symbol 13 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 1
_color = new Color(this);
_color.setRGB(_root.overColor);
Symbol 17 MovieClip Frame 1
stop();