Frame 1
counter = 0;
timer = 30;
timerstep = 5;
timercount = 5000;
ad_width = 150;
ad_height = 150;
popup_count = 0;
popup_max = 10;
score = 0;
meterscale = 40;
ads = new array("Buy\nme!", "Free\nStuff!", "Make\nMoney\nFast", "Go to\nwork\non an egg", "Buy\nmore\nstuff!", "Free\nCredit!", "Erectile\nproblems?", "Xcam\nthingie", "Is your\nemail\nbeing read?", "Free\nMortgage!", "Win!\nWin!\nWin!", "Click\nthis\nlink", "New\ncorporate\nportal", "Download\ngator!!!", "Casino\nonline!", "Prozac\nonline!!", "Buy used\npanties", "Is your\nPC\na virus?", "Spam!\nSpam!\nSpam!", "Take\na\nsurvey!", "See\nNaked\nLadies!", "$$$!\n$$$!!\n$$$!!!", "Work\nfrom\nhome!");
stop();
Frame 2
function MakeWoo() {
audio.gotoandplay(2);
audio.gotoandplay(1);
var randomText = ads[Math.floor(Math.random() * ads.length)];
counter++;
newname = "woo" + counter;
this.attachMovie("woo", [newname], counter + 1);
_root[newname]._x = random(550 - (ad_width / 2)) + (ad_width / 2);
_root[newname]._y = random(400 - (ad_height / 2)) + (ad_height / 2);
timercount = 0;
_root[newname].buyme = randomText;
popup_count++;
adjusttimer();
CheckDead();
}
function CheckDead() {
if (popup_max < popup_count) {
killallpops();
gotoAndPlay (4);
}
}
function killallpops() {
x = 0;
while ((x++) < _root.counter) {
newname = "_root.woo" + x;
removeMovieClip([newname]);
}
}
function adjusttimer() {
v = popup_count * 50;
setProperty(meter, _x , 30 + v);
setProperty(meter, _width , v);
}
timercount++;
if (timercount >= timer) {
MakeWoo();
}
Frame 3
gotoAndPlay (2);
Frame 4
stopAllSounds();
_root.audio.gotoandplay(4);
_root.audio.gotoandplay(1);
_root.audio.gotoandplay(5);
_root.audio.gotoandplay(1);
scoretext = ("You killed " + score) + " pop-ups. Yay.";
stop();
Symbol 3 Button
on (release) {
_root.audio.gotoandplay(7);
_root.audio.gotoandplay(1);
_root.MakeWoo();
_root.MakeWoo();
_root.MakeWoo();
_root.timer = _root.timer - _root.timerstep;
}
Symbol 8 Button
on (release) {
_root.audio.gotoandplay(3);
_root.audio.gotoandplay(1);
removeMovieClip(this);
_root.popup_count--;
_root.score++;
_root.adjusttimer();
}
Symbol 9 Button
on (press) {
_root.counter++;
this.swapDepths(_root.counter + 1);
startDrag (getProperty(_x, _y));
}
on (release) {
stopDrag();
}
Symbol 16 Button
on (release) {
stopAllSounds();
audio.gotoandplay(6);
audio.gotoandplay(1);
gotoAndPlay (2);
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
stop();
Symbol 26 MovieClip Frame 3
stop();
Symbol 26 MovieClip Frame 4
stop();
Symbol 26 MovieClip Frame 5
stop();
Symbol 26 MovieClip Frame 6
stop();
Symbol 26 MovieClip Frame 7
stop();
Symbol 37 Button
on (release) {
stopAllSounds();
gotoAndPlay (1);
}