Frame 1
function waitonad() {
var _local1 = _root.adbutton.waitonadend - getTimer();
if (_local1 < 0) {
_root.adbutton.onEnterFrame = undefined;
loadgame();
}
}
function waitforad() {
var _local1 = _root;
_lockroot = false;
if (_local1.adimage._width) {
var _local2 = (adimage._totalframes != 1) || (values.adisswf != undefined);
if (!_local2) {
adimage._x = (Stage.width - adimage._width) >> 1;
adimage._y = (Stage.height - adimage._height) >> 1;
} else if ((adimage._x == (Stage.width + 1000)) && (adimage._y == 0)) {
adimage._x = 0;
adimage._y = 0;
}
_local1.adbutton.waitonadend = getTimer() + (Number(values.addur) * 1000);
_local1.adbutton.onEnterFrame = _local1.waitonad;
} else {
_local1.adimage._x = Math.random() * 2;
}
}
var frameid = "94";
var settingsurlbase = "http://www.5minutesmore.com/wframes/?id=";
var loadintolevel = 0;
var d = new Date();
var settingsurl = (((settingsurlbase + frameid) + "&nocache=") + d.getTime());
System.security.allowDomain("*");
_lockroot = false;
var dl = new XML();
var values = {};
var adimage;
var adbutton;
var loaderindicator2;
var intervalid;
_root.loadgame = function () {
var _local1 = _root;
_lockroot = false;
adbutton._visible = false;
adimage._visible = false;
loaderindicator2._visible = false;
stopAllSounds();
if ((values.adovl != undefined) && (values.adovl != "")) {
loadMovieNum (_local1.values.adovl, 1002);
}
loadMovieNum (_local1.values.gmsrc, loadintolevel);
};
dl.onData = function (d) {
if (d != undefined) {
var _local2 = d.split(newline);
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = _local2[_local1].indexOf(":");
if (_local3 != -1) {
values[_local2[_local1].substr(0, _local3)] = _local2[_local1].substr(_local3 + 1);
} else {
values[_local2[_local1]] = true;
}
_local1++;
}
loadintolevel = ((values.gmlvl == undefined) ? (loadintolevel) : (values.gmlvl));
if (values.adsrc != undefined) {
debug.text = "loading:" + values.adsrc;
loaderindicator2 = attachMovie("loaderindication", "loaderindicator2", 10);
loaderindicator2._alpha = 20;
adbutton = attachMovie("loaderindication", "button", -1);
adbutton.beginFill(Number("0x" + values.adcol.split(" ").join("").split("x").join("").split("#").join("")));
adbutton.moveTo(-2500, -2500);
adbutton.lineTo(Stage.width + 2500, -2500);
adbutton.lineTo(Stage.width + 2500, Stage.height + 2500);
adbutton.lineTo(-2500, Stage.height + 2500);
adbutton.lineTo(-2500, -2500);
adbutton.endFill();
adbutton.onRelease = function () {
getURL (values.adlnk, ((values.adtgt == undefined) ? "_blank" : (values.adtgt)));
};
adimage = createEmptyMovieClip("adimage", 2);
adimage.loadMovie(values.adsrc);
if (values.adisswf == undefined) {
adimage._x = Stage.width + 1000;
}
_root.adbutton.onEnterFrame = waitforad;
_root.adbutton.waitonadend = getTimer() + (Number(values.addur) * 3000);
} else {
loadgame();
}
}
};
dl.load(settingsurl);
stop();
Symbol 5 MovieClip [loaderindication] Frame 3
_x = (Stage.width - 40);
_y = (Stage.height - 40);
wheel._rotation = wheel._rotation + 8;
gotoAndPlay (2);