Frame 1
_quality = "best";
_global.root = this;
if (this != _root) {
_y = (_y - 30);
this._xscale = (this._yscale = 80);
}
stop();
Instance of Symbol 55 MovieClip in Frame 1
onClipEvent (load) {
tkb = this._parent.getBytesTotal();
}
onClipEvent (enterFrame) {
scale = Math.floor((this._parent.getBytesLoaded() / tkb) * 100);
this._parent.percText = scale + "%";
this._xscale = scale;
if (scale == 100) {
this._parent.nextFrame();
}
}
Frame 2
this.globalSounds = new Sound();
this.globalSounds.setVolume(100);
this.soundsOff = false;
this.podCollectSound = new Sound();
this.podCollectSound.attachSound("poocollect");
this.starfishCollectSound = new Sound();
this.starfishCollectSound.attachSound("starcollect");
this.beepbeepbeepSound = new Sound();
this.beepbeepbeepSound.attachSound("beepbeepbeep");
gotoAndPlay (3);
Frame 3
stop();
this.lives = 5;
this.levelCounter = 1;
this.totalTime = 240;
this.totalScore = 0;
this.collected = 0;
this.totalColl = 623;
this.jumpSound = new Sound();
this.jumpSound.attachSound("grunt");
this.menuMusic.stop();
this.gameMusic.stop();
this.gameMusicFast.stop();
this.menuMusic.start(0, 999);
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
Frame 8
stop();
Frame 9
this.menuMusic.stop();
this.gameMusic.stop();
this.gameMusicFast.stop();
this.beepbeepbeepSound.stop();
this.gameMusic.start(0, 999);
Instance of Symbol 165 MovieClip in Frame 9
onClipEvent (load) {
if (this._parent.char == "l") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 68
this.startTime = getTimer();
Frame 69
function initBalls() {
var _local3 = this;
noScreens = 8;
screenArray = new Array();
screenArray = [8, 8, 8, 8, 8, 8, 8, 8];
var temp = 0;
var _local2 = 0;
while (_local2 < noScreens) {
temp = temp + screenArray[_local2];
_local3["ballArray" + _local2] = new Array();
var _local1 = 0;
while (_local1 < screenArray[_local2]) {
_local3["ballArray" + _local2][_local1] = 1;
_local1++;
}
_local2++;
}
ballTarget = temp;
}
function initFrame(screenType, noPlats, noPits, noRopes, barrelFreq, barrelSpeed, barrelType, barrelName, barrelBounce, startx, starty, lavaFreq, lavaType, lavaspeed, screenSound, effectSound1, effectsound2, id, starfishGo) {
var _local1 = this;
var _local3 = barrelFreq;
_local1.screenType = screenType;
_local1.noPlats = noPlats;
_local1.platspeed = 0;
_local1.noPits = noPits;
_local1.pitHit = false;
_local1.noRopes = noRopes;
_local1.barrelFreq = _local3;
_local1.barrelspeed = barrelspeed;
_local1.barrelType = barrelType;
_local1.barrelName = barrelName;
_local1.barrelBounce = barrelBounce;
_local1.firstBarrel = 0;
_local1.lastBarrel = 0;
_local1.counter = _local3;
_local1.barrelHit = false;
_local1.startx = startx;
_local1.starty = starty;
_local1.Icounter = 0;
_local1.Imax = 75;
_local1.lavaFreq = lavaFreq;
_local1.lavatype = lavatype;
_local1.lavaSpeed = lavaSpeed;
_local1.lavaCounter = lavaFreq;
_local1.firstLava = 0;
_local1.lastLava = 0;
_local1.lavahit = false;
_local1.levelComplete = false;
_local1.timeUp = false;
_local1.standardGrav = 0.99;
_local1.screensoundVar = screenSound;
_local1.effectSound1var = effectsound1;
_local1.effectSound1 = new Sound();
_local1.effectSound1.attachSound(_local1.effectSound1var);
_local1.effectSound2var = effectSound2;
_local1.effectSound2 = new Sound();
_local1.effectSound2.attachSound(_local1.effectSound2var);
_local1.id = id;
_local1.setBalls(id);
_local1.starFishGo = starFishGo;
_local1.setFish();
collected_txt = (collThisLevel + "/") + ballTarget;
d = 0;
_local1.border.swapDepths(20000);
if (_local1.barrelFreq == 0) {
clearInterval(barrelInterval);
} else {
var _local2 = (1000 * _local3) / 24;
barrelInterval = setInterval(_local1, "barrelTimer", _local2);
}
_local1.setPlatforms();
}
function setBalls(id) {
var _local2 = id;
var _local3 = this;
var _local1 = 0;
while (_local1 < screenArray[_local2]) {
_local3["ball" + _local1]._visible = _local3["ballArray" + _local2][_local1];
_local1++;
}
}
function checkBalls(id, object) {
var _local2 = this;
var _local3 = id;
var _local1 = 0;
while (_local1 < screenArray[_local3]) {
if (_local2[object].bhitbox.hitTest(_local2["ball" + _local1]) && (_local2["ballArray" + _local3][_local1] == 1)) {
_local2["ballArray" + _local3][_local1] = 0;
_local2["ball" + _local1]._visible = _local2["ballArray" + _local3][_local1];
_local2.podCollectSound.start(0, 1);
collected++;
collThisLevel++;
collected_txt = (collThisLevel + "/") + ballTarget;
checkBallsComplete();
}
_local1++;
}
}
function checkBallsComplete() {
if (collThisLevel == ballTarget) {
this.nextLevel = 1;
this.endlevel();
}
}
function setFish() {
if (starHit) {
this.starFish._visible = false;
}
}
function checkStarFish(object) {
var _local1 = this;
if (_local1.tarzan.bhitbox.hitTest(_local1.starfish) && (!_local1.starHit)) {
_local1.starFish._visible = false;
_local1.starHit = true;
_local1.speedUp = true;
_local1.accel = 6;
_local1.maxvel = 12;
_local1.starfishCollectSound.start();
_local1.gameMusic.stop();
_local1.gameMusicFast.stop();
_local1.gameMusicFast.start(0, 999);
}
}
function setLives(object, lives) {
var _local1 = lives + 1;
this[object + this.char].gotoAndStop(_local1);
}
function move() {
if (Key.isDown(37)) {
var _local1 = -accel;
this.friction = 0.7;
}
if (Key.isDown(39)) {
var _local1 = accel;
this.friction = 0.7;
}
if ((velx < maxvel) && (velx > (-maxvel))) {
velx = velx + _local1;
}
}
function applyForces(object, gravity, friction, platSpeed) {
var _local1 = this;
velx = velx * friction;
_local1[object]._x = _local1[object]._x + (velx + _local1.platSpeed);
vely = (vely - gravity) * 0.99;
_local1[object]._y = _local1[object]._y - vely;
}
function checkMoves(velx, vely, xmax, object) {
var _local1 = this;
var _local2 = object;
var _local3 = vely;
if (!_local1.dead) {
if ((velx > xmax) && (_local3 == 0)) {
_local1[_local2].gotoAndStop(char + "walkr");
_local1[_local2].dir = "r";
} else if ((velx < xmax) && (_local3 == 0)) {
_local1[_local2].gotoAndStop(char + "walkl");
_local1[_local2].dir = "L";
} else if ((velx > xmax) && (_local3 != 0)) {
_local1[_local2].gotoAndStop(char + "jumpr");
_local1[_local2].dir = "R";
} else if ((velx == 0) && (_local3 != 0)) {
_local1[_local2].gotoAndStop(char + "jumpr");
_local1[_local2].dir = "R";
} else if ((velx < xmax) && (_local3 != 0)) {
_local1[_local2].gotoAndStop(char + "jumpl");
_local1[_local2].dir = "L";
} else if ((velx == xmax) && (_local3 == 0)) {
_local1[_local2].gotoAndStop((char + "static") + _local1[_local2].dir);
}
}
}
function setPlatforms() {
var _local2 = this;
i = 1;
while (i <= noPlats) {
var _local1 = _local2["platform" + i];
_local1.left = _local2[("platform" + i) + "L"]._x;
_local1.right = _local2[("platform" + i) + "R"]._x;
i++;
}
}
function checkPlatforms(noPlats, object) {
var _local1 = this;
var _local2 = noPlats;
var _local3 = object;
i = 1;
while (i <= _local2) {
if (_local1[_local3].thitbox.hitTest(_local1["platform" + i].collidestrip)) {
_local1.moveVar = 1;
_local1.onPlatform = true;
_local1.hitPlatform = _local1["platform" + i];
_local1.platlevel = _local1["platform" + i]._y;
if (_local1["platform" + i].Type == "d") {
_local1["platform" + i].nextFrame();
}
_local1.landSound.start();
}
i++;
}
}
function checkplatform(object, platform) {
var _local1 = this;
if (_local1[object].thitbox.hitTest(platform.collidestrip)) {
_local1.onPlatform = true;
_local1.platspeed = platform.xspeed;
} else {
_local1.moveVar = 1;
controller.gravity = _local1.standardGrav;
_local1.onPlatform = false;
_local1.platspeed = 0;
controller.allowpush = false;
}
}
function movePlats(noPlats) {
var _local2 = noPlats;
var _local3 = this;
i = 1;
while (i <= _local2) {
var _local1 = _local3["platform" + i];
if (_local1.type == "m") {
_local1._x = _local1._x + _local1.xspeed;
if ((_local1._x > _local1.left) && (_local1._x < _local1.right)) {
_local1.xspeed = _local1.xspeed;
} else {
_local1.xspeed = -_local1.xspeed;
}
}
i++;
}
}
function checkLeft(object) {
var _local1 = this;
var _local2 = object;
if (_local1[_local2]._x < 0) {
_local1[_local2]._x = 0;
} else if (_local1[_local2]._x > 590) {
_local1[_local2]._x = _local1[_local2]._x - 590;
clearUp(_local1.barrelName, firstBarrel, lastBarrel, _local1.lavaType, _local1.firstlava, _local1.lastlava, _local1.screenSoundvar, _local1.effectsound1var, _local1.effectsound2var);
_local1.nextFrame();
}
}
function checkRight(object) {
var _local1 = this;
var _local2 = object;
if (_local1[_local2]._x < 0) {
_local1[_local2]._x = _local1[_local2]._x + 590;
clearUp(_local1.barrelName, firstBarrel, lastBarrel, _local1.lavaType, _local1.firstlava, _local1.lastlava, _local1.screenSoundvar, _local1.effectsound1var, _local1.effectsound2var);
_local1.prevFrame();
} else if (_local1[_local2]._x > 590) {
_local1[_local2]._x = 590;
}
}
function checkMiddle(object) {
var _local1 = this;
var _local2 = object;
if (_local1[_local2]._x < 0) {
_local1[_local2]._x = _local1[_local2]._x + 590;
clearUp(_local1.barrelName, firstBarrel, lastBarrel, _local1.lavaType, _local1.firstlava, _local1.lastlava, _local1.screenSoundvar, _local1.effectsound1var, _local1.effectsound2var);
_local1.prevFrame();
} else if (_local1[_local2]._x > 590) {
_local1[_local2]._x = _local1[_local2]._x - 590;
clearUp(_local1.barrelName, firstBarrel, lastBarrel, _local1.lavaType, _local1.firstlava, _local1.lastlava, _local1.screenSoundvar, _local1.effectsound1var, _local1.effectsound2var);
_local1.nextFrame();
}
}
function checkPit(object) {
var _local1 = this;
var _local2 = object;
i = 1;
while (i <= noPits) {
if (_local1[_local2].thitbox.hitTest(_local1["pit" + i].pithit)) {
_local1.pitHit = true;
controller.gravity = _local1.standardGrav;
_local1.kill(_local2);
}
i++;
}
}
function movePits(noPits) {
var _local1 = this;
var _local2 = noPits;
i = 1;
while (i <= _local2) {
if (_local1["pit" + i].xspeed != 0) {
_local1["pit" + i]._x = _local1["pit" + i]._x + _local1["pit" + i].xspeed;
if ((_local1["pit" + i]._x > _local1[("pit" + i) + "L"]._x) && (_local1["pit" + i]._x < _local1[("pit" + i) + "R"]._x)) {
_local1["pit" + i].xspeed = _local1["pit" + i].xspeed;
} else {
_local1["pit" + i].xspeed = -_local1["pit" + i].xspeed;
if (_local1["pit" + i].dir == "L") {
_local1["pit" + i].dir = "R";
} else {
_local1["pit" + i].dir = "L";
}
_local1["pit" + i].gotoAndStop(_local1["pit" + i].dir);
}
}
i++;
}
}
function degreesToRadians(degrees) {
return((degrees / 180) * Math.PI);
}
function moveRopes(object, noRopes) {
var _local1 = this;
var _local2 = object;
var _local3 = noRopes;
i = 1;
while (i <= _local3) {
_local1[_local2 + i].rotAngleDeg = _local1[_local2 + i].rotAngleDeg + _local1[_local2 + i].rotAngleMove;
if (_local1[_local2 + i].rotAngleDeg >= 360) {
_local1[_local2 + i].rotAngleDeg = _local1[_local2 + i].rotAngleDeg - 360;
}
if (_local1[_local2 + i].rotAngleDeg < 0) {
_local1[_local2 + i].rotAngleDeg = _local1[_local2 + i].rotAngleDeg + 360;
}
if (_local1[_local2 + i].rotAngleDeg > 200) {
_local1[_local2 + i].rotAngleMove = _local1[_local2 + i].rotAngleMove - 0.5;
} else if (_local1[_local2 + i].rotAngleDeg < 150) {
_local1[_local2 + i].rotAngleMove = _local1[_local2 + i].rotAngleMove + 0.5;
}
if (_local1[_local2 + i].rotAngleMove == 0) {
_local1.effectSound1.start();
}
_local1[_local2 + i].rotAngRad = degreesToRadians(_local1[_local2 + i].rotAngledeg);
_local1["rope" + i]._x = _local1[_local2 + i].centerx + (Math.sin(_local1[_local2 + i].rotAngRad) * _local1[_local2 + i].radius);
_local1["rope" + i]._y = _local1[_local2 + i].centery - (Math.cos(_local1[_local2 + i].rotAngRad) * _local1[_local2 + i].radius);
_local1["vine" + i]._x = _local1[_local2 + i].centerx;
_local1["vine" + i]._y = _local1[_local2 + i].centery;
_local1["vine" + i]._xscale = _local1["rope" + i]._x - _local1[_local2 + i].centerx;
_local1["vine" + i]._yscale = _local1["rope" + i]._y - _local1[_local2 + i].centery;
i++;
}
}
function checkRope(object, noRopes) {
var _local1 = this;
var _local2 = noRopes;
var _local3 = object;
i = 1;
while (i <= _local2) {
if (_local1[_local3].rhitbox.hitTest(_local1["rope" + i])) {
_local1.hitRope = _local1["rope" + i];
controller.allowpush = true;
_local1.moveVar = 3;
}
i++;
}
}
function applyRope(hitRope) {
this.tarzan._x = hitrope._x;
this.tarzan._y = hitrope._y;
}
function kill(object) {
var _local1 = this;
_local1.controller.allowPush = false;
_local1.movevar = 4;
_local1.dead = true;
_local1[object].gotoAndPlay(char + "dead");
}
function reSet(object) {
var _local1 = this;
_local1.lives--;
if ((_local1.lives == 0) || (_local1.timeup)) {
if (infiniteLives) {
_local1.lives++;
} else {
gotoAndPlay (224);
clearUp(_local1.barrelName, firstBarrel, lastBarrel, _local1.lavaType, _local1.firstlava, _local1.lastlava, _local1.screenSoundvar, _local1.effectsound1var, _local1.effectsound2var);
}
} else {
setLives("livesMov", _local1.lives);
}
i = 1;
while (i <= noPlats) {
if (_local1["platform" + i].Type == "d") {
_local1["platform" + i].gotoAndStop(1);
}
i++;
}
_local1.startx = _local1.Start._x;
_local1.starty = _local1.Start._y;
_local1.velx = 0;
_local1.vely = 0;
_local1[object]._x = _local1.startx;
_local1[object]._y = _local1.starty;
_local1.moveVar = 1;
_local1.pitHit = false;
_local1.barrelHit = false;
_local1.lavaHit = false;
_local1.controller.gravity = _local1.standardGrav;
_local1.controller.allowPush = false;
_local1.dead = false;
}
function barrelTimer() {
var _local1 = this;
_local1.lastBarrel++;
_local1.attachMovie(barrelName, barrelName + lastBarrel, d++);
_local1[barrelName + lastBarrel]._x = 650;
_local1[barrelName + lastBarrel]._y = barrelFloor - barrelBounce;
}
function moveBarrels() {
var _local2 = this;
i = firstBarrel;
while (i <= lastBarrel) {
var _local1 = _local2[barrelName + i];
if (_local1._x > -10) {
_local1._x = _local1._x - barrelspeed;
if (barrelType == 2) {
_local1.bouncespeed++;
_local1._y = _local1._y + _local1.bouncespeed;
if (_local1._y > barrelFloor) {
_local1._y = barrelFloor;
_local1.bouncespeed = -_local1.bouncespeed;
}
}
} else {
removeMovieClip(_local1);
_local2.firstBarrel++;
}
i++;
}
}
function checkbarrels(firstBarrel, lastBarrel, barrelName, object) {
var _local1 = this;
var _local2 = object;
var _local3 = lastBarrel;
i = firstBarrel;
while (i <= _local3) {
if ((_local1[_local2].bhitbox.hitTest(_local1[barrelName + i].hitArea) && (!_local1.barrelHit)) && (!_local1.invincible)) {
_local1.barrelHit = true;
_local1.kill(_local2);
}
i++;
}
}
function clearUp(barrelName, firstBarrel, lastBarrel, lavaType, firstlava, lastlava, screenSound, effectsound1, effectsound2) {
var _local2 = this;
var _local3 = firstlava;
_local2.screenSound.stop(screenSound);
_local2.effectSound1.stop(effectSound1);
_local2.effectSound2.stop(effectSound2);
i = firstBarrel;
while (i <= lastBarrel) {
var _local1 = _local2[barrelName + i];
_local1.removeMovieClip();
i++;
}
i = _local3;
while (i <= lastLava) {
removeMovieClip(_local2[lavaType + i]);
i++;
}
}
function makeInvincible() {
var _local1 = this;
if (_local1.Icounter < Imax) {
_local1.Icounter++;
} else if (_local1.Icounter >= Imax) {
_local1.Invincible = false;
_local1.Icounter = 0;
}
}
function makeLava(lavaFreq, lastLava, lavaType) {
var _local1 = this;
var _local2 = lastLava;
var _local3 = lavaType;
if (_local1.lavaCounter < lavaFreq) {
_local1.lavaCounter++;
} else if (_local1.lavaCounter <= lavaFreq) {
_local2++;
_local1.attachMovie(_local3, _local3 + _local2, d++);
_local1[_local3 + _local2]._x = random(500) + 30;
_local1[_local3 + _local2]._y = -10;
_local1.lavaCounter = 0;
}
}
function moveLava(firstLava, lastLava, lavaType, lavaSpeed) {
var _local1 = this;
var _local2 = lavaType;
var _local3 = firstLava;
i = _local3;
while (i <= lastLava) {
if (_local1[_local2 + i]._y < 287) {
_local1[_local2 + i]._y = _local1[_local2 + i]._y + lavaspeed;
} else {
_local1.effectSound2.start();
removeMovieClip(_local1[_local2 + i]);
_local3++;
}
i++;
}
}
function checkLava(firstLava, lastLava, lavaType, object) {
var _local1 = this;
var _local2 = object;
var _local3 = firstLava;
i = _local3;
while (i <= lastLava) {
if ((_local1[_local2].bhitbox.hitTest(_local1[lavatype + i]) && (!_local1.lavaHit)) && (!_local1.Invincible)) {
_local1.kill(_local2);
_local1.lavaHit = true;
}
i++;
}
}
function checkFinish(object) {
var _local1 = this;
if (_local1[object].bhitbox.hitTest(_local1.finishPost.fhitbox) && (_local1.nextLevel)) {
_local1.moveVar == 4;
_local1[object].gotoAndPlay(char + "levelComplete");
}
}
function endLevel() {
var _local1 = this;
_local1.levelComplete = true;
clearUp(_local1.barrelName, firstBarrel, lastBarrel, _local1.lavaType, _local1.firstlava, _local1.lastlava, _local1.screenSoundvar, _local1.effectsound1var, _local1.effectsound2var);
_local1.levelCounter++;
if (_local1.levelCounter == 10) {
gotoAndStop (228);
_local1.levelScore = _local1.elapsed * 100;
_local1.totalscore = _local1.totalScore + _local1.levelscore;
_local1.scoreText = _local1.elapsed + " X 100";
} else {
gotoAndPlay (219);
_local1.levelScore = _local1.elapsed * 100;
_local1.totalscore = _local1.totalScore + _local1.levelscore;
_local1.scoreText = _local1.elapsed + " X 100";
}
}
function Timer() {
var _local1 = this;
elapsed = Math.floor(_local1.totalTime - ((getTimer() - _local1.startTime) / 1000));
if ((_local1.elapsed < 10) && (!beepbeeping)) {
_local1.beepbeepbeepSound.start(0, 100);
beepbeeping = true;
}
}
stop();
velx = 0;
vely = 0;
friction = 0.9;
maxvel = 6.45;
accel = 3.87;
speedUp = false;
nxtlevel = 2;
invincible = false;
collThisLevel = 0;
starHit = false;
beepbeeping = false;
this.initBalls();
ntemp = "cheat" + lev;
this.gotoAndStop(ntemp);
nextFrame();
Frame 70
initFrame("left", 4, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 0, 0);
setLives("livesMov", this.lives);
Instance of Symbol 199 MovieClip "platform1" in Frame 70
onClipEvent (load) {
this.xspeed = 0;
this.Type = "s";
}
Instance of Symbol 206 MovieClip "pit1" in Frame 70
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 210 MovieClip "platform2" in Frame 70
onClipEvent (load) {
this.xspeed = 0;
this.Type = "s";
}
Instance of Symbol 261 MovieClip "controller" in Frame 70
onClipEvent (load) {
counter = 0;
speedTimer = 240;
floor = 400;
this._parent.barrelFloor = floor + 20;
standard = 15;
ropejump = 3;
jump = standard;
this._parent.dead = false;
pushed = false;
allowpush = false;
this._parent.onFloor = true;
this._parent.moveVar = 1;
gravity = this._parent.standardGrav;
}
onClipEvent (enterFrame) {
var t = getTimer();
_parent.fTime.text = Math.round(1000 / (t - _global.frameTime));
_global.frameTime = t;
if (this._parent.speedUp) {
if (counter < speedTimer) {
counter++;
} else {
this._parent.accel = 3;
this._parent.maxvel = 5;
counter = 0;
this._parent.speedUp = false;
this._parent.gameMusic.stop();
this._parent.gameMusicFast.stop();
this._parent.gameMusic.start(0, 999);
}
}
if ((this._parent.barrelFreq != 0) && (this._parent.lastBarrel != 0)) {
this._parent.moveBarrels();
this._parent.checkbarrels(this._parent.firstBarrel, this._parent.lastBarrel, this._parent.barrelName, "tarzan");
}
if (this._parent.lavaFreq > 0) {
this._parent.makeLava(this._parent.lavaFreq, this._parent.lastLava, this._parent.lavaType);
if (this._parent.lastLava != 0) {
this._parent.moveLava(this._parent.firstLava, this._parent.lastLava, this._parent.lavaType, this._parent.lavaSpeed);
this._parent.checkLava(this._parent.firstLava, this._parent.lastLava, this._parent.lavaType, "tarzan");
}
}
if (this._parent.noPlats > 0) {
this._parent.moveplats(this._parent.noPlats);
}
if (this._parent.noPits > 0) {
this._parent.movepits(this._parent.noPits);
}
if (this._parent.noPits > 0) {
this._parent.checkPit("tarzan");
}
if (this._parent.noRopes > 0) {
this._parent.moveRopes("center", this._parent.noRopes);
}
if ((!this._parent.levelcomplete) && (!this._parent.timeUp)) {
this._parent.checkBalls(this._parent.id, "tarzan");
this._parent.timer();
if (this._parent.starFishGo) {
this._parent.checkStarFish("tarzan");
}
if (this._parent.elapsed == 0) {
this._parent.timeUp = true;
this._parent.kill("tarzan");
}
if (this._parent.moveVar == 1) {
jump = standard;
this._parent.move();
this._parent.applyForces("tarzan", gravity, this._parent.friction, 0);
this._parent.checkMoves(this._parent.velx, this._parent.vely, 0, "tarzan");
} else if (this._parent.moveVar == 2) {
jump = standard;
this._parent.move();
this._parent.applyForces("tarzan", gravity, this._parent.friction, this._parent.platspeed);
this._parent.checkMoves(root.velx, this._parent.vely, this._parent.platspeed, "tarzan");
} else if (this._parent.moveVar == 3) {
jump = ropeJump;
this._parent.applyRope(this._parent.hitRope);
this._parent.tarzan.gotoAndStop("swing");
} else if (this._parent.moveVar == 4) {
this._parent.applyForces("tarzan", gravity, 0);
jump = standard;
}
if (this._parent.screenType == "left") {
this._parent.checkLeft("tarzan");
} else if (this._parent.screenType == "right") {
this._parent.checkRight("tarzan");
this._parent.checkFinish("tarzan");
} else if (this._parent.screenType == "middle") {
this._parent.checkMiddle("tarzan");
}
if ((this._parent.tarzan._y >= floor) && (!this._parent.dead)) {
if (!this._parent.onFloor) {
this._parent.onFloor = true;
this._parent.landSound.start();
}
} else {
this._parent.onFloor = false;
}
if (this._parent.onFloor) {
this._parent.tarzan._y = floor;
allowpush = true;
this._parent.vely = 0;
gravity = 0;
}
if (this._parent.onPlatform) {
this._parent.tarzan._y = this._parent.Platlevel;
allowpush = true;
this._parent.vely = 0;
gravity = 0;
this._parent.checkPlatform("tarzan", this._parent.hitPlatform);
}
if (((this._parent.vely < -5) && (!this._parent.onPlatform)) && (this._parent.noPlats > 0)) {
this._parent.checkPlatforms(this._parent.noPlats, "tarzan");
}
if (((this._parent.vely != 0) && (!allowpush)) && (this._parent.noRopes > 0)) {
this._parent.checkRope("tarzan", this._parent.noRopes);
}
if ((this._parent.velx > -1) && (this._parent.velx < 1)) {
this._parent.velx = 0;
this._parent.friction = 0;
}
if (Key.isDown(32) && (allowPush)) {
this._parent.jumpsound.start();
allowpush = false;
gravity = this._parent.standardGrav;
this._parent.vely = jump;
this._parent.onPlatform = false;
this._parent.platSpeed = 0;
this._parent.tarzan._y = this._parent.tarzan._y - 1;
this._parent.moveVar = 1;
}
if (this._parent.invincible) {
this._parent.makeInvincible();
}
}
}
Frame 71
initFrame("middle", 5, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 1, 0);
Instance of Symbol 206 MovieClip "pit1" in Frame 71
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 279 MovieClip "platform2" in Frame 71
onClipEvent (load) {
this.xspeed = 0;
this.Type = "s";
}
Instance of Symbol 279 MovieClip "platform4" in Frame 71
onClipEvent (load) {
this.xspeed = 0;
this.Type = "s";
}
Instance of Symbol 199 MovieClip "platform3" in Frame 71
onClipEvent (load) {
this.xspeed = 0;
this.Type = "s";
}
Frame 72
initFrame("middle", 4, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 2, 0);
Instance of Symbol 206 MovieClip "pit1" in Frame 72
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 199 MovieClip "platform1" in Frame 72
onClipEvent (load) {
this.xspeed = 3;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 72
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 72
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 199 MovieClip "platform4" in Frame 72
onClipEvent (load) {
this.xspeed = 0;
this.Type = "s";
}
Instance of Symbol 199 MovieClip "platform2" in Frame 72
onClipEvent (load) {
this.xspeed = 0;
this.Type = "s";
}
Frame 73
initFrame("middle", 3, 2, 0, 100, 4, 2, "rock", 125, this.Start._x, this.Start._y, 0, "", 0, "", "", "rockbounce", 3, 0);
Instance of Symbol 206 MovieClip "pit1" in Frame 73
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 210 MovieClip "platform3" in Frame 73
onClipEvent (load) {
this.xspeed = 0;
this.Type = "s";
}
Instance of Symbol 281 MovieClip "pit2L" in Frame 73
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "pit2R" in Frame 73
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 293 MovieClip "pit2" in Frame 73
onClipEvent (load) {
this.xspeed = 2;
}
Instance of Symbol 199 MovieClip "platform2" in Frame 73
onClipEvent (load) {
this.xspeed = 0;
this.Type = "s";
}
Instance of Symbol 199 MovieClip "platform1" in Frame 73
onClipEvent (load) {
this.xspeed = 0;
this.Type = "s";
}
Frame 74
initFrame("middle", 4, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "ropeswing", "", 4, 1);
Instance of Symbol 206 MovieClip "pit1" in Frame 74
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 199 MovieClip "platform1" in Frame 74
onClipEvent (load) {
this.xspeed = 3;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 74
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 74
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 199 MovieClip "platform2" in Frame 74
onClipEvent (load) {
this.xspeed = -2;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform2L" in Frame 74
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform2R" in Frame 74
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 199 MovieClip "platform3" in Frame 74
onClipEvent (load) {
this.xspeed = 4;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform3L" in Frame 74
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform3R" in Frame 74
onClipEvent (load) {
this._visible = false;
}
Frame 75
initFrame("middle", 4, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 5, 0);
Instance of Symbol 206 MovieClip "pit1" in Frame 75
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 295 MovieClip "platform1" in Frame 75
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Instance of Symbol 295 MovieClip "platform2" in Frame 75
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Instance of Symbol 295 MovieClip "platform3" in Frame 75
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Frame 76
initFrame("middle", 1, 0, 0, 50, 8, 1, "log", 0, this.Start._x, this.Start._y, 0, "", 0, "rockroll", "", "", 6, 0);
Instance of Symbol 199 MovieClip "platform1" in Frame 76
onClipEvent (load) {
this.xspeed = -4;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 76
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 76
onClipEvent (load) {
this._visible = false;
}
Frame 77
initFrame("right", 3, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 7, 0);
Instance of Symbol 206 MovieClip "pit1" in Frame 77
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 199 MovieClip "platform1" in Frame 77
onClipEvent (load) {
this.xspeed = 5;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 77
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 77
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 199 MovieClip "platform2" in Frame 77
onClipEvent (load) {
this.xspeed = -4;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform2L" in Frame 77
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform2R" in Frame 77
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 199 MovieClip "platform3" in Frame 77
onClipEvent (load) {
this.xspeed = 2;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform3L" in Frame 77
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform3R" in Frame 77
onClipEvent (load) {
this._visible = false;
}
Frame 78
gotoAndStop (70);
Frame 79
gotoAndStop (141);
Frame 80
gotoAndStop (210);
Frame 81
this.menuMusic.stop();
this.gameMusic.stop();
this.gameMusicFast.stop();
this.beepbeepbeepSound.stop();
this.gameMusic.start(0, 999);
Instance of Symbol 165 MovieClip in Frame 81
onClipEvent (load) {
if (this._parent.char == "l") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 140
this.startTime = getTimer();
gotoAndStop (141);
Frame 141
function initBalls() {
var _local3 = this;
noScreens = 8;
screenArray = new Array();
screenArray = [8, 8, 8, 8, 8, 8, 8, 8];
var temp = 0;
var _local2 = 0;
while (_local2 < noScreens) {
temp = temp + screenArray[_local2];
_local3["ballArray" + _local2] = new Array();
var _local1 = 0;
while (_local1 < screenArray[_local2]) {
_local3["ballArray" + _local2][_local1] = 1;
_local1++;
}
_local2++;
}
_local3.ballTarget = temp;
}
velx = 0;
vely = 0;
friction = 0.9;
maxvel = 5;
accel = 3;
speedUp = false;
invincible = false;
nxtlevel = 3;
collThisLevel = 0;
starHit = false;
beepbeeping = false;
this.initBalls();
nextFrame();
Instance of Symbol 261 MovieClip "controller" in Frame 141
onClipEvent (load) {
counter = 0;
speedTimer = 240;
floor = 400;
this._parent.barrelFloor = floor + 20;
standard = 15;
ropejump = 3;
jump = standard;
this._parent.dead = false;
pushed = false;
allowpush = true;
this._parent.onFloor = true;
this._parent.moveVar = 1;
gravity = this._parent.standardGrav;
}
onClipEvent (enterFrame) {
var t = getTimer();
_parent.fTime.text = Math.round(1000 / (t - _global.frameTime));
_global.frameTime = t;
if (this._parent.speedUp) {
if (counter < speedTimer) {
counter++;
} else {
this._parent.accel = 3;
this._parent.maxvel = 5;
counter = 0;
this._parent.speedUp = false;
this._parent.gameMusic.stop();
this._parent.gameMusicFast.stop();
this._parent.gameMusic.start(0, 999);
}
}
if ((this._parent.barrelFreq != 0) && (this._parent.lastBarrel != 0)) {
this._parent.moveBarrels();
this._parent.checkbarrels(this._parent.firstBarrel, this._parent.lastBarrel, this._parent.barrelName, "tarzan");
}
if (this._parent.lavaFreq > 0) {
this._parent.makeLava(this._parent.lavaFreq, this._parent.lastLava, this._parent.lavaType);
if (this._parent.lastLava != 0) {
this._parent.moveLava(this._parent.firstLava, this._parent.lastLava, this._parent.lavaType, this._parent.lavaSpeed);
this._parent.checkLava(this._parent.firstLava, this._parent.lastLava, this._parent.lavaType, "tarzan");
}
}
if (this._parent.noPlats > 0) {
this._parent.moveplats(this._parent.noPlats);
}
if (this._parent.noPits > 0) {
this._parent.movepits(this._parent.noPits);
}
if (this._parent.noPits > 0) {
this._parent.checkPit("tarzan");
}
if (this._parent.noRopes > 0) {
this._parent.moveRopes("center", this._parent.noRopes);
}
if ((!this._parent.levelcomplete) && (!this._parent.timeUp)) {
this._parent.checkBalls(this._parent.id, "tarzan");
this._parent.timer();
if (this._parent.starFishGo) {
this._parent.checkStarFish("tarzan");
}
if (this._parent.elapsed == 0) {
this._parent.timeUp = true;
this._parent.kill("tarzan");
}
if (this._parent.moveVar == 1) {
jump = standard;
this._parent.move();
this._parent.applyForces("tarzan", gravity, this._parent.friction, 0);
this._parent.checkMoves(this._parent.velx, this._parent.vely, 0, "tarzan");
} else if (this._parent.moveVar == 2) {
jump = standard;
this._parent.move();
this._parent.applyForces("tarzan", gravity, this._parent.friction, this._parent.platspeed);
this._parent.checkMoves(root.velx, this._parent.vely, this._parent.platspeed, "tarzan");
} else if (this._parent.moveVar == 3) {
jump = ropeJump;
this._parent.applyRope(this._parent.hitRope);
this._parent.tarzan.gotoAndStop("swing");
} else if (this._parent.moveVar == 4) {
this._parent.applyForces("tarzan", gravity, 0);
jump = standard;
}
if (this._parent.screenType == "left") {
this._parent.checkLeft("tarzan");
} else if (this._parent.screenType == "right") {
this._parent.checkRight("tarzan");
this._parent.checkFinish("tarzan");
} else if (this._parent.screenType == "middle") {
this._parent.checkMiddle("tarzan");
}
if ((this._parent.tarzan._y >= floor) && (!this._parent.dead)) {
if (!this._parent.onFloor) {
this._parent.onFloor = true;
this._parent.landSound.start();
}
} else {
this._parent.onFloor = false;
}
if (this._parent.onFloor) {
this._parent.tarzan._y = floor;
allowpush = true;
this._parent.vely = 0;
gravity = 0;
}
if (this._parent.onPlatform) {
this._parent.tarzan._y = this._parent.Platlevel;
allowpush = true;
this._parent.vely = 0;
gravity = 0;
this._parent.checkPlatform("tarzan", this._parent.hitPlatform);
}
if (((this._parent.vely < -5) && (!this._parent.onPlatform)) && (this._parent.noPlats > 0)) {
this._parent.checkPlatforms(this._parent.noPlats, "tarzan");
}
if (((this._parent.vely != 0) && (!allowpush)) && (this._parent.noRopes > 0)) {
this._parent.checkRope("tarzan", this._parent.noRopes);
}
if ((this._parent.velx > -1) && (this._parent.velx < 1)) {
this._parent.velx = 0;
this._parent.friction = 0;
}
if (Key.isDown(32) && (allowPush)) {
this._parent.jumpsound.start();
allowpush = false;
gravity = this._parent.standardGrav;
this._parent.vely = jump;
this._parent.onPlatform = false;
this._parent.platSpeed = 0;
this._parent.tarzan._y = this._parent.tarzan._y - 1;
this._parent.moveVar = 1;
}
if (this._parent.invincible) {
this._parent.makeInvincible();
}
}
}
Frame 142
initFrame("left", 2, 0, 0, 50, 10, 1, "barrel", 0, this.Start._x, this.Start._y, 0, "", 0, "rockroll", "", "", 0, false);
setLives("livesMov", this.lives);
Frame 143
initFrame("middle", 4, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 1, 0);
Instance of Symbol 206 MovieClip "pit1" in Frame 143
onClipEvent (load) {
_visible = false;
}
Frame 144
initFrame("middle", 3, 1, 1, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 2, 0);
Instance of Symbol 206 MovieClip "pit1" in Frame 144
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 345 MovieClip "platform1" in Frame 144
onClipEvent (load) {
this.xspeed = 5;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 144
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 144
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 345 MovieClip "platform3" in Frame 144
onClipEvent (load) {
this.xspeed = -5;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform3L" in Frame 144
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform3R" in Frame 144
onClipEvent (load) {
this._visible = false;
}
Frame 145
initFrame("middle", 5, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 3, 0);
Instance of Symbol 345 MovieClip "platform1" in Frame 145
onClipEvent (load) {
this.xspeed = -3;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 145
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 145
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 206 MovieClip "pit1" in Frame 145
onClipEvent (load) {
_visible = false;
}
Frame 146
initFrame("middle", 4, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 4, 0);
Instance of Symbol 203 MovieClip "Start" in Frame 146
onClipEvent (enterFrame) {
_x = _root.platform1._x;
}
Instance of Symbol 345 MovieClip "platform1" in Frame 146
onClipEvent (load) {
this.xspeed = 3;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 146
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 146
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 345 MovieClip "platform2" in Frame 146
onClipEvent (load) {
this.xspeed = -2;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform2L" in Frame 146
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform2R" in Frame 146
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 206 MovieClip "pit1" in Frame 146
onClipEvent (load) {
_visible = false;
}
Frame 147
initFrame("middle", 5, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 5, 1);
Instance of Symbol 206 MovieClip "pit1" in Frame 147
onClipEvent (load) {
_visible = false;
}
Frame 148
initFrame("middle", 6, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 6, 0);
Instance of Symbol 345 MovieClip "platform1" in Frame 148
onClipEvent (load) {
this.xspeed = -5;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 148
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 148
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 370 MovieClip "platform5" in Frame 148
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Instance of Symbol 206 MovieClip "pit1" in Frame 148
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 203 MovieClip "Start" in Frame 148
onClipEvent (enterFrame) {
_x = _root.platform1._x;
}
Frame 149
initFrame("right", 7, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 7, 0);
Instance of Symbol 206 MovieClip "pit1" in Frame 149
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 345 MovieClip "platform1" in Frame 149
onClipEvent (load) {
this.xspeed = 5;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 149
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 149
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform5L" in Frame 149
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform5R" in Frame 149
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 345 MovieClip "platform5" in Frame 149
onClipEvent (load) {
this.xspeed = 5;
this.Type = "m";
}
Frame 150
this.menuMusic.stop();
this.gameMusic.stop();
this.gameMusicFast.stop();
this.beepbeepbeepSound.stop();
this.gameMusic.start(0, 999);
Instance of Symbol 165 MovieClip in Frame 150
onClipEvent (load) {
if (this._parent.char == "l") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 209
this.startTime = getTimer();
Frame 210
function initBalls() {
var _local3 = this;
noScreens = 8;
screenArray = new Array();
screenArray = [10, 10, 10, 10, 10, 10, 10, 10];
var temp = 0;
var _local1 = 0;
while (_local1 < noScreens) {
temp = temp + screenArray[_local1];
trace(screenArray[_local1]);
_local3["ballArray" + _local1] = new Array();
var _local2 = 0;
while (_local2 < screenArray[_local1]) {
_local3["ballArray" + _local1][_local2] = 1;
_local2++;
}
_local1++;
}
ballTarget = temp;
}
velx = 0;
vely = 0;
friction = 0.9;
maxvel = 5;
accel = 3;
speedUp = false;
invincible = false;
nxtlevel = 1;
collThisLevel = 0;
starHit = false;
beepbeeping = false;
this.initBalls();
nextFrame();
Instance of Symbol 261 MovieClip "controller" in Frame 210
onClipEvent (load) {
counter = 0;
speedTimer = 240;
floor = 400;
this._parent.barrelFloor = floor + 20;
standard = 15;
ropejump = 3;
jump = standard;
this._parent.dead = false;
pushed = false;
allowpush = true;
this._parent.onFloor = true;
this._parent.moveVar = 1;
gravity = this._parent.standardGrav;
}
onClipEvent (enterFrame) {
var t = getTimer();
_parent.fTime.text = Math.round(1000 / (t - _global.frameTime));
_global.frameTime = t;
if (this._parent.speedUp) {
if (counter < speedTimer) {
counter++;
} else {
this._parent.accel = 3;
this._parent.maxvel = 5;
counter = 0;
this._parent.speedUp = false;
this._parent.gameMusic.stop();
this._parent.gameMusicFast.stop();
this._parent.gameMusic.start(0, 999);
}
}
if ((this._parent.barrelFreq != 0) && (this._parent.lastBarrel != 0)) {
this._parent.moveBarrels();
this._parent.checkbarrels(this._parent.firstBarrel, this._parent.lastBarrel, this._parent.barrelName, "tarzan");
}
if (this._parent.lavaFreq > 0) {
this._parent.makeLava(this._parent.lavaFreq, this._parent.lastLava, this._parent.lavaType);
if (this._parent.lastLava != 0) {
this._parent.moveLava(this._parent.firstLava, this._parent.lastLava, this._parent.lavaType, this._parent.lavaSpeed);
this._parent.checkLava(this._parent.firstLava, this._parent.lastLava, this._parent.lavaType, "tarzan");
}
}
if (this._parent.noPlats > 0) {
this._parent.moveplats(this._parent.noPlats);
}
if (this._parent.noPits > 0) {
this._parent.movepits(this._parent.noPits);
}
if (this._parent.noPits > 0) {
this._parent.checkPit("tarzan");
}
if (this._parent.noRopes > 0) {
this._parent.moveRopes("center", this._parent.noRopes);
}
if ((!this._parent.levelcomplete) && (!this._parent.timeUp)) {
this._parent.checkBalls(this._parent.id, "tarzan");
this._parent.timer();
if (this._parent.starFishGo) {
this._parent.checkStarFish("tarzan");
}
if (this._parent.elapsed == 0) {
this._parent.timeUp = true;
this._parent.kill("tarzan");
}
if (this._parent.moveVar == 1) {
jump = standard;
this._parent.move();
this._parent.applyForces("tarzan", gravity, this._parent.friction, 0);
this._parent.checkMoves(this._parent.velx, this._parent.vely, 0, "tarzan");
} else if (this._parent.moveVar == 2) {
jump = standard;
this._parent.move();
this._parent.applyForces("tarzan", gravity, this._parent.friction, this._parent.platspeed);
this._parent.checkMoves(root.velx, this._parent.vely, this._parent.platspeed, "tarzan");
} else if (this._parent.moveVar == 3) {
jump = ropeJump;
this._parent.applyRope(this._parent.hitRope);
this._parent.tarzan.gotoAndStop("swing");
} else if (this._parent.moveVar == 4) {
this._parent.applyForces("tarzan", gravity, 0);
jump = standard;
}
if (this._parent.screenType == "left") {
this._parent.checkLeft("tarzan");
} else if (this._parent.screenType == "right") {
this._parent.checkRight("tarzan");
this._parent.checkFinish("tarzan");
} else if (this._parent.screenType == "middle") {
this._parent.checkMiddle("tarzan");
}
if ((this._parent.tarzan._y >= floor) && (!this._parent.dead)) {
if (!this._parent.onFloor) {
this._parent.onFloor = true;
this._parent.landSound.start();
}
} else {
this._parent.onFloor = false;
}
if (this._parent.onFloor) {
this._parent.tarzan._y = floor;
allowpush = true;
this._parent.vely = 0;
gravity = 0;
}
if (this._parent.onPlatform) {
this._parent.tarzan._y = this._parent.Platlevel;
allowpush = true;
this._parent.vely = 0;
gravity = 0;
this._parent.checkPlatform("tarzan", this._parent.hitPlatform);
}
if (((this._parent.vely < -5) && (!this._parent.onPlatform)) && (this._parent.noPlats > 0)) {
this._parent.checkPlatforms(this._parent.noPlats, "tarzan");
}
if (((this._parent.vely != 0) && (!allowpush)) && (this._parent.noRopes > 0)) {
this._parent.checkRope("tarzan", this._parent.noRopes);
}
if ((this._parent.velx > -1) && (this._parent.velx < 1)) {
this._parent.velx = 0;
this._parent.friction = 0;
}
if (Key.isDown(32) && (allowPush)) {
this._parent.jumpsound.start();
allowpush = false;
gravity = this._parent.standardGrav;
this._parent.vely = jump;
this._parent.onPlatform = false;
this._parent.platSpeed = 0;
this._parent.tarzan._y = this._parent.tarzan._y - 1;
this._parent.moveVar = 1;
}
if (this._parent.invincible) {
this._parent.makeInvincible();
}
}
}
Frame 211
initFrame("left", 6, 2, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 0, 0);
setLives("livesMov", this.lives);
Instance of Symbol 206 MovieClip "pit1" in Frame 211
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 206 MovieClip "pit2" in Frame 211
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 425 MovieClip "platform4" in Frame 211
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Instance of Symbol 425 MovieClip "platform5" in Frame 211
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Frame 212
initFrame("middle", 7, 1, 1, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 1, 0);
Instance of Symbol 281 MovieClip "platform1L" in Frame 212
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 212
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 206 MovieClip "pit1" in Frame 212
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 419 MovieClip "platform1" in Frame 212
onClipEvent (load) {
this.xspeed = -5;
this.Type = "m";
}
Instance of Symbol 425 MovieClip "platform2" in Frame 212
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Instance of Symbol 425 MovieClip "platform3" in Frame 212
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Instance of Symbol 425 MovieClip "platform4" in Frame 212
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Instance of Symbol 425 MovieClip "platform5" in Frame 212
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Instance of Symbol 425 MovieClip "platform6" in Frame 212
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Frame 213
initFrame("middle", 4, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 2, 0);
Instance of Symbol 203 MovieClip "Start" in Frame 213
onClipEvent (enterFrame) {
}
Instance of Symbol 206 MovieClip "pit1" in Frame 213
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 213
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 213
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 419 MovieClip "platform1" in Frame 213
onClipEvent (load) {
this.xspeed = 5;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform2L" in Frame 213
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform2R" in Frame 213
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 419 MovieClip "platform2" in Frame 213
onClipEvent (load) {
this.xspeed = -2;
this.Type = "m";
}
Frame 214
initFrame("middle", 4, 2, 1, 60, 5, 2, "lava", 50, this.Start._x, this.Start._y, 0, "", 0, "", "", "lavabounce", 3, 1);
Instance of Symbol 206 MovieClip "pit1" in Frame 214
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 281 MovieClip "platform2L" in Frame 214
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform2R" in Frame 214
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 419 MovieClip "platform2" in Frame 214
onClipEvent (load) {
this.xspeed = 2;
this.Type = "m";
}
Instance of Symbol 206 MovieClip "pit2" in Frame 214
onClipEvent (load) {
_visible = false;
}
Frame 215
initFrame("middle", 5, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "ropeswing", "", 4, 0);
Instance of Symbol 206 MovieClip "pit1" in Frame 215
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 215
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 215
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 419 MovieClip "platform1" in Frame 215
onClipEvent (load) {
this.xspeed = -5;
this.Type = "m";
}
Instance of Symbol 425 MovieClip "platform3" in Frame 215
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Instance of Symbol 425 MovieClip "platform5" in Frame 215
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Frame 216
initFrame("middle", 6, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "ropeswing", "", 5, 0);
Instance of Symbol 206 MovieClip "pit1" in Frame 216
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 216
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 216
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 419 MovieClip "platform1" in Frame 216
onClipEvent (load) {
this.xspeed = -8;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform2L" in Frame 216
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform2R" in Frame 216
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 419 MovieClip "platform2" in Frame 216
onClipEvent (load) {
this.xspeed = 8;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform3L" in Frame 216
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform3R" in Frame 216
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 419 MovieClip "platform3" in Frame 216
onClipEvent (load) {
this.xspeed = -8;
this.Type = "m";
}
Frame 217
initFrame("middle", 7, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "0", 0, "", "", "", 6, 0);
Instance of Symbol 419 MovieClip "platform2" in Frame 217
onClipEvent (load) {
this.xspeed = -2;
this.Type = "m";
}
Instance of Symbol 206 MovieClip "pit1" in Frame 217
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 217
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 217
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 419 MovieClip "platform1" in Frame 217
onClipEvent (load) {
this.xspeed = -4;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform2L" in Frame 217
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform2R" in Frame 217
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 425 MovieClip "platform3" in Frame 217
onClipEvent (load) {
this.xspeed = 0;
this.Type = "d";
}
Frame 218
initFrame("right", 7, 1, 0, 0, 0, 0, "", 0, this.Start._x, this.Start._y, 0, "", 0, "", "", "", 7, 0);
Instance of Symbol 203 MovieClip "Start" in Frame 218
/* no clip actions */
Instance of Symbol 206 MovieClip "pit1" in Frame 218
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 281 MovieClip "platform1L" in Frame 218
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform1R" in Frame 218
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 419 MovieClip "platform1" in Frame 218
onClipEvent (load) {
this.xspeed = 4;
this.Type = "m";
}
Instance of Symbol 281 MovieClip "platform2L" in Frame 218
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 281 MovieClip "platform2R" in Frame 218
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 419 MovieClip "platform2" in Frame 218
onClipEvent (load) {
this.xspeed = 8;
this.Type = "m";
}
Frame 219
waternoise = false;
ballstotal = collected;
clearInterval(barrelInterval);
this.menuMusic.stop();
this.gameMusic.stop();
this.gameMusicFast.stop();
this.beepbeepbeepSound.stop();
this.gameMusic.start(0, 999);
if (nxtlevel == 1) {
gotoAndStop ("nlVolcano");
} else if (nxtLevel == 2) {
gotoAndStop ("nlBeach");
} else if (nxtLevel == 3) {
gotoAndStop ("nlJungle");
}
Frame 220
stop();
border._visible = false;
if (this.char == "l") {
this.ldance.gotoAndPlay(2);
} else if (this.char == "s") {
this.sdance.gotoAndPlay(2);
}
Frame 221
!!!ERROR
Frame 222
!!!ERROR
Frame 223
if (nxtlevel == 1) {
this.totalTime = this.totalTime - 30;
gotoAndPlay (9);
} else if (nxtLevel == 2) {
gotoAndPlay (81);
} else if (nxtLevel == 3) {
gotoAndPlay (150);
}
Frame 224
lastLevel = levelCounter - 1;
clearInterval(barrelInterval);
this.menuMusic.stop();
this.gameMusic.stop();
this.gameMusicFast.stop();
this.beepbeepbeepSound.stop();
this.gameMusic.start(0, 999);
if (nxtlevel == 1) {
gotoAndStop ("goVolcano1");
} else if (nxtLevel == 2) {
gotoAndStop ("goBeach");
} else if (nxtLevel == 3) {
gotoAndStop ("goJungle");
}
Frame 225
!!!ERROR
Instance of Symbol 495 MovieClip in Frame 225
onClipEvent (load) {
if ((_root.username != "") && (_root.username != null)) {
loadVariables ((((("/jsp/highscores/save_score.jsp?uName=" + _root.username) + "&game=") + _root.gameid) + "&score=") + _root.totalScore, "");
}
}
Frame 226
!!!ERROR
Frame 227
!!!ERROR
Frame 228
this.menuMusic.stop();
this.gameMusic.stop();
this.gameMusicFast.stop();
this.beepbeepbeepSound.stop();
this.gameMusic.start(0, 999);
clearInterval(barrelInterval);
if (this.char == "l") {
this.ldance.gotoAndPlay(2);
} else if (this.char == "s") {
this.sdance.gotoAndPlay(2);
}
border._visible = false;
Instance of Symbol 495 MovieClip in Frame 228
onClipEvent (load) {
if ((_root.username != "") && (_root.username != null)) {
loadVariables ((((("/jsp/highscores/save_score.jsp?uName=" + _root.username) + "&game=") + _root.gameid) + "&score=") + _root.totalScore, "");
}
}
Symbol 6 MovieClip Frame 1
!!!ERROR
Instance of Symbol 4 MovieClip "hitArea" in Symbol 7 MovieClip [lava] Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 4 MovieClip "hitArea" in Symbol 17 MovieClip [barrel] Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 4 MovieClip "hitArea" in Symbol 18 MovieClip [rock] Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 20 MovieClip [bouncer//] Frame 1
!!!ERROR
Instance of Symbol 4 MovieClip "hitArea" in Symbol 26 MovieClip [log] Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 71 MovieClip Frame 1
!!!ERROR
Symbol 81 Button
on (release, releaseOutside) {
!!!ERROR
Symbol 85 Button
on (release) {
!!!ERROR
Symbol 89 Button
on (release) {
this._parent.globalSounds.setVolume(0);
this._parent.soundsOff = true;
gotoAndStop ("nomusic");
}
Symbol 91 Button
on (release) {
this._parent.globalSounds.setVolume(100);
this._parent.soundsOff = false;
gotoAndStop ("music");
}
Symbol 92 MovieClip Frame 1
!!!ERROR
Symbol 92 MovieClip Frame 2
!!!ERROR
Symbol 92 MovieClip Frame 3
!!!ERROR
Symbol 95 Button
on (release) {
!!!ERROR
Symbol 97 Button
on (release) {
!!!ERROR
Symbol 153 Button
on (release, releaseOutside) {
!!!ERROR
Symbol 165 MovieClip Frame 1
!!!ERROR
Symbol 178 MovieClip Frame 1
!!!ERROR
Symbol 178 MovieClip Frame 2
!!!ERROR
Symbol 178 MovieClip Frame 3
!!!ERROR
Symbol 178 MovieClip Frame 4
!!!ERROR
Symbol 178 MovieClip Frame 5
!!!ERROR
Symbol 178 MovieClip Frame 6
!!!ERROR
Symbol 179 MovieClip Frame 1
!!!ERROR
Symbol 179 MovieClip Frame 2
!!!ERROR
Symbol 179 MovieClip Frame 3
!!!ERROR
Symbol 179 MovieClip Frame 4
!!!ERROR
Symbol 179 MovieClip Frame 5
!!!ERROR
Symbol 179 MovieClip Frame 6
!!!ERROR
Instance of Symbol 198 MovieClip "collidestrip" in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 202 MovieClip in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 198 MovieClip "collidestrip" in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 254 MovieClip Frame 8
!!!ERROR
Symbol 259 MovieClip Frame 1
!!!ERROR
Instance of Symbol 219 MovieClip "bhitbox" in Symbol 259 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 220 MovieClip "rhitbox" in Symbol 259 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 222 MovieClip "thitbox" in Symbol 259 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 259 MovieClip Frame 2
!!!ERROR
Symbol 259 MovieClip Frame 3
!!!ERROR
Symbol 259 MovieClip Frame 4
!!!ERROR
Symbol 259 MovieClip Frame 5
!!!ERROR
Symbol 259 MovieClip Frame 6
!!!ERROR
Symbol 259 MovieClip Frame 7
!!!ERROR
Symbol 259 MovieClip Frame 8
if (((_parent.barrelHit || (_parent.lavaHit)) || (_parent.timeUp)) || (_parent.pitHit)) {
_parent.invincible = true;
}
Symbol 259 MovieClip Frame 22
_parent.reSet(_name);
gotoAndStop(_parent.char + "jumpr");
Symbol 259 MovieClip Frame 26
!!!ERROR
Symbol 259 MovieClip Frame 60
!!!ERROR
Symbol 259 MovieClip Frame 62
!!!ERROR
Instance of Symbol 219 MovieClip "bhitbox" in Symbol 259 MovieClip Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 220 MovieClip "rhitbox" in Symbol 259 MovieClip Frame 62
onClipEvent (load) {
!!!ERROR
Instance of Symbol 222 MovieClip "thitbox" in Symbol 259 MovieClip Frame 62
onClipEvent (load) {
!!!ERROR
Symbol 259 MovieClip Frame 63
!!!ERROR
Symbol 259 MovieClip Frame 64
!!!ERROR
Symbol 259 MovieClip Frame 65
!!!ERROR
Symbol 259 MovieClip Frame 66
!!!ERROR
Symbol 259 MovieClip Frame 67
!!!ERROR
Symbol 259 MovieClip Frame 68
if (((_parent.barrelHit || (_parent.lavaHit)) || (_parent.timeUp)) || (_parent.pitHit)) {
_parent.invincible = true;
}
Symbol 259 MovieClip Frame 82
_parent.reSet(_name);
gotoAndStop(_parent.char + "jumpr");
Symbol 259 MovieClip Frame 84
!!!ERROR
Symbol 259 MovieClip Frame 118
!!!ERROR
Instance of Symbol 198 MovieClip "collidestrip" in Symbol 276 MovieClip Frame 29
onClipEvent (load) {
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 293 MovieClip Frame 1
!!!ERROR
Instance of Symbol 292 MovieClip "character" in Symbol 293 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 205 MovieClip "pithit" in Symbol 293 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 295 MovieClip Frame 1
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 295 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 295 MovieClip Frame 2
!!!ERROR
Symbol 295 MovieClip Frame 43
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 317 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 370 MovieClip Frame 1
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 370 MovieClip Frame 2
!!!ERROR
Symbol 370 MovieClip Frame 33
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 373 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 417 MovieClip Frame 41
onClipEvent (load) {
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 417 MovieClip Frame 41
onClipEvent (load) {
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 425 MovieClip Frame 1
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 425 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 425 MovieClip Frame 2
!!!ERROR
Symbol 425 MovieClip Frame 32
!!!ERROR
Instance of Symbol 4 MovieClip "collidestrip" in Symbol 433 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 470 MovieClip Frame 1
!!!ERROR
Symbol 470 MovieClip Frame 2
!!!ERROR
Symbol 470 MovieClip Frame 168
!!!ERROR
Symbol 482 Button
on (release, releaseOutside) {
!!!ERROR
Symbol 533 MovieClip Frame 120
!!!ERROR
Symbol 542 Button
on (release) {
if (totalscore == 0) {
totalscore = 1;
}
sendscore = new LoadVars();
sendscore.gname = "poopascoopaBH";
sendscore.gscore = totalscore;
sendscore.send("index.php?act=Arcade&do=newscore", "_self", "POST");
stopAllSounds();
_root._visible = false;
_root.enabled = false;
stop();
}
Symbol 555 Button
on (release) {
if (_parent.totalscore == 0) {
_parent.totalscore = 1;
}
sendscore = new LoadVars();
sendscore.gname = "poopascoopaBH";
sendscore.gscore = _parent.totalscore;
sendscore.send("index.php?act=Arcade&do=newscore", "_self", "POST");
stopAllSounds();
_root._visible = false;
_root.enabled = false;
stop();
}