Frame 1
var Credit1 = "Stolen from an archived copy of bellyfull.tv";
var Credit2 = "Repackaged into one SWF by Justin from PNG";
var Credit3 = "For /f/, 20160504";
var Credit4 = "PS. Fuck the preloader. Couldn't get it working the way I wanted.";
_global.gRoot = this;
_global.gTrace = function (p_str) {
gRoot.textbox.text = gRoot.textbox.text + (p_str + "\r");
};
_global.gTrace2 = function (p_str) {
gRoot.textbox.text = gRoot.textbox.text + (p_str + " ");
};
this.initStage = function () {
_global.gFullStage = new FullStage(this);
};
_global.gHei = Stage.height;
_global.gWid = Stage.width;
FullStage = function (mc) {
this.mc = mc;
this.init();
};
FullStage.prototype.init = function () {
Stage.scaleMode = "noscale";
Stage.align = "TL";
Stage.addListener(this);
this.onResize();
this.mc.bg._alpha = 100;
};
FullStage.prototype.onResize = function () {
gWid = Stage.width;
gHei = Stage.height;
this.mc.bg._width = gWid;
this.mc.bg._height = gHei;
var _local2 = Math.round(gWid / 2);
var _local4 = Math.round(gHei / 2);
var _local3 = this.mc.content.mcBig;
_local3._x = _local2;
_local3._y = _local4;
var _local6 = this.mc.content.mcImage;
_local6._x = _local2;
_local6._y = _local4;
var _local7 = this.mc.mcPreloader;
_local7._x = _local2;
var _local8 = 15;
var _local9 = 15;
var _local5 = this.mc.content.mcCredits;
_local5._x = Math.round(gWid - _local8);
_local5._y = Math.round(gHei - _local9);
};
FullStage.prototype.preload = function () {
var _local3 = this.mc.mcPreloader;
_local3._alpha = 100;
var _local9 = _local3.mcLine;
var mcMask = _local3.mcMask;
_local9.setMask(mcMask);
_local3.init = function () {
this.baseRat = 1;
this.tMin = 5;
this.kSnd = 500;
this.isFirst = true;
};
_local3.init();
_local3.update = function () {
if (this.isFirst) {
this.isFirst = false;
this.t0 = getTimer() / 1000;
this.mcText._alpha = 50;
}
var _local6 = gRoot.getBytesTotal() / 1024;
var _local8 = gRoot.getBytesLoaded() / 1024;
var _local4 = _local8 / _local6;
if (_local6 < 2) {
_local4 = 0;
}
var _local7 = (getTimer() / 1000) - this.t0;
var _local5 = _local7 / this.tMin;
var _local2 = _local4 * this.baseRat;
if (_local2 > _local5) {
_local2 = _local5;
}
this.mcMask._y = gHei;
this.mcMask._height = gHei * _local2;
this.mcText._y = this.mcMask._y - this.mcMask._height;
var _local3 = Math.round(_local2 * 100) + 2;
if (_local3 > 100) {
_local3 = 100;
}
this.mcText.tBox.text = _local3;
if (_local2 >= 1) {
this.done();
} else {
setTimeout(_local2.update, 100);
}
};
_local3.update();
_local3.done = function () {
_global.gRoot.gotoAndPlay(2);
this.hide();
delete this.done;
};
};
this.initStage();
Frame 2
Bellyfull = function (mc) {
this.mc = mc;
this.mc.obj = this;
this.preload();
this.requestMusic();
this.preInit();
gFullStage.onResize();
};
Bellyfull.prototype.preInit = function () {
};
Bellyfull.prototype.init = function () {
this.build_ct = 0;
var _local7 = this.mc.bg;
_local7.onRelease = function () {
var _local2 = gRoot._xmouse / gWid;
var _local1 = gRoot._ymouse / gHei;
gBellyfull.makeDrop(_local2, _local1);
};
_local7.useHandCursor = false;
var _local14 = this.mc.content.mcImage;
_local14._alpha = 100;
_local14.hide();
_local14.mcChair.hide();
_local14.mcDesk.hide();
_local14.mcKid.hide();
var _local9 = this.mc.mcLinkage;
_local9.hide();
this.isCreditsOpen = false;
var _local2 = this.mc.content.mcCredits;
var _local8 = _local2.mcText;
_local8._alpha = 100;
_local8.hide();
var _local15 = (this.creditsOrderArr = ["mcSong", "mcCopyright", "mcPurchase", "mcDownload", "mcLyrics", "mcVisuals", "mcLinks"]);
var _local4 = _local2.mcPointer;
_local4.mcLine.setMask(_local4.mcMask);
_local4.hide();
_local4 = _local2.mcOver.mcPointer;
_local4.mcLine.setMask(_local4.mcMask);
_local4.show();
_local2.mcOver.hide();
_local4.mcMask._yscale = 1;
var _local12 = _local2.mcButton;
_local12.alpBase = _local12._alpha;
var _local5 = _local12.mcHit;
_local5.onRelease = function () {
if (gBellyfull.isCreditsOpen) {
gBellyfull.closeCredits();
return(undefined);
}
gBellyfull.openCredits();
};
_local5.onRollOver = function () {
var _local2 = this._parent._parent.mcOver;
_local2.mcPointer.mcMask.transform("linearTween", 15, "_yscale", 150);
_local2.pauseAndInvokeKillAll();
_local2.show();
var _local3 = this._parent.mcButton;
_local3.gotoAndStop(2);
this._parent.transform("linearTween", 5, "_alpha", 100);
};
_local5.onRollOut = function () {
var _local2 = this._parent._parent.mcOver;
var _local3 = 9;
_local2.mcPointer.mcMask.transform("linearTween", _local3, "_yscale", 1);
_local2.pauseAndInvokeKillAll();
_local2.pauseAndInvoke("hideMe", _local3, "hide", _local2);
var _local4 = this._parent.mcButton;
_local4.gotoAndStop(1);
this._parent.transform("linearTween", 5, "_alpha", this._parent.alpBase);
};
_local2.alpBase = _local2._alpha;
_local2._alpha = 0;
var _local13 = 60;
var _local10 = 25;
_local2.pauseAndInvoke("fadeIn", _local13, "transform", _local2, "linearTween", _local10, "_alpha", _local2.alpBase);
var _local11 = _local2.mcText.mcLyrics;
var _local6 = _local11.mcContent;
_local6._alpha = 100;
_local6.hide();
this.isLyricsOpen = false;
};
Bellyfull.prototype.end = function () {
var _local4 = 40;
var _local3 = this.mc.content.mcCredits;
var _local2 = "showCreditsEndId";
_local3.pauseAndInvokeKill(_local2);
_local3.pauseAndInvoke(_local2, _local4, "showCreditsEnd", gBellyfull);
};
Bellyfull.prototype.showCreditsEnd = function () {
if (this.isCreditsOpen) {
return(undefined);
}
this.openCredits();
};
Bellyfull.prototype.openCredits = function () {
this.isCreditsOpen = true;
var arr = this.creditsOrderArr;
var mcCredits = this.mc.content.mcCredits;
var _local5 = mcCredits.mcText;
var _local2 = mcCredits.mcPointer;
var delIncr = 5;
var _local10 = 0;
mcCredits.mcOver.mcPointer.hide();
_local5.show();
_local5.pauseAndInvokeKillAll();
_local2.show();
_local2.delIncr = delIncr;
_local2.f0 = -delIncr;
_local2.f1 = 0;
_local2.init = function () {
this.i = 0;
this._rotation = 90;
this.mcMask._height = this._parent.mcOver.mcPointer.mcMask._height;
};
_local2.init();
_local2.onEnterFrame = function () {
if (this.i >= (arr.length + 1)) {
this.done();
return(undefined);
}
var _local8 = this.f1 - this.f0;
if (_local8 >= this.delIncr) {
var _local2 = mcCredits.mcText[arr[this.i]];
var _local3 = -_local2._x;
var _local4 = -_local2._y;
var _local6 = Math.atan2(_local4, _local3);
var _local7 = Math.radiansToDegrees(_local6) + 90;
var _local5 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
this.rotTarg = _local7;
this.lenTarg = _local5;
_local2._alpha = 0;
_local2.show();
_local2.transform("linearTween", 4, "_alpha", 100);
this.i++;
this.f0 = this.f1;
}
this._rotation = this._rotation + ((this.rotTarg - this._rotation) * 0.8);
this.mcMask._height = this.mcMask._height + ((this.lenTarg - this.mcMask._height) * 0.9);
this.f1++;
};
_local2.done = function () {
this.hide();
delete this.onEnterFrame;
this._parent.mcOver.mcPointer.show();
};
};
Bellyfull.prototype.closeCredits = function () {
this.isCreditsOpen = false;
var _local6 = this.creditsOrderArr;
var _local8 = this.mc.content.mcCredits;
var _local7 = _local8.mcText;
_local8.mcOver.mcPointer.show();
var _local9 = _local8.mcPointer;
_local9.hide();
delete _local9.onEnterFrame;
var _local2 = 0;
while (_local2 < _local6.length) {
var mc = _local7[_local6[_local2]];
var _local3 = 1;
var _local5 = _local3 * _local2;
var _local4 = 3;
mc.pauseAndInvokeKillAll();
mc.pauseAndInvoke("fadeOut", _local5, "transform", mc, "linearTween", _local4, "_alpha", 0);
_local2++;
}
_local7.pauseAndInvokeKillAll();
_local7.pauseAndInvoke("hideMe", ((_local3 * _local6.length) + _local4) + 1, "hide", _local7);
if (this.isLyricsOpen) {
this.closeLyrics();
}
};
Bellyfull.prototype.openLyrics = function () {
this.isLyricsOpen = true;
var _local3 = this.mc.content.mcCredits.mcText.mcLyrics;
var _local2 = _local3.mcContent;
_local2.show();
_local2.gotoAndPlay("open");
_local3.gotoAndStop(2);
};
Bellyfull.prototype.closeLyrics = function () {
this.isLyricsOpen = false;
var _local2 = this.mc.content.mcCredits.mcText.mcLyrics;
var _local3 = _local2.mcContent;
_local3.gotoAndPlay("close");
_local2.gotoAndStop(1);
};
Bellyfull.prototype.requestMusic = function () {
_global.gSndMusic = new Sound();
gSndMusic.attachSound("BellyfullTrack");
gSndMusic.stop();
};
Bellyfull.prototype.preload = function () {
var _local2 = this.mc.mcPreloader;
_local2._alpha = 100;
var _local8 = _local2.mcLine;
var mcMask = _local2.mcMask;
_local8.setMask(mcMask);
_local2.init = function () {
this.baseRat = 1;
this.tMin = 2;
this.kSnd = 500;
this.isFirst = true;
};
_local2.init();
_local2.update = function () {
if (this.isFirst) {
this.isFirst = false;
this.t0 = getTimer() / 1000;
this.mcText._alpha = 50;
}
var _local6 = gRoot.getBytesTotal() / 1024;
var _local8 = gRoot.getBytesLoaded() / 1024;
var _local3 = _local8 / _local6;
if (_local6 < 2) {
_local3 = 0;
}
var _local7 = (getTimer() / 1000) - this.t0;
var _local4 = _local7 / this.tMin;
var _local2 = _local3 * this.baseRat;
if (_local2 > _local4) {
_local2 = _local4;
}
this.mcMask._y = gHei;
this.mcMask._height = gHei * _local2;
this.mcText._y = this.mcMask._y - this.mcMask._height;
var _local5 = Math.round(_local2 * 100) + 2;
if (_local5 > 100) {
_local5 = 100;
}
this.mcText.tBox.text = "Bellyfull";
if (_local2 >= 1) {
this.done();
}
};
_local2.done = function () {
delete this.onEnterFrame;
this.hide();
delete this.done;
gBellyfull.preloadDone();
};
_local2.onEnterFrame = function () {
this.update();
};
};
Bellyfull.prototype.preloadDone = function () {
this.mc.gotoAndStop(this.mc._currentframe + 1);
this.init();
gFullStage.onResize();
_global.gSequencer = new BelSequencer(gRoot, gSndMusic);
this.startMusic();
};
Bellyfull.prototype.startMusic = function () {
if (gSequencer.isSilent) {
gSequencer.startSilent();
return(undefined);
}
gSequencer.start();
};
Bellyfull.prototype.stopMusic = function () {
gSequencer.stop();
};
Bellyfull.prototype.makeBuilding = function (z0, z1, x0, x1, alp0, alp1) {
var _local2 = this.mc.content;
var _local3 = _local2.attachMovie("mcBuild", "mcBuild" + this.build_ct, _local2.nextHighestDepth++);
this["build_obj_" + this.build_ct] = new Build(_local3, z0, z1, x0, x1, alp0, alp1);
this.build_ct++;
};
Bellyfull.prototype.makeDrop = function (xRat, yRat) {
var _local4 = this.mc.content;
var _local6 = _local4.attachMovie("mcDrop", "mcDrop" + _local4.nextHighestDepth, _local4.nextHighestDepth++);
var _local2 = _local6.mcLine;
var _local13 = gWid * 0.1;
var _local12 = gWid * 0.95;
var _local5 = gHei * 0.1;
var _local9 = gHei * 0.95;
var _local14 = Math.constrain(xRat * gWid, _local13, _local12);
var _local10 = Math.constrain(yRat * gHei, _local5, _local9);
var _local8 = 0;
var _local11 = 180;
var _local7 = 60;
var _local15 = 100;
var _local3 = (_local10 - _local5) / (_local9 - _local5);
_local3 = Math.pow(_local3, 0.5);
_local6._xscale = (_local6._yscale = _local8 + (_local3 * (_local11 - _local8)));
_local6._alpha = _local7 + (_local3 * (_local15 - _local7));
_local2._xscale = (10000 / _local6._xscale) / 2;
_local2._yscale = 10000 / _local6._yscale;
_local6._x = _local14;
_local6._y = _local10;
_local2.incr = 2;
_local2.onEnterFrame = function () {
var _local2 = this.incr;
if (this._alpha >= _local2) {
this._alpha = this._alpha + (-_local2);
}
};
};
Bellyfull.prototype.link = function (str) {
var _local2 = "_blank";
if (((__reg0 = str)) === "download") {
getURL ("download/?file=boy_in_static_-_bellyfull.mp3", "empty");
return(undefined);
}
if (__reg0 === "buy0") {
getURL ("http://www.amazon.com/gp/product/B0006HXXK6", "_blank");
return(undefined);
}
if (__reg0 === "buy1") {
getURL ("http://www.boomkat.com/item.cfm?id=15608", "_blank");
return(undefined);
}
if (__reg0 === "buy2") {
getURL ("http://www.linusrecords.jp/", "_blank");
return(undefined);
}
if (__reg0 === "link0") {
getURL ("http://www.boyinstatic.com", _local2);
return(undefined);
}
if (__reg0 === "link1") {
getURL ("http://www.alientransistor.de", _local2);
return(undefined);
}
if (__reg0 === "link2") {
getURL ("http://www.stayhonest.com", _local2);
return(undefined);
}
if (__reg0 === "lyrics") {
if (this.isLyricsOpen) {
this.closeLyrics();
} else {
this.openLyrics();
}
return(undefined);
}
return(undefined);
};
Build = function (mc, z0, z1, x0, x1, alp0, alp1) {
this.mc = mc;
this.mc.obj = this;
if (z0 == null) {
z0 = 0;
}
if (z1 == null) {
z1 = 1;
}
if (x0 == null) {
x0 = 0;
}
if (x1 == null) {
x1 = 1;
}
if (alp0 == null) {
alp0 = 15;
}
if (alp1 == null) {
alp1 = 65;
}
this.alp0 = alp0;
this.alp1 = alp1;
this.z0 = z0;
this.z1 = z1;
this.x0 = x0;
this.x1 = x1;
this.init();
};
Build.prototype.init = function () {
var _local2 = this.mc;
this.sca0 = 33;
this.sca1 = 95;
this.spd_min = 250;
this.spd_max = 530;
this.z = this.z0 + (Math.random() * (this.z1 - this.z0));
var _local3 = 3.5;
_local2._xscale = (_local2._yscale = this.sca0 + (Math.pow(this.z, _local3) * (this.sca1 - this.sca0)));
_local3 = 2;
_local2._alpha = this.alp0 + (Math.pow(this.z, _local3) * (this.alp1 - this.alp0));
_local3 = 3;
this.spd = -(this.spd_min + ((this.spd_max - this.spd_min) * Math.pow(this.z, _local3)));
this.y0 = gHei + _local2._height;
this.y1 = -_local2._height;
_local2._x = this.x0 + (Math.random() * (this.x1 - this.x0));
_local2._y = this.y0;
_local2.onEnterFrame = function () {
this.obj.update();
};
this.t0 = getTimer() / 1000;
};
Build.prototype.update = function () {
var _local2 = this.mc;
var _local5 = _local2._y;
var _local4 = (_local5 - this.y0) / (this.y1 - this.y0);
var _local3 = 1 + Math.floor(_local4 * (_local2._totalframes - 0.01));
if (_local3 != _local2._currentframe) {
_local2.gotoAndStop(_local3);
}
this.t1 = getTimer() / 1000;
var _local6 = this.t1 - this.t0;
this.t0 = this.t1;
_local2._y = _local2._y + (this.spd * _local6);
if (_local4 >= 1) {
_local2.removeMovieClip();
}
};
Sequencer = function () {
};
Sequencer.prototype.initGen = function () {
var _local2 = 0;
for(;;){
if (_local2 >= this.arr.length) {
return(undefined);
}
_local2++;
};
};
Sequencer.prototype.startAtBeat = function (sub) {
var _local2 = (((sub / this.subDiv) * (1 / this.bpm)) * 60) + this.startDelay;
this.start(_local2);
};
Sequencer.prototype.start = function (offset) {
if (offset == null) {
offset = 0;
}
this.sndMusic.start(offset, 1);
this.subLast = sub - 1;
this.update = this.updateOn;
this.update();
};
Sequencer.prototype.startSilentAtBeat = function (sub) {
var _local2 = (((sub / this.subDiv) * (1 / this.bpm)) * 60) + this.startDelay;
this.startSilent(_local2);
};
Sequencer.prototype.startSilent = function (offset) {
this.t0 = (getTimer() / 1000) - offset;
this.subLast = sub - 1;
this.update = this.updateOn;
this.update();
};
Sequencer.prototype.stop = function () {
this.sndMusic.stop();
delete this.update;
};
Sequencer.prototype.updateOn = function () {
var _local5 = (this.sndMusic.position / 1000) - this.startDelay;
if (this.isSilent) {
this.timeCurr = getTimer() / 1000;
_local5 = this.timeCurr - this.t0;
}
var _local3 = Math.floor(((_local5 / 60) * this.bpm) * this.subDiv);
if (this.isSilent) {
if (_local3 > this.arrPatPlay.length) {
this.end();
}
}
if (_local3 != this.subLast) {
if (this.arrPatPlay[_local3] != null) {
i = 0;
while (i < this.arrPatPlay[_local3].length) {
var _local4 = this.arrPatPlay[_local3][i];
var _local2 = this[_local4];
_local2();
i++;
}
}
this.subLast = _local3;
}
};
Sequencer.prototype.end = function () {
this.endCustom();
this.update = null;
};
BelSequencer = function (mc, sndMusic) {
this.mc = mc;
this.mc.obj = this;
this.sndMusic = sndMusic;
this.isSilent = this.sndMusic == null;
this.mc.onEnterFrame = function () {
this.obj.update();
};
sndMusic.obj = this;
sndMusic.onSoundComplete = function () {
this.obj.end();
};
this.initGen();
this.init();
this.hitFunctions();
};
BelSequencer.prototype = new Sequencer();
BelSequencer.prototype.endCustom = function () {
gBellyfull.end();
};
BelSequencer.prototype.init = function () {
this.bpm = 138;
this.subDiv = 2;
this.startDelay = 1;
var _local4 = "arrPat";
p = 0;
this[_local4 + p] = [null, null, null, null, null, null, null, null, null, null, null, null];
p = 1;
this[_local4 + p] = [["b1"], null, ["b1"], null, ["b1"], null, ["b1"], null, ["b1"], null, ["b1"], null];
p = 2;
this[_local4 + p] = [["b2"], null, ["b2"], null, ["b2"], null, ["b2"], null, ["b2"], null, ["b2"], null];
p = 10;
this[_local4 + p] = [["r1"], ["r3"], ["r4"], null, ["r1"], ["r1"], ["r2"], ["r3"], ["r4"], null, ["r1"], ["r1"]];
p = 11;
this[_local4 + p] = [["r1"], null, null, null, null, null, null, null, null, null, null, null];
p = 20;
this[_local4 + p] = [["k1", "m1"], null, ["s1"], null, ["m1"], null, ["m1"], ["m1"], ["s1"], null, ["m1"], ["m1"]];
p = 21;
this[_local4 + p] = [["k2", "m1"], null, null, null, null, null, null, null, null, null, null, null];
p = 40;
this[_local4 + p] = [["cChairHead"], null, null, null, null, null, null, null, null, null, ["cChairSeat"], null];
p = 42;
this[_local4 + p] = [["cChairBridge"], null, null, null, null, null, null, null, null, null, null, null];
p = 44;
this[_local4 + p] = [["cChairLegLeft"], null, null, null, null, null, ["cChairLegRight"], null, null, null, null, null];
p = 50;
this[_local4 + p] = [["cDeskTop"], null, null, null, null, null, null, null, null, null, null, null];
p = 52;
this[_local4 + p] = [["cDeskLegBack"], null, null, null, null, null, ["cDeskLegFront"], null, null, null, null, null];
p = 54;
this[_local4 + p] = [["cDeskBody"], null, null, null, null, null, null, null, null, null, null, null];
p = 60;
this[_local4 + p] = [null, ["cKidArm"], null, null, null, null, null, null, null, null, null, null];
p = 61;
this[_local4 + p] = [null, ["cKidHair"], null, null, null, null, null, null, null, null, null, null];
p = 62;
this[_local4 + p] = [["cKidTorso"], null, null, null, null, null, null, null, null, null, null, null];
p = 63;
this[_local4 + p] = [null, null, null, null, null, null, ["cKidLegLeft"], null, null, null, null, null];
p = 64;
this[_local4 + p] = [null, null, null, null, null, null, ["cKidLegRight"], null, null, null, null, null];
p = 65;
this[_local4 + p] = [null, null, null, null, null, null, ["cKidHead"], null, null, null, null, null];
p = 90;
this[_local4 + p] = [["b10"], null, ["b10"], null, ["b10"], null, ["b10"], null, ["b10"], null, ["b10"], null];
p = 91;
this[_local4 + p] = [["b11"], null, ["b11"], null, ["b11"], null, ["b11"], null, ["b11"], null, ["b11"], null];
p = 92;
this[_local4 + p] = [["b12"], null, ["b12"], null, ["b12"], null, ["b12"], null, ["b12"], null, ["b12"], null];
p = 93;
this[_local4 + p] = [["b13"], null, ["b13"], null, ["b13"], null, ["b13"], null, ["b13"], null, ["b13"], null];
p = 94;
this[_local4 + p] = [["b14"], null, ["b14"], null, ["b14"], null, ["b14"], null, ["b14"], null, ["b14"], null];
p = 95;
this[_local4 + p] = [["b14"], null, null, null, null, null, null, null, null, null, null, null];
this.arrPatMaster = new Array([1], [1], [1], [1], [1], [1], [1], [1, 10], [1, 10], [1, 11], [1], [1, 10], [1, 11], [1], [1], [2, 20], [2, 21, 10], [2, 10], [2, 11], [2, 20], [2, 21, 10], [2, 10], [2, 10], [2, 20, 11], [2, 21, 10], [2, 11], [0], [40], [0], [0], [42], [0], [0], [0], [0], [44], [0], [0], [0], [0], [0], [0], [1], [2, 20], [2, 21, 10], [2, 10], [2, 10], [2, 20], [2, 21, 10], [2, 11], [0], [50], [52], [0], [0], [0], [0], [54], [0], [0], [0], [0], [0], [0], [0], [0], [61], [60], [0], [0], [0], [0], [0], [0], [0], [0], [0], [64], [65], [63], [0], [0], [0], [0], [0], [62], [0], [0], [0], [0], [0], [0], [0], [0], [0], [90], [90], [90], [91], [91], [91], [91], [92], [92], [93], [93], [94], [94], [95], [0]);
this.arrPatPlay = new Array();
beat = 0;
i = 0;
while (i < this.arrPatMaster.length) {
var _local6 = this["arrPat" + this.arrPatMaster[i][0]];
var _local5 = _local6.length;
j = 0;
while (j < _local5) {
this.arrPatPlay[beat] = new Array();
k = 0;
while (k < this.arrPatMaster[i].length) {
var _local3 = this.arrPatMaster[i][k];
var _local2 = this["arrPat" + _local3];
l = 0;
while (l < _local2[j].length) {
this.arrPatPlay[beat].push(_local2[j][l]);
l++;
}
k++;
}
beat++;
j++;
}
i++;
}
this.update = null;
};
BelSequencer.prototype.hitFunctions = function () {
this.b1 = function () {
var _local3 = 0.25;
var _local1 = ((1 - _local3) * gWid) / 2;
var _local2 = gWid - _local1;
var _local4 = 0;
var _local5 = 1;
gBellyfull.makeBuilding(_local4, _local5, _local1, _local2);
};
this.b2 = function () {
var _local3 = 0.75;
var _local1 = ((1 - _local3) * gWid) / 2;
var _local2 = gWid - _local1;
var _local4 = 0;
var _local5 = 1;
gBellyfull.makeBuilding(_local4, _local5, _local1, _local2);
};
this.b10 = function () {
var _local3 = 0.1;
var _local1 = ((1 - _local3) * gWid) / 2;
var _local2 = gWid - _local1;
var _local6 = 0;
var _local7 = 0.7;
var _local5 = 2;
var _local4 = 10;
gBellyfull.makeBuilding(_local6, _local7, _local1, _local2, _local5, _local4);
};
this.b11 = function () {
var _local3 = 0.2;
var _local1 = ((1 - _local3) * gWid) / 2;
var _local2 = gWid - _local1;
var _local6 = 0;
var _local7 = 0.8;
var _local5 = 5;
var _local4 = 14;
gBellyfull.makeBuilding(_local6, _local7, _local1, _local2, _local5, _local4);
};
this.b12 = function () {
var _local3 = 0.4;
var _local1 = ((1 - _local3) * gWid) / 2;
var _local2 = gWid - _local1;
var _local6 = 0.35;
var _local7 = 0.9;
var _local5 = 10;
var _local4 = 30;
gBellyfull.makeBuilding(_local6, _local7, _local1, _local2, _local5, _local4);
};
this.b13 = function () {
var _local3 = 0.5;
var _local1 = ((1 - _local3) * gWid) / 2;
var _local2 = gWid - _local1;
var _local6 = 0.4;
var _local7 = 0.9;
var _local5 = 15;
var _local4 = 55;
gBellyfull.makeBuilding(_local6, _local7, _local1, _local2, _local5, _local4);
};
this.b14 = function () {
var _local3 = 0.7;
var _local1 = ((1 - _local3) * gWid) / 2;
var _local2 = gWid - _local1;
var _local4 = 0.5;
var _local5 = 1;
gBellyfull.makeBuilding(_local4, _local5, _local1, _local2);
};
this.r1 = function () {
var _local2 = Math.vary(0.4, 0.1);
var _local1 = Math.vary(0.25, 0.01);
gBellyfull.makeDrop(_local2, _local1);
};
this.r2 = function () {
var _local2 = Math.vary(0.5, 0.05);
var _local1 = Math.vary(0.35, 0.005);
gBellyfull.makeDrop(_local2, _local1);
};
this.r3 = function () {
var _local2 = Math.vary(0.4, 0.04);
var _local1 = Math.vary(0.45, 0.005);
gBellyfull.makeDrop(_local2, _local1);
};
this.r4 = function () {
var _local2 = Math.vary(0.5, 0.04);
var _local1 = Math.vary(0.85, 0.005);
gBellyfull.makeDrop(_local2, _local1);
};
this.k1 = function () {
var _local1 = gBellyfull.mc.content.mcBig;
_local1.mcBass.gotoAndStop(2);
};
this.k2 = function () {
var _local1 = gBellyfull.mc.content.mcBig;
_local1.mcBass.gotoAndStop(1);
};
this.s1 = function () {
var _local1 = gBellyfull.mc.content.mcBig.mcBass.mcSnare;
_local1.play();
};
this.m1 = function () {
var _local1 = gBellyfull.mc.content.mcBig.mcBass.mcKick.mcTop;
var _local2 = gBellyfull.mc.content.mcBig.mcBass.mcKick.mcBot;
_local1.gotoAndPlay(2);
_local2.gotoAndPlay(2);
};
this.cChairHead = function () {
var _local2 = gRoot.content.mcImage;
_local2.show();
_local2.mcChair.show();
var _local3 = _local2.mcChair.mcHead;
_local3._alpha = 100;
_global.gConstelChairHead = new Constel(_local3);
};
this.cChairSeat = function () {
var _local3 = gRoot.content.mcImage;
var _local2 = _local3.mcChair.mcSeat;
_local2._alpha = 100;
_global.gConstelChairSeat = new Constel(_local2);
};
this.cChairBridge = function () {
var _local3 = gRoot.content.mcImage;
var _local2 = _local3.mcChair.mcBridge;
_local2._alpha = 100;
_global.gConstelChairBridge = new Constel(_local2);
};
this.cChairLegLeft = function () {
var _local3 = gRoot.content.mcImage;
var _local2 = _local3.mcChair.mcLegLeft;
_local2._alpha = 100;
_global.gConstelChairBridge = new Constel(_local2);
};
this.cChairLegRight = function () {
var _local3 = gRoot.content.mcImage;
var _local2 = _local3.mcChair.mcLegRight;
_local2._alpha = 100;
_global.gConstelChairBridge = new Constel(_local2);
};
this.cDeskBody = function () {
var _local2 = gRoot.content.mcImage;
_local2.show();
var _local4 = _local2.mcDesk;
_local4.show();
var _local3 = _local2.mcDesk.mcBody;
_local3._alpha = 100;
_global.gConstelDeskBody = new Constel(_local3, null, 8);
};
this.cDeskLegFront = function () {
var _local2 = gRoot.content.mcImage;
_local2.show();
var _local4 = _local2.mcDesk;
_local4.show();
var _local3 = _local2.mcDesk.mcLegFront;
_local3._alpha = 100;
_global.gConstelLegFront = new Constel(_local3, null, 8);
};
this.cDeskLegBack = function () {
var _local2 = gRoot.content.mcImage;
_local2.show();
var _local4 = _local2.mcDesk;
_local4.show();
var _local3 = _local2.mcDesk.mcLegBack;
_local3._alpha = 100;
_global.gConstelLegBack = new Constel(_local3, null, 8);
};
this.cDeskTop = function () {
var _local2 = gRoot.content.mcImage;
_local2.show();
var _local4 = _local2.mcDesk;
_local4.show();
var _local3 = _local2.mcDesk.mcTop;
_local3._alpha = 100;
_global.gConstelDeskTop = new Constel(_local3, null, 8);
};
this.cKidTorso = function () {
var _local2 = gRoot.content.mcImage;
_local2.show();
var _local4 = _local2.mcKid;
_local4.show();
var _local3 = _local2.mcKid.mcTorso;
_local3._alpha = 100;
_global.gConstelKidTorso = new Constel(_local3);
};
this.cKidArm = function () {
var _local2 = gRoot.content.mcImage;
_local2.show();
var _local4 = _local2.mcKid;
_local4.show();
var _local3 = _local2.mcKid.mcArm;
_local3._alpha = 100;
_global.gConstelKidArm = new Constel(_local3, null, 4);
};
this.cKidLegLeft = function () {
var _local2 = gRoot.content.mcImage;
_local2.show();
var _local4 = _local2.mcKid;
_local4.show();
var _local3 = _local2.mcKid.mcLegLeft;
_local3._alpha = 100;
_global.gConstelKidArm = new Constel(_local3);
};
this.cKidLegRight = function () {
var _local2 = gRoot.content.mcImage;
_local2.show();
var _local4 = _local2.mcKid;
_local4.show();
var _local3 = _local2.mcKid.mcLegRight;
_local3._alpha = 100;
_global.gConstelKidArm = new Constel(_local3, null, 4);
};
this.cKidHead = function () {
var _local2 = gRoot.content.mcImage;
_local2.show();
var _local4 = _local2.mcKid;
_local4.show();
var _local3 = _local2.mcKid.mcHead;
_local3._alpha = 100;
_global.gConstelKidArm = new Constel(_local3, null, 4, "animateKid", gSequencer);
};
this.cKidHair = function () {
var _local2 = gRoot.content.mcImage;
_local2.show();
var _local4 = _local2.mcKid;
_local4.show();
var _local3 = _local2.mcKid.mcHair;
_local3._alpha = 100;
_global.gConstelKidArm = new Constel(_local3, null, 3);
};
this.animateKid = function () {
var _local1 = gRoot.content.mcImage;
var _local2 = _local1.mcKid;
_local2.play();
};
};
Constel = function (mc, freqReal, fakes, func, scope) {
this.mc = mc;
this.mc.obj = this;
if (freqReal == null) {
freqReal = 2;
}
if (fakes == null) {
fakes = 6;
}
this.freqReal = freqReal;
this.fakes = fakes;
this.func = func;
this.scope = scope;
this.mcNodes = this.mc.mcNodes;
this.mcOut = this.mc.mcOut;
this.mcFill = this.mc.mcFill;
this.hasFill = this.mcFill != null;
this.init();
this.makeStars();
};
Constel.prototype.init = function () {
this.freqDraw = 13;
this.freqReal;
var _local6 = this.mcOut;
var _local7 = this.mcFill;
var _local3 = this.mcNodes;
_local7._alpha = 0;
_local7.hide();
_local6._alpha = 45;
_local6.setMask(_local3);
this.arrNodes = new Array();
for (var _local4 in _local3) {
var _local2 = _local3[_local4];
if (typeof(_local2) == "movieclip") {
this.arrNodes.push(_local2);
}
}
var _local5 = this.mc.createEmptyMovieClip("mcUpdate", this.mc.nextHighestDepth++);
_local5.obj = this;
_local5.onEnterFrame = function () {
this.obj.update();
};
_local5.pauseAndInvoke("startDrawingId", 40, "startDrawing", this);
};
Constel.prototype.makeStars = function () {
var _local36 = this.arrNodes;
var _local37 = this.fakes;
var _local16 = new Array(_local36.length * _local37);
var _local8 = 0;
var _local29 = 0;
while (_local29 < _local36.length) {
var _local7 = _local36[_local29];
var _local3 = 0;
while (_local3 < _local37) {
var _local6 = 30;
var _local9 = 120;
var _local13 = _local6 + (Math.random() * (_local9 - _local6));
var _local14 = _local6 + (Math.random() * (_local9 - _local6));
var _local20 = ((-_local13) / 2) + (Math.random() * _local13);
var _local19 = ((-_local14) / 2) + (Math.random() * _local14);
var _local28 = _local7._x + _local20;
var _local27 = _local7._y + _local19;
_local16[_local8] = new Array(2);
_local16[_local8][0] = _local28;
_local16[_local8][1] = _local27;
_local8++;
_local3++;
}
_local29++;
}
var _local30 = this.mc.createEmptyMovieClip("mcStarsHolder", this.mc.nextHighestDepth++);
var _local38 = [_local36, _local16];
this.arrStars = new Array(_local36.length + _local16.length);
this.arrRealStars = new Array(arrStars.length);
this.arrFakeStars = new Array(_local16.length);
var _local17 = 0;
_local29 = 0;
while (_local29 < _local38.length) {
var _local18 = _local38[_local29];
var _local3 = 0;
while (_local3 < _local18.length) {
var _local2 = _local30.attachMovie("mcStar", "mcStar" + _local17, _local30.nextHighestDepth++);
this.arrStars[_local17] = _local2;
_local17++;
var _local15 = _local29 == 0;
_local2.isReal = _local15;
if (_local15) {
var _local7 = _local18[_local3];
var _local28 = _local7._x;
var _local27 = _local7._y;
_local2.mcNode = _local7;
var _local21 = this.arrRealStars;
} else {
var _local28 = _local18[_local3][0];
var _local27 = _local18[_local3][1];
var _local21 = this.arrFakeStars;
}
_local21[_local3] = _local2;
_local2._x = _local28;
_local2._y = _local27;
var _local5 = (_local2.z = Math.random());
var _local11 = 8;
var _local22 = 40;
_local2._alpha = _local11 + (_local5 * (_local22 - _local11));
var _local12 = 10;
var _local23 = 63;
_local2._xscale = (_local2._yscale = _local12 + (Math.pow(_local5, 2) * (_local23 - _local12)));
if (_local5 < 0.4) {
_local2._yscale = _local2._yscale * -1;
}
if (Math.random() > 0.8) {
_local2._yscale = _local2._yscale * -1;
}
var _local4 = 1;
del1 = 25;
var _local26 = Math.floor(_local4 + (Math.random() * (del1 - _local4)));
var _local24 = Math.floor(_local4 + ((1 - _local5) * (del1 - _local4)));
var _local10 = 0.6;
var _local25 = Math.round((_local10 * _local26) + ((1 - _local10) * _local24));
_local2.gotoAndPlay(_local25);
_local3++;
}
_local29++;
}
var _local39 = (this.trails = 1);
this.trailCurr = 0;
var _local31 = (this.arrTrails = new Array(_local39));
_local29 = 0;
while (_local29 < _local31.length) {
var _local18 = this.arrFakeStars;
var _local33 = Math.floor(Math.random() * (_local18.length - 0.0001));
var _local35 = _local18[_local33];
var _local32 = Math.floor(Math.random() * (_local18.length - 0.0001));
var _local34 = _local18[_local32];
_local31[_local29] = new Array(2);
_local31[_local29][0] = _local35;
_local31[_local29][1] = _local34;
_local29++;
}
this.mc.createEmptyMovieClip("mcMarker", this.mc.nextHighestDepth++);
};
Constel.prototype.startDrawing = function () {
this.ct = 0;
this.update = this.updateOn;
};
Constel.prototype.updateOn = function () {
var _local2 = this.freqDraw;
this.ct++;
if ((this.ct % _local2) == 0) {
if (this.skipNext) {
this.skipNext = false;
return(undefined);
}
this.ctPick++;
var _local3 = this.arrRealStars.length == 0;
if (_local3) {
this.outtro();
var _local5 = this.mc.mcOut;
this.update = null;
return(undefined);
}
var _local6 = this.chanceReal;
var _local4 = this.freqReal;
if ((this.ctPick % _local4) == 0) {
this.pickRealStar();
return(undefined);
}
this.pickFakeStar();
}
};
Constel.prototype.pickRealStar = function () {
var _local3 = this.arrRealStars;
if (_local3.length > 0) {
var _local6 = Math.floor(Math.random() * (_local3.length - 0.0001));
var _local5 = _local3[_local6];
var _local2 = _local5.mcNode;
var _local7 = _local2._yscale;
var _local8 = this.mc.mcMarker;
var _local4 = Math.degreesToRadians(_local2._rotation);
var _local9 = Math.degreesToRadians(-90);
_local8._x = _local2._x - (Math.sin(_local4) * _local7);
_local8._y = _local2._y + (Math.cos(_local4) * _local7);
this.arrTrails[this.trailCurr][1] = _local5;
_local3.removeAt(_local6);
_local2.play();
this.pickFakeStar(true);
}
};
Constel.prototype.pickFakeStar = function (forceNext) {
var _local4 = this.arrFakeStars;
if (_local4.length > 0) {
var _local11 = this.trailCurr;
var _local3 = this.arrTrails[this.trailCurr][0];
var _local9 = this.arrTrails[this.trailCurr][1];
var _local2 = this.mc.attachMovie("mcLine", "mcLine" + ind, this.mc.nextHighestDepth++);
_local2._x = _local3._x;
_local2._y = _local3._y;
var _local8 = _local9._x - _local3._x;
var _local7 = _local9._y - _local3._y;
_local2._xscale = _local8;
_local2._yscale = _local7;
var _local6 = 30;
var _local5 = 20;
var _local10 = _local6 + (((-_local5) / 2) + (_local3.z * _local5));
_local2._alpha = _local10;
if (forceNext) {
this.arrTrails[this.trailCurr][0] = this.mc.mcMarker;
this.ct = this.ct + (this.freqDraw + 1);
this.skipNext = true;
} else {
this.arrTrails[this.trailCurr][0] = _local9;
}
var ind = Math.floor(Math.random() * (_local4.length - 0.0001));
_local9 = _local4[ind];
this.arrTrails[this.trailCurr][1] = _local9;
this.trailCurr = (this.trailCurr + 1) % this.trails;
}
};
Constel.prototype.outtro = function () {
var _local2 = this.mc.mcFill;
var _local3 = this.mc.mcOut;
_local2.show();
var _local4 = 120;
if (this.hasFill) {
_local2.transform("linearTween", _local4, "_alpha", 100);
_local3.pauseAndInvoke("fadeOut", 30, "transform", _local3, "linearTween", 50, "_alpha", 0);
}
this.mc.mcUpdate.pauseAndInvoke("removeStarsId", 10, "removeStars", this);
this.mc.mcUpdate.pauseAndInvoke("doneId", 80, "done", this);
};
Constel.prototype.done = function () {
var _local5 = this.mc.mcFill;
var _local2 = this.mc.mcOut;
var _local3 = this.mc.mcNodes;
var _local4 = this.mc.mcStarsHolder;
if (this.hasFill) {
_local2.hide();
}
_local3.hide();
_local2.setMask(null);
_local4.removeMovieClip();
if (this.func != null) {
var func = this.scope[this.func];
func();
}
};
Constel.prototype.removeStars = function () {
var _local9 = this.arrStars;
var _local5 = 0;
for(;;){
if (_local5 >= _local9.length) {
return(undefined);
}
var _local3 = _local9[_local5];
var _local2 = 0;
del1 = 35;
var _local8 = Math.floor(_local2 + (Math.random() * (del1 - _local2)));
var _local6 = Math.floor(_local2 + ((1 - z) * (del1 - _local2)));
var _local4 = 0.3;
var _local7 = Math.round((_local4 * _local8) + ((1 - _local4) * _local6));
_local3.gotoAndPlay(_local3._currentframe + _local7);
_local5++;
};
};
trace("#include Array.as");
Array.prototype.getLength = function () {
var _local2 = 0;
for (var _local3 in this) {
if (typeof(this[_local3]) != "function") {
_local2 = _local2 + 1;
}
}
return(_local2);
};
Array.prototype.first = function () {
return(this[0]);
};
Array.prototype.last = function () {
return(this[this.length - 1]);
};
Array.prototype.sortOn = function (p, d) {
Array.$sortprop = p;
var sortfunc = function (a, b) {
var p = Array.$sortprop;
if (d == "down") {
return(eval ("b." + p) < eval ("a." + p));
}
return(eval ("b." + p) > eval ("a." + p));
};
this.sort(sortfunc);
delete Array.$sortprop;
};
Array.prototype.copy = function () {
return(this.slice(0, this.length));
};
Array.prototype.deleteAll = function () {
while (this.length > 0) {
this.pop();
}
if (this.length > 0) {
return(false);
}
return(true);
};
Array.prototype.max = function () {
var _local2 = this.copy();
_local2.sort();
return(_local2[_local2.length - 1]);
};
Array.prototype.min = function () {
var _local2 = this.copy();
_local2.sort();
return(_local2[0]);
};
Array.prototype.swapElements = function (index1, index2) {
var _local2 = this[index1];
this[index1] = this[index2];
this[index2] = _local2;
};
Array.prototype.insertAt = function (theIndex, item) {
this.splice(theIndex, 0, item);
};
Array.prototype.removeAt = function (theIndex) {
this.splice(theIndex, 1);
};
Array.prototype.contains = function (item) {
var _local2 = 0;
while (_local2 < this.length) {
if (item == this[_local2]) {
return(true);
}
_local2++;
}
return(false);
};
Array.prototype.getRandom = function () {
var _local2 = Math.floor(Math.random() * (this.length - 1E-5));
return(this[_local2]);
};
Color.rgbToHex = function (r, g, b) {
return(((r << 16) | (g << 8)) | b);
};
Color.hexToRGB = function (hex) {
var _local4 = hex >> 16;
var _local1 = hex - (_local4 << 16);
var _local5 = _local1 >> 8;
var _local3 = _local1 - (_local5 << 8);
return({r:_local4, g:_local5, b:_local3});
};
Color.hexToRed = function (hex) {
return(hex >> 16);
};
Color.hexToGreen = function (hex) {
var _local1 = hex >> 16;
var _local2 = hex - (_local1 << 16);
return(_local2 >> 8);
};
Color.hexToBlue = function (hex) {
var _local3 = hex >> 16;
var _local1 = hex - (_local3 << 16);
var _local2 = _local1 >> 8;
return(_local1 - (_local2 << 8));
};
trace("#include MathEasing.as");
Math.linearTween = function (t, b, c, d) {
return(((c * t) / d) + b);
};
Math.easeInQuad = function (t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
};
Math.easeOutQuad = function (t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
};
Math.easeInOutQuad = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
};
Math.easeInCubic = function (t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
};
Math.easeOutCubic = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
};
Math.easeInOutCubic = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
};
Math.easeInQuart = function (t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
};
Math.easeOutQuart = function (t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
};
Math.easeInOutQuart = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
};
Math.easeInQuint = function (t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
};
Math.easeOutQuint = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
};
Math.easeInOutQuint = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
};
Math.easeInSine = function (t, b, c, d) {
return((((-c) * Math.cos((t / d) * 1.57079632679)) + c) + b);
};
Math.easeOutSine = function (t, b, c, d) {
return((c * Math.sin((t / d) * 1.57079632679)) + b);
};
Math.easeInOutSine = function (t, b, c, d) {
return((((-c) / 2) * (Math.cos((3.14159265359 * t) / d) - 1)) + b);
};
Math.easeInExpo = function (t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
};
Math.easeOutExpo = function (t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
};
Math.easeInOutExpo = function (t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
};
Math.easeInCirc = function (t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
};
Math.easeOutCirc = function (t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
};
Math.easeInOutCirc = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
};
Math.easeInElastic = function (t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if (a < Math.abs(c)) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / 6.28318530718) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * 6.28318530718) / p))) + b);
};
Math.easeOutElastic = function (t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if (a < Math.abs(c)) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / 6.28318530718) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * 6.28318530718) / p)) + c) + b);
};
Math.easeInOutElastic = function (t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if (a < Math.abs(c)) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / 6.28318530718) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * 6.28318530718) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * 6.28318530718) / p)) * 0.5) + c) + b);
};
Math.easeInBack = function (t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
};
Math.easeOutBack = function (t, b, c, d, s) {
if (s == undefined) {
s = 2;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
};
Math.easeInOutBack = function (t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
};
Math.easeInBounce = function (t, b, c, d) {
return((c - Math.easeOutBounce(d - t, 0, c, d)) + b);
};
Math.easeOutBounce = function (t, b, c, d) {
t = t / d;
if (t < 0.363636363636) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727273) {
t = t - 0.545454545455;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909091) {
t = t - 0.818181818182;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
};
Math.easeInOutBounce = function (t, b, c, d) {
if (t < (d / 2)) {
return((Math.easeInBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((Math.easeOutBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
};
trace("#include Math.as");
Math.mean = function (args) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < arguments.length) {
_local3 = _local3 + arguments[_local2];
_local2++;
}
return(_local3 / arguments.length);
};
Math.median = function (args) {
};
Math.getChance = function (chance) {
var _local1 = Math.floor(Math.random() * (chance + 1));
if (_local1 == chance) {
return(true);
}
return(false);
};
Math.degreesToRadians = function (degrees) {
return(degrees * 0.0174532925199);
};
Math.radiansToDegrees = function (radians) {
return(radians / 0.0174532925199);
};
Math.getAngle = function (x1, y1, x2, y2) {
var _local3 = x2 - x1;
var _local2 = y2 - y1;
var _local1 = (-(180 * Math.atan2(_local2, _local3))) / 3.14159265359;
return(Math.round(_local1));
};
Math.getDistance = function (x1, y1, x2, y2) {
var _local3 = x2 - x1;
var _local2 = y2 - y1;
var _local1 = Math.sqrt(Math.pow(_local3, 2) + Math.pow(_local2, 2));
return(_local1);
};
Math.getRadPoint = function (angle, radius, mc) {
var _local3 = Math.degreesToRadians(angle);
var _local5 = radius * Math.cos(_local3);
var _local4 = radius * Math.sin(_local3);
var _local1 = new Object();
if (((mc != null) && (mc != undefined)) && (mc != "")) {
var _local6 = new syncPos(mc);
_local1.x = _local6.x + _local5;
_local1.y = _local6.y - _local4;
} else {
_local1.x = _local5;
_local1.y = _local4;
}
return(_local1);
};
Math.constrain = function (num, lower, upper) {
if (num < lower) {
return(lower);
}
if (num > upper) {
return(upper);
}
return(num);
};
Math.sgn = function (num) {
if (num < 0) {
return(-1);
}
if (num > 0) {
return(1);
}
return(0);
};
Math.vary = function (num, vary) {
return(num + ((-vary) + ((Math.random() * 2) * vary)));
};
trace("#include MovieClip.as");
MovieClip.MAX_MC_DEPTH = 1048575 /* 0x0FFFFF */;
MovieClip.prototype.getPercentLoaded = function () {
if (this.getBytesTotal() < 70) {
return(0);
}
return((this.getBytesLoaded() * 100) / this.getBytesTotal());
};
MovieClip.prototype.getLowestDepth = function () {
var _local2 = 0;
for (var _local3 in this) {
if (typeof(this[_local3]) == "movieclip") {
_local2 = this[_local3].getDepth();
}
}
return(_local2);
};
MovieClip.prototype.getHighestDepth = function () {
var _local2 = 0;
for (var _local3 in this) {
if (typeof(this[_local3]) == "movieclip") {
_local2 = this[_local3].getDepth();
break;
}
}
do {
} while (undefined != null);
return(_local2);
};
MovieClip.prototype.getNextHighestDepth = function () {
return(++this.nextHighestDepth);
};
MovieClip.prototype.pauseAndInvoke = function (myID, myDelay, myFunction, myLocation, p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39) {
var _local2 = ++this.nextHighestDepth;
if (myID == null) {
__reg2 = "mcTimer" + _local2;
} else {
var __reg2 = ("mcTimer" + myID);
}
trace((this._target + ".pauseAndInvoke ") + __reg2);
this.createEmptyMovieClip(__reg2, _local2);
var _local3 = this[__reg2];
_local3.time = myDelay;
_local3.onEnterFrame = function () {
if (this.time <= 0) {
myLocation[myFunction](p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39);
delete this.onEnterFrame;
this.removeMovieClip();
return(undefined);
}
this.time--;
};
};
MovieClip.prototype.pauseAndInvokeKill = function (myID) {
var _local2 = this["mcTimer" + mcID];
if (_local2 != null) {
delete this["mcTimer" + myID].onEnterFrame;
this["mcTimer" + myID].removeMovieClip();
}
};
MovieClip.prototype.pauseAndInvokeKillAll = function () {
for (var _local2 in this) {
if ((_local2.slice(0, 7) == "mcTimer") && (typeof(this[_local2]) == "movieclip")) {
delete this[_local2].onEnterFrame;
this[_local2].removeMovieClip();
}
}
};
MovieClip.prototype.setProperty = function (myProperty, myValue) {
var _local3 = 0;
for(;;){
if (_local3 >= arguments.length) {
return(undefined);
}
this[arguments[_local3]] = arguments[_local3 + 1];
_local3 = _local3 + 2;
};
};
MovieClip.prototype.transform = function (myTween, myDuration, myProperty, myValue) {
var _local6 = arguments;
var inputLength = ((arguments.length - 3) / 2);
var duration = myDuration;
var property = new Array();
var pStart = new Array();
var pChange = new Array();
var _local4 = null;
var _local5 = null;
var _local3 = 0;
while (_local3 < inputLength) {
_local4 = _local6[2 + (_local3 * 2)];
_local5 = _local6[3 + (_local3 * 2)];
property.push(_local4);
pStart.push(this[_local4]);
pChange.push(_local5 - this[_local4]);
_local3++;
}
this.time = 0;
this.createEmptyMovieClip("mcControlTransform", 999999);
this.mcControlTransform.onEnterFrame = function () {
var _local3 = this._parent;
var _local4 = myTween;
var _local2 = 0;
while (_local2 < inputLength) {
if (pChange[_local2] != 0) {
_local3[property[_local2]] = Math[_local4](_local3.time, pStart[_local2], pChange[_local2], duration, amplitude, period);
}
_local2++;
}
if (_local3.time >= duration) {
delete this.onEnterFrame;
this.removeMovieClip();
}
_local3.time++;
};
};
MovieClip.prototype.setColor = function (hex, percent, alpha, offset) {
var _local8 = new Color(this);
var _local2 = new Object();
var _local6 = Color.hexToRGB(hex);
if (percent == undefined) {
percent = 100;
}
if (alpha == undefined) {
alpha = 100;
}
if (offset == undefined) {
offset = 0;
}
percent = percent / 100;
alpha = alpha / 100;
if (hex == "restore") {
_local2.ra = 100;
_local2.ga = 100;
_local2.ba = 100;
_local2.aa = 100 * alpha;
_local2.rb = 0;
_local2.gb = 0;
_local2.bb = 0;
_local2.ab = 0;
} else if (typeof(hex) == "object") {
_local2 = hex;
} else {
_local2.ra = (100 * (1 - percent)) + offset;
_local2.ga = (100 * (1 - percent)) + offset;
_local2.ba = (100 * (1 - percent)) + offset;
_local2.aa = 100 * alpha;
_local2.rb = _local6.r * percent;
_local2.gb = _local6.g * percent;
_local2.bb = _local6.b * percent;
_local2.ab = 0;
}
_local8.setTransform(_local2);
};
MovieClip.prototype.transformColor = function (tween, duration, hex, percent, alpha, offset) {
if (percent == undefined) {
percent = 100;
}
if (alpha == undefined) {
alpha = 100;
}
if (offset == undefined) {
offset = 0;
}
this.transformColorData = new Object();
var mcData = this.transformColorData;
mcData.timer = 0;
mcData.duration = duration;
mcData.percent = percent / 100;
mcData.alpha = alpha / 100;
mcData.tween = tween;
mcData.mcColor = new Color(this);
mcData.colorStart = mcData.mcColor.getTransform();
mcData.colorHolder = new Object();
mcData.colorsArray = new Array("r", "g", "b", "a");
mcData.typeArray = new Array("b", "a");
if (hex == "restore") {
mcData.deltara = (100 - mcData.colorStart.ra) + offset;
mcData.deltaga = (100 - mcData.colorStart.ga) + offset;
mcData.deltaba = (100 - mcData.colorStart.ba) + offset;
mcData.deltaaa = (100 * mcData.alpha) - mcData.colorStart.aa;
mcData.deltarb = -mcData.colorStart.rb;
mcData.deltagb = -mcData.colorStart.gb;
mcData.deltabb = -mcData.colorStart.bb;
mcData.deltaab = -mcData.colorStart.ab;
} else if (typeof(hex) == "object") {
mcData.deltara = hex.ra - mcData.colorStart.ra;
mcData.deltaga = hex.ga - mcData.colorStart.ga;
mcData.deltaba = hex.ba - mcData.colorStart.ba;
mcData.deltaaa = hex.aa - mcData.colorStart.aa;
mcData.deltarb = hex.rb - mcData.colorStart.rb;
mcData.deltagb = hex.gb - mcData.colorStart.gb;
mcData.deltabb = hex.bb - mcData.colorStart.bb;
mcData.deltaab = hex.ab - mcData.colorStart.ab;
} else {
mcData.colorDest = Color.hexToRGB(hex);
mcData.deltara = ((100 * (1 - mcData.percent)) - mcData.colorStart.ra) + offset;
mcData.deltaga = ((100 * (1 - mcData.percent)) - mcData.colorStart.ga) + offset;
mcData.deltaba = ((100 * (1 - mcData.percent)) - mcData.colorStart.ba) + offset;
mcData.deltaaa = (100 * mcData.alpha) - mcData.colorStart.aa;
mcData.deltarb = (mcData.colorDest.r * mcData.percent) - mcData.colorStart.rb;
mcData.deltagb = (mcData.colorDest.g * mcData.percent) - mcData.colorStart.gb;
mcData.deltabb = (mcData.colorDest.b * mcData.percent) - mcData.colorStart.bb;
mcData.deltaab = -mcData.colorStart.ab;
}
this.createEmptyMovieClip("mcControlTransformColor", -1);
this.mcControlTransformColor.onEnterFrame = function () {
var _local6 = 0;
while (_local6 <= (mcData.typeArray.length - 1)) {
var _local3 = mcData.typeArray[_local6];
var _local4 = 0;
while (_local4 <= (mcData.colorsArray.length - 1)) {
var _local2 = mcData.colorsArray[_local4];
var _local5 = mcData[("delta" + _local2) + _local3];
if (_local5 != 0) {
mcData.colorHolder[_local2 + _local3] = Math[mcData.tween](mcData.timer, mcData.colorStart[_local2 + _local3], mcData[("delta" + _local2) + _local3], mcData.duration, mcData.amplitude, mcData.period);
}
_local4++;
}
_local6++;
}
mcData.mcColor.setTransform(mcData.colorHolder);
if (mcData.timer >= mcData.duration) {
delete this.onEnterFrame;
this.removeMovieClip();
return(undefined);
}
mcData.timer++;
};
};
MovieClip.prototype.hide = function () {
this._visible = false;
};
MovieClip.prototype.show = function () {
this._visible = true;
};
MovieClip.prototype.enable = function () {
this.enabled = true;
};
MovieClip.prototype.disable = function () {
this.enabled = false;
};
MovieClip.prototype.drawLine = function (x1, y1, x2, y2, lineWeight, lineColor, lineAlpha) {
this.lineStyle(lineWeight, lineColor, lineAlpha);
this.moveTo(x1, y1);
this.lineTo(x2, y2);
};
MovieClip.prototype.drawRect = function (x, y, w, h, lineWeight, lineColor, lineAlpha, fillColor, fillAlpha) {
var _local4 = x + w;
var _local2 = y;
var _local3 = y + h;
if (((lineWeight + lineColor) + lineAlpha) != -3) {
this.lineStyle(lineWeight, lineColor, lineAlpha);
}
if ((fillColor + fillAlpha) != -2) {
this.beginFill(fillColor, fillAlpha);
}
this.moveTo(x, _local2);
this.lineTo(_local4, _local2);
this.lineTo(_local4, _local3);
this.lineTo(x, _local3);
this.lineTo(x, _local2);
if ((fillColor + fillAlpha) != -2) {
this.endFill();
}
};
MovieClip.prototype.drawPolygon = function (x, y, radius, vertices, lineWeight, lineColor, lineAlpha, fillColor, fillAlpha) {
if (((lineWeight + lineColor) + lineAlpha) != -3) {
this.lineStyle(lineWeight, lineColor, lineAlpha);
}
if ((fillColor + fillAlpha) != -2) {
this.beginFill(fillColor, fillAlpha);
}
if (typeof(vertices) != "object") {
var _local5 = 0;
var _local3 = 0;
var _local4 = 0;
var _local2 = 0;
while (_local2 < vertices) {
_local5 = Math.degreesToRadians(360 / vertices) * _local2;
_local3 = (Math.cos(_local5) * radius) + x;
_local4 = (Math.sin(_local5) * radius) + y;
if (_local2 < 1) {
this.moveTo(_local3, _local4);
} else {
this.lineTo(_local3, _local4);
}
_local2++;
}
}
if ((fillColor + fillAlpha) != -2) {
this.endFill();
}
};
MovieClip.prototype.drawPie = function (x, y, radius, slicesCurrent, slicesTotal, lineWeight, lineColor, lineAlpha, fillColor, fillAlpha) {
if (((lineWeight + lineColor) + lineAlpha) != -3) {
this.lineStyle(lineWeight, lineColor, lineAlpha);
}
if ((fillColor + fillAlpha) != -2) {
this.beginFill(fillColor, fillAlpha);
}
var _local5 = 0;
var _local3 = 0;
var _local4 = 0;
var _local2 = 0;
while (_local2 <= slicesCurrent) {
_local5 = Math.degreesToRadians(360 / slicesTotal) * _local2;
_local3 = (Math.cos(_local5) * radius) + x;
_local4 = (Math.sin(_local5) * radius) + y;
if (_local2 < 1) {
if (slicesCurrent < slicesTotal) {
this.moveTo(x, y);
this.lineTo(_local3, _local4);
} else {
this.moveTo(_local3, _local4);
}
} else {
this.lineTo(_local3, _local4);
}
_local2++;
}
if (slicesCurrent < slicesTotal) {
this.lineTo(x, y);
}
if ((fillColor + fillAlpha) != -2) {
this.endFill();
}
};
MovieClip.prototype.removeAllMovieClips = function () {
for (var _local2 in this) {
if (typeof(this[_local2]) == "movieclip") {
this[_local2].removeMovieClip();
}
}
};
MovieClip.prototype.pauseHere = function (p_time) {
this.t_tot = p_time;
this.t0 = getTimer() / 1000;
this.wait_func = function () {
var _local2 = (getTimer() / 1000) - this.t0;
if (_local2 >= this.t_tot) {
this.play();
clearInterval(this.wait_id);
}
};
this.wait_id = setInterval(this, "wait_func", 500);
};
MovieClip.prototype.pauseHereFrames = function (p_time) {
this.createEmptyMovieClip("pause_here_fr_upd", 49382);
var _local2 = this.pause_here_fr_upd;
_local2.t_tot = p_time;
_local2.t = 0;
_local2.onEnterFrame = function () {
this.t++;
if (this.t >= this.t_tot) {
this._parent.play();
this.removeMovieClip();
}
};
};
Frame 3
_global.gBellyfull = new Bellyfull(this);
stop();
Frame 4
stop();
Symbol 3 MovieClip [mcStar] Frame 60
stop();
Symbol 3 MovieClip [mcStar] Frame 123
stop();
this.removeMovieClip();
Symbol 5 MovieClip [mcLine] Frame 154
stop();
this.removeMovieClip();
Symbol 13 MovieClip [mcDrop] Frame 29
stop();
this.removeMovieClip();
Symbol 16 MovieClip [mcBuild] Frame 1
stop();
Symbol 21 MovieClip Frame 11
gotoAndPlay (1);
Symbol 27 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 2
stop();
Symbol 33 MovieClip Frame 27
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 4
stop();
this.pauseHereFrames(50);
Symbol 118 MovieClip Frame 44
stop();
var time = (0.5 + (Math.random() * 1));
this.pauseHere(time);
Symbol 118 MovieClip Frame 45
gotoAndPlay ("cycle");
Symbol 124 MovieClip Frame 38
stop();
this.pauseHere(2);
Symbol 125 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 4
stop();
Symbol 169 MovieClip Frame 4
stop();
Symbol 171 Button
on (release) {
gBellyfull.link("lyrics");
}
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
play();
Symbol 185 MovieClip Frame 22
stop();
Symbol 185 MovieClip Frame 23
play();
Symbol 188 MovieClip Frame 1
stop();
Symbol 194 Button
on (release) {
gBellyfull.link("download");
}
Symbol 195 MovieClip Frame 1
stop();
Symbol 205 Button
on (release) {
gBellyfull.link("link0");
}
Symbol 206 Button
on (release) {
gBellyfull.link("link1");
}
Symbol 207 Button
on (release) {
gBellyfull.link("link2");
}
Symbol 214 Button
on (release) {
gBellyfull.link("buy0");
}
Symbol 215 Button
on (release) {
gBellyfull.link("buy1");
}
Symbol 216 Button
on (release) {
gBellyfull.link("buy2");
}
Symbol 230 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 2
stop();