Frame 1 (209 B)
function urlChk() {
var i = 0;
while (i < (_url.length - 10)) {
if (_url.substr(i, 12) == "puppyred.com") {
return(1);
}
i++;
}
return(1);
}
stop();
fscommand ("allowscale", false);
Frame 3 (152 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
stop();
stopAllSounds();
Frame 4 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 5 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 6 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 7 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 8 (10.12 KiB) ● ●
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
stop();
score = 0;
cnt = 0;
julspeed = 55;
spider_julNum = 0;
spidermove = 0;
batmove = 0;
BE = true;
BL = true;
stopSig = true;
lifeTime = true;
gap = 1.5;
eSig = false;
LSig = false;
goodSig = false;
missSig = false;
successSig = false;
v = 55;
t = 0;
tx = 0;
gravitation = 30;
tadd = 0.35;
life = 0;
endNum = 0;
hitNum = 0;
timeNum = 0.7;
timewidth = time._width;
julNum = 1;
timecon = 0;
live = 0;
pressSounds = new Sound();
pressSounds.attachSound("presssound");
hitSounds = new Sound();
hitSounds.attachSound("hitsound");
deaths = new Sound();
deaths.attachSound("death");
julpoz.attachMovie("jul_spider", "jul0", 0);
spider_randx = random(50) + 450;
julpoz.jul0._x = spider_randx;
julpoz.jul0.jul_speed = random(7) + 5;
julpoz.attachMovie("jul_bat", "jul" + julNum, julNum);
bat_randx = random(50) + 150;
julpoz["jul" + julNum]._x = bat_randx;
julpoz.jul0.onEnterFrame = function () {
spider_julNum = spider_julNum + julpoz.jul0.jul_speed;
this._rotation = (julspeed * Math.cos(spider_julNum * (Math.PI/180))) + 90;
if (spider_julNum > 360) {
spider_julNum = spider_julNum - 360;
}
if (spidermove == 0) {
spiderman._rotation = this._rotation;
if (_root.spiderman._rotation > 123) {
_root.spiderman.spidermanReady.gotoAndStop(1);
} else if ((_root.spiderman._rotation <= 123) && (_root.spiderman._rotation > 101)) {
_root.spiderman.spidermanReady.gotoAndStop(2);
} else if ((_root.spiderman._rotation <= 101) && (_root.spiderman._rotation > 79)) {
_root.spiderman.spidermanReady.gotoAndStop(3);
} else if ((_root.spiderman._rotation <= 79) && (_root.spiderman._rotation > 57)) {
_root.spiderman.spidermanReady.gotoAndStop(4);
} else if (_root.spiderman._rotation <= 57) {
_root.spiderman.spidermanReady.gotoAndStop(5);
}
spidermanangle = spiderman._rotation;
poz = new Object();
poz.x = this.point._x;
poz.y = this.point._y;
this.localToGlobal(poz);
spiderman._x = poz.x;
spiderman._y = poz.y;
spacepress = 0;
}
if (_root.spidermove == 2) {
this._x = this._x + 5;
}
if (this._x > 750) {
this.removeMovieClip();
}
};
spiderman.onKeyDown = function () {
if (Key.getCode() == 32) {
if ((spidermove == 0) & (spacepress == 0)) {
pressSounds.start(0, 1);
if (spider_julNum > 180) {
t = 0;
tx = 0;
spidermanstartx = this._x;
spidermanstarty = this._y;
jumpangle = (360 - spidermanangle) - 90;
spidermove = 1;
this.gotoAndStop("jump");
} else {
t = 0;
tx = 0;
spidermanstartx = this._x;
spidermanstarty = this._y;
jumpangle = (360 - spidermanangle) + 90;
spidermove = 1;
this.gotoAndStop("miss");
}
spacepress = 1;
}
if ((spidermove == 2) & (spacepress == 0)) {
pressSounds.start(0, 1);
if (_root.julpoz["jul" + (_root.julNum - 1)].bat_julNum > 180) {
t = 0;
tx = 0;
spidermanstartx = this._x;
spidermanstarty = this._y;
jumpangle = (360 - spidermanangle) - 90;
spidermove = 1;
this.gotoAndStop("jump");
} else {
t = 0;
tx = 0;
spidermanstartx = this._x;
spidermanstarty = this._y;
jumpangle = (360 - spidermanangle) + 90;
spidermove = 1;
this.gotoAndStop("miss");
}
spacepress = 1;
}
}
};
Key.addListener(spiderman);
spiderman.onEnterFrame = function () {
if ((spidermove == 1) && (endNum == 0)) {
t = t + 0.25;
tx = tx + tadd;
vy0 = v * Math.sin((jumpangle * Math.PI) / 180);
vx0 = v * Math.cos((jumpangle * Math.PI) / 180);
vy = vy0 - (_root.gravitation * t);
if (_root.stopSig == true) {
this._x = spidermanstartx + (vx0 * tx);
this._y = (spidermanstarty - (vy0 * t)) + (((0.5 * _root.gravitation) * t) * t);
this._rotation = (Math.atan((-vy) / vx0) * 180) / Math.PI;
} else {
this._x = this._x + 0.5;
this._y = this._y + _root.gap;
_root.gap = _root.gap + 0.1;
}
if (julpoz["jul" + julNum].hit.hitTest(this)) {
hitSounds.start(0, 1);
_root.julNum++;
spidermove = 2;
timecon = 0;
hitNum = 1;
time._width = timewidth;
score = score + 20;
_root.Gscore.scoreView(_root.score);
_root.MC_good._x = this._x;
_root.MC_good._y = this._y;
_root.MC_good.goUp();
_root.success.follow();
} else if ((this._y > 215) && (_root.lifeTime == true)) {
_root.lifeTime = false;
this.gotoAndStop("miss");
_root.stopSig = false;
_root.imsiAngle = this._rotation;
}
if (_root.balloon_E.hitTest(this) && (_root.BE == false)) {
_root.score = _root.score + 50;
_root.Gscore.scoreView(_root.score);
_root.eSig = false;
_root.balloon_E.bE_in.gotoAndPlay(2);
_root.BE = true;
}
if (_root.balloon_L.hitTest(this) && (_root.BL == false)) {
if (_root.life < 5) {
_root.life--;
_root["life" + (_root.life + 1)]._visible = true;
}
_root.LSig = false;
_root.balloon_L.bL_in.gotoAndPlay(2);
_root.BL = true;
}
}
if ((_root.life > 2) && (_root.BL == true)) {
if (random(77) == 37) {
_root.BL = false;
_root.balloon_L._x = -50;
_root.balloon_L._y = 70;
_root.balloon_L.move();
}
}
if ((_root.time._width < (_root.timewidth / 2)) && (_root.BE == true)) {
if (random(77) == 37) {
_root.BE = false;
_root.balloon_E._x = -50;
_root.balloon_E._y = 70;
_root.balloon_E.move();
}
}
if ((this._y >= 200) & (live == 0)) {
deaths.start(0, 1);
live = 1;
}
if (this._y >= 400) {
this._y = 400;
life++;
die.gotoAndPlay(2);
if (life < 5) {
eval ("life" + life)._visible = 0;
t = 0;
tx = 0;
timecon = 0;
if (julNum <= 1) {
spidermove = 0;
} else {
spidermove = 2;
}
time._width = timewidth;
this.gotoAndStop("ready");
live = 0;
}
if (life == 5) {
eval ("life" + life)._visible = 0;
theend.gotoAndPlay(2);
endNum = 1;
trace("a");
this.onEnterFrame = null;
_root.time.onEnterFrame = null;
_root.balloon_E.stop();
_root.balloon_L.stop();
var k = _root.julNum;
while (k >= 0) {
_root.julpoz["jul" + k].onEnterFrame = null;
k--;
}
game_score = score;
sendOb.gCode = 3;
sendob.score = score;
scoreURL = "/servlet/trid.game.GameResultServlet";
sendOb.onData = function () {
this.removeMovieClip();
};
}
}
};
time.onEnterFrame = function () {
if ((this._width > timeNum) & (spidermove != 1)) {
this._width = this._width - timeNum;
}
if ((this._width <= timeNum) && (timecon == 0)) {
if (spider_julNum > 180) {
t = 0;
tx = 0;
spidermanstartx = spiderman._x;
spidermanstarty = spiderman._y;
jumpangle = (360 - spidermanangle) - 90;
spidermove = 1;
spiderman.gotoAndStop("jump");
} else {
t = 0;
tx = 0;
spidermanstartx = spiderman._x;
spidermanstarty = spiderman._y;
jumpangle = (360 - spidermanangle) + 90;
spidermove = 1;
spiderman.gotoAndStop("miss");
}
if (spidermove == 2) {
if (_root.julpoz["jul" + (_root.julNum - 1)].bat_julNum > 180) {
t = 0;
tx = 0;
spidermanstartx = spiderman._x;
spidermanstarty = spiderman._y;
jumpangle = (360 - spidermanangle) - 90;
spidermove = 1;
spiderman.gotoAndStop("jump");
} else {
t = 0;
tx = 0;
spidermanstartx = spiderman._x;
spidermanstarty = spiderman._y;
jumpangle = (360 - spidermanangle) + 90;
spidermove = 1;
spiderman.gotoAndStop("miss");
}
}
timecon = 1;
}
_root.cnt++;
if ((_root.cnt % 10) == 0) {
_root.sky.sun._x = _root.sky.sun._x + 1;
if (_root.sky.sun._x > 370) {
_root.sky.sun._x = -400;
}
}
if ((_root.cnt % 2) == 0) {
_root.sky.cloud1._x = _root.sky.cloud1._x + 1;
_root.sky.cloud2._x = _root.sky.cloud2._x + 1;
_root.sky.cloud3._x = _root.sky.cloud3._x + 1;
if (_root.sky.cloud1._x > 370) {
_root.sky.cloud1._x = -400;
_root.sky.cloud1._y = -120 + random(111);
}
if (_root.sky.cloud2._x > 370) {
_root.sky.cloud2._x = -400;
_root.sky.cloud2._y = -120 + random(111);
}
if (_root.sky.cloud3._x > 370) {
_root.sky.cloud3._x = -400;
_root.sky.cloud3._y = -120 + random(111);
}
_root.sky.cloud4._x = _root.sky.cloud4._x + 1;
_root.sky.cloud5._x = _root.sky.cloud5._x + 1;
_root.sky.cloud6._x = _root.sky.cloud6._x + 1;
if (_root.sky.cloud4._x > 370) {
_root.sky.cloud4._x = -400;
_root.sky.cloud4._y = random(51);
}
if (_root.sky.cloud5._x > 370) {
_root.sky.cloud5._x = -400;
_root.sky.cloud5._y = random(51);
}
if (_root.sky.cloud6._x > 370) {
_root.sky.cloud6._x = -400;
_root.sky.cloud6._y = random(51);
}
}
if (_root.eSig == true) {
_root.balloon_E._x = _root.balloon_E._x + 2;
if (_root.balloon_E._x > 670) {
_root.eSig = false;
_root.balloon_E._x = _root.balloon_E.ax;
_root.balloon_E._y = _root.balloon_E.ay;
_root.BE = true;
}
}
if (_root.LSig == true) {
_root.balloon_L._x = _root.balloon_L._x + 2;
if (_root.balloon_L._x > 670) {
_root.LSig = false;
_root.balloon_L._x = _root.balloon_L.ax;
_root.balloon_L._y = _root.balloon_L.ay;
_root.BL = true;
}
}
if (_root.goodSig == true) {
if (_root.MC_good._y > 70) {
_root.MC_good._y = _root.MC_good._y - 1;
} else {
_root.MC_good._y = _root.MC_good._y - 5;
}
_root.MC_good._alpha = _root.MC_good._alpha + 4;
if (_root.MC_good._y < -30) {
_root.goodSig = false;
_root.MC_good._x = _root.MC_good.ax;
_root.MC_good._y = _root.MC_good.ay;
}
}
if (_root.missSig == true) {
_root.MC_miss._alpha = _root.MC_miss._alpha + 10;
_root.MC_miss._y = _root.MC_miss._y - 4;
if (_root.MC_miss._y < -20) {
_root.missSig = false;
_root.MC_miss._x = _root.MC_miss.ax;
_root.MC_miss._y = _root.MC_miss.ay;
}
}
if (_root.successSig == true) {
_root.success._x = _root.spiderman._x;
_root.success._y = _root.spiderman._y;
}
};
Instance of Symbol 101 MovieClip "balloon_E" in Frame 8 (140 B)
onClipEvent (load) {
function move() {
this.gotoAndPlay(1);
_root.eSig = true;
}
ax = this._x;
ay = this._y;
this.gotoAndStop(1);
}
Instance of Symbol 106 MovieClip "balloon_L" in Frame 8 (140 B)
onClipEvent (load) {
function move() {
this.gotoAndPlay(1);
_root.LSig = true;
}
ax = this._x;
ay = this._y;
this.gotoAndStop(1);
}
Instance of Symbol 109 MovieClip "MC_good" in Frame 8 (117 B)
onClipEvent (load) {
function goUp() {
this._alpha = 0;
_root.goodSig = true;
}
ax = this._x;
ay = this._y;
}
Instance of Symbol 139 MovieClip "success" in Frame 8 (126 B)
onClipEvent (load) {
function follow() {
this.gotoAndPlay(2);
_root.successSig = true;
}
ax = this._x;
ay = this._y;
}
Instance of Symbol 141 MovieClip "MC_miss" in Frame 8 (185 B)
onClipEvent (load) {
function viewMiss() {
this._x = _root.spiderman._x;
this._y = _root.spiderman._y;
this._alpha = 0;
_root.missSig = true;
}
ax = this._x;
ay = this._y;
}
Instance of Symbol 159 MovieClip "Gscore" in Frame 8 (588 B)
onClipEvent (load) {
function scoreView(score) {
var s8 = Math.floor((score % 100000000) / 10000000);
var s7 = Math.floor((score % 10000000) / 1000000);
var s6 = Math.floor((score % 1000000) / 100000);
var s5 = Math.floor((score % 100000) / 10000);
var s4 = Math.floor((score % 10000) / 1000);
var s3 = Math.floor((score % 1000) / 100);
var s2 = Math.floor((score % 100) / 10);
var s1 = Math.floor(score % 10);
i = 1;
while (i <= 8) {
this["n" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
}
i = 1;
while (i <= 8) {
this["n" + i].stop();
i++;
}
}
Frame 9 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 10 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 11 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 12 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 13 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 14 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 15 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 16 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 17 (124 B)
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Symbol 18 MovieClip Frame 1 (8 B)
stop();
Symbol 18 MovieClip Frame 2 (8 B)
stop();
Symbol 18 MovieClip Frame 3 (8 B)
stop();
Symbol 18 MovieClip Frame 4 (8 B)
stop();
Symbol 18 MovieClip Frame 5 (8 B)
stop();
Symbol 21 MovieClip [jul_bat] Frame 1 (2.86 KiB) ●
batNum = _root.julNum;
julagain = 0;
julspeed = 55;
do {
jul_speed = random(7) + 5;
if (jul_speed != _root.julpoz["jul" + (_root.julNum - 1)].jul_speed) {
break;
}
} while (jul_speed == _root.julpoz["jul" + (_root.julNum - 1)].jul_speed);
bat_julNum = 0;
batmove = 0;
randpoz1 = random(60) + 150;
randpoz2 = random(60) + 450;
this.onEnterFrame = function () {
bat_julNum = bat_julNum + jul_speed;
this._rotation = (julspeed * Math.cos(bat_julNum * (Math.PI/180))) + 90;
if (this._rotation > 123) {
this.batMan.gotoAndStop(5);
} else if ((this._rotation <= 123) && (this._rotation > 101)) {
this.batMan.gotoAndStop(4);
} else if ((this._rotation <= 101) && (this._rotation > 79)) {
this.batMan.gotoAndStop(3);
} else if ((this._rotation <= 79) && (this._rotation > 57)) {
this.batMan.gotoAndStop(2);
} else if (this._rotation <= 57) {
this.batMan.gotoAndStop(1);
}
if (bat_julNum > 360) {
bat_julNum = bat_julNum - 360;
}
if ((_root.spidermove == 2) && (batNum == (_root.julNum - 1))) {
_root.spiderman.gotoAndStop("ready");
spiderbatpoz = new Object();
spiderbatpoz.x = _root.julpoz["jul" + (_root.julNum - 1)].batman.point._x;
spiderbatpoz.y = _root.julpoz["jul" + (_root.julNum - 1)].batman.point._y;
_root.julpoz["jul" + (_root.julNum - 1)].batman.localToGlobal(spiderbatpoz);
_root.spacepress = 0;
_root.spiderman._rotation = _root.julpoz["jul" + (_root.julNum - 1)]._rotation;
if (_root.spiderman._rotation > 123) {
_root.spiderman.spidermanReady.gotoAndStop(1);
} else if ((_root.spiderman._rotation <= 123) && (_root.spiderman._rotation > 101)) {
_root.spiderman.spidermanReady.gotoAndStop(2);
} else if ((_root.spiderman._rotation <= 101) && (_root.spiderman._rotation > 79)) {
_root.spiderman.spidermanReady.gotoAndStop(3);
} else if ((_root.spiderman._rotation <= 79) && (_root.spiderman._rotation > 57)) {
_root.spiderman.spidermanReady.gotoAndStop(4);
} else if (_root.spiderman._rotation <= 57) {
_root.spiderman.spidermanReady.gotoAndStop(5);
}
_root.spidermanangle = _root.spiderman._rotation;
_root.jumpangle = (360 - _root.spidermanangle) - 90;
_root.spiderman._x = spiderbatpoz.x;
_root.spiderman._y = spiderbatpoz.y;
if (_root.hitNum == 1) {
_root.julpoz.attachMovie("jul_bat", "jul" + _root.julNum, _root.julNum);
_root.julpoz["jul" + _root.julNum]._x = -150;
_root.hitNum = 0;
}
}
this._x = this._x + 5;
if (_root.julpoz["jul" + _root.julNum]._x >= randpoz1) {
_root.julpoz["jul" + _root.julNum]._x = randpoz1;
}
if (_root.julpoz["jul" + (_root.julNum - 1)]._x >= randpoz2) {
_root.julpoz["jul" + (_root.julNum - 1)]._x = randpoz2;
}
if (this._x > 750) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
Symbol 31 MovieClip Frame 9 (375 B)
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
} else {
stop();
loadingbar.onEnterFrame = function () {
trace(this._x);
this._x = (((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) * 1.47) + -143.7;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
this._parent.gotoAndPlay("loadingOk");
this.onEnterFrame = null;
}
};
}
Symbol 31 MovieClip Frame 31 (35 B)
_parent.gotoAndPlay("loading_ok");
Symbol 32 MovieClip Frame 12 (8 B)
stop();
Symbol 32 MovieClip Frame 21 (25 B)
_parent.play();
stop();
Symbol 62 Button (63 B)
on (release) {
getURL ("http://www.puppyred.com", "_blank");
}
Symbol 65 Button (70 B)
on (release, keyPress "<Enter>") {
_root.gotoAndStop("game");
}
Symbol 68 Button (43 B)
on (release) {
_root.gotoAndStop("how");
}
Symbol 81 Button (35 B)
on (release) {
gotoAndStop (13);
}
Symbol 90 Button (34 B)
on (release) {
gotoAndStop (8);
}
Symbol 100 MovieClip Frame 1 (8 B)
stop();
Symbol 100 MovieClip Frame 50 (156 B)
this.gotoAndStop(1);
_root.BE = true;
_root.balloon_E._x = _root.balloon_E.ax;
_root.balloon_E._y = _root.balloon_E.ay;
_root.balloon_E.gotoAndStop(1);
Symbol 101 MovieClip Frame 79 (21 B)
this.gotoAndPlay(1);
Symbol 105 MovieClip Frame 1 (8 B)
stop();
Symbol 105 MovieClip Frame 50 (156 B)
this.gotoAndStop(1);
_root.BL = true;
_root.balloon_L._x = _root.balloon_L.ax;
_root.balloon_L._y = _root.balloon_L.ay;
_root.balloon_L.gotoAndStop(1);
Symbol 106 MovieClip Frame 79 (21 B)
this.gotoAndPlay(1);
Symbol 109 MovieClip Frame 1 (8 B)
stop();
Symbol 120 MovieClip Frame 1 (8 B)
stop();
Symbol 120 MovieClip Frame 2 (8 B)
stop();
Symbol 120 MovieClip Frame 3 (8 B)
stop();
Symbol 120 MovieClip Frame 4 (8 B)
stop();
Symbol 120 MovieClip Frame 5 (8 B)
stop();
Symbol 135 MovieClip Frame 1 (26 B)
_root.MC_miss.viewMiss();
Symbol 135 MovieClip Frame 3 (104 B)
stop();
_root.stopSig = true;
_root.spiderman._rotation = _root.imsiAngle;
_root.spiderman._y = 500;
Symbol 136 MovieClip Frame 1 (32 B)
stop();
_root.lifeTime = true;
Instance of Symbol 124 MovieClip "spederman" in Symbol 136 MovieClip Frame 2 (46 B)
onClipEvent (load) {
this._visible = false;
}
Symbol 139 MovieClip Frame 1 (8 B)
stop();
Symbol 139 MovieClip Frame 30 (88 B)
_root.successSig = false;
this.gotoAndStop(1);
this._x = this.ax;
this._y = this.ay;
Symbol 168 Button (63 B)
on (release) {
getURL ("http://www.puppyred.com", "_blank");
}
Symbol 171 Button (63 B)
on (release) {
getURL ("http://www.puppyred.com", "_blank");
}
Symbol 174 MovieClip Frame 1 (8 B)
stop();
Symbol 197 Button (91 B)
on (release, keyPress "<Enter>") {
stopAllSounds();
_root.gotoAndStop("loading");
}
Symbol 198 MovieClip Frame 1 (8 B)
stop();
Symbol 198 MovieClip Frame 15 (8 B)
stop();
Instance of Symbol 196 MovieClip "scoreView" in Symbol 198 MovieClip Frame 15 (2.69 KiB) ●
onClipEvent (load) {
function scoreView(score) {
this._parent._visible = 1;
var s8 = (Math.floor((score % 100000000) / 10000000) + 1);
var s7 = (Math.floor((score % 10000000) / 1000000) + 1);
var s6 = (Math.floor((score % 1000000) / 100000) + 1);
var s5 = (Math.floor((score % 100000) / 10000) + 1);
var s4 = (Math.floor((score % 10000) / 1000) + 1);
var s3 = (Math.floor((score % 1000) / 100) + 1);
var s2 = (Math.floor((score % 100) / 10) + 1);
var s1 = (Math.floor(score % 10) + 1);
if (score > 0) {
snd.start(0, 999);
}
num1.gotoAndStop(1);
num1.play();
num1.onEnterFrame = function () {
if (this._currentframe == (s1 + 1)) {
this.stop();
if (score < 10) {
snd.stop();
}
num2.gotoAndStop(1);
num2.play();
num2.onEnterFrame = function () {
if (this._currentframe == (s2 + 1)) {
this.stop();
if (score < 100) {
snd.stop();
}
num3.gotoAndStop(1);
num3.play();
num3.onEnterFrame = function () {
if (this._currentframe == (s3 + 1)) {
this.stop();
if (score < 1000) {
snd.stop();
}
num4.gotoAndStop(1);
num4.play();
num4.onEnterFrame = function () {
if (this._currentframe == (s4 + 1)) {
trace(1);
this.stop();
if (score < 10000) {
snd.stop();
}
num5.gotoAndStop(1);
num5.play();
num5.onEnterFrame = function () {
if (this._currentframe == (s5 + 1)) {
this.stop();
if (score < 100000) {
snd.stop();
}
num6.gotoAndStop(1);
num6.play();
num6.onEnterFrame = function () {
if (this._currentframe == (s6 + 1)) {
this.stop();
if (score < 100000) {
snd.stop();
}
num7.gotoAndStop(1);
num7.play();
num7.onEnterFrame = function () {
if (this._currentframe == (s7 + 1)) {
this.stop();
this._parent.snd.stop("dding");
this._parent._parent.scoreItemMovie.view();
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
}
i = 1;
while (i <= 8) {
this["num" + i].stop();
i++;
}
snd = new Sound(this);
snd.attachSound("dding");
scoreView(_root.score);
}
Symbol 203 Button (70 B)
on (release, keyPress "<Enter>") {
_root.gotoAndStop("game");
}