Frame 2
perc = _root.getBytesLoaded() / _root.getBytesTotal();
_root.loadperc = perc * 100;
if (perc >= 1) {
_root.gotoAndStop(3);
} else {
_root.gotoAndPlay(1);
}
Frame 3
main = new Object();
main.w = 550;
main.h = 400;
doBlood = function (sx, sy, scaling, blendstyle, whichClip) {
if (whichClip == undefined) {
whichClip = "bloodmain";
}
var _local4 = _root.getNextHighestDepth();
var _local3 = "sprite" + _local4;
_root.attachMovie(whichClip, _local3, _local4);
_root[_local3]._x = sx;
_root[_local3]._y = sy;
_root[_local3]._xscale = scaling;
_root[_local3]._yscale = scaling;
_root[_local3].xinc = (Math.random() * 15) - 7.5;
_root[_local3].yinc = (Math.random() * 10) - 15;
_root[_local3].blendMode = blendstyle;
var _local5 = _root[_local3]._totalframes;
_root[_local3].gotoAndStop(random(_local5) + 1);
_root[_local3].onEnterFrame = function () {
this._x = this._x + this.xinc;
this._y = this._y + this.yinc;
this.yinc = this.yinc + 1.5;
this.xinc = this.xinc * 0.99;
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
};
doBloodBurst = function (sx, sy, scaling, blendstyle, staramount, whichClip) {
if (whichClip == undefined) {
whichClip = "bloodmain";
}
var _local1 = 0;
while (_local1 < staramount) {
doBlood(sx, sy, scaling, blendstyle, whichClip);
_local1++;
}
};
doFade = function (fadeOut, fadeToFrame, fadeFunc) {
_root.fader.removeMovieClip();
if (fadeToFrame == null) {
fadeToFrame = undefined;
}
_root.createEmptyMovieClip("fader", _root.getNextHighestDepth());
fader.beginFill(0, 100);
fader.moveTo(0, 0);
fader.lineTo(main.w, 0);
fader.lineTo(main.w, main.h);
fader.lineTo(0, main.h);
fader.lineTo(0, 0);
fader.endFill();
if (fadeOut) {
fader._alpha = 0;
fader.atarget = 130;
fader.aspeed = 4;
} else {
fader._alpha = 100;
fader.atarget = -30;
fader.aspeed = -4;
}
fader.onEnterFrame = function () {
this._alpha = this._alpha + this.aspeed;
if (fadeOut) {
if (this._alpha >= (this.atarget + 5)) {
this._alpha = this.atarget;
this.updateAfterEvent();
if (fadeFunc != undefined) {
_root[fadeFunc].call();
}
if (fadeToFrame != undefined) {
_root.gotoAndStop(fadeToFrame);
}
this.removeMovieClip();
}
} else if (this._alpha <= (this.atarget - 5)) {
this._alpha = this.atarget;
if (fadeFunc != undefined) {
_root[fadeFunc].call();
}
if (fadeToFrame != undefined) {
_root.gotoAndStop(fadeToFrame);
}
this.removeMovieClip();
}
};
};
doFade(true, 4);
Frame 4
doFade(false);
Instance of Symbol 51 MovieClip "skelly" in Frame 4
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.switch3) {
this.gotoAndStop(1);
delete this.onEnterFrame;
}
}
Instance of Symbol 70 MovieClip "dino" in Frame 4
onClipEvent (load) {
blarg = new Sound(this);
blarg.attachSound("gettysborg");
_root.switch1 = true;
blarg.onSoundComplete = function () {
_root.switch1 = true;
};
flam = new Sound(_root.bg);
flam.attachSound("fart");
flam.setVolume(40);
flim = new Sound(this);
flim.attachSound("punch");
flim.setVolume(80);
blarg.setVolume(100);
grounder = 300;
grounded = false;
yvel = 0;
grav = 0.6;
fartBounce = function (fartflag) {
this.grounded = false;
if (!fartflag) {
this.yvel = 15;
this.xvel = ((Math.random() * 10) * 2) - 10;
flam.setPan(p);
flam.start(0, 0);
} else {
flim.setPan(p);
flim.start(0, 0);
this.xvel = 20;
this.yvel = 35;
}
};
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.fartBounce();
if (_root.switch1) {
_root.switch1 = false;
blarg.start(0, 0);
_root.dino.head.slammer();
}
}
}
onClipEvent (enterFrame) {
if (_root.switch2) {
this._y = this._y - yvel;
yvel = yvel - grav;
this._x = this._x + xvel;
this._rotation = this._rotation + (xvel * 2);
p = ((this._x / 550) * 200) - 100;
blarg.setPan(p);
if ((this._x + (this._width / 2)) > 550) {
this._x = 550 - (this._width / 2);
xvel = xvel * -1;
this._xscale = this._xscale * -1;
} else if ((this._x - (this._width / 2)) < 0) {
this._x = this._width / 2;
xvel = xvel * -1;
this._xscale = this._xscale * -1;
}
if (this._y > grounder) {
this._rotation = 0;
this._y = grounder;
grounded = true;
xvel = 0;
yvel = 0;
}
}
if (this._x < 200) {
if (this.hitTest(_root.skelly) and (_root.skelly._currentframe == 84)) {
blarg.stop();
_root.switch1 = true;
this.fartBounce(true);
_root.switch3 = true;
_root.doBloodBurst(this._x, this._y - 20, 150, "normal", 30, "bloodmain");
_root.doFade(true, 5);
}
}
}
Frame 5
doFade(false);
Instance of Symbol 87 MovieClip in Frame 5
onClipEvent (load) {
poop = 1;
this.gotoAndStop(1);
this.ticklepower = 0;
going = false;
gotimer = 0;
gotimerreset = 10;
poopshit = new Sound(this);
poopshit.attachSound("poke");
poopshit.setVolume(30);
increaseTickle = function () {
if (this._currentframe < 140) {
poopshit.start(0, 0);
this.gotoAndPlay(this._currentframe);
going = true;
this._xscale = this._xscale + 2;
this._yscale = this._yscale + 2;
}
};
}
onClipEvent (enterFrame) {
if (going) {
gotimer++;
if (this._currentframe < 140) {
if (gotimer == gotimerreset) {
gotimer = 0;
going = false;
this.gotoAndStop(this._currentframe);
}
}
}
if ((this._currentframe == this._totalframes) and (poop == 1)) {
this.stop();
_root.doFade(true, 6);
poop = 2;
}
}
Frame 6
doFade(false);
Instance of Symbol 89 MovieClip in Frame 6
onClipEvent (enterFrame) {
this._xscale = random(100);
this._yscale = random(100);
}
Instance of Symbol 100 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
this._x++;
this._yscale--;
if (this._yscale <= 0) {
_root.gotoAndStop(7);
}
}
}
Symbol 45 Button
on (press) {
_root.switch2 = true;
}
Instance of Symbol 57 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
this.arm1._rotation = random(10);
this.arm2._rotation = random(10);
}
Instance of Symbol 69 MovieClip "head" in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
this.plap = this._totalframes;
slammer = function () {
this.poopdick = setInterval(this, "switchheads", 80);
};
switchheads = function () {
if (!_root.switch1) {
this.gotoAndStop(random(plap) + 1);
} else {
clearInterval(poopdick);
}
};
}
Symbol 76 MovieClip Frame 1
ballnum = 20;
i = 0;
while (i < ballnum) {
this.attachMovie("angel", "circle" + i, i + 20);
this["circle" + i]._x = random(550);
this["circle" + i]._y = random(400);
this["circle" + i].xvel = (-i) / 4;
this["circle" + i]._xscale = Math.abs(this["circle" + i].xvel * 100);
this["circle" + i]._yscale = Math.abs(this["circle" + i].xvel * 100);
i++;
}
Symbol 76 MovieClip Frame 3
beenCalled = false;
var i = 0;
while (i < ballnum) {
this["circle" + i]._x = this["circle" + i]._x + this["circle" + i].xvel;
if (this["circle" + i]._x < -80) {
this["circle" + i]._x = 620;
this["circle" + i]._y = random(400);
this["circle" + i].xvel = (-i) / 3;
this["circle" + i]._xscale = Math.abs(this["circle" + i].xvel * 100);
this["circle" + i]._yscale = Math.abs(this["circle" + i].xvel * 100);
}
i++;
}
this.gotoAndPlay(2);
Symbol 79 Button
on (rollOver) {
this.increaseTickle();
}
Symbol 100 MovieClip Frame 425
stop();