Frame 1
adbag.onPress = function () {
getURL ("http://www.fritolay.co.jp/ourbrands/doritos/index.html", "_blank");
};
penis.onPress = function () {
_root.gotoAndStop(2);
};
stop();
this.onEnterFrame = function () {
maybe = random(5);
if (maybe == 4) {
if (prot._x < _root._xmouse) {
prot._x = prot._x + 2;
}
if (prot._x > _root._xmouse) {
prot._x = prot._x - 2;
}
if (prot._y < _root._ymouse) {
prot._y = prot._y + 2;
}
if (prot._y > _root._ymouse) {
prot._y = prot._y - 2;
}
}
};
Frame 2
function getNewTime() {
return((getTimer() + (Math.random() * (maxTB - minTB))) + minTB);
}
function mover() {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (this._x < left) {
this._x = left;
this.xspeed = this.xspeed * -1;
}
if (this._x > (right - diameter)) {
this._x = right - diameter;
this.xspeed = this.xspeed * -1;
}
if (this._y < top) {
this._y = top;
this.yspeed = this.yspeed * -1;
}
if (this._y > (bottom - diameter)) {
this._y = bottom - diameter;
this.yspeed = this.yspeed * -1;
}
}
itema = new Sound(this);
itema.attachSound("musak");
itema.start(0, 10000);
strike._visible = 0;
this.onMouseDown = function () {
prot.gotoAndStop(2);
strike._visible = 1;
};
this.onMouseUp = function () {
prot.gotoAndStop(1);
strike._visible = 0;
};
testhorse = 0;
maxTB = 4000;
minTB = 1000;
flickerDuration = 500;
flickerTime = getNewTime();
tig.onEnterFrame = function () {
curTime = getTimer();
if (curTime >= flickerTime) {
if (curTime > (flickerTime + flickerDuration)) {
tig._alpha = 100;
flickerTime = getNewTime();
} else if (cnt < 0) {
tig._x = tig._x - testhorse;
tig._alpha = 100;
cnt++;
} else {
testhorse = random(3) - 2;
tig._alpha = random(20) + 60;
cnt = -1;
tig._x = tig._x + testhorse;
}
}
};
var xspeed;
var yspeed;
var top = 0;
var right = 600;
var bottom = 480;
var left = 0;
var diameter = 20;
var boxWidth = (right - left);
var boxHeight = (bottom - top);
i = 0;
while (i < 10) {
b._x = Math.floor(Math.random() * (boxWidth - diameter)) + left;
b._y = Math.floor(Math.random() * (boxHeight - diameter)) + top;
b.xspeed = (Math.random() * 10) - 5;
b.yspeed = (Math.random() * 10) - 5;
b.onEnterFrame = mover;
i++;
}