Frame 1
stop();
played = false;
mwidth = loader.maskola._width;
onEnterFrame = function () {
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
percentbytes = int(loadedbytes / (totalbytes / 100));
loader.loadtxt.text = "Loading:100%";
if (percentbytes < 100) {
loader.loadtxt.text = ("Loading: " + percentbytes) + "%";
decimal = percentbytes / 100;
newsize = decimal * mwidth;
loader.maskola._width = newsize + 5;
}
if (percentbytes > 98) {
if (played != true) {
loader.play();
played = true;
}
}
};
Frame 4
stop();
Frame 8
stop();
onEnterFrame = function () {
spawned.removeMovieClip();
};
Frame 9
function send_vars(username, score, code, u) {
var _local1 = new LoadVars();
var _local2 = new LoadVars();
_local1.username = username;
_local1.score = score;
_local1.code458 = code;
_local1.sendAndLoad(u, _local2, "POST");
box.btn_send._x = 999999 /* 0x0F423F */;
}
stop();
spawndelay = 3;
spawntimer = 0;
evar = 1000;
xspeed = 0;
speed = 1;
friction = 0.4;
yspeed = 4;
score = 0;
leveltimer = 200;
leveldelay = 200;
level = 1;
colorlevel = 1;
pfired = 9000;
sfx.stop();
sfx = new Sound();
sfx.attachSound("song");
sfx.start();
attachMovie("leveltxt", "leveltxt", 11100);
leveltxt._x = 200;
leveltxt._y = -60;
attachMovie("guy", "guy", 100);
guy._x = 200;
guy._y = 440;
onEnterFrame = function () {
sfx.onSoundComplete = function () {
sfx.start();
};
if (dead == true) {
guy.removeMovieClip();
if (box._x < 59) {
box._x = box._x + 10;
}
}
scoretxt.text = "Score: " + score;
box.scoretxt.text = "Score: " + score;
leveltxt._y--;
if (leveltimer == 20) {
leveltxt._y = 60;
}
if (dead != true) {
leveltimer--;
}
if (leveltimer < 1) {
leveltimer = leveldelay;
yspeed = yspeed + 1;
level++;
backg.play();
colorlevel++;
}
spawntimer--;
if (spawntimer < 1) {
if (dead != true) {
spawn();
}
}
spawned.onEnterFrame = function () {
if (dead == true) {
this.removeMovieClip();
}
this._y = this._y + yspeed;
this._x = this._x - xspeed;
if (this._y > 500) {
score++;
this.removeMovieClip();
}
if (this.hitTest(guy.hitbox)) {
particles();
dead = true;
speed = 0;
xspeed = 0;
b = new Sound();
b.attachSound("zap");
b.start();
}
};
moving = "none";
if (Key.isDown(65) or Key.isDown(37)) {
moving = "left";
}
if (Key.isDown(68) or Key.isDown(39)) {
moving = "right";
}
if (moving == "left") {
xspeed = xspeed - speed;
}
if (moving == "right") {
xspeed = xspeed + speed;
}
if (xspeed > 7) {
xspeed = 7;
}
if (xspeed < -7) {
xspeed = -7;
}
if (moving == "none") {
if ((xspeed <= 0.5) and (xspeed >= -0.5)) {
xspeed = 0;
}
if (xspeed > 0.5) {
xspeed = xspeed - friction;
}
if (xspeed < -0.5) {
xspeed = xspeed + friction;
}
}
guy._rotation = xspeed * 3;
};
spawn = function () {
spawntimer = spawndelay;
start_x = Math.round(Math.random() * 1200) - 400;
start_y = -50;
evar++;
spawned = attachMovie("baddy", "baddy" + evar, evar, {_x:start_x, _y:start_y});
_root["baddy" + evar].gotoAndStop(_root.backg._currentframe);
};
particles = function () {
par = 45;
partx = guy._x;
party = guy._y;
var _local3;
_local3 = 0;
while (_local3 < par) {
pfired++;
part = attachMovie("particle", "particle" + pfired, pfired, {_x:partx, _y:party});
pdeg = Math.random() * 360;
_root["particle" + pfired].dirx = Math.cos((pdeg * Math.PI) / 180) * 4.5;
_root["particle" + pfired].diry = Math.sin((pdeg * Math.PI) / 180) * 4.5;
_root["particle" + pfired]._rotation = pdeg;
_root["particle" + pfired].ptype = partype;
multiplier = Math.random() + 1;
_root["particle" + pfired].dirx = _root["particle" + pfired].dirx * multiplier;
_root["particle" + pfired].diry = _root["particle" + pfired].diry * multiplier;
_root["particle" + pfired].timer = 18;
part.onEnterFrame = function () {
frame = Math.round(Math.random() * 3);
frame++;
this.gotoAndStop(frame);
this.timer--;
if (this.timer < 0) {
this.removeMovieClip();
}
this._x = this._x + this.dirx;
this._y = this._y + this.diry;
};
_local3++;
}
};
box.btn_send.onRelease = function () {
player_name = box.user_name.text;
if (player_name == "") {
player_name = "No Name";
}
player_score = score;
send_vars(player_name, player_score, "IkO8mZoHm1IPRqjl71EWXjHpHFGbmDe0", "http://www.pogollama.com/scoreboards/submit_scores.php");
getURL ("http://www.pogollama.com/scoreboards/shape_dodger/view_scores_1.php", _blank);
};
Symbol 13 MovieClip [baddy] Frame 1
stop();
Symbol 13 MovieClip [baddy] Frame 2
stop();
Symbol 13 MovieClip [baddy] Frame 3
stop();
Symbol 13 MovieClip [baddy] Frame 4
stop();
Symbol 13 MovieClip [baddy] Frame 5
stop();
Symbol 13 MovieClip [baddy] Frame 6
stop();
Symbol 21 MovieClip [particle] Frame 1
stop();
Symbol 21 MovieClip [particle] Frame 2
stop();
Symbol 21 MovieClip [particle] Frame 3
stop();
Symbol 21 MovieClip [particle] Frame 4
stop();
Symbol 34 Button
on (release) {
_root.play();
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
stop();
Symbol 36 Button
on (release) {
getURL ("http://www.pogollama.com", _blank);
}
Symbol 57 MovieClip Frame 162
_root.play();
Symbol 67 Button
on (release) {
_root.play();
}
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 3
stop();
Symbol 76 MovieClip Frame 4
stop();
Symbol 76 MovieClip Frame 5
stop();
Symbol 76 MovieClip Frame 6
stop();
Symbol 81 Button
on (release) {
getURL ("http://www.pogollama.com", _blank);
}
Symbol 83 Button
on (release) {
_root.dead = false;
_root.spawndelay = 99999999 /* 0x5F5E0FF */;
_root.gotoAndStop(8);
}
Symbol 88 MovieClip Frame 1
user_name.onSetFocus = function () {
user_name.text = "";
};