Frame 1
function dpweb() {
getURL ("http://dissoluteproductions.com/", "_blank");
}
function dl() {
getURL ("http://dissoluteproductions.com/NG_box.php", "_blank");
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
searchType = "Title";
playing = false;
loop = false;
pos = 0;
track = random(5) + 1;
stop();
load = true;
MENU = new ContextMenu();
MENU.hideBuiltInItems();
f1 = new ContextMenuItem("Visit DissoluteProductions.com!", dpweb);
f2 = new ContextMenuItem("Download NG in a Box!", dl);
MENU.customItems.push(f1);
MENU.customItems.push(f2);
_root.menu = MENU;
SO = SharedObject.getLocal("NG_box");
if (SO.data.aStart == undefined) {
SO.data.aStart = "1st";
SO.data.aEnd = "next";
SO.data.vis = true;
}
__com_mochibot__("b053a5d7", this, 10301, true);
Frame 2
Frame 20
stop();
Symbol 17 MovieClip [infobox audio] Frame 1
onEnterFrame = function () {
_x = (((_root._xmouse + _width) > 750) ? (_root._xmouse - _width) : (_root._xmouse + 15));
_y = (((_root._ymouse + _height) > 600) ? (_root._ymouse - _height) : (_root._ymouse));
};
if (i != undefined) {
var loader = new MovieClipLoader();
loader.addListener(this);
loader.loadClip(((("http://aicon.ngfiles.com/" + Math.floor(i / 1000)) + "000/") + i) + ".gif", Icon.Icon);
}
tmpTxt = _parent.createTextField("txt", _parent.getNextHighestDepth(), 0, 0, 0, 0);
tmpTxt.html = true;
tmpTxt.htmlText = desc;
txtDesc.autoSize = true;
txtDesc.htmlText = ("<font color='##D1D5D8'>Description: </font><font color='#FFFFFF'>\r" + tmpTxt.text) + "</font>";
descbg._height = txtDesc._height + 5;
delete tmpText;
Symbol 19 MovieClip [infobox desc] Frame 1
onEnterFrame = function () {
_x = (((_root._xmouse + _width) > 750) ? (_root._xmouse - _width) : (_root._xmouse + 15));
_y = (((_root._ymouse + _height) > 600) ? (_root._ymouse - _height) : (_root._ymouse));
};
tmpTxt = _parent.createTextField("txt", _parent.getNextHighestDepth(), 0, 0, 0, 0);
tmpTxt.html = true;
tmpTxt.htmlText = desc;
txtDesc.autoSize = true;
txtDesc.htmlText = ((("<font color='##D1D5D8'>Description: </font><font color='#FFFFFF'>\r" + tmpTxt.text) + "</font><br><br><font color='##D1D5D8'>Origin: </font><font color='#FFFFFF'>") + origin) + "</font>";
descbg._height = txtDesc._height + 5;
delete tmpText;
Symbol 43 MovieClip [info hover] Frame 1
_alpha = 0;
onPress = function () {
getURL (link, "_blank");
_root.ib.removeMovieClip();
};
onRollOver = function () {
t = _root.attachMovie((daily ? "infobox desc" : ((audio ? "infobox audio" : "infobox"))), "ib", _root.getNextHighestDepth());
t._y = -200;
t.i = i;
t.author = author;
t.desc = desc;
t.link = link;
t.origin = origin;
};
onRollOut = function () {
_root.ib.removeMovieClip();
};
onMouseDown = function () {
_root.ib.removeMovieClip();
};
Symbol 44 MovieClip [top 5 slot] Frame 1
if (i != undefined) {
var loader = new MovieClipLoader();
loader.addListener(this);
loader.loadClip((("http://www.newgrounds.com/icon/" + Math.floor(i / 1000)) + "000/portal_") + i, Icon.Icon);
onLoadError = function (loader) {
Icon.attachMovie("nopic", "np", Icon.getNextHighestDepth());
};
}
Instance of Symbol 26 MovieClip "Icon" in Symbol 44 MovieClip [top 5 slot] Frame 1
on (release) {
getURL (_parent.h.link, "_blank");
}
Instance of Symbol 41 MovieClip in Symbol 44 MovieClip [top 5 slot] Frame 1
onClipEvent (load) {
gotoAndStop(_parent.rank);
}
Instance of Symbol 43 MovieClip [info hover] "h" in Symbol 44 MovieClip [top 5 slot] Frame 1
onClipEvent (load) {
daily = true;
}
Symbol 47 MovieClip Frame 1
Symbol 48 MovieClip [dp letter] Frame 34
stop();
Symbol 53 MovieClip [infobox] Frame 1
onEnterFrame = function () {
_x = (((_root._xmouse + _width) > 750) ? (_root._xmouse - _width) : (_root._xmouse + 15));
_y = (((_root._ymouse + _height) > 600) ? (_root._ymouse - _height) : (_root._ymouse));
};
if (i != undefined) {
var loader = new MovieClipLoader();
loader.addListener(this);
loader.loadClip((("http://www.newgrounds.com/icon/" + Math.floor(i / 1000)) + "000/portal_") + i, Icon.Icon);
onLoadError = function (loader) {
Icon.attachMovie("nopic", "np", Icon.getNextHighestDepth());
};
}
tmpTxt = _parent.createTextField("txt", _parent.getNextHighestDepth(), 0, 0, 0, 0);
tmpTxt.html = true;
tmpTxt.htmlText = desc;
txtAuthor.htmlText = ((("<font color='##D1D5D8'>Author(s): </font><font color='#FFFFFF'>" + author) + "</font><br><font color='##D1D5D8'>Origin: </font><font color='#FFFFFF'>") + origin) + "</font>";
txtDesc.autoSize = true;
txtDesc.htmlText = ("<font color='##D1D5D8'>Description: </font><font color='#FFFFFF'>\r" + tmpTxt.text) + "</font>";
descbg._height = txtDesc._height + 5;
delete tmpText;
Instance of Symbol 26 MovieClip "Icon" in Symbol 53 MovieClip [infobox] Frame 1
on (release) {
getURL (_parent.link, "_blank");
}
Symbol 55 MovieClip [dl box] Frame 1
onEnterFrame = function () {
_x = (_root._xmouse - _width);
_y = (_root._ymouse - _height);
};
Symbol 58 MovieClip Frame 15
t = "dissolute productions";
i = 0;
while (i <= 21) {
z = this.attachMovie("dp letter", "dpl" + i, this.getNextHighestDepth());
z._x = ((i == 0) ? 0 : ((this["dpl" + (i - 1)]._x + this["dpl" + (i - 1)]._width) + 2));
z.gotoAndPlay(random(10) + 1);
z.letter = t.charAt(i);
i++;
}
Symbol 58 MovieClip Frame 68
stop();
_parent.play();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 20
_parent.play();
stop();
Symbol 101 MovieClip Frame 40
stop();
Symbol 116 Button
on (release) {
_root.play();
}
Symbol 117 MovieClip Frame 1
function onEnterFrame() {
if (!loaded) {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
if (_local3 >= 1) {
play();
bar._x = initX;
loaded = true;
} else {
bar._x = initX + ((_local3 - 1) * bar._width);
}
}
var _local4 = getTimer() - time;
timeAccum = timeAccum + _local4;
while (timeAccum >= FRAME_TIME) {
var _local2 = 0;
while (_local2 < timeClips.length) {
if (timeClips[_local2]._currentframe < timeClips[_local2]._totalframes) {
timeClips[_local2].nextFrame();
} else {
timeClips[_local2].gotoAndStop(1);
}
_local2++;
}
if (loaded && (_currentframe < _totalframes)) {
nextFrame();
}
timeAccum = timeAccum - FRAME_TIME;
}
time = time + _local4;
}
stop();
_root.stop();
var initX = bar._x;
var time = getTimer();
var FRAME_TIME = 33.3333333333333;
var timeAccum = 0;
var loaded = false;
timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0];
var i = 0;
while (i < timeClips.length) {
timeClips[i].stop();
i++;
}
Symbol 117 MovieClip Frame 50
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 13
stop();
ng.play();
Symbol 119 MovieClip Frame 38
stop();
Symbol 126 Button
on (press) {
if (_parent.loaded) {
nextFrame();
_parent.loadNews(i);
}
}
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
x = 1;
while (x <= 3) {
if (x != i) {
_parent["newsbutton" + x].gotoAndStop(1);
}
x++;
}
Symbol 154 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 1
this.setMask(_parent.mask);
txtbody.mouseWheelEnabled = false;
body.autoSize = true;
Symbol 165 Button
on (press) {
scrollBar.bar._y = scrollBar.bar._y + (1500 / overflow);
((scrollBar.bar._y > 100) ? ((scrollBar.bar._y = 100)) : null);
}
Symbol 166 Button
on (press) {
scrollBar.bar._y = scrollBar.bar._y - (1500 / overflow);
((scrollBar.bar._y < 0) ? ((scrollBar.bar._y = 0)) : null);
}
Symbol 170 MovieClip Frame 1
var mouseListener = new Object();
Mouse.addListener(mouseListener);
mouseListener.onMouseWheel = function (delta) {
if (_parent.hitTest(_root._xmouse, _root._ymouse) and _visible) {
bar._y = bar._y - ((500 * delta) / _parent.overflow);
((bar._y < 0) ? ((bar._y = 0)) : null);
((bar._y > 100) ? ((bar._y = 100)) : null);
}
};
onUnload = function () {
Mouse.removeListener(mouseListener);
};
Instance of Symbol 169 MovieClip "bar" in Symbol 170 MovieClip Frame 1
on (press) {
dragging = true;
this.startDrag(false, _x, 0, _x, 100);
}
on (release, releaseOutside) {
dragging = false;
this.stopDrag();
}
Symbol 177 MovieClip Frame 1
function loadNews(i) {
scrollBar.bar._y = 0;
z = String(newsArray[i]["content:encoded"]);
while (z.indexOf("<p>") > -1) {
z = z.substr(0, z.indexOf("<p>")) + z.substr(z.indexOf("<p>") + 3);
}
while (z.indexOf("</p>") > -1) {
z = z.substr(0, z.indexOf("</p>")) + z.substr(z.indexOf("</p>") + 4);
}
while (z.indexOf("<br />") > -1) {
z = z.substr(0, z.indexOf("<br />")) + z.substr(z.indexOf("<br />") + 6);
}
while (z.indexOf("<a href=\"") > -1) {
z = (z.substr(0, z.indexOf("<a href=\"")) + "<font color='#FF9900'><a href ='") + z.substr(z.indexOf("<a href=\"") + 9);
}
while (z.indexOf("\">") > -1) {
z = (z.substr(0, z.indexOf("\">")) + "' target='_blank'>") + z.substr(z.indexOf("\">") + 2);
}
while (z.indexOf("</a>") > -1) {
z = (z.substr(0, z.indexOf("</a>")) + "</a ></font>") + z.substr(z.indexOf("</a>") + 4);
}
while (z.indexOf("<strong>") > -1) {
z = (z.substr(0, z.indexOf("<strong>")) + "<b>") + z.substr(z.indexOf("<strong>") + 8);
}
while (z.indexOf("</strong>") > -1) {
z = (z.substr(0, z.indexOf("</strong>")) + "</b>") + z.substr(z.indexOf("</strong>") + 9);
}
body.body.htmlText = z;
title.htmlText = ((((("<i>" + newsArray[i]["dc:creator"]) + " <font color='#666D7A'>sez:</font></i><br><font color='#FF9900'><b><a href='") + newsArray[i].link) + "' target='_blank'>") + newsArray[i].title) + "</a></b></font>";
date.htmlText = ("<b>- " + newsArray[i].pubDate) + "<b>";
icon.gotoAndStop(newsArray[i]["dc:creator"]);
if (body.body._height > 112) {
scrollDown._visible = true;
scrollUp._visible = true;
scrollBar._visible = true;
body.body._width = bodyWidth - 15;
overflow = (body.body._height - scrollBar._height) - 20;
}
}
x = new XML();
x.ignoreWhite = true;
(_root.load ? (x.load("http://rss.ngfiles.com/sitenews.xml")) : null);
newsArray = new Array();
loaded = false;
x.onLoad = function (success) {
if (success) {
loaded = true;
f = true;
i = 1;
var _local4 = this.childNodes[0].childNodes[0].childNodes[0];
while (_local4 != null) {
if (_local4.nodeName == "item") {
newsArray[i] = new Object();
tmpTxt = _parent.createTextField("txt", _parent.getNextHighestDepth(), 0, 0, 0, 0);
tmpTxt.html = true;
var _local3 = _local4.firstChild;
while (_local3 != null) {
tmpTxt.htmlText = _local3.firstChild;
_parent.news.newsArray[i][_local3.nodeName] = tmpTxt.text;
_local3 = _local3.nextSibling;
}
tmpText.removeTextField();
i++;
}
_local4 = _local4.nextSibling;
}
loadNews(1);
} else {
title.text = "";
}
};
bodyWidth = body.body._width;
scrollDown._visible = (scrollUp._visible = (scrollBar._visible = false));
inity = body._y;
Instance of Symbol 129 MovieClip "newsbutton2" in Symbol 177 MovieClip Frame 1
onClipEvent (load) {
i = 2;
}
Instance of Symbol 129 MovieClip "newsbutton3" in Symbol 177 MovieClip Frame 1
onClipEvent (load) {
i = 3;
}
Instance of Symbol 129 MovieClip "newsbutton1" in Symbol 177 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
i = 1;
}
Instance of Symbol 170 MovieClip "scrollBar" in Symbol 177 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.body._y = _parent.inity - ((bar._y / 100) * _parent.overflow);
}
Symbol 187 Button
on (release) {
preview(1, this);
}
Symbol 193 MovieClip Frame 12
stop();
Symbol 197 MovieClip Frame 12
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 199 Button
on (release) {
preview(2, this);
}
Symbol 200 Button
on (release) {
preview(3, this);
}
Symbol 201 Button
on (release) {
preview(4, this);
}
Symbol 202 Button
on (release) {
preview(5, this);
}
Symbol 208 MovieClip Frame 1
stop();
onPress = function () {
_root.SO.data[v] = val;
};
Instance of Symbol 207 MovieClip in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = (_root.SO.data[_parent.v] == _parent.val);
}
Instance of Symbol 208 MovieClip "s1" in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
v = "aStart";
val = "1st";
}
Instance of Symbol 208 MovieClip "s2" in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
v = "aStart";
val = "rnd";
}
Instance of Symbol 208 MovieClip "s3" in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
v = "aStart";
val = "nothing";
}
Instance of Symbol 208 MovieClip in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
v = "aEnd";
val = "next";
}
Instance of Symbol 208 MovieClip in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
v = "aEnd";
val = "rnd";
}
Instance of Symbol 208 MovieClip in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
v = "aEnd";
val = "nothing";
}
Instance of Symbol 208 MovieClip in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
v = "vis";
val = true;
}
Instance of Symbol 208 MovieClip in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
v = "vis";
val = false;
}
Symbol 216 MovieClip Frame 1
stop();
_root.config = false;
i = 1;
while (i <= 5) {
_parent._parent["b" + i].enabled = true;
i++;
}
i = 1;
while (i <= 5) {
_parent._parent["ih" + i]._visible = true;
i++;
}
Symbol 216 MovieClip Frame 2
_root.config = true;
i = 1;
while (i <= 5) {
_parent._parent["b" + i].enabled = false;
i++;
}
i = 1;
while (i <= 5) {
_parent._parent["ih" + i]._visible = false;
i++;
}
Symbol 216 MovieClip Frame 9
stop();
Instance of Symbol 218 MovieClip in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_yscale > 0) {
_yscale = (_yscale - (300 / _yscale));
}
r = random(50) + 50;
if (((((_parent._parent.beat and (random(3) < 2)) and (r > _yscale)) and _root.playing) and (_parent._parent._parent.s.position > 300)) and _root.SO.data.vis) {
_yscale = r;
}
((_yscale > 100) ? (_yscale = 100100) : null);
}
onClipEvent (load) {
_yscale = 0;
}
Symbol 223 MovieClip Frame 1
i = 0;
onEnterFrame = function () {
i++;
beat = (i % 2) == 0;
};
Symbol 224 Button
on (release) {
_root.loop = !_root.loop;
play();
}
on (rollOut, dragOut) {
_parent.txtInfo._visible = false;
_parent.txtTime._visible = true;
}
on (rollOver) {
_parent.txtInfo._visible = true;
_parent.txtTime._visible = false;
_parent.txtInfo.text = "Configure";
}
on (press) {
_parent.config.gotoAndPlay("open");
}
Symbol 228 Button
on (release) {
_root.loop = !_root.loop;
play();
}
on (rollOut, dragOut) {
_parent.txtInfo._visible = false;
_parent.txtTime._visible = true;
}
on (rollOver) {
_parent.txtInfo._visible = true;
_parent.txtTime._visible = false;
_parent.txtInfo.text = "Hide configure";
}
on (press) {
_parent.config.gotoAndPlay("close");
}
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 2
stop();
Symbol 239 MovieClip Frame 1
stop();
Instance of Symbol 239 MovieClip in Symbol 240 MovieClip Frame 1
on (press) {
dragging = true;
this.startDrag(false, 0, _y, _parent.bg._width - _width, _y);
}
onClipEvent (enterFrame) {
if (dragging) {
_parent._parent.s.setVolume(Math.round(100 * (_x / (_parent.bg._width - _width))));
_parent._parent.txtInfo._visible = true;
_parent._parent.txtTime._visible = false;
_parent._parent.txtInfo.text = "Volume: " + _parent._parent.s.getVolume();
_parent.h._x = _x;
}
}
on (release, releaseOutside) {
dragging = false;
this.stopDrag();
}
on (rollOver, dragOver) {
gotoAndStop (2);
_parent._parent.txtInfo._visible = true;
_parent._parent.txtTime._visible = false;
_parent._parent.txtInfo.text = "Volume: " + _parent._parent.s.getVolume();
}
on (rollOut) {
gotoAndStop (1);
_parent._parent.txtInfo._visible = false;
_parent._parent.txtTime._visible = true;
}
on (dragOut) {
gotoAndStop (1);
}
on (releaseOutside) {
_parent._parent.txtInfo._visible = false;
_parent._parent.txtTime._visible = true;
}
Symbol 243 MovieClip Frame 1
function startSong() {
if (_root.pos == 0) {
s.loadSound("http://newgrounds.com/audio/download.php?which=single&id=" + _root.tracks[_root.track].trackID, true);
title.htmlText = _root.tracks[_root.track].title;
}
s.start(_root.pos / 1000);
ps.gotoAndStop(2);
}
s = new Sound(this);
onEnterFrame = function () {
if (s.position == undefined) {
Time = "0:00 / 0:00";
} else {
minutes = Math.floor(s.position / 60000);
_root.minutes2 = Math.floor(s.duration / 60000);
if ((Math.floor(s.position / 1000) % 60) < 10) {
seconds = "0" + (Math.floor(s.position / 1000) % 60);
} else {
seconds = Math.floor(s.position / 1000) % 60;
}
Time = (((((minutes + ":") + seconds) + " / ") + _root.minutes2) + ":") + seconds2;
if ((Math.floor(s.duration / 1000) % 60) < 10) {
seconds2 = "0" + (Math.floor(s.duration / 1000) % 60);
} else {
seconds2 = Math.floor(s.duration / 1000) % 60;
}
}
};
s.onSoundComplete = function () {
_root.pos = 0;
s.start();
s.stop();
if (_root.loop) {
s.start();
} else {
_parent["ps" + _root.track].gotoAndStop(1);
if (_root.SO.data.aEnd == "next") {
_root.track++;
if (_root.track > 5) {
_root.track = 1;
}
} else if (_root.SO.data.aEnd == "rnd") {
_root.track = random(5) + 1;
}
if (_root.SO.data.aEnd != "nothing") {
_parent["ps" + _root.track].gotoAndStop(2);
startSong();
}
}
};
txtInfo._visible = false;
Symbol 244 MovieClip Frame 1
function preview(ID, targ) {
if (_root.track != ID) {
_root.pos = 0;
audio.s.start();
audio.s.stop();
_root.track = ID;
_root.playing = false;
_root.trackID = _root.tracks[_root.track].trackID;
}
if (!_root.playing) {
audio.startSong();
this["ps" + ID].gotoAndStop(2);
i = 1;
while (i <= 5) {
if (i != ID) {
this["ps" + i].gotoAndStop(1);
}
i++;
}
} else {
_root.pos = audio.s.position;
audio.s.stop();
this["ps" + ID].gotoAndStop(1);
}
_root.playing = !_root.playing;
}
x = new XML();
x.ignoreWhite = true;
(_root.load ? (x.load("http://rss.ngfiles.com/weeklyaudiotop5.xml")) : null);
x.onLoad = function (success) {
if (success) {
d = String(this.childNodes[0].childNodes[0].childNodes[2].firstChild);
day = d.substring(d.indexOf(",") + 2, d.indexOf(" ", 6));
month = d.substr(d.indexOf(" ", 6) + 1, 3);
year = d.substr(d.indexOf(" ", 10) + 3, 2);
date.htmlText = ("<b>For week ending: " + ((((day + "/") + month) + "/") + year)) + "</b>";
f = true;
i = 1;
_root.tracks = new Array();
var _local5 = this.childNodes[0].childNodes[0].childNodes[0];
while (_local5 != null) {
if (_local5.nodeName == "item") {
var _local4 = _local5.firstChild;
while (_local4 != null) {
this[_local4.nodeName] = _local4.firstChild;
_local4 = _local4.nextSibling;
}
title = String(_local5.firstChild.firstChild);
title = title.substr(title.indexOf(".") + 1);
tmpTxt = _parent.createTextField("txt", _parent.getNextHighestDepth(), 0, 0, 0, 0);
tmpTxt.html = true;
tmpTxt.htmlText = title;
title = ((i + ". <b><font color='#FF9900'>") + tmpTxt.text) + "</font></b><br>";
h = attachMovie("info hover", "ih" + i, getNextHighestDepth());
h.i = String(this.link).substr(39);
h.audio = true;
h.desc = this.description;
h.link = this.link;
h._x = 40;
h._y = 65 + ((i - 1) * 16);
h._width = 170;
if (f) {
t.htmlText = title;
f = false;
} else {
t.htmlText = t.htmlText + title;
}
if (i == 1) {
_root.trackID = String(this.link).substr(39);
}
_root.tracks[i] = new Object();
_root.tracks[i].trackID = String(this.link).substr(39);
_root.tracks[i].title = tmpTxt.text;
tmpText.removeTextField();
i++;
}
_local5 = _local5.nextSibling;
}
if (_root.SO.data.aStart == "1st") {
preview(1, this);
} else if (_root.SO.data.aStart == "rnd") {
_root.track = random(5) + 1;
preview(_root.track, this);
}
} else {
t.text = "";
}
};
Instance of Symbol 198 MovieClip "ps1" in Symbol 244 MovieClip Frame 1
onClipEvent (load) {
z.gotoAndStop(z._totalframes);
}
Instance of Symbol 198 MovieClip "ps2" in Symbol 244 MovieClip Frame 1
onClipEvent (load) {
z.gotoAndStop(z._totalframes);
}
Instance of Symbol 198 MovieClip "ps3" in Symbol 244 MovieClip Frame 1
onClipEvent (load) {
z.gotoAndStop(z._totalframes);
}
Instance of Symbol 198 MovieClip "ps4" in Symbol 244 MovieClip Frame 1
onClipEvent (load) {
z.gotoAndStop(z._totalframes);
}
Instance of Symbol 198 MovieClip "ps5" in Symbol 244 MovieClip Frame 1
onClipEvent (load) {
z.gotoAndStop(z._totalframes);
}
Symbol 250 MovieClip Frame 1
x = new XML();
x.ignoreWhite = true;
(_root.load ? (x.load("http://rss.ngfiles.com/latestsubmissions.xml")) : null);
x.onLoad = function (success) {
if (success) {
f = true;
i = 1;
var _local4 = this.childNodes[0].childNodes[0].childNodes[0];
while (_local4 != null) {
if (_local4.nodeName == "item") {
var _local3 = _local4.firstChild;
while (_local3 != null) {
this[_local3.nodeName] = _local3.firstChild;
_local3 = _local3.nextSibling;
}
title = String(_local4.firstChild.firstChild);
title = title.substr(title.indexOf(".") + 1);
tmpTxt = _parent.createTextField("txt", _parent.getNextHighestDepth(), 0, 0, 0, 0);
tmpTxt.html = true;
tmpTxt.htmlText = title;
title = ((((i < 10) ? ("0" + i) : (i)) + ". <b><font color='#FF9900'>") + tmpTxt.text) + "</font></b><br>";
tmpText.removeTextField();
d = String(this.pubDate);
day = d.substring(d.indexOf(",") + 2, d.indexOf(" ", 6));
month = d.substr(d.indexOf(" ", 6) + 1, 3);
year = d.substr(d.indexOf(" ", 10) + 3, 2);
h = attachMovie("info hover", "ih" + i, getNextHighestDepth());
h.i = String(this.link).substr(-6, 6);
h.author = this["dc:creator"];
h.desc = this.description;
h.link = this.link;
h.origin = (((((day + "/") + month) + "/") + year) + ", ") + d.substring(d.indexOf(":") - 1, d.indexOf("-"));
h._x = 10;
h._y = 45 + ((i - 1) * 16);
if (f) {
t.htmlText = title;
f = false;
} else {
t.htmlText = t.htmlText + title;
}
i++;
}
_local4 = _local4.nextSibling;
}
} else {
t.text = "";
}
};
Symbol 257 MovieClip Frame 1
x = new XML();
x.ignoreWhite = true;
(_root.load ? (x.load("http://rss.ngfiles.com/dailytop5.xml")) : null);
x.onLoad = function (success) {
if (success) {
loading.text = "";
loading.unloadMovie();
d = String(this.childNodes[0].childNodes[0].childNodes[2].firstChild);
day = d.substring(d.indexOf(",") + 2, d.indexOf(" ", 6)) - 1;
month = d.substr(d.indexOf(" ", 6) + 1, 3);
year = d.substr(d.indexOf(" ", 10) + 3, 2);
_parent.date.htmlText = ("<b>For yesterday, " + ((((day + "/") + month) + "/") + year)) + "</b>";
i = 1;
var _local4 = this.childNodes[0].childNodes[0].childNodes[0];
while (_local4 != null) {
if (_local4.nodeName == "item") {
slot = _parent.slots.attachMovie("top 5 slot", "slot" + i, _parent.slots.getNextHighestDepth());
slot._y = (i - 1) * (slot._height + 5);
var _local3 = _local4.firstChild;
while (_local3 != null) {
this[_local3.nodeName] = _local3.firstChild;
_local3 = _local3.nextSibling;
}
title = String(_local4.firstChild.firstChild);
title = title.substr(title.indexOf(".") + 2);
tmpTxt = _parent.createTextField("txt", _parent.getNextHighestDepth(), 0, 0, 0, 0);
tmpTxt.html = true;
tmpTxt.htmlText = title;
slot.title = ("<b>" + tmpTxt.text) + "</b>";
tmpText.removeTextField();
d = String(this.pubDate);
day = d.substring(d.indexOf(",") + 2, d.indexOf(" ", 6));
month = d.substr(d.indexOf(" ", 6) + 1, 3);
year = d.substr(d.indexOf(" ", 10) + 3, 2);
slot.author = ((("<a href='http://" + this.source) + ".newgrounds.com/' target='_blank'>") + this.source) + "</a>";
slot.i = String(this.link).substr(-6, 6);
slot.rank = i;
slot.h.link = this.link;
slot.h.desc = this.description;
slot.h.origin = (((((day + "/") + month) + "/") + year) + ", ") + d.substring(d.indexOf(":") - 1, d.indexOf("-"));
i++;
}
_local4 = _local4.nextSibling;
}
} else {
loading.text = "";
}
};
Symbol 259 Button
on (release, keyPress "<Enter>") {
getURL ((("http://www.newgrounds.com/portal/search/" + _root.searchType.toLowerCase()) + "/") + searchString.text, "_blank");
}
Symbol 266 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 2
stop();
Symbol 269 MovieClip Frame 1
stop();
Instance of Symbol 266 MovieClip "a" in Symbol 269 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop((this.hitTest(_root._xmouse, _root._ymouse) ? 2 : 1));
}
on (press) {
_root.searchType = "Author";
_parent.gotoAndStop(1);
}
onClipEvent (load) {
t = "Author";
}
Instance of Symbol 266 MovieClip "t" in Symbol 269 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop((this.hitTest(_root._xmouse, _root._ymouse) ? 2 : 1));
}
on (press) {
_root.searchType = "Title";
_parent.gotoAndStop(1);
}
onClipEvent (load) {
t = "Title";
}
Instance of Symbol 269 MovieClip "search" in Symbol 270 MovieClip Frame 1
on (press) {
gotoAndStop (2);
}
onClipEvent (load) {
onMouseDown = function () {
if ((!t.hitTest(_root._xmouse, _root._ymouse)) and (!a.hitTest(_root._xmouse, _root._ymouse))) {
gotoAndStop (1);
}
};
onMouseUp = function () {
if (t.hitTest(_root._xmouse, _root._ymouse)) {
_root.searchType = "Title";
gotoAndStop (1);
}
if (a.hitTest(_root._xmouse, _root._ymouse)) {
_root.searchType = "Author";
gotoAndStop (1);
}
};
}
Symbol 276 Button
on (press) {
getURL ("http://dissoluteproductions.com/", "_blank");
}
Symbol 277 Button
on (press) {
getURL ("http://dissoluteproductions.com/NG_box.php", "_blank");
_root.ib.removeMovieClip();
}
on (rollOver) {
t = _root.attachMovie("dl box", "ib", _root.getNextHighestDepth());
t._y = -200;
}
on (rollOut) {
_root.ib.removeMovieClip();
}
Symbol 286 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/list.php?which=top10", "_blank");
}
Symbol 290 MovieClip Frame 1
x = new XML();
x.ignoreWhite = true;
(_root.load ? (x.load("http://rss.ngfiles.com/weeklytop10.xml")) : null);
x.onLoad = function (success) {
if (success) {
d = String(this.childNodes[0].childNodes[0].childNodes[2].firstChild);
day = d.substring(d.indexOf(",") + 2, d.indexOf(" ", 6));
month = d.substr(d.indexOf(" ", 6) + 1, 3);
year = d.substr(d.indexOf(" ", 10) + 3, 2);
date.htmlText = ("<b>For week ending: " + ((((day + "/") + month) + "/") + year)) + "</b>";
f = true;
i = 1;
var _local4 = this.childNodes[0].childNodes[0].childNodes[0];
while (_local4 != null) {
if (_local4.nodeName == "item") {
var _local3 = _local4.firstChild;
while (_local3 != null) {
this[_local3.nodeName] = _local3.firstChild;
_local3 = _local3.nextSibling;
}
title = String(_local4.firstChild.firstChild);
title = title.substr(title.indexOf(".") + 2);
tmpTxt = _parent.createTextField("txt", _parent.getNextHighestDepth(), 0, 0, 0, 0);
tmpTxt.html = true;
tmpTxt.htmlText = title;
title = ((((i < 10) ? ("0" + i) : (i)) + ". <b><font color='#FF9900'>") + tmpTxt.text) + "</font></b><br>";
tmpText.removeTextField();
d = String(this.pubDate);
day = d.substring(d.indexOf(",") + 2, d.indexOf(" ", 6));
month = d.substr(d.indexOf(" ", 6) + 1, 3);
year = d.substr(d.indexOf(" ", 10) + 3, 2);
h = attachMovie("info hover", "ih" + i, getNextHighestDepth());
h.i = String(this.link).substr(-6, 6);
h.author = this.source;
h.desc = this.description;
h.link = this.link;
h.origin = (((((day + "/") + month) + "/") + year) + ", ") + d.substring(d.indexOf(":") - 1, d.indexOf("-"));
h._x = 10;
h._y = 70 + ((i - 1) * 16);
if (f) {
t.htmlText = title;
f = false;
} else {
t.htmlText = t.htmlText + title;
}
i++;
}
_local4 = _local4.nextSibling;
}
} else {
t.text = "";
}
};
Symbol 294 MovieClip Frame 10
stop();