Frame 3
var audio = 1;
var music_sound = new Sound(musica);
music_sound.attachSound("music");
music_sound.start(0, 9999);
var crab_sound = new Sound(craba);
crab_sound.attachSound("crab");
var puff_sound = new Sound(puffa);
puff_sound.attachSound("puff");
var global_sound = new Sound(_root);
stop();
Instance of Symbol 20 MovieClip "leather" in Frame 3
onClipEvent (load) {
_y = 250;
var a = 2;
var d = 4;
var newY = _y;
var myYspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
}
Instance of Symbol 24 MovieClip in Frame 3
onClipEvent (load) {
screen.text = "Enter";
_y = 550;
_rotation = 0;
var a = 2;
var d = 4;
var newY = 480;
var myYspeed = 0;
var newR = (random(20) - 10);
var myRspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
myRspeed = (((_rotation - newR) / a) + myRspeed) / d;
_rotation = (_rotation - myRspeed);
}
on (release) {
_root.play();
newY = 550;
}
Frame 4
gameround = 0;
leather.newY = -140;
jack.newS = 100;
jack.newX = 390;
jack.newY = 1060;
desert.newS = 200;
flare.newS = 200;
countersheet.killed = 10;
stop();
Instance of Symbol 38 MovieClip "desert" in Frame 4
onClipEvent (load) {
_xscale = 200;
_yscale = 200;
var a = 2;
var d = 4;
var newS = _xscale;
var mySspeed = 0;
}
onClipEvent (enterFrame) {
mySspeed = (((_xscale - newS) / a) + mySspeed) / d;
_xscale = (_xscale - mySspeed);
_yscale = (_yscale - mySspeed);
}
Instance of Symbol 24 MovieClip in Frame 4
onClipEvent (load) {
sheet.text = "Play";
_y = 550;
_rotation = 0;
var a = 2;
var d = 4;
var newY = 480;
var myYspeed = 0;
var newR = (random(20) - 10);
var myRspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
myRspeed = (((_rotation - newR) / a) + myRspeed) / d;
_rotation = (_rotation - myRspeed);
}
on (release) {
_root.play();
newY = 550;
}
Instance of Symbol 43 MovieClip "jack" in Frame 4
onClipEvent (load) {
_x = 440;
_y = 1060;
_xscale = 100;
_yscale = 100;
var a = 2;
var d = 4;
var newX = _x;
var myXspeed = 0;
var newY = _y;
var myYspeed = 0;
var newS = _xscale;
var mySspeed = 0;
}
onClipEvent (enterFrame) {
myXspeed = (((_x - newX) / a) + myXspeed) / d;
_x = (_x - myXspeed);
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
mySspeed = (((_xscale - newS) / a) + mySspeed) / d;
_xscale = (_xscale - mySspeed);
_yscale = (_yscale - mySspeed);
}
Instance of Symbol 46 MovieClip "flare" in Frame 4
onClipEvent (load) {
_xscale = 200;
_yscale = 200;
var a = 2;
var d = 4;
var newS = _xscale;
var mySspeed = 0;
}
onClipEvent (enterFrame) {
mySspeed = (((_xscale - newS) / a) + mySspeed) / d;
_xscale = (_xscale - mySspeed);
_yscale = (_yscale - mySspeed);
}
Frame 6
gameround = 1;
jack.newS = 30;
jack.newX = 520;
jack.newY = 410;
desert.newS = 100;
flare.newS = 100;
crabspeed = 5;
countersheet.killed = 10;
crab_sound.start(0, 9999);
onEnterFrame = function () {
if (((_root.gameround == 1) || (_root.gameround == 2)) || (_root.gameround == 3)) {
countersheet.killcounter.text = countersheet.killed;
if (countersheet.killed <= 0) {
play();
countersheet.newY = 0;
saneometer.newY = -200;
}
} else if (_root.gameround == 4) {
countersheet.killcounter.text = countersheet.killed;
if (countersheet.killed <= 0) {
_root.gameround = 0;
gotoAndStop ("winner");
countersheet.newY = 0;
saneometer.newY = -200;
}
}
if ((audio == 1) && (((((crab1.crab._visible == true) || (crab2.crab._visible == true)) || (crab3.crab._visible == true)) || (crab4.crab._visible == true)) || (crab5.crab._visible == true))) {
crab_sound.setVolume(50);
} else {
crab_sound.setVolume(0);
}
};
sandbutton.useHandCursor = false;
stop();
Instance of Symbol 117 MovieClip "countersheet" in Frame 6
onClipEvent (load) {
_y = 0;
_rotation = 0;
var a = 2;
var d = 4;
var newY = 125;
var myYspeed = 0;
var newR = (random(20) - 10);
var myRspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
myRspeed = (((_rotation - newR) / a) + myRspeed) / d;
_rotation = (_rotation - myRspeed);
}
Instance of Symbol 124 MovieClip "saneometer" in Frame 6
onClipEvent (load) {
_y = -200;
var a = 2;
var d = 4;
var newY = 25;
var myYspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
}
Frame 14
gameround = 0;
jack.newS = 100;
jack.newX = 440;
jack.newY = 1060;
desert.newS = 200;
flare.newS = 200;
countersheet.killed = 15;
stop();
Instance of Symbol 24 MovieClip in Frame 14
onClipEvent (load) {
sheet.text = "Play";
_y = 550;
_rotation = 0;
var a = 2;
var d = 4;
var newY = 480;
var myYspeed = 0;
var newR = (random(20) - 10);
var myRspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
myRspeed = (((_rotation - newR) / a) + myRspeed) / d;
_rotation = (_rotation - myRspeed);
}
on (release) {
_root.play();
newY = 550;
}
Frame 16
gameround = 2;
jack.newS = 30;
jack.newX = 520;
jack.newY = 410;
desert.newS = 100;
flare.newS = 100;
crabspeed = 7;
countersheet.killed = 15;
sandbutton.useHandCursor = false;
stop();
Instance of Symbol 117 MovieClip "countersheet" in Frame 16
onClipEvent (load) {
_y = 0;
_rotation = 0;
var a = 2;
var d = 4;
var newY = 125;
var myYspeed = 0;
var newR = (random(20) - 10);
var myRspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
myRspeed = (((_rotation - newR) / a) + myRspeed) / d;
_rotation = (_rotation - myRspeed);
}
Instance of Symbol 124 MovieClip "saneometer" in Frame 16
onClipEvent (load) {
_y = -200;
var a = 2;
var d = 4;
var newY = 25;
var myYspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
}
Frame 24
gameround = 0;
jack.newS = 100;
jack.newX = 440;
jack.newY = 1060;
desert.newS = 200;
flare.newS = 200;
countersheet.killed = 20;
stop();
Instance of Symbol 24 MovieClip in Frame 24
onClipEvent (load) {
sheet.text = "Play";
_y = 550;
_rotation = 0;
var a = 2;
var d = 4;
var newY = 480;
var myYspeed = 0;
var newR = (random(20) - 10);
var myRspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
myRspeed = (((_rotation - newR) / a) + myRspeed) / d;
_rotation = (_rotation - myRspeed);
}
on (release) {
_root.play();
newY = 550;
}
Frame 26
gameround = 3;
jack.newS = 30;
jack.newX = 520;
jack.newY = 410;
desert.newS = 100;
flare.newS = 100;
crabspeed = 10;
countersheet.killed = 20;
sandbutton.useHandCursor = false;
stop();
Instance of Symbol 117 MovieClip "countersheet" in Frame 26
onClipEvent (load) {
_y = 0;
_rotation = 0;
var a = 2;
var d = 4;
var newY = 125;
var myYspeed = 0;
var newR = (random(20) - 10);
var myRspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
myRspeed = (((_rotation - newR) / a) + myRspeed) / d;
_rotation = (_rotation - myRspeed);
}
Instance of Symbol 124 MovieClip "saneometer" in Frame 26
onClipEvent (load) {
_y = -200;
var a = 2;
var d = 4;
var newY = 25;
var myYspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
}
Frame 34
gameround = 0;
jack.newS = 100;
jack.newX = 440;
jack.newY = 1060;
desert.newS = 200;
flare.newS = 200;
countersheet.killed = 15;
stop();
Instance of Symbol 24 MovieClip in Frame 34
onClipEvent (load) {
sheet.text = "Play";
_y = 550;
_rotation = 0;
var a = 2;
var d = 4;
var newY = 480;
var myYspeed = 0;
var newR = (random(20) - 10);
var myRspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
myRspeed = (((_rotation - newR) / a) + myRspeed) / d;
_rotation = (_rotation - myRspeed);
}
on (release) {
_root.play();
newY = 550;
}
Frame 36
gameround = 4;
jack.newS = 30;
jack.newX = 520;
jack.newY = 410;
desert.newS = 100;
flare.newS = 100;
crabspeed = 14;
countersheet.killed = 15;
sandbutton.useHandCursor = false;
stop();
Instance of Symbol 117 MovieClip "countersheet" in Frame 36
onClipEvent (load) {
_y = 0;
_rotation = 0;
var a = 2;
var d = 4;
var newY = 125;
var myYspeed = 0;
var newR = (random(20) - 10);
var myRspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
myRspeed = (((_rotation - newR) / a) + myRspeed) / d;
_rotation = (_rotation - myRspeed);
}
Instance of Symbol 124 MovieClip "saneometer" in Frame 36
onClipEvent (load) {
_y = -200;
var a = 2;
var d = 4;
var newY = 25;
var myYspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
}
Instance of Symbol 24 MovieClip in Frame 46
onClipEvent (load) {
sheet.text = "Play Again";
_y = 550;
_rotation = 0;
var a = 2;
var d = 4;
var newY = 480;
var myYspeed = 0;
var newR = (random(20) - 10);
var myRspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
myRspeed = (((_rotation - newR) / a) + myRspeed) / d;
_rotation = (_rotation - myRspeed);
}
on (release) {
_root.gotoAndStop("start");
newY = 550;
}
Instance of Symbol 24 MovieClip in Frame 51
onClipEvent (load) {
sheet.text = "Play Again";
_y = 550;
_rotation = 0;
var a = 2;
var d = 4;
var newY = 480;
var myYspeed = 0;
var newR = (random(20) - 10);
var myRspeed = 0;
}
onClipEvent (enterFrame) {
myYspeed = (((_y - newY) / a) + myYspeed) / d;
_y = (_y - myYspeed);
myRspeed = (((_rotation - newR) / a) + myRspeed) / d;
_rotation = (_rotation - myRspeed);
}
on (release) {
_root.gotoAndStop("start");
newY = 550;
}
Symbol 2 MovieClip Frame 1
stop();
Symbol 4 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 1
piratesdate = new Date();
if ((piratesdate.getDate() >= 25) && (piratesdate.getMonth() >= 4)) {
streetdate.text = "Now Playing!";
} else {
streetdate.text = "in Theaters May 25th";
}
Symbol 31 MovieClip Frame 1
_alpha = 75;
onRollOver = function () {
_alpha = 100;
};
onRollOut = function () {
_alpha = 75;
};
onRelease = function () {
getURL ("javascript:window.close()");
};
Symbol 34 MovieClip Frame 1
stop();
_root.audio = 1;
_root.music_sound.setVolume(100);
_root.puff_sound.setVolume(100);
_root.global_sound.setVolume(100);
_alpha = 75;
onRollOver = function () {
_alpha = 100;
};
onRollOut = function () {
_alpha = 75;
};
onRelease = function () {
play();
};
Symbol 34 MovieClip Frame 2
stop();
_root.audio = 0;
_root.music_sound.setVolume(0);
_root.puff_sound.setVolume(0);
_root.global_sound.setVolume(0);
Symbol 49 Button
on (release) {
sand._x = _xmouse;
sand._y = _ymouse;
sand._xscale = (_ymouse * _ymouse) / 2000;
sand._yscale = (_ymouse * _ymouse) / 2000;
sand.play();
}
Instance of Symbol 98 MovieClip "crabcolor" in Symbol 99 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
var a = 2;
var d = 4;
var newA = _alpha;
var myAspeed = 0;
}
onClipEvent (enterFrame) {
if (_parent._visible == true) {
myAspeed = (((_alpha - newA) / a) + myAspeed) / d;
_alpha = (_alpha - myAspeed);
newA = 100;
} else {
_alpha = 0;
newA = 0;
}
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 7
_parent.pointa = random(500) - 700;
_parent.pointb = 550;
_parent._x = _parent.pointa;
_parent.crab._alpha = 100;
_parent.stone._alpha = 100;
Symbol 113 MovieClip Frame 1
stone._visible = false;
pointa = random(500) - 700;
pointb = 650;
_x = pointa;
onEnterFrame = function () {
stoned = random(20);
crabby = random(50);
if ((stoned == 0) && (_x > 0)) {
crab._visible = false;
stone._visible = true;
}
if (crabby == 0) {
crab._visible = true;
stone._visible = false;
}
if (crab._visible == true) {
_x = (_x + _root.crabspeed);
}
if (_x > pointb) {
_root.saneometer.sanebar.newS = _root.saneometer.sanebar.newS + 20;
pointa = random(500) - 700;
_x = pointa;
}
};
crab.onPress = function () {
crab._alpha = 0;
stone._alpha = 0;
smoke.play();
_root.countersheet.killed--;
_root.puff_sound.start();
};
Instance of Symbol 99 MovieClip "stone" in Symbol 113 MovieClip Frame 1
on (release) {
}
Instance of Symbol 112 MovieClip "smoke" in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
_xscale = 150;
_yscale = 150;
}
Symbol 114 MovieClip Frame 1
stop();
Instance of Symbol 120 MovieClip "sanebar" in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
_xscale = 0;
var a = 2;
var d = 4;
var newS = _xscale;
var mySspeed = 0;
}
onClipEvent (enterFrame) {
mySspeed = (((_xscale - newS) / a) + mySspeed) / d;
_xscale = (_xscale - mySspeed);
}
onClipEvent (enterFrame) {
if (_xscale > 99) {
_root.saneometer.newY = -200;
_root.countersheet.newY = 0;
_root.gameround = 0;
_root.gotoAndStop("loser");
}
}