Frame 1
stop();
_root.WPI_ArcadeStartSingleGame = function () {
trace("WPI_ArcadeStartSingleGame called - the current game has started");
};
_root.WPI_ArcadeStopSingleGame = function (score) {
trace("WPI_ArcadeStopSingleGame called - the current game has finished with score: " + score);
};
Frame 2
stop();
this.onMouseDown = function () {
gotoAndStop ("menu");
};
Frame 3
score = 0;
var bing = new Sound(adcompany);
bing.attachSound("bing");
stop();
Mouse.show();
onEnterFrame = function () {
btn1.onPress = function () {
bing.start();
_root.WPI_ArcadeStartSingleGame(score);
gotoAndPlay ("game");
};
btn2.onPress = function () {
bing.start();
gotoAndPlay ("howto");
};
btn3.onPress = function () {
bing.start();
gotoAndPlay ("intro");
};
btn4.onPress = function () {
bing.start();
_root.WPI_ArcadeStopSingleGame(score);
};
};
Frame 4
stop();
this.onMouseDown = function () {
bing.start();
gotoAndStop ("menu");
};
Frame 5
stop();
this.onMouseDown = function () {
};
Frame 6
stop();
Mouse.show();
this.onMouseDown = function () {
bing.start();
_root.WPI_ArcadeStopSingleGame(score);
gotoAndStop (3);
};
Symbol 18 MovieClip Frame 1
_parent._parent._parent.exp3.stop();
_parent._parent._parent.exp3.start();
Symbol 18 MovieClip Frame 9
_parent._parent.removeMovieClip();
Symbol 19 MovieClip Frame 1
_parent._parent._parent.dl.stop();
_parent._parent._parent.dl.start();
Symbol 19 MovieClip Frame 13
_parent._parent.removeMovieClip();
Symbol 20 MovieClip [popupsmall2] Frame 1
stop();
Symbol 20 MovieClip [popupsmall2] Frame 2
stop();
Symbol 20 MovieClip [popupsmall2] Frame 3
stop();
Symbol 23 MovieClip Frame 1
_parent._parent._parent.dl.stop();
_parent._parent._parent.dl.start();
Symbol 23 MovieClip Frame 13
_parent._parent.removeMovieClip();
Symbol 24 MovieClip [popupsmall1] Frame 1
stop();
Symbol 24 MovieClip [popupsmall1] Frame 2
stop();
Symbol 24 MovieClip [popupsmall1] Frame 3
stop();
Symbol 42 MovieClip Frame 1
_parent._parent._parent.exp2.stop();
_parent._parent._parent.exp2.start();
Symbol 42 MovieClip Frame 11
_parent._parent.removeMovieClip();
Symbol 43 MovieClip Frame 1
_parent._parent._parent.dl.stop();
_parent._parent._parent.dl.start();
Symbol 43 MovieClip Frame 10
_parent._parent.removeMovieClip();
Symbol 44 MovieClip [popupflash2] Frame 1
stop();
Symbol 44 MovieClip [popupflash2] Frame 2
stop();
Symbol 44 MovieClip [popupflash2] Frame 3
stop();
Symbol 47 MovieClip Frame 1
_parent._parent._parent.dl.stop();
_parent._parent._parent.dl.start();
Symbol 47 MovieClip Frame 10
_parent._parent.removeMovieClip();
Symbol 48 MovieClip [popupflash1] Frame 1
stop();
Symbol 48 MovieClip [popupflash1] Frame 2
stop();
Symbol 48 MovieClip [popupflash1] Frame 3
stop();
Symbol 65 MovieClip Frame 1
_parent._parent._parent.exp1.stop();
_parent._parent._parent.exp1.start();
Symbol 65 MovieClip Frame 11
_parent._parent.onEnterFrame = null;
_parent._parent.removeMovieClip();
Symbol 66 MovieClip Frame 1
_parent._parent._parent.dl.stop();
_parent._parent._parent.dl.start();
Symbol 66 MovieClip Frame 10
_parent._parent.removeMovieClip();
Symbol 67 MovieClip [popup3] Frame 1
stop();
Symbol 67 MovieClip [popup3] Frame 2
stop();
Symbol 67 MovieClip [popup3] Frame 3
stop();
Symbol 73 MovieClip Frame 1
_parent._parent._parent.dl.stop();
_parent._parent._parent.dl.start();
Symbol 73 MovieClip Frame 10
_parent._parent.removeMovieClip();
Symbol 74 MovieClip [popup2] Frame 1
stop();
Symbol 74 MovieClip [popup2] Frame 2
stop();
Symbol 74 MovieClip [popup2] Frame 3
stop();
Symbol 77 MovieClip Frame 1
_parent._parent._parent.dl.stop();
_parent._parent._parent.dl.start();
Symbol 77 MovieClip Frame 10
_parent._parent.removeMovieClip();
Symbol 78 MovieClip [popup1] Frame 1
stop();
Symbol 78 MovieClip [popup1] Frame 2
stop();
Symbol 78 MovieClip [popup1] Frame 3
stop();
Symbol 86 MovieClip Frame 6
_parent._parent.removeMovieClip();
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 3
stop();
Symbol 88 MovieClip [toppacket] Frame 1
var speedmod = (-3 + random(5));
var dragrand = (200 + random(50));
var testrand = (random(1) * 180);
dying = false;
this.onEnterFrame = function () {
a = _parent.icafe._x - this._x;
b = _parent.icafe._y - this._y;
pangle = Math.atan2(b, a);
thisrot = pangle / (Math.PI/180);
if (this._y > -100) {
if ((this._x > _parent.icafe._x) && (this._y > (_parent.icafe._y - dragrand))) {
this._x = this._x - (_parent.packspeed + speedmod);
}
if ((this._x < _parent.icafe._x) && (this._y > (_parent.icafe._y - dragrand))) {
this._x = this._x + (_parent.packspeed + speedmod);
}
if (this._y > _parent.icafe._y) {
this._y = this._y - (_parent.packspeed + speedmod);
}
if (this._y < _parent.icafe._y) {
this._y = this._y + (_parent.packspeed + speedmod);
}
this._rotation = (thisrot - 90) - testrand;
}
if (this.hitTest(_parent.icafe)) {
s.gotoAndStop(2);
this._xscale = this._yscale;
this._yscale = this._yscale - 5;
}
if (this.hitTest(_parent.pbman.hz)) {
s.gotoAndStop(3);
}
if (this._yscale < 1) {
this.removeMovieClip();
}
};
Symbol 89 MovieClip [packet] Frame 1
var speedmod = (-4 + random(10));
this.onEnterFrame = function () {
if (this._x > _parent.icafe._x) {
this._x = this._x - (_parent.packspeed + speedmod);
}
if (this._x < _parent.icafe._x) {
this._x = this._x + (_parent.packspeed + speedmod);
}
if (this._y > _parent.icafe._y) {
this._y = this._y - (_parent.packspeed + speedmod);
}
if (this._y < _parent.icafe._y) {
this._y = this._y + (_parent.packspeed + speedmod);
}
this._rotation = 0;
};
Symbol 90 MovieClip [toppacket2] Frame 1
function unscared() {
(scared = false);
clearInterval(unscare);
}
var speedmod = 0;
killed = false;
loaded = false;
scared = false;
damaged = false;
var vspeed = ((_parent.icafe._y - this._y) / 50);
var hspeed = ((_parent.icafe._x - this._x) / 50);
var dragrand = (200 + random(50));
var wichsprite = random(2);
if (wichsprite == 1) {
this.attachMovie("popupflash2", "s", this.getNextHighestDepth());
} else if (wichsprite == 0) {
this.attachMovie("popupflash1", "s", this.getNextHighestDepth());
}
this.onEnterFrame = function () {
if (this.hitTest(_parent.adcompany)) {
(this._x = _parent.adcompany._x);
(this._y = _parent.adcompany._y);
}
if (((((this._x < (_parent.pbman._x + 100)) && (this._x > (_parent.pbman._x - 100))) && ((this._y < (_parent.pbman._y + 100)) && (this._y > (_parent.pbman._y - 100)))) && (killed == false)) && (loaded == false)) {
vspeed = vspeed + ((((_parent.pbman._y - this._y) * -1) / 6) * 0.4);
hspeed = hspeed + ((((_parent.pbman._x - this._x) * -1) / 6) * 0.3);
scared = true;
unscare = setInterval(unscared, 200);
} else if ((scared == false) && (loaded == false)) {
vspeed = (_parent.icafe._y - this._y) / 70;
hspeed = (_parent.icafe._x - this._x) / 70;
}
this._y = this._y + vspeed;
this._x = this._x + hspeed;
if (_parent.shield.hitTest(this._x, this._y, true)) {
killed = true;
vspeed = 0;
hspeed = 0;
s.gotoAndStop(2);
}
if (_parent.icafe.hitTest(this._x, this._y, true) && (killed == false)) {
vspeed = (_parent.icafe._y - this._y) / 10;
hspeed = (_parent.icafe._x - this._x) / 10;
s.gotoAndStop(3);
loaded = true;
if (damaged == false) {
_parent.health = _parent.health - 20;
damaged = true;
}
}
if (this.hitTest(_parent.pbman.hz) && (loaded == false)) {
vspeed = 0;
hspeed = 0;
s.gotoAndStop(2);
if (killed == false) {
s.s1._rotation = _parent.pbmanrot * -1;
_parent.subscore = _parent.subscore + 10;
killed = true;
}
}
};
Symbol 91 MovieClip [test] Frame 1
var speedmod = (((2 + random(9)) / 5) + _parent.popspeedinc);
killed = false;
loaded = false;
damaged = false;
var vspeed = (((_parent.icafe._y - this._y) / 300) * speedmod);
var hspeed = (((_parent.icafe._x - this._x) / 300) * speedmod);
var dragrand = (200 + random(50));
var wichsprite = random(3);
if (wichsprite == 1) {
this.attachMovie("popup2", "s", this.getNextHighestDepth());
} else if (wichsprite == 0) {
this.attachMovie("popup1", "s", this.getNextHighestDepth());
} else if (wichsprite == 2) {
this.attachMovie("popup3", "s", this.getNextHighestDepth());
}
this.onEnterFrame = function () {
if (this.hitTest(_parent.adcompany)) {
(vspeed = 0);
(hspeed = 0);
}
this._x = this._x + hspeed;
this._y = this._y + vspeed;
if (_parent.shield.hitTest(this._x, this._y, true)) {
killed = true;
vspeed = 0;
hspeed = 0;
s.gotoAndStop(2);
}
if (_parent.icafe.hitTest(this._x, this._y, true) && (killed == false)) {
vspeed = (_parent.icafe._y - this._y) / 10;
hspeed = (_parent.icafe._x - this._x) / 10;
s.gotoAndStop(3);
loaded = true;
if (damaged == false) {
_parent.health = _parent.health - 10;
damaged = true;
}
}
if (this.hitTest(_parent.pbman.hz) && (loaded == false)) {
vspeed = 0;
hspeed = 0;
s.gotoAndStop(2);
if (killed == false) {
s.s1._rotation = _parent.pbmanrot * -1;
_parent.subscore = _parent.subscore + 5;
killed = true;
}
}
};
Symbol 96 MovieClip Frame 17
gotoAndPlay (15);
Symbol 97 Button
on (release) {
getURL ("http://www.wiggiworld.com", "_blank");
}
Symbol 106 MovieClip Frame 15
stop();
Symbol 108 Button
on (release) {
_root.gotoAndPlay("intro");
}
Symbol 122 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
bl = _root.getBytesLoaded();
bt = _root.getBytesTotal();
perc = (bl / bt) * 100;
bar.bar._xscale = perc;
if (perc >= 100) {
this.gotoAndPlay("goplay");
delete this.onEnterFrame;
}
};
Symbol 122 MovieClip Frame 25
stop();
Symbol 339 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local2 = buildDepthTable();
var _local1 = getDepthByFlag(depthFlag, _local2);
var _local4 = "down";
if (depthFlag == kBottom) {
_local4 = "up";
}
var _local5;
if (_local2[_local1] != undefined) {
_local5 = _local1;
_local1 = findNextAvailableDepth(_local1, _local2, _local4);
}
var _local3 = createClassObject(className, "depthChild" + (_childCounter++), _local1, initObj);
if (_local5 != undefined) {
_local2[_local1] = _local3;
shuffleDepths(_local3, _local5, _local2, _local4);
}
if (depthFlag == kTopmost) {
_local3._topmost = true;
}
return(_local3);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local2 = buildDepthTable();
var _local1 = getDepthByFlag(depthFlag, _local2);
var _local4 = "down";
if (depthFlag == kBottom) {
_local4 = "up";
}
var _local5;
if (_local2[_local1] != undefined) {
_local5 = _local1;
_local1 = findNextAvailableDepth(_local1, _local2, _local4);
}
var _local3 = createObject(linkageName, "depthChild" + (_childCounter++), _local1, initObj);
if (_local5 != undefined) {
_local2[_local1] = _local3;
shuffleDepths(_local3, _local5, _local2, _local4);
}
if (depthFlag == kTopmost) {
_local3._topmost = true;
}
return(_local3);
}
function setDepthTo(depthFlag) {
var _local3 = _parent.buildDepthTable();
var _local4 = _parent.getDepthByFlag(depthFlag, _local3);
if (_local3[_local4] != undefined) {
shuffleDepths(MovieClip(this), _local4, _local3, undefined);
} else {
swapDepths(_local4);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local3 = targetInstance.getDepth() + 1;
var _local4 = _parent.buildDepthTable();
if ((_local4[_local3] != undefined) && (getDepth() < _local3)) {
_local3 = _local3 - 1;
}
if (_local3 > highestDepth) {
_local3 = highestDepth;
}
if (_local3 == highestDepth) {
_parent.shuffleDepths(this, _local3, _local4, "down");
} else if (_local4[_local3] != undefined) {
_parent.shuffleDepths(this, _local3, _local4, undefined);
} else {
swapDepths(_local3);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local7 = targetInstance.getDepth() - 1;
var _local4 = _parent.buildDepthTable();
if ((_local4[_local7] != undefined) && (getDepth() > _local7)) {
_local7 = _local7 + 1;
}
var _local5 = lowestDepth + numberOfAuthortimeLayers;
var _local6;
for (_local6 in _local4) {
var _local3 = _local4[_local6];
if (_local3._parent != undefined) {
_local5 = Math.min(_local5, _local3.getDepth());
}
}
if (_local7 < _local5) {
_local7 = _local5;
}
if (_local7 == _local5) {
_parent.shuffleDepths(this, _local7, _local4, "up");
} else if (_local4[_local7] != undefined) {
_parent.shuffleDepths(this, _local7, _local4, undefined);
} else {
swapDepths(_local7);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local1 = targetDepth;
var _local2 = targetDepth;
if (direction == "down") {
while (depthTable[_local2] != undefined) {
_local2--;
}
return(_local2);
}
while (depthTable[_local1] != undefined) {
_local1++;
}
return(_local1);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 340 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 341 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 342 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 343 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 344 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 209 MovieClip Frame 301
_parent.gotoAndStop("menu");
Symbol 217 MovieClip Frame 6
stop();
Symbol 236 MovieClip Frame 1
Symbol 270 MovieClip Frame 1
protect = false;
killed = false;
loaded = false;
damaged = false;
var vspeed = 0;
var hspeed = 0;
var lol = [10, 9, 8, 7, 6, 5, -5, -6, -7, -8, -9, -10];
var rofl = random(12);
var lolspeed = lol[rofl];
var omgspeed = 1;
var wichsprite = random(2);
if (wichsprite == 1) {
this.attachMovie("popupsmall2", "s", this.getNextHighestDepth());
} else if (wichsprite == 0) {
this.attachMovie("popupsmall1", "s", this.getNextHighestDepth());
}
this.onEnterFrame = function () {
if (this.hitTest(_parent.adcompany)) {
(lolspeed = 0);
(this._x = _parent.adcompany._x);
(this._y = _parent.adcompany._y);
} else {
if (lolspeed > 0) {
lolspeed = lolspeed - 0.5;
} else if (lolspeed < 0) {
lolspeed = lolspeed + 0.5;
}
if ((killed == false) && (loaded == false)) {
if (lolspeed == 0) {
if (omgspeed < 10) {
omgspeed = omgspeed + 0.1;
}
vspeed = (_parent.icafe._y - this._y) / 70;
hspeed = (_parent.icafe._x - this._x) / 70;
} else {
(vspeed = lolspeed);
(hspeed = lolspeed);
}
}
}
this._x = this._x + hspeed;
this._y = this._y + vspeed;
if (_parent.shield.hitTest(this._x, this._y, true)) {
killed = true;
vspeed = 0;
hspeed = 0;
s.gotoAndStop(2);
}
if (((_parent.icafe.hitTest(this._x, this._y, true) && (killed == false)) && (lolspeed == 0)) && (protect == false)) {
vspeed = (_parent.icafe._y - this._y) / 10;
hspeed = (_parent.icafe._x - this._x) / 10;
s.gotoAndStop(3);
loaded = true;
if (damaged == false) {
_parent.health = _parent.health - 10;
damaged = true;
}
}
if (((this.hitTest(_parent.pbman.hz) && (loaded == false)) && (lolspeed == 0)) && (protect == false)) {
vspeed = 0;
hspeed = 0;
s.gotoAndStop(2);
if (killed == false) {
s.s1._rotation = _parent.pbmanrot * -1;
_parent.subscore = _parent.subscore + 4;
killed = true;
}
}
};
Symbol 286 MovieClip Frame 9
_parent._parent.removeMovieClip();
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
stop();
Symbol 288 MovieClip Frame 1
function suicide() {
s.gotoAndStop(2);
}
var speedmod = (5 + random(4));
killed = false;
loaded = false;
damaged = false;
if (this._y < 0) {
var vspeed = speedmod;
} else {
var vspeed = (-speedmod);
}
lifespan = setInterval(suicide, 8000);
this.onEnterFrame = function () {
if (this.hitTest(_parent.adcompany)) {
(this._x = _parent.adcompany._x);
(this._y = _parent.adcompany._y);
}
this._y = this._y + vspeed;
if (this.hitTest(_parent.pbman.hz)) {
vspeed = 0;
hspeed = 0;
s.gotoAndStop(2);
if (killed == false) {
s.s1._rotation = _parent.pbmanrot * -1;
_parent.subscore = _parent.subscore + 5;
_parent.toppacket4._y = this._y;
_parent.toppacket4._x = this._x;
duplicateMovieClip (_parent.toppacket4, ("packetz4" + _parent.packn) + 1, _parent.packn);
_parent.packn++;
duplicateMovieClip (_parent.toppacket4, ("packetz4" + _parent.packn) + 1, _parent.packn);
_parent.packn++;
_parent.toppacket4._y = _parent.adcompany._y;
_parent.toppacket4._x = _parent.adcompany._x;
killed = true;
}
}
};
Symbol 289 MovieClip Frame 1
var assign = (2 + random(15));
this.onEnterFrame = function () {
this.gotoAndStop(assign);
};
Symbol 289 MovieClip Frame 2
stop();
protected = false;
this.onEnterFrame = function () {
if (protected == false) {
if (this.hitTest(_parent.pbman)) {
_parent.pupflash.setVolume(100);
_parent.pupflash.start();
_parent.pupspeed();
this.removeMovieClip();
}
}
};
Symbol 289 MovieClip Frame 3
stop();
protected = false;
this.onEnterFrame = function () {
if (protected == false) {
if (this.hitTest(_parent.pbman)) {
_parent.pupgrow.setVolume(60);
_parent.pupgrow.start();
_parent.pupsize();
this.removeMovieClip();
}
}
};
Symbol 289 MovieClip Frame 4
stop();
protected = false;
this.onEnterFrame = function () {
if (protected == false) {
if (this.hitTest(_parent.pbman)) {
_parent.pupblock.setVolume(30);
_parent.pupblock.start();
_parent.pupshield();
this.removeMovieClip();
}
}
};
Symbol 289 MovieClip Frame 5
stop();
protected = false;
this.onEnterFrame = function () {
if (protected == false) {
if (this.hitTest(_parent.pbman)) {
_parent.pupmed.setVolume(100);
_parent.pupmed.start(0.2);
if (_parent.health < 100) {
_parent.health = _parent.health + 20;
}
this.removeMovieClip();
}
}
};
Symbol 289 MovieClip Frame 6
stop();
protected = false;
this.onEnterFrame = function () {
if (protected == false) {
if (this.hitTest(_parent.pbman)) {
_parent.pupcoin.setVolume(60);
_parent.pupcoin.start();
_parent.subscore = _parent.subscore + 100;
this.removeMovieClip();
}
}
};
Symbol 289 MovieClip Frame 7
this.removeMovieClip();
Symbol 289 MovieClip Frame 8
this.removeMovieClip();
Symbol 289 MovieClip Frame 9
this.removeMovieClip();
Symbol 289 MovieClip Frame 10
this.removeMovieClip();
Symbol 289 MovieClip Frame 11
this.removeMovieClip();
Symbol 289 MovieClip Frame 12
this.removeMovieClip();
Symbol 289 MovieClip Frame 13
this.removeMovieClip();
Symbol 289 MovieClip Frame 14
this.removeMovieClip();
Symbol 289 MovieClip Frame 15
this.removeMovieClip();
Symbol 289 MovieClip Frame 16
this.removeMovieClip();
Symbol 289 MovieClip Frame 17
this.removeMovieClip();
Symbol 289 MovieClip Frame 18
this.removeMovieClip();
Symbol 324 MovieClip Frame 1
this.onEnterFrame = function () {
if (bar._xscale > 1) {
bar._xscale = bar._xscale - 0.5;
} else {
_parent.pupsizeoff();
}
};
Symbol 327 MovieClip Frame 1
this.onEnterFrame = function () {
if (bar._xscale > 1) {
bar._xscale = bar._xscale - 0.5;
} else {
_parent.pupspeedoff();
}
};
Symbol 329 MovieClip Frame 1
function refresh_degrees() {
a = _xmouse - pbman._x;
b = _ymouse - pbman._y;
mangle = Math.atan2(a, b);
pbmanrot = mangle / (Math.PI/180);
}
function plusspawn() {
if (popspawndur > 690) {
popspawndur = popspawndur - 25;
}
if (popspeedinc < 3) {
popspeedinc = popspeedinc + 0.03;
}
}
function introduceflash() {
(flashpopspawn = setInterval(flashtopspawn, 5000));
clearInterval(intro1);
(popspawndur = 2000);
}
function introducegame() {
(gamepopspawn = setInterval(gametopspawn, 2000));
clearInterval(intro2);
}
function topspawn() {
posyrandom = random(4);
posyrandomx = random(800);
posyrandomy = random(600);
posy = [[posyrandomx, -150], [posyrandomx, 750], [-150, posyrandomy], [950, posyrandomy]];
toppacket._y = posy[posyrandom][1];
toppacket._x = posy[posyrandom][0];
duplicateMovieClip ("toppacket", ("packetz" + packn) + 1, packn);
toppacket._y = -800;
toppacket._x = -800;
packn++;
clearInterval(popspawn);
popspawn = setInterval(topspawn, popspawndur);
}
function flashtopspawn() {
posyrandom = random(4);
posyrandomx = random(800);
posyrandomy = random(600);
posy = [[posyrandomx, -150], [posyrandomx, 750], [-150, posyrandomy], [950, posyrandomy]];
toppacket2._y = posy[posyrandom][1];
toppacket2._x = posy[posyrandom][0];
duplicateMovieClip ("toppacket2", ("flashpacketz" + packn) + 1, packn);
toppacket2._y = adcompany._y;
toppacket2._x = adcompany._x;
packn++;
}
function gametopspawn() {
gposyrandom = random(4);
var _local1 = 50 + random(150);
var _local2 = 750 - random(150);
gposy = [[_local1, -150], [_local1, 750], [_local2, -150], [_local2, 750]];
toppacket3._y = gposy[gposyrandom][1];
toppacket3._x = gposy[gposyrandom][0];
duplicateMovieClip (toppacket3, ("flashpacketz" + packn) + 1, packn);
toppacket3._y = adcompany._y;
toppacket3._x = adcompany._x;
packn++;
}
function pupspawn() {
var _local1 = 50 + random(700);
var _local2 = 50 + random(500);
pubpup._y = _local2;
pubpup._x = _local1;
duplicateMovieClip (pubpup, ("pup" + packn) + 4, packn);
pubpup._y = adcompany._y;
pubpup._x = adcompany._x;
packn++;
}
function pupsize() {
pupsizebar.bar._xscale = 100;
pupsizebar._alpha = 100;
pupsizebar._visible = true;
pbman._xscale = 150;
pbman._yscale = 150;
clearInterval(sizeoff);
}
function pupsizeoff() {
pupsizebar._visible = false;
pbman._xscale = 100;
pbman._yscale = 100;
}
function pupspeed() {
pupspeedbar.bar._xscale = 100;
pupspeedbar._alpha = 100;
pupspeedbar._visible = true;
pupspeedmod = 3;
}
function pupspeedoff() {
pupspeedbar._visible = false;
pupspeedmod = 1;
}
function pupshield() {
shield._alpha = 100;
shield._y = 296;
clearInterval(shieldoff);
shieldoff = setInterval(pupshieldoff, 10000);
}
function pupshieldoff() {
shield._y = 3000;
clearInterval(shieldoff);
}
stop();
var health = 100;
var subscore = 0;
var spawncontrol = 0;
var flyspeed = 8;
var packspeed = 5;
var hspeed = 0;
var vspeed = 0;
var hblur = 0;
var vblur = 0;
var tol = 5;
int1 = setInterval(refresh_degrees, 18);
var exp1 = new Sound(adcompany);
exp1.attachSound("exp1");
var exp2 = new Sound(adcompany);
exp2.attachSound("exp2");
var exp3 = new Sound(adcompany);
exp3.attachSound("exp3");
var dl = new Sound(icafe);
dl.attachSound("dl");
dl.setVolume(75);
var pupcoin = new Sound(healthbar);
pupcoin.attachSound("pupcoin");
var pupflash = new Sound(healthbar);
pupflash.attachSound("pupflash");
var pupmed = new Sound(healthbar);
pupmed.attachSound("pupmed");
var pupgrow = new Sound(healthbar);
pupgrow.attachSound("pupgrow");
var pupblock = new Sound(healthbar);
pupblock.attachSound("pupblock");
var popspawndur = 2000;
var popspeedinc = 0;
var popspawndurinc = setInterval(plusspawn, 1500);
popspawn = setInterval(topspawn, popspawndur);
intro1 = setInterval(introduceflash, 30000);
intro2 = setInterval(introducegame, 120000);
var packn = 0;
var posyrandomx = 0;
var posyrandomy = 0;
var posyrandom = 0;
var posy = [[posyrandomx, -150], [posyrandomx, 750], [-150, posyrandomy], [950, posyrandomy]];
var gposyrandoma = (50 + random(150));
var gposyrandomb = (750 - random(150));
var gposyrandom = 0;
var gposy = [[gposyrandoma, -150], [gposyrandoma, 750], [gposyrandomb, -150], [gposyrandomb, 750]];
var pupcount = 50;
var pupspeedmod = 1;
icafe.onEnterFrame = function () {
if (subscore > pupcount) {
pupspawn();
pupcount = pupcount + 50;
}
};
pbman.onEnterFrame = function () {
toppacket4.protect = true;
this._depth;
this.onRollOver = function () {
Mouse.hide();
};
this.onRollOut = function () {
Mouse.show();
};
hspeed = (this._x - _xmouse) * pupspeedmod;
vspeed = (this._y - _ymouse) * pupspeedmod;
if ((this._x > (_xmouse + tol)) || (this._x < (_xmouse - tol))) {
this._x = this._x - (hspeed / 8);
}
if ((this._y > (_ymouse + tol)) || (this._y < (_ymouse - tol))) {
this._y = this._y - (vspeed / 8);
}
this._rotation = (pbmanrot * -1) + 180;
onMouseDown = function () {
(pbman.hz._x = 1317.05);
trace(packn);
};
onMouseUp = function () {
pbman.hz._x = 17.05;
};
};
shield.onEnterFrame = function () {
this._alpha = this._alpha - 0.25;
};
healthbar.onEnterFrame = function () {
this.bar._xscale = health;
this.bar2._xscale = health;
if (health <= 0) {
health = 0;
_parent.score = subscore;
_parent.gotoAndStop("end");
}
if (health > 100) {
health = 100;
}
};
Instance of Symbol 315 MovieClip "healthbar" in Symbol 329 MovieClip Frame 1
onClipEvent (enterFrame) {
this.setDepthTo(-5);
}
Instance of Symbol 320 MovieClip in Symbol 329 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 324 MovieClip "pupsizebar" in Symbol 329 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 327 MovieClip "pupspeedbar" in Symbol 329 MovieClip Frame 1
onClipEvent (enterFrame) {
this.setDepthTo(-5);
}
Symbol 338 MovieClip Frame 10
stop();