Frame 1
stop();
Instance of Symbol 12 MovieClip "barney" in Frame 1
onClipEvent (load) {
radius = 4;
}
onClipEvent (enterFrame) {
if (_root.barney.hitTest(_root.beazley)) {
_root.gotoAndPlay(2);
}
if (Key.isDown(38)) {
this._y = this._y - 3;
} else if (Key.isDown(40)) {
this._y = this._y + 3;
}
if (Key.isDown(37)) {
this._x = this._x - 3;
this.gotoAndStop(1);
} else if (Key.isDown(39)) {
this._x = this._x + 3;
this.gotoAndStop(2);
}
if (_root.maze.hitTest(_x + radius, _y, true)) {
this._x = this._x - 3;
}
if (_root.maze.hitTest(_x - radius, _y, true)) {
this._x = this._x + 3;
}
if (_root.maze.hitTest(_x, _y + radius, true)) {
this._y = this._y - 3;
}
if (_root.maze.hitTest(_x, _y - radius, true)) {
this._y = this._y + 3;
}
}
Frame 2
stop();
Symbol 3 MovieClip [confetti] Frame 1
function getPercentage() {
var _local1 = Math.ceil(Math.random() * 100);
return(_local1);
}
function getOffset() {
var _local1 = Math.ceil(Math.random() * 400);
var _local2 = Math.round(Math.random() * 1);
if (_local2 == 1) {
_local1 = _local1 * 1;
}
return(_local1);
}
screen_width = 700;
screen_height = 550;
frequency = 3;
MovieClip.prototype.serConfetti = function () {
this._x = Math.ceil(Math.random() * screen_width);
this._xscale = Math.ceil(Math.random() * screen_height);
this._yscale = this._xscale;
this.mover();
this.colorme();
};
MovieClip.prototype.colorme = function () {
var _local3 = new Color(this);
var _local2 = new Object();
_local2.ra = getPercentage();
_local2.rb = getOffset();
_local2.ga = getPercentage();
_local2.gb = getOffset();
_local2.ba = getPercentage();
_local2.bb = getOffset();
_local3.setTransform(_local2);
};
MovieClip.prototype.mover = function () {
this.onEnterFrame = function () {
if (this._y < 600) {
this._y = this._y + 10;
this._xscale = Math.random() * 300;
this._rotation = Math.random() * 360;
} else {
this.removeMovieClip();
}
};
};
MovieClip.prototype.oneConfetti = function () {
this.createEmptyMovieClip("one_mc", 1);
var count = 0;
var confCount = 1;
this.one_mc.onEnterFrame = function () {
if (count < frequency) {
count++;
} else {
this.attachMovie("conf", "conf" + confCount, confCount);
eval ("this.one_mc.conf" + confCount).serConfetti();
count = 1;
confCount++;
}
};
};
_root.oneConfetti();
Symbol 12 MovieClip Frame 1
stop();
Symbol 25 Button
on (release) {
getURL ("javascript:window.close();");
}
Symbol 27 MovieClip Frame 1
Symbol 27 MovieClip Frame 50
stop();