Frame 1
totalbytes = getBytesTotal();
Frame 2
this.onEnterFrame = function () {
loadedbytes = getBytesLoaded();
percentloaded = Math.floor((loadedbytes / totalbytes) * 100);
showpercent = percentloaded + "%";
loadbar.loadbarwiper._xscale = 100 - percentloaded;
loadbar.percent_txt.text = showpercent;
if (loadedbytes >= totalbytes) {
delete this.onEnterFrame;
gotoAndPlay ("begin");
}
};
stop();
Frame 4
function loadVideo(an, sn, ln, num) {
artistName = "../MusicBot/" + an;
songName = ("/" + sn) + ".flv";
songLength = ln;
titleNum = num;
vControl.gotoAndPlay("vcon");
screenMC.gotoAndPlay("showvid");
}
var artistName;
var songName;
var songLength;
var titleNum;
Frame 34
gopher1.gotoAndPlay("gup");
Frame 39
gopher2.gotoAndPlay("gup");
Frame 54
musicbot.gotoAndPlay("bot1");
stop();
Frame 74
stop();
Symbol 19 MovieClip Frame 1
i = 1;
p = 40;
pRand = Math.floor(Math.random() * 30) + 1;
stop();
Symbol 19 MovieClip Frame 17
this.onEnterFrame = function () {
i++;
if (i > (p + pRand)) {
i = 1;
pRand = Math.floor(Math.random() * 30) + 1;
play();
}
};
stop();
Symbol 19 MovieClip Frame 30
this.onEnterFrame = function () {
i++;
if (i > (p + pRand)) {
i = 1;
pRand = Math.floor(Math.random() * 30) + 1;
play();
}
};
stop();
Symbol 19 MovieClip Frame 43
this.onEnterFrame = function () {
i++;
if (i > (p + pRand)) {
i = 1;
pRand = Math.floor(Math.random() * 30) + 1;
play();
}
};
stop();
Symbol 19 MovieClip Frame 57
gotoAndPlay ("gloop");
Symbol 28 MovieClip Frame 1
i = 1;
p = 40;
pRand = Math.floor(Math.random() * 30) + 1;
stop();
Symbol 28 MovieClip Frame 14
this.onEnterFrame = function () {
i++;
if (i > (p + pRand)) {
i = 1;
pRand = Math.floor(Math.random() * 30) + 1;
play();
}
};
stop();
Symbol 28 MovieClip Frame 26
this.onEnterFrame = function () {
i++;
if (i > (p + pRand)) {
i = 1;
pRand = Math.floor(Math.random() * 30) + 1;
play();
}
};
stop();
Symbol 28 MovieClip Frame 37
this.onEnterFrame = function () {
i++;
if (i > (p + pRand)) {
i = 1;
pRand = Math.floor(Math.random() * 30) + 1;
play();
}
};
stop();
Symbol 28 MovieClip Frame 46
gotoAndPlay ("gloop");
Symbol 35 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 9
stop();
Symbol 40 MovieClip Frame 17
stop();
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 9
stop();
Symbol 43 MovieClip Frame 17
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 9
stop();
Symbol 46 MovieClip Frame 17
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 9
stop();
Symbol 49 MovieClip Frame 17
stop();
Symbol 51 MovieClip Frame 1
jumpNum = 3;
bplay.ha.onRollOver = function () {
bplay.gotoAndPlay("bon");
vcText.gotoAndStop(2);
};
bplay.ha.onRollOut = function () {
bplay.gotoAndPlay("boff");
vcText.gotoAndStop(1);
};
bplay.ha.onRelease = function () {
_root.screenMC.vidNS.pause(false);
};
bstop.ha.onRollOver = function () {
bstop.gotoAndPlay("bon");
vcText.gotoAndStop(3);
};
bstop.ha.onRollOut = function () {
bstop.gotoAndPlay("boff");
vcText.gotoAndStop(1);
};
bstop.ha.onRelease = function () {
_root.screenMC.vidNS.pause(true);
};
bback.ha.onRollOver = function () {
bback.gotoAndPlay("bon");
vcText.gotoAndStop(4);
};
bback.ha.onRollOut = function () {
bback.gotoAndPlay("boff");
vcText.gotoAndStop(1);
};
bback.ha.onRelease = function () {
t = _root.screenMC.vidNS.time - jumpNum;
_root.screenMC.vidNS.seek(t);
};
bahead.ha.onRollOver = function () {
bahead.gotoAndPlay("bon");
vcText.gotoAndStop(5);
};
bahead.ha.onRollOut = function () {
bahead.gotoAndPlay("boff");
vcText.gotoAndStop(1);
};
bahead.ha.onRelease = function () {
t = _root.screenMC.vidNS.time + jumpNum;
if (t > _root.songLength) {
t = _root.songLength - 1;
}
_root.screenMC.vidNS.seek(t);
};
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 8
stop();
Symbol 54 MovieClip Frame 16
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 21
newsong.ha.onRollOver = function () {
newsong.gotoAndPlay("bon");
};
newsong.ha.onRollOut = function () {
newsong.gotoAndPlay("boff");
};
newsong.ha.onRelease = function () {
_root.vControl.gotoAndPlay("vcoff");
};
stop();
Symbol 55 MovieClip Frame 22
_root.screenMC.gotoAndPlay("removevid");
Symbol 55 MovieClip Frame 35
stop();
Symbol 70 MovieClip Frame 1
i = 1;
p = 50;
stop();
Symbol 70 MovieClip Frame 15
stop();
Symbol 70 MovieClip Frame 29
_root.musicbot.gotoAndPlay("bot1a");
Symbol 70 MovieClip Frame 30
stop();
Symbol 70 MovieClip Frame 45
_root.musicbot.gotoAndPlay("bot2");
Symbol 70 MovieClip Frame 49
stop();
Symbol 70 MovieClip Frame 61
_root.screenMC.gotoAndPlay("pickartist");
stop();
Symbol 73 MovieClip Frame 52
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 9
stop();
Symbol 78 MovieClip Frame 17
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 9
stop();
Symbol 81 MovieClip Frame 17
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 9
stop();
Symbol 83 MovieClip Frame 17
stop();
Symbol 84 MovieClip Frame 1
s1.ha.onRollOver = function () {
s1.gotoAndPlay("bon");
};
s1.ha.onRollOut = function () {
s1.gotoAndPlay("boff");
};
s1.ha.onRelease = function () {
_root.loadVideo("RedG", "RappSong", 99.23, 1);
};
s2.ha.onRollOver = function () {
s2.gotoAndPlay("bon");
};
s2.ha.onRollOut = function () {
s2.gotoAndPlay("boff");
};
s2.ha.onRelease = function () {
_root.loadVideo("RedG", "PlacesInTheWorld", 107.26, 2);
};
s3.ha.onRollOver = function () {
s3.gotoAndPlay("bon");
};
s3.ha.onRollOut = function () {
s3.gotoAndPlay("boff");
};
s3.ha.onRelease = function () {
_root.loadVideo("RedG", "WereRich_Original", 118.25, 3);
};
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 9
stop();
Symbol 88 MovieClip Frame 18
stop();
Symbol 89 MovieClip Frame 1
var percentLoad = 0;
var pFraction = 4;
Symbol 89 MovieClip Frame 2
this.onEnterFrame = function () {
percentLoad = _parent.vidPercent * pFraction;
loadbar.loadbarwiper._xscale = 100 - percentLoad;
loadbar.percent_txt.text = Math.round(percentLoad) + "%";
if ((percentLoad >= 100) && (_parent.vidNS.bytesLoaded > 0)) {
delete this.onEnterFrame;
gotoAndPlay ("pclose");
}
};
stop();
Symbol 89 MovieClip Frame 3
_parent.vidNS.pause(false);
Symbol 89 MovieClip Frame 11
stop();
Symbol 91 MovieClip Frame 1
vLoadBar.vPlayback._xscale = 1;
stop();
Symbol 91 MovieClip Frame 8
stop();
Symbol 91 MovieClip Frame 23
delete vLoadBar.vPlayback.onEnterFrame;
delete vLoadBar.vProgress.onEnterFrame;
vLoadBar.vPlayback._xscale = 0;
vLoadBar.vProgress._xscale = 0;
vLoadBar.fPointer._x = fStart;
stop();
Symbol 91 MovieClip Frame 24
function showPlaybackProgress() {
vLoadBar.vPlayback.onEnterFrame = function () {
var _local2 = (vidNS.time / vTotal) * 100;
this._xscale = _local2;
vLoadBar.fPointer._x = fStart + this._width;
thisframe_txt.text = Math.floor(vidNS.time * 100) / 100;
};
}
sTitle.sTitles.gotoAndStop(_root.titleNum);
var vidNC = new NetConnection();
vidNC.connect(null);
var vidNS = new NetStream(vidNC);
vTarget.attachVideo(vidNS);
var vidPercent = 0;
var vTotal = _root.songLength;
var fStart = vLoadBar.fPointer._x;
vidNS.play(_root.artistName + _root.songName);
vidNS.pause();
vLoadBar.vProgress.onEnterFrame = function () {
vidPercent = (vidNS.bytesLoaded / vidNS.bytesTotal) * 100;
this._xscale = vidPercent;
if ((vidNS.bytesLoaded == vidNS.bytesTotal) && (vidNS.bytesLoaded > 0)) {
delete vLoadBar.vProgress.onEnterFrame;
}
};
vidNS.onStatus = function (info) {
if (info.code == "NetStream.Play.Start") {
sTitle.gotoAndPlay("toff");
showPlaybackProgress();
}
if (info.code == "NetStream.Play.Stop") {
vidNS.seek(0);
vidNS.pause();
vLoadBar.vPlayback._xscale = 0;
_root.vControl.gotoAndPlay("vcoff");
gotoAndPlay ("removevid");
}
};
stop();
Symbol 91 MovieClip Frame 28
vidNS.pause(true);
vTarget.clear();
delete vidNC;
Symbol 91 MovieClip Frame 33
gotoAndPlay ("pickartist");
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
_root.screenMC.msgMC.gotoAndPlay("mon");
Symbol 115 MovieClip Frame 71
_root.screenMC.msgMC.gotoAndPlay("mon2");
stop();
Symbol 115 MovieClip Frame 118
_root.screenMC.msgMC.gotoAndPlay("mon2a");
Symbol 115 MovieClip Frame 126
stop();
Symbol 115 MovieClip Frame 179
_root.screenMC.msgMC.gotoAndPlay("mon3");
Symbol 115 MovieClip Frame 181
_root.gotoAndPlay("botback");
Symbol 115 MovieClip Frame 201
stop();