Frame 1
function loadXML(loaded) {
if (loaded) {
xmlok = true;
banners = this.firstChild.firstChild.childNodes;
x = 0;
while (x < banners.length) {
btarg = (banners[x].attributes.target ? (banners[x].attributes.targ) : "_self");
bannarray.push([banners[x].attributes.title, banners[x].attributes.link, btarg]);
x++;
}
txt_next = this.firstChild.childNodes[1].attributes.next;
txt_back = this.firstChild.childNodes[1].attributes.back;
wait = (owait = this.firstChild.childNodes[1].attributes.waittime);
nextvideo();
_root.onEnterFrame = function () {
if ((--wait) < 0) {
nextvideo();
wait = owait;
}
};
} else {
trace("Dimensional Vortex ate your datas, you are eaten by a grue");
}
}
function fadeto(targ, mod, maxval) {
if (!mod) {
mod = 3;
}
if ((!maxval) && (maxval != 0)) {
maxval = 100;
}
if (Math.abs(maxval - targ._alpha) > 1) {
targ._alpha = targ._alpha + ((maxval - targ._alpha) / mod);
if (targ._alpha > 0) {
targ._visible = true;
}
} else {
targ._alpha = maxval;
if ((targ._alpha <= 0) && (!targ.alwaysvisible)) {
targ._visible = false;
}
delete targ.onEnterFrame;
}
}
function nextvideo(prev) {
if (!loadok) {
return(undefined);
}
wait = owait;
if (prev) {
curclip--;
if (curclip < 0) {
curclip = bannarray.length - 1;
}
} else if ((!curclip) && (curclip != 0)) {
curclip = 0;
} else {
curclip++;
if (curclip == bannarray.length) {
curclip = 0;
}
}
targ = ev.b_loader;
_root.loadok = false;
c_banner = targ["banner_" + curclip];
if (!c_banner) {
ev.clock._visible = true;
nclip = targ.createEmptyMovieClip("banner_" + curclip, targ.getNextHighestDepth());
nclip.createEmptyMovieClip("banner", nclip.getNextHighestDepth()).loadMovie(bannarray[curclip][0]);
nclip._alpha = 0;
nclip.prevclip = prevclip;
nclip.num = curclip;
clink = bannarray[curclip][1];
ctarg = bannarray[curclip][2];
nclip.onEnterFrame = function () {
if ((this.banner.getBytesLoaded() >= this.banner.getBytesTotal()) && (this.banner.getBytesTotal() > 0)) {
ev.clock._visible = false;
this._parent["banner_" + this.prevclip].onEnterFrame = function () {
fadeto(this, "", 0);
};
this.onEnterFrame = function () {
this._alpha = this._alpha + ((100 - this._alpha) / 5);
if ((100 - this._alpha) < 5) {
this._alpha = 100;
if (this._visible) {
this._parent["banner_" + this.prevclip]._visible = false;
}
_root.loadok = true;
delete this.onEnterFrame;
}
};
}
};
nclip.forceSmoothing = true;
} else {
c_banner.swapDepths(targ.getNextHighestDepth());
c_banner.banner.loadMovie(bannarray[curclip][0]);
c_banner._alpha = 0;
c_banner._visible = true;
c_banner.prevclip = prevclip;
clink = bannarray[curclip][1];
c_banner.onEnterFrame = function () {
if ((this.banner.getBytesLoaded() >= this.banner.getBytesTotal()) && (this.banner.getBytesTotal() > 0)) {
this._parent["banner_" + this.prevclip].onEnterFrame = function () {
fadeto(this, "", 0);
};
this.onEnterFrame = function () {
this._alpha = this._alpha + ((100 - this._alpha) / 5);
if ((100 - this._alpha) < 5) {
this._alpha = 100;
if (this._visible) {
this._parent["banner_" + this.prevclip]._visible = false;
}
_root.loadok = true;
delete this.onEnterFrame;
}
};
}
};
}
prevclip = curclip;
}
Stage.showMenu = false;
Stage.scaleMode = "noScale";
_quality = "BEST";
bannarray = new Array();
var txt_next;
var txt_back;
var xmlok;
var wait;
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
if (!xmlname) {
xmlname = "news.xmls";
}
xmlname = xmlname + ("?falth=" + new Date().getTime());
xmlData.load(xmlname);
loadok = true;
var curclip;
var prevclip;
Symbol 7 MovieClip Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation + spd);
};
Instance of Symbol 7 MovieClip in Symbol 8 MovieClip Frame 1
onClipEvent (load) {
this.spd = 8;
}
Instance of Symbol 7 MovieClip in Symbol 8 MovieClip Frame 1
onClipEvent (load) {
this.spd = 0.35;
}
Symbol 17 MovieClip Frame 1
_alpha = 0;
alwaysvisible = true;
this.onRollOver = function () {
this.onEnterFrame = function () {
_root.fadeto(this);
};
};
this.onRollOut = function () {
this.onEnterFrame = function () {
_root.fadeto(this, "", 0);
};
};
this.onRelease = function () {
_root.nextvideo(true);
};
Symbol 19 MovieClip Frame 1
_alpha = 0;
alwaysvisible = true;
this.onRollOver = function () {
this.onEnterFrame = function () {
_root.fadeto(this);
};
};
this.onRollOut = (this.onReleaseOutside = function () {
this.onEnterFrame = function () {
_root.fadeto(this, "", 0);
};
});
this.onRelease = function () {
_root.nextvideo();
};
Symbol 20 MovieClip Frame 1
function hugcorner() {
this._x = _parent.bg._x + _parent.bg._width;
this._y = _parent.bg._y + _parent.bg._height;
this._visible = true;
}
this._visible = false;
this.onEnterFrame = function () {
if (_root.xmlok) {
b_txt.text = _root.txt_back.toUpperCase();
n_txt.text = _root.txt_next.toUpperCase();
hugcorner();
}
};
Instance of Symbol 8 MovieClip "clock" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 10 MovieClip in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
getURL (_root.clink, _root.ctarg);
};
}