STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228128
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/24349056?noj=FRM24349056-14DC" width="1" height="1"></div>

South Pole Aggressor - cartoony tower defense game.swf

This is the info page for
Flash #131346

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 2 { } movieClip 3 e1_p { frame 20 { stop(); this.removeMovieClip(); } } frame 1 { function mySiteLink() { getURL('http://www.startonlinegames.com', '_blank'); } Button.prototype.tabEnabled = false; MovieClip.prototype.tabEnabled = false; var rightClick = new ContextMenu(); rightClick.hideBuiltInItems(); _root.menu = rightClick; var mySiteLink = new ContextMenuItem('More Games!', mySiteLink); rightClick.customItems.push(mySiteLink); } frame 1 { stop(); _root.fload = false; } movieClip 7 { } movieClip 10 { } movieClip 13 { } movieClip 16 { } movieClip 19 { } movieClip 22 { } movieClip 25 { } movieClip 28 { } movieClip 31 { } movieClip 34 { } movieClip 37 { } movieClip 40 { } movieClip 43 { } movieClip 46 { } movieClip 49 { } movieClip 52 { } movieClip 55 { } movieClip 58 { } movieClip 61 { } movieClip 62 { } movieClip 65 { frame 88 { stop(); } } movieClip 67 { } movieClip 69 { } // unknown tag 88 length 100 // unknown tag 88 length 61 button 77 { on (release) { getURL('http://www.startonlinegames.com/', '_blank'); } } movieClip 80 { } movieClip 82 { } button 84 { on (release) { gotoAndPlay('anim'); } } movieClip 85 { frame 1 { stop(); } frame 2 { stop(); } frame 69 { _root.gotoAndStop('movies'); } } instance of movieClip 85 { onClipEvent (load) { total = _root.getBytesTotal(); } onClipEvent (enterFrame) { if (_root.fload == false) { loaded = _root.getBytesLoaded(); percent = int((loaded / total) * 100); bar._width = percent * 3.54; per.text = percent + ' %'; if (percent >= 100) { if (_global.gamelock == 'true') { _root.gotoAndStop('lock'); } else { gotoAndStop('loaded'); _root.fload = true; } } } } } frame 2 { stop(); _root.openmap = false; _root.map1_lock = false; _root.map2_lock = true; _root.map3_lock = true; _root.map4_lock = true; _root.map5_lock = true; _root.map6_lock = true; _root.map7_lock = true; _root.endMovie = false; _root.unlockmap = 1; _root._quality = 'HIGH'; _root.map1_bs = 0; _root.map2_bs = 0; _root.map3_bs = 0; _root.map4_bs = 0; _root.map5_bs = 0; _root.map6_bs = 0; _root.map7_bs = 0; _root.black_screen.gotoAndPlay(2); var hand_gun_so = new Sound(); hand_gun_so.attachSound('hand_gun_so'); var human_die_so = new Sound(); human_die_so.attachSound('human_die_so'); var spawn_so = new Sound(); spawn_so.attachSound('spawn_so'); var upgradeso = new Sound(); upgradeso.attachSound('upgradeso'); var shot_gun_so = new Sound(); shot_gun_so.attachSound('shot_gun_so'); var rocket_gun_so = new Sound(); rocket_gun_so.attachSound('rocket_gun_so'); var sniper_gun_so = new Sound(); sniper_gun_so.attachSound('sniper_gun_so'); var ending_so = new Sound(); ending_so.attachSound('ending_so'); var m_gun_so = new Sound(); m_gun_so.attachSound('m_gun_so'); var boom_so = new Sound(); boom_so.attachSound('boom_so'); var CannotClick = new Sound(); CannotClick.attachSound('CannotClick'); var open_map = new Sound(); open_map.attachSound('open_map'); var MapChose = new Sound(); MapChose.attachSound('MapChose'); var exp = new Sound(); exp.attachSound('exp'); var exp2 = new Sound(); exp2.attachSound('exp2'); var PauseSound = new Sound(); PauseSound.attachSound('PauseSound'); var opening = new Sound(); opening.attachSound('opening'); var m1 = new Sound(); m1.attachSound('m1'); var m2 = new Sound(); m2.attachSound('m2'); var m3 = new Sound(); m3.attachSound('m3'); var m4 = new Sound(); m4.attachSound('m4'); var hit = new Sound(); hit.attachSound('hit'); var game_over = new Sound(); game_over.attachSound('game_over'); var BuildSound = new Sound(); BuildSound.attachSound('BuildSound'); var exp3 = new Sound(); exp3.attachSound('exp3'); } movieClip 89 { } // unknown tag 88 length 63 // unknown tag 88 length 98 movieClip 141 { } movieClip 142 { } movieClip 148 { } movieClip 154 { } movieClip 162 { } movieClip 165 { } movieClip 168 { } movieClip 174 { } movieClip 176 { } movieClip 178 { } movieClip 179 { } movieClip 186 { } movieClip 194 { } movieClip 196 { } movieClip 199 { } movieClip 202 { } movieClip 205 { } movieClip 210 { } movieClip 213 { } movieClip 221 { } movieClip 229 { } movieClip 235 { } movieClip 242 { } movieClip 244 { } movieClip 250 { } movieClip 253 { } movieClip 255 { } movieClip 258 { } movieClip 261 { } movieClip 264 { } movieClip 282 { } movieClip 285 { } movieClip 297 { } movieClip 380 { } movieClip 383 { } movieClip 386 { } movieClip 388 { } movieClip 390 { } movieClip 393 { } movieClip 396 { } movieClip 399 { } movieClip 401 { } movieClip 403 { } movieClip 405 { } movieClip 406 { } movieClip 409 { } movieClip 412 { } movieClip 418 { } movieClip 421 { } movieClip 424 { } movieClip 426 { } movieClip 429 { } movieClip 431 { } movieClip 433 { } movieClip 435 { } movieClip 437 { } movieClip 441 { } movieClip 443 { } movieClip 447 { } movieClip 449 { } movieClip 451 { } movieClip 452 { } movieClip 453 { } movieClip 455 { } movieClip 457 { } movieClip 459 { } movieClip 460 { } movieClip 461 { } movieClip 463 { } movieClip 464 { } movieClip 467 { } movieClip 469 { } movieClip 474 { } movieClip 479 { frame 1772 { _root.endMovie = true; _root.em.gotoAndPlay(2); stop(); } } // unknown tag 88 length 84 button 483 { on (press) { _root.em.gotoAndPlay(2); } } movieClip 514 { frame 1 { stop(); } } movieClip 517 { frame 1 { stop(); } frame 2 { stopAllSounds(); } frame 60 { _root.gotoAndStop('map_selection'); stop(); } } movieClip 520 { } instance of movieClip 520 { onClipEvent (press) { getURL('http://www.startonlinegames.com', '_blank'); } } movieClip 521 { frame 20 { stop(); } } frame 3 { function executeCallback() { if (_root.hasGameStarted) { if (_root.count >= _root.maxCount) { _root.start_new_wave = false; _root.newLevel(); _root.newLevel2(); _root.level_msg.gotoAndPlay('play'); _root.count = 1; } if (_root.wave != _root.waves.length) { if (_root.wave - 1 <= _root.waves.length - 1) { if (_root.start_new_wave == true) { ++_root.count; _root.times.text = _root.maxCount - _root.count; } else { _root.times.text = 10; } } else { if (_root.currentNumberOfCreeps <= 0) { _root.hasGameStarted = false; _parent.info_message._visible = false; _root.UpgradeTowerInfo._visible = false; stopAllSounds(); _root.vic.gotoAndPlay('play'); trace('true1'); } } } else { _root.times.text = 0; } } } function towerInfo(tower) { _root.selectedTower = tower; _root.ranger._x = tower._x; _root.ranger._y = tower._y; _root.selectlight._x = tower._x; _root.selectlight._y = tower._y; _root.ranger._width = (tower.range + tower.range * _root.range_lvl * 10 / 100) * 2; _root.ranger._height = (tower.range + tower.range * _root.range_lvl * 10 / 100) * 2; if (tower.upgrades.length >= tower.level) { _root.UpgradeTowerInfo.upgrade_t._visible = true; _root.UpgradeTowerInfo.TowerInfoText3._visible = true; _root.UpgradeTowerInfo.UpgradeInfoText.text = tower.upgrades[tower.level - 1][0]; _root.UpgradeTowerInfo.TowerInfoText.text = 'Damage: ' + tower.damage + '\rRange: ' + tower.range; _root.UpgradeTowerInfo.TowerInfoText2.text = 'Splash: ' + tower.splash + '%' + '\rSlow: ' + tower.slow + '%'; _root.UpgradeTowerInfo.power.text = tower.damage + tower.damage * _root.damage_lvl * 10 / 100; _root.UpgradeTowerInfo.range.text = tower.range + tower.range * _root.range_lvl * 5 / 100; _root.UpgradeTowerInfo.speed.text = tower.rate; _root.UpgradeTowerInfo.TowerInfoText3.text = tower.upgrades[tower.level - 1][1]; _root.UpgradeTowerInfo.t.power.text = tower.upgrades[tower.level - 1][2]; _root.UpgradeTowerInfo.t.speed.text = tower.upgrades[tower.level - 1][4]; _root.UpgradeTowerInfo.t.range.text = tower.upgrades[tower.level - 1][3]; _root.UpgradeTowerInfo.t.UpgradeInfoText1.text = '+' + (tower.upgrades[tower.level - 1][2] - tower.damage); _root.UpgradeTowerInfo.t.UpgradeInfoText2.text = '+' + (tower.upgrades[tower.level - 1][3] - tower.range); _root.UpgradeTowerInfo.t.UpgradeInfoText4.text = '+' + (tower.upgrades[tower.level - 1][5] - tower.splash); _root.UpgradeTowerInfo.t.UpgradeInfoText5.text = '+' + (tower.upgrades[tower.level - 1][6] - tower.slow); _root.sellgold = tower.upgrades[tower.level - 1][1]; _root.UpgradeTowerInfo.sell_t.text = int(tower.upgrades[tower.level - 1][1] - tower.upgrades[tower.level - 1][1] * 20 / 100); _root.UpgradeTowerInfo.UpgradeButton.UpgradeButtonText.text = 'Upgrade'; _root.UpgradeTowerInfo.UpgradeButton._visible = true; } else { _root.UpgradeTowerInfo.t.TowerInfoText3._visible = false; _root.UpgradeTowerInfo.upgrade_t._visible = false; _root.UpgradeTowerInfo.TowerInfoText.text = 'Damage: ' + tower.damage + '\rRange: ' + tower.range; _root.UpgradeTowerInfo.TowerInfoText2.text = 'Splash: ' + tower.splash + '%' + '\rSlow: ' + tower.slow + '%'; _root.UpgradeTowerInfo.power.text = tower.damage + tower.damage * _root.damage_lvl * 10 / 100; _root.UpgradeTowerInfo.range.text = tower.range + tower.range * _root.range_lvl * 5 / 100; _root.UpgradeTowerInfo.speed.text = tower.rate; _root.UpgradeTowerInfo.f.text = ''; _root.UpgradeTowerInfo.TowerInfoText3._visible = false; _root.upgradeover = false; _root.UpgradeTowerInfo.UpgradeButton._visible = false; _root.UpgradeTowerInfo.h.text = ''; _root.UpgradeTowerInfo.sell_t.text = int(tower.upgrades[tower.level - 2][1] - tower.upgrades[tower.level - 2][1] * 20 / 100) * 2; } } function towerInfo2(tower) { _root.selectedTower = tower; _root.ranger._x = tower._x; _root.ranger._y = tower._y; _root.selectlight._x = tower._x; _root.selectlight._y = tower._y; _root.ranger._width = (tower.range + tower.range * _root.range_lvl * 5 / 100) * 2; _root.ranger._height = (tower.range + tower.range * _root.range_lvl * 5 / 100) * 2; _root.UpgradeTowerInfo2.slow.text = tower.slowx + '%'; _root.UpgradeTowerInfo2.duration.text = tower.duration + '/' + tower.durationx; _root.upgradeover = false; _root.UpgradeTowerInfo2.UpgradeButton._visible = false; _root.UpgradeTowerInfo2.sell_t.text = int(tower.upgrades[tower.level - 1][1] - tower.upgrades[tower.level - 1][1] * 20 / 100); } function newLevel() { ++_root.wave; updateInfoBar(); _root.creepCount = 0; _root.creepArray = []; if (_root.wave - 1 <= _root.waves.length - 1) { _root.inGameMessage('<b>Start Wave: ' + _root.wave + ' - Enemy Health: ' + _root.waves[_root.wave - 1][1] + ' </b>'); _root['spawnInterval' + _root.wave] = setInterval(_root, 'spawn', _root.waves[_root.wave - 1][3], _root.wave, 'creep1', _root.waves[_root.wave - 1][2], _root.waves[_root.wave - 1][1], _root.waves[_root.wave - 1][4], wp1._x, wp1._y, 'wp'); _root['creepEventInterval' + _root.wave] = setInterval(_root, 'creepEvent', 500); _root['spawned' + _root.wave] = _root.waves[_root.wave - 1][0]; } } function newLevel2() { ++_root.wave2; updateInfoBar(); _root.creepCount2 = 0; _root.creepArray2 = []; if (_root.wave2 - 1 < _root.waves2.length - 1) { _root.inGameMessage('<b>Start Wave: ' + _root.wave2 + ' - Enemy Health: ' + _root.waves2[_root.wave2 - 1][1] + ' </b>'); _root['spawnInterval' + _root.wave2] = setInterval(_root, 'spawn', _root.waves2[_root.wave2 - 1][3], _root.wave2, 'creep1', _root.waves2[_root.wave2 - 1][2], _root.waves2[_root.wave2 - 1][1], _root.waves2[_root.wave2 - 1][4], w2p1._x, w2p1._y, 'w2p'); _root['creepEventInterval' + _root.wave2] = setInterval(_root, 'creepEvent2', 500); _root['spawned' + _root.wave2] = _root.waves2[_root.wave2 - 1][0]; } } function creepEvent() { i = 0; while (i <= _root.creepArray.length) { if ('' + _root.creepArray[i] != '') { if (_root.creepArray[i].poison > 0) { _root.creepArray[i].health -= _root.creepArray[i].poison * _root.creepArray[i].health / 100; --_root.creepArray[i].poison; } } ++i; } } function creepEvent2() { i = 0; while (i <= _root.creepArray2.length) { if ('' + _root.creepArray2[i] != '') { if (_root.creepArray2[i].poison > 0) { _root.creepArray2[i].health -= _root.creepArray2[i].poison * _root.creepArray2[i].health / 100; --_root.creepArray2[i].poison; } } ++i; } } function spawn(level, creep, speed, health, gold, posx, posy, wave) { if (_root.remove == true) { clearInterval(_root['spawnInterval' + level]); } if (_root['spawned' + level] == 0 or _root.health <= 0) { clearInterval(_root['spawnInterval' + level]); } else { if (_root.pausegame == false) { --_root['spawned' + level]; ++_root.creepCount; ++_root.currentNumberOfCreeps; _root[creep].duplicateMovieClip('c' + _root.creepCount, 1000 + _root.creepCount); _root.spawn_so.start(0, 1); c = _root['c' + _root.creepCount]; _root.creepArray[_root.creepArray.length] = c; c.creep.gotoAndStop(level); c._x = posx; c._y = posy; c.speed = speed + speed * _root.difc * 5 / 100; c.maxspeed = speed + speed * _root.difc * 5 / 100; c.targ = 2; c.rnd = random(10); c.health = health + health * _root.difc * 20 / 100; c.maxHealth = health + health * _root.difc * 20 / 100; c.isDead = 0; c.gold = gold; c.lv = level; c.invi = 1; if (c.invisible == true) { c._alpha = 0; } else { c._alpha = 100; } } c.onEnterFrame = function () { if (_root.pausegame == false) { if (this.health <= 0) { if (this.boss == true) { ++_root.bosskill; if (_root.ulac1 == false) { if (_root.bosskill >= 1) { _root.ulac1 = true; i = 0; t = 0; for (;;) { if (!(i < 20 && t == 0)) break; if (_root.aryInv[i] == 'none') { t = 1; } else { ++i; } } if (t == 1) { _root.aryInv[i] = '1'; } } } if (_root.ulac2 == false) { if (_root.bosskill >= 4) { _root.ulac2 = true; i = 0; t = 0; for (;;) { if (!(i < 20 && t == 0)) break; if (_root.aryInv[i] == 'none') { t = 1; } else { ++i; } } if (t == 1) { _root.aryInv[i] = '2'; } } } if (_root.ulac3 == false) { if (_root.bosskill >= 6) { _root.ulac3 = true; i = 0; t = 0; for (;;) { if (!(i < 20 && t == 0)) break; if (_root.aryInv[i] == 'none') { t = 1; } else { ++i; } } if (t == 1) { _root.aryInv[i] = '3'; } } } if (_root.ulac4 == false) { if (_root.bosskill >= 8) { _root.ulac4 = true; i = 0; t = 0; for (;;) { if (!(i < 20 && t == 0)) break; if (_root.aryInv[i] == 'none') { t = 1; } else { ++i; } } if (t == 1) { _root.aryInv[i] = '4'; } } } } _root.kill(this); } if (this.speed < this.maxspeed) { this.speed += 0.1; } this.targX = _root[wave + this.targ]._x - 5 + this.rnd; this.targY = _root[wave + this.targ]._y - 5 + this.rnd; this.dir = Math.atan2(this.targY - this._y, this.targX - this._x) * 180 / 3.141593; this.r = this.dir + Math.sin((getTimer() + this.rnd * 100) / 100) * 7; if (this.creep._rotation + 10 < this.r) { this.creep._rotation += 10; } else { if (this.creep._rotation - 10 > this.r) { this.creep._rotation -= 10; } else { this.creep._rotation = r; } } this.rads = this.dir * 3.141593 / 180; this._x += Math.cos(this.rads) * this.speed; this._y += Math.sin(this.rads) * this.speed; d = Math.sqrt(Math.pow(this._x - this.targX, 2) + Math.pow(this._y - this.targY, 2)); if (d < 5) { ++this.targ; if (this.targ == 17) { --_root.currentNumberOfCreeps; --_root.health; _root.combo = 0; _root.creepso.start(0, 1); _root.blood_hit.gotoAndPlay(2); ++_root.kills2; if (_root.kills2 >= _root.waves[_root.wave - 1][0]) { _root.kills2 = 0; _root.start_new_wave = true; } else { _root.start_new_wave = false; } _root.updateInfoBar(); if (_root.health <= 0) { this.creep.removeMovieClip(); _root.health = 0; _root.hasGameStarted = false; if (!_root.hasGameFinished) { _root.inGameMessage('<font color=\'#0000FF\'>Oh No! You let them break through, AHHHHGGGGRRRR!</font>'); } _parent.info_message._visible = false; _root.UpgradeTowerInfo._visible = false; stopAllSounds(); _root.gotoAndStop('lose'); _root.hasGameFinished = true; } if (_root.wave == _root.waves.length) { if (_root.currentNumberOfCreeps <= 0) { _root.hasGameStarted = false; _parent.info_message._visible = false; _root.UpgradeTowerInfo._visible = false; stopAllSounds(); _root.vic.gotoAndPlay('play'); } } } if (this.targ > 18) { _root.leak(this); _root.updateInfoBar(); } } this.health_bar.health._width = (30 / this.maxHealth) * this.health; this.health_bar._visible = true; } }; } } function Explosion(type, x, y) { i = 1; while (i <= 10) { ++_root.explosionCount; duplicateMovieClip(_root[type + '_explosion'], 'explosion' + _root.explosionCount, 4900 + _root.explosionCount); a = _root['explosion' + _root.explosionCount]; a._x = x; a._y = y; a.rads = random(360); a.speed = (5 + random(20)) / 5; a._rotation = a.rads; a.onEnterFrame = function () { this._x += Math.cos(this.rads) * this.speed; this._y += Math.sin(this.rads) * this.speed; this._alpha -= 5; if (this.speed > 0.5) { this.speed -= 0.5; } if (this._alpha <= 0) { this.removeMovieClip(); } }; ++i; } if (_root.explosionCount > 100) { _root.explosionCount = 0; } } function Explosion2(type, x, y) { i = 1; while (i <= 5) { ++_root.explosionCount; duplicateMovieClip(_root[type + '_explosion'], 'explosion' + _root.explosionCount, 4900 + _root.explosionCount); a = _root['explosion' + _root.explosionCount]; a._x = x; a._y = y; a.rads = random(360); a.speed = (5 + random(20)) / 5; a._rotation = a.rads; a.onEnterFrame = function () { this._x += Math.cos(this.rads) * this.speed; this._y += Math.sin(this.rads) * this.speed; this._alpha -= 3; if (this.speed > 0.5) { this.speed -= 0.5; } if (this._alpha <= 0) { this.removeMovieClip(); } }; ++i; } if (_root.explosionCount > 5) { _root.explosionCount = 0; } } function Explosion3(type, x, y) { i = 1; while (i <= 2) { ++_root.explosionCount; duplicateMovieClip(_root[type + '_explosion'], 'explosion' + _root.explosionCount, 4900 + _root.explosionCount); a = _root['explosion' + _root.explosionCount]; a._x = x; a._y = y; a.speed = (5 + random(20)) / 5; a.onEnterFrame = function () { this._x += Math.cos(this.rads) * this.speed; this._y += Math.sin(this.rads) * this.speed; this._alpha -= 2; if (this.speed > 0.5) { this.speed -= 0.5; } if (this._alpha <= 0) { this.removeMovieClip(); } }; ++i; } if (_root.explosionCount > 2) { _root.explosionCount = 0; } } function boss_die(x, y) { if (_root.die_type[_root.wave - 1] == 1) { _root.human_die_so.start(0, 1); duplicateMovieClip(_root.human_die_explosion, 'explosion' + _root.explosionCount, 4900 + _root.explosionCount); a = _root['explosion' + _root.explosionCount]; a._x = x; a._y = y; a.speed = (5 + random(20)) / 5; a.onEnterFrame = function () { this._x += Math.cos(this.rads) * this.speed; this._y += Math.sin(this.rads) * this.speed; this._alpha -= 5; if (this.speed > 0.5) { this.speed -= 0.5; } if (this._alpha <= 0) { this.removeMovieClip(); } }; } else { if (_root.die_type[_root.wave - 1] == 3) { _root.exp.start(0, 1); duplicateMovieClip(_root.big_boss_die_explosion, 'explosion' + _root.explosionCount, 4900 + _root.explosionCount); a = _root['explosion' + _root.explosionCount]; a._x = x; a._y = y; a.speed = (5 + random(20)) / 5; a.onEnterFrame = function () { this._x += Math.cos(this.rads) * this.speed; this._y += Math.sin(this.rads) * this.speed; this._alpha -= 2; if (this.speed > 0.5) { this.speed -= 0.5; } if (this._alpha <= 0) { this.removeMovieClip(); } }; } else { _root.exp3.start(0, 1); duplicateMovieClip(_root.boss_die_explosion, 'explosion' + _root.explosionCount, 4900 + _root.explosionCount); a = _root['explosion' + _root.explosionCount]; a._x = x; a._y = y; a.speed = (5 + random(20)) / 5; a.onEnterFrame = function () { this._x += Math.cos(this.rads) * this.speed; this._y += Math.sin(this.rads) * this.speed; this._alpha -= 4; if (this.speed > 0.5) { this.speed -= 0.5; } if (this._alpha <= 0) { this.removeMovieClip(); } }; } } } function fire(from, to, speed, acc, maxspeed, projectile, damage, splash, slow, poison, type) { if (_root.pausegame == false) { ++_root.particleCount; _root[projectile].duplicateMovieClip('p' + _root.particleCount, 2000 + _root.particleCount); r = _root['p' + _root.particleCount]; dir = Math.atan2(from._y - to._y, from._x - to._x) * 180 / 3.141593; rads = dir * 3.141593 / 180; r._x = from._x; r._y = from._y; r._x -= Math.cos(rads) * (from._width / 2); r._y -= Math.sin(rads) * (from._height / 2); r.targ = to; if ('' + to == '') { r.removeMovieClip(); } r.type = type; r.speed = speed; r.acc = acc; r.maxspeed = maxspeed; r.projectile = projectile; r.damage = damage + damage * _root.damage_lvl * 10 / 100; r.splash = splash; r.slow = slow; r.poison = poison; } r.onEnterFrame = function () { if (_root.pausegame == true) { r.maxspeed = 0; r.speed = 0; r.damage = 0; r.splash = 0; r.slow = 0; r.poison = 0; } else { r.maxspeed = maxspeed; r.speed = speed; r.damage = damage; r.splash = splash; r.slow = slow; r.poison = poison; } if ('' + this.targ != '') { this.targX = this.targ._x; this.targY = this.targ._y; } else { if ('' + this.targX == 'undefined') { this.removeMovieClip(); } } this.dir = Math.atan2(this.targY - this._y, this.targX - this._x) * 180 / 3.141593; this._rotation = this.dir + 90; this.rads = this.dir * 3.141593 / 180; this._x += Math.cos(this.rads) * this.speed; this._y += Math.sin(this.rads) * this.speed; if (this.speed < this.maxspeed) { this.speed += this.acc; } d = Math.sqrt(Math.pow(this._x - this.targX, 2) + Math.pow(this._y - this.targY, 2)); if (d < 200) { this._alpha = 100; } if (d < 10) { Explosion(projectile, this._x, this._y); if (this.slow > 0) { this.targ.speed = (this.targ.maxspeed / 100) * (100 - this.slow); } if (this.poison > 0) { this.targ.poison = this.poison; } if (this.splash > 0) { i = 0; while (i <= _root.creepArray.length) { if ('' + _root.creepArray[i] != '' && _root.creepArray[i] != this.targ) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < this.splash) { _root.creepArray[i].health -= this.damage * (1 - d / this.splash); if (this.slow > 0) { _root.creepArray[i].speed = (_root.creepArray[i].maxspeed / 100) * (100 - this.slow); } if (this.poison > 0) { _root.creepArray[i].poison = int(this.poison * (d / this.splash)); } } } ++i; } } this.targ.health -= this.damage; if (targ.health <= 0) { targ.isDead = 1; } this.removeMovieClip(); } if (_root.particleCount > 50) { _root.particleCount = 0; } }; } function fire2(from, to, speed, acc, maxspeed, projectile, damage, splash, slow, poison, type) { if (_root.pausegame == false) { ++_root.particleCount; _root[projectile].duplicateMovieClip('p' + _root.particleCount, 2000 + _root.particleCount); r = _root['p' + _root.particleCount]; dir = Math.atan2(from._y - to._y, from._x - to._x) * 180 / 3.141593; rads = dir * 3.141593 / 180; r._x = from._x; r._y = from._y; r._x -= Math.cos(rads) * (from._width / 2); r._y -= Math.sin(rads) * (from._height / 2); r.targ = to; if ('' + to == '') { r.removeMovieClip(); } r.type = type; r.speed = speed; r.acc = acc; r.maxspeed = maxspeed; r.projectile = projectile; r.damage = damage + damage * _root.damage_lvl * 10 / 100; r.splash = splash; r.slow = slow; r.poison = poison; } r.onEnterFrame = function () { if (_root.pausegame == true) { r.maxspeed = 0; r.speed = 0; r.damage = 0; r.splash = 0; r.slow = 0; r.poison = 0; } else { r.maxspeed = maxspeed; r.speed = speed; r.damage = damage; r.splash = splash; r.slow = slow; r.poison = poison; } if ('' + this.targ != '') { this.targX = this.targ._x; this.targY = this.targ._y; } else { if ('' + this.targX == 'undefined') { this.removeMovieClip(); } } this.dir = Math.atan2(this.targY - this._y, this.targX - this._x) * 180 / 3.141593; this._rotation = this.dir + 90; this.rads = this.dir * 3.141593 / 180; this._x += Math.cos(this.rads) * this.speed; this._y += Math.sin(this.rads) * this.speed; if (this.speed < this.maxspeed) { this.speed += this.acc; } d = Math.sqrt(Math.pow(this._x - this.targX, 2) + Math.pow(this._y - this.targY, 2)); if (d < 200) { this._alpha = 100; } if (d < 10) { Explosion2(projectile, this._x, this._y); if (this.slow > 0) { this.targ.speed = (this.targ.maxspeed / 100) * (100 - this.slow); } if (this.poison > 0) { this.targ.poison = this.poison; } if (this.splash > 0) { i = 0; while (i <= _root.creepArray.length) { if ('' + _root.creepArray[i] != '' && _root.creepArray[i] != this.targ) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < this.splash) { _root.creepArray[i].health -= this.damage * (1 - d / this.splash); if (this.slow > 0) { _root.creepArray[i].speed = (_root.creepArray[i].maxspeed / 100) * (100 - this.slow); } if (this.poison > 0) { _root.creepArray[i].poison = int(this.poison * (d / this.splash)); } } } ++i; } } this.targ.health -= this.damage; if (targ.health <= 0) { targ.isDead = 1; } this.removeMovieClip(); } if (_root.particleCount > 50) { _root.particleCount = 0; } }; } function fire3(from, to, speed, acc, maxspeed, projectile, damage, splash, slow, poison, type) { if (_root.pausegame == false) { ++_root.particleCount; _root[projectile].duplicateMovieClip('p' + _root.particleCount, 2000 + _root.particleCount); r = _root['p' + _root.particleCount]; dir = Math.atan2(from._y - to._y, from._x - to._x) * 180 / 3.141593; rads = dir * 3.141593 / 180; r._x = from._x; r._y = from._y; r._x -= Math.cos(rads) * (from._width / 2); r._y -= Math.sin(rads) * (from._height / 2); r.targ = to; if ('' + to == '') { r.removeMovieClip(); } r.type = type; r.speed = speed; r.acc = acc; r.maxspeed = maxspeed; r.projectile = projectile; r.damage = damage + damage * _root.damage_lvl * 10 / 100; r.splash = splash; r.slow = slow; r.poison = poison; } r.onEnterFrame = function () { if (_root.pausegame == true) { r.maxspeed = 0; r.speed = 0; r.damage = 0; r.splash = 0; r.slow = 0; r.poison = 0; } else { r.maxspeed = maxspeed; r.speed = speed; r.damage = damage; r.splash = splash; r.slow = slow; r.poison = poison; } if ('' + this.targ != '') { this.targX = this.targ._x; this.targY = this.targ._y; } else { if ('' + this.targX == 'undefined') { this.removeMovieClip(); } } this.dir = Math.atan2(this.targY - this._y, this.targX - this._x) * 180 / 3.141593; this._rotation = this.dir + 90; this.rads = this.dir * 3.141593 / 180; this._x += Math.cos(this.rads) * this.speed; this._y += Math.sin(this.rads) * this.speed; if (this.speed < this.maxspeed) { this.speed += this.acc; } d = Math.sqrt(Math.pow(this._x - this.targX, 2) + Math.pow(this._y - this.targY, 2)); if (d < 200) { this._alpha = 100; } if (d < 10) { Explosion3(projectile, this._x, this._y); if (this.slow > 0) { this.targ.speed = (this.targ.maxspeed / 100) * (100 - this.slow); } if (this.poison > 0) { this.targ.poison = this.poison; } if (this.splash > 0) { i = 0; while (i <= _root.creepArray.length) { if ('' + _root.creepArray[i] != '' && _root.creepArray[i] != this.targ) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < this.splash) { _root.creepArray[i].health -= this.damage * (1 - d / this.splash); if (this.slow > 0) { _root.creepArray[i].speed = (_root.creepArray[i].maxspeed / 100) * (100 - this.slow); } if (this.poison > 0) { _root.creepArray[i].poison = int(this.poison * (d / this.splash)); } } } ++i; } } this.targ.health -= this.damage; if (targ.health <= 0) { targ.isDead = 1; } this.removeMovieClip(); } if (_root.particleCount > 50) { _root.particleCount = 0; } }; } function kill(creep) { ++_root.kills; ++_root.combo; ++_root.kills2; if (_root.kills2 >= _root.waves[_root.wave - 1][0]) { _root.kills2 = 0; _root.start_new_wave = true; } else { _root.start_new_wave = false; } creep.onEnterFrame = function () { _root.hit.start(0, 1); boss_die(this._x, this._y); --_root.currentNumberOfCreeps; _root.gold += creep.gold + creep.gold * _root.money_lvl * 10 / 100; trace(creep.gold * _root.money_lvl * 10 / 100); _root.score += creep.gold * 10 + _root.combo; updateInfoBar(); if (_root.wave == _root.waves.length) { if (_root.currentNumberOfCreeps <= 0) { _root.hasGameStarted = false; _parent.info_message._visible = false; _root.UpgradeTowerInfo._visible = false; stopAllSounds(); _root.vic.gotoAndPlay('play'); } } this.removeMovieClip(); }; } function leak(creep) { ++_root.creepLeaks; _root.exp2.start(0, 1); if (!_root.hasGameFinished) { creep.removeMovieClip(); } } function updateScore() { _root.score += int(a); } function sell() { string = 'a'; _root.UpgradeTowerInfo._visible = false; a = _root.selectedTower; if (a.upgrades.length >= a.level) { _root.gold += int(a.upgrades[a.level - 1][1] - a.upgrades[a.level - 1][1] * 20 / 100); } else { _root.gold += int(a.upgrades[a.level - 2][1] - a.upgrades[a.level - 2][1] * 20 / 100) * 2; } a.removeMovieClip(); _root.selectedTower = ''; _root.ranger._x = 3000; _root.selectlight._x = 3000; _root.ranger._width = 10; _root.ranger._height = 10; _root.updateInfoBar(); } function sell2() { string = 'a'; _root.UpgradeTowerInfo._visible = false; a = _root.selectedTower; _root.gold += 13; theName = 'ar' + _root.selectedTower._name; (eval(theName)).swapDepths(0); (eval(theName)).removeMovieClip(); a.removeMovieClip(); _root.selectedTower = ''; _root.ranger._x = 3000; _root.selectlight._x = 3000; _root.ranger._width = 10; _root.ranger._height = 10; _root.updateInfoBar(); _root.select_invi = false; } function upgrade() { a = _root.selectedTower; b = a.level - 1; if (a.upgrades.length > a.level - 1) { if (int(a.upgrades[b][1]) <= _root.gold) { a.damage = int(a.upgrades[b][2]); a.range = a.upgrades[b][3]; a.rate = a.upgrades[b][4]; a.splash = a.upgrades[b][5]; a.slow = a.upgrades[b][6]; a.cost += int(a.upgrades[b][1]); ++a.level; _root.towerInfo(_root.selectedTower); _root.gold -= int(a.upgrades[b][1]); _root.upgradeso.start(0, 1); _root.updateInfoBar(); } } if (a.upgrades.length == a.level) { _root.maxlevel = true; _root.updateInfoBar(); } } function updateInfoBar() { _root.levels.text = _root.wave; _root.InfoBar.GoldAmount.text = _root.gold; _root.InfoBar.KillAmount.text = _root.kills; _root.KillAmount.text = _root.kills; _root.InfoBar.HealthAmount.text = _root.health; _root.InfoBar.ScoreAmount.text = _root.score; } function inGameMessage(n) { _root.ingame_message.htmlText = n + '<br>' + _root.ingame_message.htmlText; _root.ingame_message.vPosition = _root.ingame_message.maxVPosition; } _root.black_screen.gotoAndPlay(2); if (_root.openmap == false) { stopAllSounds(); _root.opening.start(0, 999); } stop(); _root.die_type = [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 3, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 1, 2, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3]; _root.difc = 1; _root.map_s = 0; _root.ending_fn = false; up_box._visible = false; _root.victory = false; _root.selectlight._x = 3000; _root.invisible_w = false; _root.upgradeover = false; _root.play_music = 'on'; _root.select_invi = false; _root.alienname = 'none'; _root.towerdeselect = false; _root.black_screen.gotoAndPlay(2); _root.pausegame = false; _root.pages = 'map'; aryInv = new Array(19); i = 0; while (i < 20) { aryInv[i] = 'none'; ++i; } var iso = 0; var dep = 1; _root.up_select = 'none'; _root.money_lvl = 0; _root.life_lvl = 0; _root.tech_lvl = 0; _root.damage_lvl = 0; _root.range_lvl = 0; _root.dur_lvl = 0; _root.combo = 0; _root.score = 0; _root.start_new_wave = true; _root.wave = 0; _root.u_lv = 0; _root.hasGameStarted = false; _root.hasGameFinished = false; _root.towerCount = 0; _root.towerCounts = 0; _root.selectedTower = ''; _root.currentNumberOfCreeps = 0; _root.creepCount = 0; _root.creepArray = []; _root.creepLeaks = 0; _root.explosionCount = 0; _root.particleCount = 0; _root.kills = 0; _root.kills2 = 0; _root.bosskill = 0; _root.gold = 10000; _root.count = 1; _root.maxCount = 12; _root.updateDuration = 2; _root.health = 20; _root.sellgold = 0; _root.remove = true; _root.updateInfoBar(); _root.times.text = _root.maxCount; storage.data.slot1 = _root.ulac1; storage.data.slot2 = _root.ulac2; storage.data.slot3 = _root.ulac3; storage.data.slot4 = _root.ulac4; storage.data.slot5 = _root.ulac5; storage.data.slot6 = _root.ulac6; storage.data.slot7 = _root.ulac7; storage.data.slot8 = _root.ulac8; storage.data.slot9 = _root.ulac9; storage.data.slot10 = _root.ulac10; storage.data.slot11 = _root.ulac11; storage.data.slot12 = _root.ulac12; storage.data.score1 = _root.score; storage.data.save_file = true; _root.inGameMessage('Website: <b><u><a href=\'http://www.walterreid.com\'>walterreid.com</a></u></b>'); _root.inGameMessage('Author: Walter Reid, 2008'); _root.inGameMessage('-----'); } movieClip 524 { } movieClip 525 { } movieClip 526 { } movieClip 527 { } movieClip 528 { } movieClip 529 { } movieClip 530 { } movieClip 531 { } movieClip 532 { } movieClip 533 { } movieClip 534 { } movieClip 535 { } movieClip 536 { } movieClip 537 { } movieClip 538 { } movieClip 540 { } movieClip 542 { } movieClip 543 { } movieClip 545 { } movieClip 547 { } movieClip 549 { } movieClip 550 { } movieClip 552 { } movieClip 554 { } movieClip 557 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 560 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 563 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 564 { frame 17 { stop(); } instance of movieClip 557 { onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this.gotoAndStop(1); getURL('http://www.startonlinegames.com', '_blank'); } } instance of movieClip 560 { onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this.gotoAndStop(1); _root.map.gotoAndPlay('play'); } } instance of movieClip 563 { onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { this.gotoAndStop(1); _root.instructions.gotoAndPlay('play'); } } } instance of movieClip 564 { onClipEvent (load) { if (_root.openmap == true) { this.gotoAndStop('openmap'); } } onClipEvent (enterFrame) { if (_root.openmap == true) { gotoAndStop('openmap'); } } } movieClip 566 { } movieClip 567 { } movieClip 568 { frame 40 { stop(); } } instance of movieClip 568 { onClipEvent (load) { if (_root.openmap == true) { this.gotoAndStop('openmap'); } } onClipEvent (enterFrame) { if (_root.openmap == true) { gotoAndStop('openmap'); } } } movieClip 571 { } movieClip 572 { } button 578 { on (press) { _root.openmap = false; gotoAndPlay('close'); } } movieClip 581 { } movieClip 583 { } movieClip 584 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 583 { onClipEvent (press) { _root.map_s = 7; _root.map.select.gotoAndPlay(2); } onClipEvent (rollOver) { _root.map.map_status7.gotoAndPlay(2); } onClipEvent (rollOut) { _root.map.map_status7.gotoAndPlay('off'); } } } movieClip 585 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 583 { onClipEvent (press) { _root.map_s = 6; _root.map.select.gotoAndPlay(2); } onClipEvent (rollOver) { _root.map.map_status6.gotoAndPlay(2); } onClipEvent (rollOut) { _root.map.map_status6.gotoAndPlay('off'); } } } movieClip 586 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 583 { onClipEvent (press) { _root.map_s = 5; _root.map.select.gotoAndPlay(2); } onClipEvent (rollOver) { _root.map.map_status5.gotoAndPlay(2); } onClipEvent (rollOut) { _root.map.map_status5.gotoAndPlay('off'); } } } movieClip 587 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 583 { onClipEvent (press) { _root.map_s = 4; _root.map.select.gotoAndPlay(2); } onClipEvent (rollOver) { _root.map.map_status4.gotoAndPlay(2); } onClipEvent (rollOut) { _root.map.map_status4.gotoAndPlay('off'); } } } movieClip 588 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 583 { onClipEvent (press) { _root.map_s = 3; _root.map.select.gotoAndPlay(2); } onClipEvent (rollOver) { _root.map.map_status3.gotoAndPlay(2); } onClipEvent (rollOut) { _root.map.map_status3.gotoAndPlay('off'); } } } movieClip 589 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 583 { onClipEvent (press) { _root.map_s = 2; _root.map.select.gotoAndPlay(2); } onClipEvent (rollOver) { _root.map.map_status2.gotoAndPlay(2); } onClipEvent (rollOut) { _root.map.map_status2.gotoAndPlay('off'); } } } movieClip 590 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 583 { onClipEvent (press) { _root.map_s = 1; _root.map.select.gotoAndPlay(2); } onClipEvent (rollOver) { _root.map.map_status1.gotoAndPlay(2); } onClipEvent (rollOut) { _root.map.map_status1.gotoAndPlay('off'); } } } // unknown tag 88 length 219 // unknown tag 88 length 68 movieClip 600 { frame 1 { bs.text = _root.map1_bs; } } movieClip 601 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 605 { frame 1 { bs.text = _root.map2_bs; } } movieClip 606 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 610 { frame 1 { bs.text = _root.map3_bs; } } movieClip 611 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 615 { frame 1 { bs.text = _root.map4_bs; } } movieClip 616 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 620 { frame 1 { bs.text = _root.map5_bs; } } movieClip 621 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 625 { frame 1 { bs.text = _root.map6_bs; } } movieClip 626 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 630 { frame 1 { bs.text = _root.map7_bs; } } movieClip 631 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 637 { } // unknown tag 88 length 162 movieClip 641 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 644 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 647 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 650 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 651 { frame 1 { stop(); } frame 10 { stop(); } instance of movieClip 641 { onClipEvent (press) { if (_root.map_s == 1) { _root.difc = 1; _root.gotoAndStop('map1'); } else { if (_root.map_s == 2) { _root.difc = 1; _root.gotoAndStop('map2'); } else { if (_root.map_s == 3) { _root.difc = 1; _root.gotoAndStop('map3'); } else { if (_root.map_s == 4) { _root.difc = 1; _root.gotoAndStop('map4'); } else { if (_root.map_s == 5) { _root.difc = 1; _root.gotoAndStop('map5'); } else { if (_root.map_s == 6) { _root.difc = 1; _root.gotoAndStop('map6'); } else { if (_root.map_s == 7) { _root.difc = 1; _root.gotoAndStop('map7'); } else { trace('error select'); } } } } } } } } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } } instance of movieClip 644 { onClipEvent (press) { if (_root.map_s == 1) { _root.difc = 2; _root.gotoAndStop('map1'); } else { if (_root.map_s == 2) { _root.difc = 2; _root.gotoAndStop('map2'); } else { if (_root.map_s == 3) { _root.difc = 2; _root.gotoAndStop('map3'); } else { if (_root.map_s == 4) { _root.difc = 2; _root.gotoAndStop('map4'); } else { if (_root.map_s == 5) { _root.difc = 2; _root.gotoAndStop('map5'); } else { if (_root.map_s == 6) { _root.difc = 2; _root.gotoAndStop('map6'); } else { if (_root.map_s == 7) { _root.difc = 2; _root.gotoAndStop('map7'); } else { trace('error select'); } } } } } } } } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } } instance of movieClip 647 { onClipEvent (press) { if (_root.map_s == 1) { _root.difc = 3; _root.gotoAndStop('map1'); } else { if (_root.map_s == 2) { _root.difc = 3; _root.gotoAndStop('map2'); } else { if (_root.map_s == 3) { _root.difc = 3; _root.gotoAndStop('map3'); } else { if (_root.map_s == 4) { _root.difc = 3; _root.gotoAndStop('map4'); } else { if (_root.map_s == 5) { _root.difc = 3; _root.gotoAndStop('map5'); } else { if (_root.map_s == 6) { _root.difc = 3; _root.gotoAndStop('map6'); } else { if (_root.map_s == 7) { _root.difc = 3; _root.gotoAndStop('map7'); } else { trace('error select'); } } } } } } } } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } } instance of movieClip 650 { onClipEvent (press) { _root.map.select.gotoAndPlay('back'); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } } } movieClip 652 { frame 1 { stop(); } frame 2 { stopAllSounds(); } frame 3 { _root.open_map.start(0, 1); } frame 27 { _root.openmap = true; } frame 27 { stop(); _root.MapChose.start(0, 999); } instance of movieClip 584 { onClipEvent (load) { if (_root.map7_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.map7_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 585 { onClipEvent (load) { if (_root.map6_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.map6_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 586 { onClipEvent (load) { if (_root.map5_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.map5_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 587 { onClipEvent (load) { if (_root.map4_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.map4_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 588 { onClipEvent (load) { if (_root.map3_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.map3_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 589 { onClipEvent (load) { if (_root.map2_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.map2_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 590 { onClipEvent (load) { if (_root.map1_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.map1_lock == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } frame 28 { stopAllSounds(); } frame 29 { _root.open_map.start(0, 1); } frame 37 { _root.opening.start(0, 999); } } instance map of movieClip 652 { onClipEvent (load) { if (_root.openmap == true) { this.gotoAndStop('openmap'); } } onClipEvent (enterFrame) { if (_root.openmap == true) { gotoAndStop('openmap'); } } } movieClip 655 { } button 661 { on (press) { gotoAndStop(2); } } movieClip 663 { } movieClip 666 { frame 1 { stop(); } frame 2 { stop(); } } button 674 { on (press) { gotoAndStop(1); } } button 675 { on (press) { gotoAndStop(3); } } button 681 { on (press) { gotoAndStop(2); } } button 682 { on (press) { gotoAndStop(4); } } button 686 { on (press) { gotoAndStop(3); } } button 687 { on (press) { gotoAndStop(5); } } button 690 { on (press) { gotoAndStop(4); } } button 691 { on (press) { gotoAndStop(6); } } button 694 { on (press) { gotoAndStop(5); } } button 695 { on (press) { gotoAndStop(7); } } button 700 { on (press) { gotoAndStop(6); } } button 701 { on (press) { gotoAndStop(8); } } button 704 { on (press) { gotoAndStop(7); } } movieClip 706 { frame 1 { stop(); } instance of movieClip 666 { onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { _root.instructions.gotoAndPlay('back'); } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } instance of movieClip 666 { onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { _root.instructions.gotoAndPlay('back'); } } } movieClip 707 { frame 1 { stop(); } frame 20 { stop(); } } movieClip 711 { } movieClip 713 { } button 718 { on (press) { getURL('http://www.startonlinegames.com/download.php', '_blank'); } } frame 4 { var keyListener = new Object(); stopAllSounds(); keyListener.onKeyUp = function () { if (Key.getCode() == 83) { if (_root.UpgradeTowerInfo._visible == true) { if (_root.select_invi == true) { _root.sell2(); _root.select_invi = false; _root.selectlight._x = 3000; } else { _root.sell(); _root.select_invi = false; _root.selectlight._x = 3000; } } } if (Key.getCode() == 65) { _root.upgrade(); } if (Key.getCode() == 32) { _root.sendCreepbt._visible = false; if (!_root.hasGameStarted) { _root.hasGameStarted = true; } if (_root.wave >= 0 && _root.wave - 1 <= _root.waves.length - 1) { if (_root.start_new_wave == true) { _root.start_new_wave = false; _root.score += _root.wave * (_root.maxCount - _root.count) * 10; trace(_root.wave); _root.gold += int(_root.gold * 0.03); _root.count = 1; _root.newLevel(); _root.newLevel2(); _root.level_msg.gotoAndPlay('play'); } } } }; Key.addListener(keyListener); } frame 4 { _root.black_screen.gotoAndPlay(2); trace(_root.difc); _root.m1.start(0, 999); _root.gold = 7000 - 7000 * _root.difc * 20 / 100; _root.map_select = '1'; up_box._visible = true; _root.remove = false; _root.money_lvl = 0; _root.life_lvl = 0; _root.tech_lvl = 2; _root.damage_lvl = 0; _root.range_lvl = 0; _root.dur_lvl = 0; updateInfoBar(); _root.game_mode = 'easy'; _root.pages = 'game1'; _root.game1so.start(0, 9999); _root.waves = [[5, 200, 2, 1300, 100], [7, 300, 2, 1300, 100], [5, 350, 2, 1300, 100], [7, 350, 2, 1300, 100], [5, 500, 3, 1300, 100], [7, 500, 3, 1300, 100], [5, 700, 3, 1300, 100], [5, 800, 3.5, 1800, 100], [5, 1800, 3, 1800, 200], [5, 1300, 4, 1500, 200], [5, 1300, 3, 1200, 200], [5, 1300, 3, 1200, 200], [3, 2500, 3, 2000, 200], [5, 2500, 3, 1300, 200], [5, 2200, 4, 1500, 200], [3, 2200, 3, 1200, 200], [5, 2200, 2, 1000, 200], [5, 4000, 3, 2500, 400], [5, 4000, 3, 1300, 400], [1, 9000, 2, 1000, 600]]; } movieClip 722 { } movieClip 723 { } instance deselect of movieClip 723 { onClipEvent (press) { _root.towerdeselect = false; _root.select_invi = false; _root.selectedTower = ''; _root.ranger._x = 3000; _root.selectlight._x = 3000; _root.ranger._width = 10; _root.ranger._height = 10; _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; } } movieClip 725 { } movieClip 727 { } // unknown tag 88 length 64 movieClip 731 { frame 2 { stop(); } } movieClip 732 { } movieClip 733 { } movieClip 741 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 742 { frame 1 { stop(); } } movieClip 744 { } movieClip 746 { } movieClip 747 { frame 1 { stop(); } } movieClip 748 { } movieClip 750 { frame 10 { stop(); } } movieClip 752 { frame 10 { stop(); } } movieClip 754 { frame 10 { stop(); } } movieClip 756 { } movieClip 757 { frame 10 { stop(); } } movieClip 758 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 759 { } instance tower_shot_gun of movieClip 759 { onClipEvent (load) { title = 'Shot Gun [Cost: $250]'; desc = 'Fast attack speed with medium damage and a medium range to shoot nearby unit'; type = 'Ground'; cost = '$1000'; range = 90; rate = 15; lastFire = rate; lastChecked = rate; creep = ''; target = 0; damage = 80; splash = 50; slow = 0; poison = 0; level = 1; kills = 0; upgrades = [['Damage: 20\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 1000, 160, 90, 15, 50, 0, 0], ['Damage: 40\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 2000, 320, 90, 15, 50, 10, 0], ['Damage: 60\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 3500, 640, 100, 15, 50, 20, 0], ['Damage: 80\rRange: 80\rSplash:No\rSlow:No\rPoison:No\r', 7000, 1280, 100, 15, 50, 30, 0]]; } onClipEvent (rollOver) { _root.towerdeselect = true; } onClipEvent (rollOut) { _root.towerdeselect = false; } onClipEvent (press) { _root.select_invi = false; _root.UpgradeTowerInfo.TowerInfoText4.text = 'Vulcan Turret'; _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.UpgradeTowerInfo._visible = true; _root.towerInfo(this); } onClipEvent (enterFrame) { if (_root.remove == true) { this.removeMovieClip(); } if (this.level == 1) { this.gun2.t.lv.gotoAndStop(1); } else { if (this.level == 2) { this.gun2.t.lv.gotoAndStop(2); } else { if (this.level == 3) { this.gun2.t.lv.gotoAndStop(3); } else { if (this.level == 4) { this.gun2.t.lv.gotoAndStop(4); } else { if (this.level == 5) { this.gun2.t.lv.gotoAndStop(5); } } } } } if (active == 1 && _root.creepArray.length > 0) { ++lastChecked; if (lastChecked >= rate) { lastChecked = 0; if (target == 0) { i = 0; while (i <= _root.creepArray.length) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < range + range * _root.range_lvl * 5 / 100 && _root.creepArray[i].invisible == false) { creep = _root.creepArray[i]; target = 1; break; } ++i; } } else { if ('' + creep == '') { target = 0; ++kills; if (kills > 10 && kills < 20) { this.rank.gotoAndStop(2); } else { if (kills > 20 && kills < 40) { this.rank.gotoAndStop(3); } else { if (kills > 40 && kills < 80) { this.rank.gotoAndStop(4); } else { if (kills > 80) { this.rank.gotoAndStop(5); } } } } } else { d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2)); if (d > range + range * _root.range_lvl * 5 / 100) { lastChecked = 999; target = 0; } else { gun2._rotation = Math.atan2(creep._y - this._y, creep._x - this._x) * 180 / 3.141593; _root.fire(this, creep, 10, 1, 10, 'projectile_cannonball', damage + damage * _root.damage_lvl * 10 / 100, splash, slow); if (_root.pausegame == false) { this.gun2.fire.gotoAndPlay(2); this.gun2.t.gotoAndPlay(2); _root.shot_gun_so.start(0, 1); } } } } } } } } movieClip 765 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 766 { frame 1 { stop(); } } movieClip 767 { frame 1 { stop(); } } movieClip 768 { } movieClip 769 { } instance tower_cannon of movieClip 769 { onClipEvent (load) { title = 'Hand Gun [Cost: $250]'; desc = 'Fast attack speed with medium damage and a medium range to shoot nearby unit'; type = 'Ground'; cost = '$500'; range = 80; rate = 12; lastFire = rate; lastChecked = rate; creep = ''; target = 0; damage = 60; splash = 0; slow = 0; poison = 0; kills = 0; level = 1; upgrades = [['Damage: 20\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 500, 120, 80, 12, 0, 0, 0], ['Damage: 40\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 1000, 240, 80, 12, 5, 5, 0], ['Damage: 60\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 1800, 480, 80, 12, 7, 7, 0], ['Damage: 80\rRange: 80\rSplash:No\rSlow:No\rPoison:No\r', 3500, 960, 80, 12, 10, 10, 0]]; } onClipEvent (rollOver) { _root.towerdeselect = true; } onClipEvent (rollOut) { _root.towerdeselect = false; } onClipEvent (press) { _root.select_invi = false; _root.UpgradeTowerInfo.TowerInfoText4.text = 'Vulcan Turret'; _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.UpgradeTowerInfo._visible = true; _root.towerInfo(this); } onClipEvent (enterFrame) { if (_root.remove == true) { this.removeMovieClip(); } if (this.level == 1) { this.gun1.t.lv.gotoAndStop(1); } else { if (this.level == 2) { this.gun1.t.lv.gotoAndStop(2); } else { if (this.level == 3) { this.gun1.t.lv.gotoAndStop(3); } else { if (this.level == 4) { this.gun1.t.lv.gotoAndStop(4); } else { if (this.level == 5) { this.gun1.t.lv.gotoAndStop(5); } } } } } if (active == 1 && _root.creepArray.length > 0) { ++lastChecked; if (lastChecked >= rate) { lastChecked = 0; if (target == 0) { i = 0; while (i <= _root.creepArray.length) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < range + range * _root.range_lvl * 5 / 100 && _root.creepArray[i].invisible == false) { creep = _root.creepArray[i]; target = 1; break; } ++i; } } else { if ('' + creep == '') { target = 0; ++kills; if (kills > 10 && kills < 20) { this.rank.gotoAndStop(2); } else { if (kills > 20 && kills < 40) { this.rank.gotoAndStop(3); } else { if (kills > 40 && kills < 80) { this.rank.gotoAndStop(4); } else { if (kills > 80) { this.rank.gotoAndStop(5); } } } } } else { d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2)); if (d > range + range * _root.range_lvl * 5 / 100) { lastChecked = 999; target = 0; } else { gun1._rotation = Math.atan2(creep._y - this._y, creep._x - this._x) * 180 / 3.141593; _root.fire(this, creep, 10, 1, 10, 'projectile_cannonball', damage + damage * _root.damage_lvl * 10 / 100, splash, slow); if (_root.pausegame == false) { this.gun1.fire.gotoAndPlay(2); this.gun1.t.gotoAndPlay(2); _root.hand_gun_so.start(0, 1); } } } } } } } } movieClip 775 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 777 { } movieClip 778 { frame 1 { stop(); } } movieClip 779 { frame 1 { stop(); } } movieClip 780 { } movieClip 781 { } instance tower_rocket of movieClip 781 { onClipEvent (load) { title = 'Shot Gun [Cost: $1400]'; desc = 'Fast attack speed with medium damage and a medium range to shoot nearby unit'; type = 'Ground'; cost = '$1400'; range = 120; rate = 15; lastFire = rate; lastChecked = rate; creep = ''; target = 0; damage = 100; splash = 120; slow = 70; poison = 0; level = 1; kills = 0; upgrades = [['Damage: 20\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 1400, 200, 120, 15, 120, 70, 0], ['Damage: 40\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 2600, 400, 120, 15, 120, 70, 0], ['Damage: 60\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 5200, 800, 120, 15, 120, 70, 0], ['Damage: 80\rRange: 80\rSplash:No\rSlow:No\rPoison:No\r', 9000, 1600, 120, 15, 120, 80, 0]]; } onClipEvent (rollOver) { _root.towerdeselect = true; } onClipEvent (rollOut) { _root.towerdeselect = false; } onClipEvent (press) { _root.select_invi = false; _root.UpgradeTowerInfo.TowerInfoText4.text = 'Vulcan Turret'; _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.UpgradeTowerInfo._visible = true; _root.towerInfo(this); } onClipEvent (enterFrame) { if (_root.remove == true) { this.removeMovieClip(); } if (this.level == 1) { this.gun3.t.lv.gotoAndStop(1); } else { if (this.level == 2) { this.gun3.t.lv.gotoAndStop(2); } else { if (this.level == 3) { this.gun3.t.lv.gotoAndStop(3); } else { if (this.level == 4) { this.gun3.t.lv.gotoAndStop(4); } else { if (this.level == 5) { this.gun3.t.lv.gotoAndStop(5); } } } } } if (active == 1 && _root.creepArray.length > 0) { ++lastChecked; if (lastChecked >= rate) { lastChecked = 0; if (target == 0) { i = 0; while (i <= _root.creepArray.length) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < range + range * _root.range_lvl * 5 / 100 && _root.creepArray[i].invisible == false) { creep = _root.creepArray[i]; target = 1; break; } ++i; } } else { if ('' + creep == '') { target = 0; ++kills; if (kills > 10 && kills < 20) { this.rank.gotoAndStop(2); } else { if (kills > 20 && kills < 40) { this.rank.gotoAndStop(3); } else { if (kills > 40 && kills < 80) { this.rank.gotoAndStop(4); } else { if (kills > 80) { this.rank.gotoAndStop(5); } } } } } else { d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2)); if (d > range + range * _root.range_lvl * 5 / 100) { lastChecked = 999; target = 0; } else { gun3._rotation = Math.atan2(creep._y - this._y, creep._x - this._x) * 180 / 3.141593; _root.fire2(this, creep, 10, 1, 10, 'projectile_rocket', damage + damage * _root.damage_lvl * 10 / 100, splash, slow); if (_root.pausegame == false) { this.gun3.fire.gotoAndPlay(2); this.gun3.t.gotoAndPlay(2); _root.rocket_gun_so.start(0, 1); } } } } } } } } movieClip 784 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 789 { } movieClip 790 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 796 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 797 { frame 1 { stop(); } } movieClip 798 { } movieClip 799 { } instance tower_sniper of movieClip 799 { onClipEvent (load) { title = 'Shot Gun [Cost: $250]'; desc = 'Fast attack speed with medium damage and a medium range to shoot nearby unit'; type = 'Ground'; cost = '$2000'; range = 140; rate = 15; lastFire = rate; lastChecked = rate; creep = ''; target = 0; damage = 120; splash = 0; slow = 0; poison = 0; level = 1; kills = 0; upgrades = [['Damage: 20\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 2000, 240, 140, 15, 0, 0, 0], ['Damage: 40\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 3500, 480, 140, 14, 0, 0, 0], ['Damage: 60\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 5000, 960, 140, 12, 5, 5, 0], ['Damage: 80\rRange: 80\rSplash:No\rSlow:No\rPoison:No\r', 10000, 1920, 150, 11, 10, 10, 0]]; } onClipEvent (rollOver) { _root.towerdeselect = true; } onClipEvent (rollOut) { _root.towerdeselect = false; } onClipEvent (press) { _root.select_invi = false; _root.UpgradeTowerInfo.TowerInfoText4.text = 'Vulcan Turret'; _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.UpgradeTowerInfo._visible = true; _root.towerInfo(this); } onClipEvent (enterFrame) { if (_root.remove == true) { this.removeMovieClip(); } if (this.level == 1) { this.gun4.t.lv.gotoAndStop(1); } else { if (this.level == 2) { this.gun4.t.lv.gotoAndStop(2); } else { if (this.level == 3) { this.gun4.t.lv.gotoAndStop(3); this.gun4.t.lv3.gotoAndStop(2); } else { if (this.level == 4) { this.gun4.t.lv.gotoAndStop(4); } else { if (this.level == 5) { this.gun4.t.lv.gotoAndStop(5); this.gun4.t.lv2.gotoAndStop(1); } } } } } if (active == 1 && _root.creepArray.length > 0) { ++lastChecked; if (lastChecked >= rate) { lastChecked = 0; if (target == 0) { i = 0; while (i <= _root.creepArray.length) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < range + range * _root.range_lvl * 5 / 100 && _root.creepArray[i].invisible == false) { creep = _root.creepArray[i]; target = 1; break; } ++i; } } else { if ('' + creep == '') { target = 0; ++kills; if (kills > 10 && kills < 20) { this.rank.gotoAndStop(2); } else { if (kills > 20 && kills < 40) { this.rank.gotoAndStop(3); } else { if (kills > 40 && kills < 80) { this.rank.gotoAndStop(4); } else { if (kills > 80) { this.rank.gotoAndStop(5); } } } } } else { d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2)); if (d > range + range * _root.range_lvl * 5 / 100) { lastChecked = 999; target = 0; } else { gun4._rotation = Math.atan2(creep._y - this._y, creep._x - this._x) * 180 / 3.141593; _root.fire(this, creep, 10, 1, 10, 'projectile_cannonball', damage + damage * _root.damage_lvl * 10 / 100, splash, slow); if (_root.pausegame == false) { this.gun4.fire.gotoAndPlay(2); this.gun4.t.gotoAndPlay(2); _root.sniper_gun_so.start(0, 1); } } } } } } } } movieClip 802 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 809 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 810 { frame 1 { stop(); } } movieClip 811 { } movieClip 812 { } instance tower_machine_gun of movieClip 812 { onClipEvent (load) { title = 'Shot Gun [Cost: $250]'; desc = 'Fast attack speed with medium damage and a medium range to shoot nearby unit'; type = 'Ground'; cost = '$3000'; range = 100; rate = 15; lastFire = rate; lastChecked = rate; creep = ''; target = 0; damage = 100; splash = 0; slow = 0; poison = 0; level = 1; kills = 0; upgrades = [['Damage: 20\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 3000, 200, 100, 15, 0, 0, 0], ['Damage: 40\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 6000, 400, 100, 14, 5, 5, 0], ['Damage: 60\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 10000, 800, 100, 13, 5, 5, 0], ['Damage: 80\rRange: 80\rSplash:No\rSlow:No\rPoison:No\r', 16000, 1600, 100, 12, 10, 10, 0]]; } onClipEvent (rollOver) { _root.towerdeselect = true; } onClipEvent (rollOut) { _root.towerdeselect = false; } onClipEvent (press) { _root.select_invi = false; _root.UpgradeTowerInfo.TowerInfoText4.text = 'Vulcan Turret'; _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.UpgradeTowerInfo._visible = true; _root.towerInfo(this); } onClipEvent (enterFrame) { if (_root.remove == true) { this.removeMovieClip(); } if (this.level == 1) { this.gun5.t.lv.gotoAndStop(1); } else { if (this.level == 2) { this.gun5.t.lv.gotoAndStop(2); } else { if (this.level == 3) { this.gun5.t.lv.gotoAndStop(3); this.gun5.t.lv3.gotoAndStop(2); } else { if (this.level == 4) { this.gun5.t.lv.gotoAndStop(4); } else { if (this.level == 5) { this.gun5.t.lv.gotoAndStop(5); this.gun5.t.lv2.gotoAndStop(1); } } } } } if (active == 1 && _root.creepArray.length > 0) { ++lastChecked; if (lastChecked >= rate) { lastChecked = 0; if (target == 0) { i = 0; while (i <= _root.creepArray.length) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < range + range * _root.range_lvl * 5 / 100 && _root.creepArray[i].invisible == false) { creep = _root.creepArray[i]; target = 1; break; } ++i; } } else { if ('' + creep == '') { target = 0; ++kills; if (kills > 10 && kills < 20) { this.rank.gotoAndStop(2); } else { if (kills > 20 && kills < 40) { this.rank.gotoAndStop(3); } else { if (kills > 40 && kills < 80) { this.rank.gotoAndStop(4); } else { if (kills > 80) { this.rank.gotoAndStop(5); } } } } } else { d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2)); if (d > range + range * _root.range_lvl * 5 / 100) { lastChecked = 999; target = 0; } else { gun5._rotation = Math.atan2(creep._y - this._y, creep._x - this._x) * 180 / 3.141593; _root.fire(this, creep, 10, 1, 10, 'projectile_mb', damage + damage * _root.damage_lvl * 10 / 100, splash, slow); _root.fire(this, creep, 10, 1, 10, 'projectile_mb', damage + damage * _root.damage_lvl * 10 / 100, splash, slow); _root.fire(this, creep, 10, 1, 10, 'projectile_mb', damage + damage * _root.damage_lvl * 10 / 100, splash, slow); if (_root.pausegame == false) { _root.m_gun_so.start(0, 1); this.gun5.fire.gotoAndPlay(2); this.gun5.t.gotoAndPlay(2); } } } } } } } } movieClip 815 { } movieClip 818 { frame 1 { stop(); } } movieClip 819 { } instance tower_ice_gun of movieClip 819 { onClipEvent (load) { title = 'Hand Gun [Cost: $250]'; desc = 'Fast attack speed with medium damage and a medium range to shoot nearby unit'; type = 'Ground'; cost = '$5000'; range = 130; rate = 15; lastFire = rate; lastChecked = rate; creep = ''; target = 0; damage = 200; splash = 150; slow = 150; poison = 0; kills = 0; level = 1; upgrades = [['Damage: 20\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 5000, 400, 130, 15, 150, 150, 0], ['Damage: 40\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 9000, 800, 130, 15, 150, 150, 0], ['Damage: 60\rRange: 70\rSplash:No\rSlow:No\rPoison:No\r', 15000, 1600, 130, 13, 150, 150, 0], ['Damage: 80\rRange: 80\rSplash:No\rSlow:No\rPoison:No\r', 30000, 3200, 130, 12, 150, 150, 0]]; } onClipEvent (rollOver) { _root.towerdeselect = true; } onClipEvent (rollOut) { _root.towerdeselect = false; } onClipEvent (press) { _root.select_invi = false; _root.UpgradeTowerInfo.TowerInfoText4.text = 'Vulcan Turret'; _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.UpgradeTowerInfo._visible = true; _root.towerInfo(this); } onClipEvent (enterFrame) { if (_root.remove == true) { this.removeMovieClip(); } if (this.level == 1) { this.gotoAndStop(2); } else { if (this.level == 2) { this.gotoAndStop(3); } else { if (this.level == 3) { this.gotoAndStop(4); } else { if (this.level == 4) { this.gotoAndStop(5); } else { if (this.level == 5) { this.gotoAndStop(6); } } } } } if (active == 1 && _root.creepArray.length > 0) { ++lastChecked; if (lastChecked >= rate) { lastChecked = 0; if (target == 0) { i = 0; while (i <= _root.creepArray.length) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < range + range * _root.range_lvl * 5 / 100 && _root.creepArray[i].invisible == false) { creep = _root.creepArray[i]; target = 1; break; } ++i; } } else { if ('' + creep == '') { target = 0; ++kills; if (kills > 10 && kills < 20) { this.rank.gotoAndStop(2); } else { if (kills > 20 && kills < 40) { this.rank.gotoAndStop(3); } else { if (kills > 40 && kills < 80) { this.rank.gotoAndStop(4); } else { if (kills > 80) { this.rank.gotoAndStop(5); } } } } } else { d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2)); if (d > range + range * _root.range_lvl * 5 / 100) { lastChecked = 999; target = 0; } else { gun1._rotation = Math.atan2(creep._y - this._y, creep._x - this._x) * 180 / 3.141593; _root.fire(this, creep, 10, 1, 10, 'projectile_ninja', damage + damage * _root.damage_lvl * 10 / 100, splash, slow); if (_root.pausegame == false) { _root.boom_so.start(0, 1); this.gun1.gotoAndPlay(2); } } } } } } } } movieClip 822 { } movieClip 824 { } instance of movieClip 824 { onClipEvent (press) { if (_root.gold >= 1000) { _root.select_invi = false; _root.selectlight._x = 3000; _root.marker.active = 1; _root.marker.tower = 'shot_gun'; _root.marker.cost = 1000; } else { _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.no_money.gotoAndPlay('play'); _root.CannotClick.start(0, 1); } _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; } onClipEvent (rollOver) { _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; _parent.info_message.speed.text = _root.tower_shot_gun.rate; _parent.info_message.power.text = _root.tower_shot_gun.damage + _root.tower_shot_gun.damage * _root.damage_lvl * 10 / 100; _parent.info_message.range.text = _root.tower_shot_gun.range + _root.tower_shot_gun.range * _root.range_lvl * 10 / 100; _parent.info_message.cost.text = _root.tower_shot_gun.cost; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _parent.info_message._visible = true; } onClipEvent (rollOut) { _root.no_money.gotoAndStop(1); _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; } } movieClip 827 { } movieClip 829 { } instance of movieClip 829 { onClipEvent (press) { if (_root.gold >= 500) { _root.select_invi = false; _root.selectlight._x = 3000; _root.marker.active = 1; _root.marker.tower = 'cannon'; _root.marker.cost = 500; } else { _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.no_money.gotoAndPlay('play'); _root.CannotClick.start(0, 1); } _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; } onClipEvent (rollOver) { _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; _parent.info_message.speed.text = _root.tower_cannon.rate; _parent.info_message.power.text = _root.tower_cannon.damage + _root.tower_cannon.damage * _root.damage_lvl * 10 / 100; _parent.info_message.range.text = _root.tower_cannon.range + _root.tower_cannon.range * _root.range_lvl * 10 / 100; _parent.info_message.cost.text = _root.tower_cannon.cost; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _parent.info_message._visible = true; } onClipEvent (rollOut) { _root.no_money.gotoAndStop(1); _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; } } movieClip 831 { } instance of movieClip 831 { onClipEvent (press) { if (_root.gold >= 1400) { _root.select_invi = false; _root.selectlight._x = 3000; _root.marker.active = 1; _root.marker.tower = 'rocket'; _root.marker.cost = 1400; } else { _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.no_money.gotoAndPlay('play'); _root.CannotClick.start(0, 1); } _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; } onClipEvent (rollOver) { _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; _parent.info_message.speed.text = _root.tower_rocket.rate; _parent.info_message.power.text = _root.tower_rocket.damage + _root.tower_rocket.damage * _root.damage_lvl * 10 / 100; _parent.info_message.range.text = _root.tower_rocket.range + _root.tower_rocket.range * _root.range_lvl * 10 / 100; _parent.info_message.cost.text = _root.tower_rocket.cost; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _parent.info_message._visible = true; } onClipEvent (rollOut) { _root.no_money.gotoAndStop(1); _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; } } movieClip 834 { } movieClip 835 { } instance of movieClip 835 { onClipEvent (press) { if (_root.gold >= 2000) { _root.select_invi = false; _root.selectlight._x = 3000; _root.marker.active = 1; _root.marker.tower = 'sniper'; _root.marker.cost = 2000; } else { _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.no_money.gotoAndPlay('play'); _root.CannotClick.start(0, 1); } _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; } onClipEvent (rollOver) { _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; _parent.info_message.speed.text = _root.tower_sniper.rate; _parent.info_message.power.text = _root.tower_sniper.damage + _root.tower_sniper.damage * _root.damage_lvl * 10 / 100; _parent.info_message.range.text = _root.tower_sniper.range + _root.tower_sniper.range * _root.range_lvl * 10 / 100; _parent.info_message.cost.text = _root.tower_sniper.cost; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _parent.info_message._visible = true; } onClipEvent (rollOut) { _root.no_money.gotoAndStop(1); _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; } } movieClip 838 { } movieClip 840 { } movieClip 841 { } instance of movieClip 841 { onClipEvent (press) { if (_root.gold >= 3000) { _root.select_invi = false; _root.selectlight._x = 3000; _root.marker.active = 1; _root.marker.tower = 'machine_gun'; _root.marker.cost = 3000; } else { _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.no_money.gotoAndPlay('play'); _root.CannotClick.start(0, 1); } _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; } onClipEvent (rollOver) { _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; _parent.info_message.speed.text = _root.tower_machine_gun.rate; _parent.info_message.power.text = _root.tower_machine_gun.damage + _root.tower_machine_gun.damage * _root.damage_lvl * 10 / 100; _parent.info_message.range.text = _root.tower_machine_gun.range + _root.tower_machine_gun.range * _root.range_lvl * 10 / 100; _parent.info_message.cost.text = _root.tower_machine_gun.cost; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _parent.info_message._visible = true; } onClipEvent (rollOut) { _root.no_money.gotoAndStop(1); _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; } } movieClip 843 { } instance of movieClip 843 { onClipEvent (press) { if (_root.gold >= 5000) { _root.select_invi = false; _root.selectlight._x = 3000; _root.marker.active = 1; _root.marker.tower = 'ice_gun'; _root.marker.cost = 5000; } else { _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.no_money.gotoAndPlay('play'); _root.CannotClick.start(0, 1); } _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; } onClipEvent (rollOver) { _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; _parent.info_message.speed.text = _root.tower_ice_gun.rate; _parent.info_message.power.text = _root.tower_ice_gun.damage + _root.tower_ice_gun.damage * _root.damage_lvl * 10 / 100; _parent.info_message.range.text = _root.tower_ice_gun.range + _root.tower_ice_gun.range * _root.range_lvl * 20 / 100; _parent.info_message.cost.text = _root.tower_ice_gun.cost; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _parent.info_message._visible = true; } onClipEvent (rollOut) { _root.no_money.gotoAndStop(1); _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; } } movieClip 845 { } instance of movieClip 845 { onClipEvent (press) { if (_root.gold >= 1000) { _root.select_invi = false; _root.selectlight._x = 3000; _root.marker2.active = 1; _root.marker2.tower = 'snow'; _root.marker2.cost = 1000; } else { _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.no_money.gotoAndPlay('play'); _root.CannotClick.start(0, 1); } _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; } onClipEvent (rollOver) { _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; _parent.info_message2.slow.text = _root.tower_snow.slowx + '%'; _parent.info_message2.duration.text = _root.tower_snow.duration + _root.dur_lvl * _root.tower_snow.duration * 10 / 100; _parent.info_message2.cost.text = _root.tower_snow.cost; _parent.info_message2._visible = true; _parent.info_message._visible = false; _parent.info_message3._visible = false; } onClipEvent (rollOut) { _root.no_money.gotoAndStop(1); _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; } } movieClip 847 { } instance of movieClip 847 { onClipEvent (press) { if (_root.gold >= 2000) { _root.select_invi = false; _root.selectlight._x = 3000; _root.marker2.active = 1; _root.marker2.tower = 'stick'; _root.marker2.cost = 2000; } else { _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.no_money.gotoAndPlay('play'); _root.CannotClick.start(0, 1); } _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; } onClipEvent (rollOver) { _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; _parent.info_message2.slow.text = _root.tower_stick.slowx + '%'; _parent.info_message2.duration.text = _root.tower_stick.duration + _root.dur_lvl * _root.tower_snow.duration * 10 / 100; _parent.info_message2.cost.text = _root.tower_stick.cost; _parent.info_message2._visible = true; _parent.info_message._visible = false; _parent.info_message3._visible = false; } onClipEvent (rollOut) { _root.no_money.gotoAndStop(1); _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; } } movieClip 849 { } instance of movieClip 849 { onClipEvent (press) { if (_root.gold >= 3000) { _root.select_invi = false; _root.selectlight._x = 3000; _root.marker2.active = 1; _root.marker2.tower = 'hold'; _root.marker2.cost = 3000; } else { _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.no_money.gotoAndPlay('play'); _root.CannotClick.start(0, 1); } _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; } onClipEvent (rollOver) { _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; _parent.info_message2.slow.text = _root.tower_hold.slowx + '%'; _parent.info_message2.duration.text = _root.tower_hold.duration + _root.dur_lvl * _root.tower_snow.duration * 10 / 100; _parent.info_message2.cost.text = _root.tower_hold.cost; _parent.info_message2._visible = true; _parent.info_message._visible = false; _parent.info_message3._visible = false; } onClipEvent (rollOut) { _root.no_money.gotoAndStop(1); _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; } } movieClip 851 { } instance of movieClip 851 { onClipEvent (press) { if (_root.gold >= 5000) { _root.select_invi = false; _root.selectlight._x = 3000; _root.marker2.active = 1; _root.marker2.tower = 'bom'; _root.marker2.cost = 5000; } else { _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; _root.no_money.gotoAndPlay('play'); _root.CannotClick.start(0, 1); } _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; } onClipEvent (rollOver) { _root.UpgradeTowerInfo._visible = false; _root.UpgradeTowerInfo2._visible = false; _parent.info_message3.damage.text = _root.tower_bom.damage; _parent.info_message3.duration.text = _root.tower_bom.duration; _parent.info_message3.cost.text = _root.tower_bom.cost; _parent.info_message3._visible = true; _parent.info_message2._visible = false; _parent.info_message._visible = false; } onClipEvent (rollOut) { _root.no_money.gotoAndStop(1); _parent.info_message._visible = false; _parent.info_message2._visible = false; _parent.info_message3._visible = false; } } movieClip 853 { } movieClip 854 { } movieClip 856 { } movieClip 857 { } movieClip 858 { } movieClip 859 { } movieClip 860 { } movieClip 861 { } movieClip 862 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 865 { } movieClip 866 { instance of movieClip 862 { onClipEvent (load) { if (_root.marker.tower == 'cannon') { this.gotoAndStop(1); } else { if (_root.marker.tower == 'shot_gun') { this.gotoAndStop(2); } else { if (_root.marker.tower == 'rocket') { this.gotoAndStop(3); } else { if (_root.marker.tower == 'sniper') { this.gotoAndStop(4); } else { if (_root.marker.tower == 'machine_gun') { this.gotoAndStop(5); } else { if (_root.marker.tower == 'ice_gun') { this.gotoAndStop(6); } } } } } } } onClipEvent (enterFrame) { if (_root.marker.tower == 'cannon') { gotoAndStop(1); } else { if (_root.marker.tower == 'shot_gun') { gotoAndStop(2); } else { if (_root.marker.tower == 'rocket') { gotoAndStop(3); } else { if (_root.marker.tower == 'sniper') { gotoAndStop(4); } else { if (_root.marker.tower == 'machine_gun') { gotoAndStop(5); } else { if (_root.marker.tower == 'ice_gun') { gotoAndStop(6); } } } } } } } } } instance marker of movieClip 866 { onClipEvent (load) { active = 0; } onClipEvent (enterFrame) { if (active == 1) { _x = int((_root._xmouse - 25) / 50) * 50 + 50; _y = int((_root._ymouse - 25) / 50) * 50 + 50; hitTestOnGrassMovieClip = _root.grass.hitTest(_x, _y, 1); if (hitTestOnGrassMovieClip && _root.towerdeselect == false) { gotoAndStop(1); _root.ranger.gotoAndStop(1); } else { gotoAndStop(2); _root.ranger.gotoAndStop(2); } _root.ranger._x = _x; _root.ranger._y = _y; _root.ranger._width = (_root['tower_' + tower].range + _root['tower_' + tower].range * _root.range_lvl * 10 / 100) * 2; _root.ranger._height = (_root['tower_' + tower].range + _root['tower_' + tower].range * _root.range_lvl * 10 / 100) * 2; } } onClipEvent (press) { hitTestOnGrassMovieClip = _root.grass.hitTest(_x, _y, 1); hitTestOnDeSelectMovieClip = _root.deselect.hitTest(_x, _y, 1); if (hitTestOnGrassMovieClip || hitTestOnDeSelectMovieClip) { if (hitTestOnGrassMovieClip && _root.towerdeselect == false && !_root.hasGameFinished) { if (_root.gold >= cost) { _root.BuildSound.start(0, 1); ++_root.towerCount; _root['tower_' + tower].duplicateMovieClip('t' + _root.towerCount, 500 + _root.towerCount); a = _root['t' + _root.towerCount]; a._x = _x; a._y = _y; if (_root.marker.tower == 'invi') { _root.area.duplicateMovieClip('art' + _root.towerCount, _root.towerCount); _root.br = _root['art' + _root.towerCount]; _root.br._x = _x; _root.br._y = _y; _root.br._width = a.range * 2; _root.br._height = a.range * 2; } a.active = 1; a.cost = cost; _root.gold -= cost; _root.updateInfoBar(); } } else { _root.CannotClick.start(0, 1); } _root.towerdeselect = false; _root.select_invi = false; _root.selectedTower = ''; _root.selectlight._x = 3000; _root.UpgradeTowerInfo._visible = false; _root.ranger.gotoAndStop(1); _root.buytower = false; active = 0; _x = 1000; _root.selectedTower = ''; _root.ranger._x = 1000; _root.ranger._width = 10; _root.ranger._height = 10; } } } movieClip 870 { } movieClip 872 { frame 1 { stop(); } } movieClip 874 { } // unknown tag 88 length 103 // unknown tag 88 length 63 movieClip 885 { } movieClip 888 { } instance tower_snow of movieClip 888 { onClipEvent (load) { title = 'Hand Gun [Cost: $250]'; desc = 'Fast attack speed with medium damage and a medium range to shoot nearby unit'; type = 'Ground'; cost = '$1000'; range = 40; rate = 2; lastFire = rate; lastChecked = rate; creep = ''; target = 0; damage = 0; splash = 50; slow = 150; slowx = slow * rate / 10; poison = 0; hits = 0; durationx = 20; duration = 20 + 20 * _root.dur_lvl * 10 / 100; level = 1; this.num.text = duration; } onClipEvent (rollOver) { _root.towerdeselect = true; } onClipEvent (rollOut) { _root.towerdeselect = false; } onClipEvent (press) { } onClipEvent (enterFrame) { this.num.text = duration; if (_root.remove == true) { this.removeMovieClip(); } if (hits == 20 + 20 * _root.dur_lvl * 10 / 100) { this.removeMovieClip(); } if (active == 1 && _root.creepArray.length > 0) { ++lastChecked; if (lastChecked >= rate) { lastChecked = 0; if (target == 0) { i = 0; while (i <= _root.creepArray.length) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < range + range * _root.range_lvl * 20 / 100 && _root.creepArray[i].invisible == false) { creep = _root.creepArray[i]; target = 1; break; } ++i; } } else { if ('' + creep == '') { target = 0; } else { d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2)); if (d > range + range * _root.range_lvl * 20 / 100) { lastChecked = 999; target = 0; } else { _root.fire(this, creep, 10, 1, 10, 'projectile_snow', damage, splash, slow); if (_root.pausegame == false) { ++hits; --duration; target = 0; } } } } } } } } movieClip 889 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } instance of movieClip 849 { onClipEvent (press) { if (_root.gold >= 250) { _root.select_invi = false; _root.selectlight._x = 3000; _root.marker2.active = 1; _root.marker2.tower = 'hold'; _root.marker2.cost = 250; } _root.UpgradeTowerInfo._visible = false; } onClipEvent (rollOver) { _root.UpgradeTowerInfo._visible = false; _parent.info_message.speed.text = _root.tower_hold.rate; _parent.info_message.power.text = _root.tower_hold.damage; _parent.info_message.range.text = _root.tower_hold.range; _parent.info_message.cost.text = _root.tower_hold.cost; _parent.info_message._visible = true; } onClipEvent (rollOut) { _parent.info_message._visible = false; } } frame 4 { stop(); } } movieClip 890 { instance of movieClip 889 { onClipEvent (load) { if (_root.marker2.tower == 'snow') { this.gotoAndStop(1); } else { if (_root.marker2.tower == 'stick') { this.gotoAndStop(2); } else { if (_root.marker2.tower == 'hold') { this.gotoAndStop(3); } else { if (_root.marker2.tower == 'bom') { this.gotoAndStop(4); } } } } } onClipEvent (enterFrame) { if (_root.marker2.tower == 'snow') { gotoAndStop(1); } else { if (_root.marker2.tower == 'stick') { gotoAndStop(2); } else { if (_root.marker2.tower == 'hold') { gotoAndStop(3); } else { if (_root.marker2.tower == 'bom') { gotoAndStop(4); } } } } } } } instance marker2 of movieClip 890 { onClipEvent (load) { active = 0; } onClipEvent (enterFrame) { if (active == 1) { _x = int((_root._xmouse - 25) / 50) * 50 + 50; _y = int((_root._ymouse - 25) / 50) * 50 + 50; hitTestOnGrassMovieClip = _root.grass2.hitTest(_x, _y, 1); if (hitTestOnGrassMovieClip && _root.towerdeselect == false) { gotoAndStop(1); } else { gotoAndStop(2); } } } onClipEvent (press) { hitTestOnGrassMovieClip = _root.grass2.hitTest(_x, _y, 1); hitTestOnDeSelectMovieClip = _root.deselect.hitTest(_x, _y, 1); if (hitTestOnGrassMovieClip || hitTestOnDeSelectMovieClip) { if (hitTestOnGrassMovieClip && _root.towerdeselect == false && !_root.hasGameFinished) { if (_root.gold >= cost) { _root.placeso.start(0, 1); ++_root.towerCount; _root['tower_' + tower].duplicateMovieClip('t' + _root.towerCount, 500 + _root.towerCount); a = _root['t' + _root.towerCount]; a._x = _x; a._y = _y; a.active = 1; a.cost = cost; _root.gold -= cost; _root.updateInfoBar(); } } _root.towerdeselect = false; _root.select_invi = false; _root.selectedTower = ''; _root.selectlight._x = 3000; _root.UpgradeTowerInfo._visible = false; _root.ranger.gotoAndStop(1); _root.buytower = false; active = 0; _x = 1000; } } } movieClip 892 { } movieClip 894 { } movieClip 895 { } movieClip 898 { } instance tower_stick of movieClip 898 { onClipEvent (load) { title = 'Hand Gun [Cost: $250]'; desc = 'Fast attack speed with medium damage and a medium range to shoot nearby unit'; type = 'Ground'; cost = '$2000'; range = 40; rate = 2; lastFire = rate; lastChecked = rate; creep = ''; target = 0; damage = 0; splash = 50; slow = 150; slowx = slow * rate / 10; poison = 0; hits = 0; durationx = 50; duration = 50 + 50 * _root.dur_lvl * 10 / 100; level = 1; this.num.text = duration; } onClipEvent (rollOver) { _root.towerdeselect = true; } onClipEvent (rollOut) { _root.towerdeselect = false; } onClipEvent (press) { } onClipEvent (enterFrame) { this.num.text = duration; if (_root.remove == true) { this.removeMovieClip(); } if (hits == 50 + 50 * _root.dur_lvl * 10 / 100) { this.removeMovieClip(); } if (active == 1 && _root.creepArray.length > 0) { ++lastChecked; if (lastChecked >= rate) { lastChecked = 0; if (target == 0) { i = 0; while (i <= _root.creepArray.length) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < range + range * _root.range_lvl * 20 / 100 && _root.creepArray[i].invisible == false) { creep = _root.creepArray[i]; target = 1; break; } ++i; } } else { if ('' + creep == '') { target = 0; } else { d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2)); if (d > range + range * _root.range_lvl * 20 / 100) { lastChecked = 999; target = 0; } else { _root.fire(this, creep, 10, 1, 10, 'projectile_snow', damage, splash, slow); if (_root.pausegame == false) { ++hits; --duration; target = 0; } } } } } } } } movieClip 901 { } instance tower_hold of movieClip 901 { onClipEvent (load) { title = 'Hand Gun [Cost: $250]'; desc = 'Fast attack speed with medium damage and a medium range to shoot nearby unit'; type = 'Ground'; cost = '$3000'; range = 40; rate = 2; lastFire = rate; lastChecked = rate; creep = ''; target = 0; damage = 0; splash = 50; slow = 150; slowx = slow * rate / 10; poison = 0; hits = 0; durationx = 100; duration = 100 + 1000 * _root.dur_lvl * 10 / 100; level = 1; this.num.text = duration; } onClipEvent (rollOver) { _root.towerdeselect = true; } onClipEvent (rollOut) { _root.towerdeselect = false; } onClipEvent (press) { } onClipEvent (enterFrame) { this.num.text = duration; if (_root.remove == true) { this.removeMovieClip(); } if (hits == 50 + 100 * _root.dur_lvl * 10 / 100) { this.removeMovieClip(); } if (active == 1 && _root.creepArray.length > 0) { ++lastChecked; if (lastChecked >= rate) { lastChecked = 0; if (target == 0) { i = 0; while (i <= _root.creepArray.length) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < range + range * _root.range_lvl * 20 / 100 && _root.creepArray[i].invisible == false) { creep = _root.creepArray[i]; target = 1; break; } ++i; } } else { if ('' + creep == '') { target = 0; } else { d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2)); if (d > range + range * _root.range_lvl * 20 / 100) { lastChecked = 999; target = 0; } else { _root.fire(this, creep, 10, 1, 10, 'projectile_snow', damage, splash, slow); if (_root.pausegame == false) { ++hits; --duration; target = 0; } } } } } } } } movieClip 906 { } movieClip 907 { } movieClip 910 { } movieClip 912 { } movieClip 914 { } movieClip 916 { } movieClip 918 { } movieClip 920 { } movieClip 921 { } movieClip 922 { frame 1 { stop(); } frame 2 { stop(); } } instance tower_bom of movieClip 922 { onClipEvent (load) { title = 'Hand Gun [Cost: $250]'; desc = 'Fast attack speed with medium damage and a medium range to shoot nearby unit'; type = 'Ground'; cost = '$5000'; range = 50; rate = 1; lastFire = rate; lastChecked = rate; creep = ''; target = 0; damage = 10000; splash = 300; slow = 200; poison = 0; kills = 0; hits = 0; slowx = slow * rate / 10; durationx = 10; duration = 1; level = 1; this.num.text = duration; } onClipEvent (rollOver) { _root.towerdeselect = true; } onClipEvent (rollOut) { _root.towerdeselect = false; } onClipEvent (press) { } onClipEvent (enterFrame) { if (_root.remove == true) { this.removeMovieClip(); } if (hits == 1) { this.removeMovieClip(); } if (active == 1 && _root.creepArray.length > 0) { ++lastChecked; if (lastChecked >= rate) { lastChecked = 0; if (target == 0) { i = 0; while (i <= _root.creepArray.length) { d = Math.sqrt(Math.pow(this._x - _root.creepArray[i]._x, 2) + Math.pow(this._y - _root.creepArray[i]._y, 2)); if (d < range + range * _root.range_lvl * 20 / 100 && _root.creepArray[i].invisible == false) { creep = _root.creepArray[i]; target = 1; break; } ++i; } } else { if ('' + creep == '') { target = 0; ++kills; if (kills > 10 && kills < 20) { this.rank.gotoAndStop(2); } else { if (kills > 20 && kills < 40) { this.rank.gotoAndStop(3); } else { if (kills > 40 && kills < 80) { this.rank.gotoAndStop(4); } else { if (kills > 80) { this.rank.gotoAndStop(5); } } } } } else { d = Math.sqrt(Math.pow(this._x - creep._x, 2) + Math.pow(this._y - creep._y, 2)); if (d > range + range * _root.range_lvl * 20 / 100) { lastChecked = 999; target = 0; } else { gun1._rotation = Math.atan2(creep._y - this._y, creep._x - this._x) * 180 / 3.141593; _root.fire3(this, creep, 10, 1, 10, 'projectile_bom', damage, splash, slow); if (_root.pausegame == false) { this.gun1.fire.gotoAndPlay(2); this.gun1.t.gotoAndPlay(2); ++hits; --duration; target = 0; this.num.text = duration; _root.exp.start(0, 1); } } } } } } } } movieClip 924 { } movieClip 925 { } movieClip 929 { } movieClip 930 { } movieClip 931 { } // unknown tag 88 length 62 movieClip 934 { } movieClip 935 { frame 1 { stop(); } } movieClip 937 { frame 1 { stop(); } instance of movieClip 824 { onClipEvent (press) { } onClipEvent (rollOver) { } onClipEvent (rollOut) { } } frame 2 { stop(); } } instance of movieClip 937 { onClipEvent (load) { if (_root.tech_lvl >= 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.tech_lvl >= 1) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 938 { frame 1 { stop(); } instance of movieClip 831 { onClipEvent (press) { } onClipEvent (rollOver) { } onClipEvent (rollOut) { } } frame 2 { stop(); } } instance of movieClip 938 { onClipEvent (load) { if (_root.tech_lvl >= 2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.tech_lvl >= 2) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 939 { frame 1 { stop(); } instance of movieClip 835 { onClipEvent (press) { } onClipEvent (rollOver) { } onClipEvent (rollOut) { } } frame 2 { stop(); } } instance of movieClip 939 { onClipEvent (load) { if (_root.tech_lvl >= 3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.tech_lvl >= 3) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 940 { frame 1 { stop(); } instance of movieClip 841 { onClipEvent (press) { } onClipEvent (rollOver) { } onClipEvent (rollOut) { } } frame 2 { stop(); } } instance of movieClip 940 { onClipEvent (load) { if (_root.tech_lvl >= 4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.tech_lvl >= 4) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 941 { frame 1 { stop(); } instance of movieClip 845 { onClipEvent (press) { } onClipEvent (rollOver) { } onClipEvent (rollOut) { } } frame 2 { stop(); } } instance of movieClip 941 { onClipEvent (load) { if (_root.tech_lvl >= 5) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.tech_lvl >= 5) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 942 { frame 1 { stop(); } instance of movieClip 847 { onClipEvent (press) { } onClipEvent (rollOver) { } onClipEvent (rollOut) { } } frame 2 { stop(); } } instance of movieClip 942 { onClipEvent (load) { if (_root.tech_lvl >= 6) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.tech_lvl >= 6) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 943 { frame 1 { stop(); } instance of movieClip 849 { onClipEvent (press) { } onClipEvent (rollOver) { } onClipEvent (rollOut) { } } frame 2 { stop(); } } instance of movieClip 943 { onClipEvent (load) { if (_root.tech_lvl >= 7) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.tech_lvl >= 7) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 944 { frame 1 { stop(); } instance of movieClip 851 { onClipEvent (press) { } onClipEvent (rollOver) { } onClipEvent (rollOut) { } } frame 2 { stop(); } } instance of movieClip 944 { onClipEvent (load) { if (_root.tech_lvl >= 8) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.tech_lvl >= 8) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 945 { frame 1 { stop(); } instance of movieClip 843 { onClipEvent (press) { } onClipEvent (rollOver) { } onClipEvent (rollOut) { } } frame 2 { stop(); } } instance of movieClip 945 { onClipEvent (load) { if (_root.tech_lvl >= 9) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.tech_lvl >= 9) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 954 { frame 1 { stop(); } frame 2 { stop(); } } instance info_message of movieClip 954 { onClipEvent (load) { _visible = false; } } movieClip 961 { } movieClip 963 { frame 1 { } instance tl of movieClip 961 { onClipEvent (enterFrame) { _x = 190 + _root.wave * 100 + _root.count * (100 / _root.maxCount); } } } instance timeline of movieClip 963 { onClipEvent (load) { clearInterval(_root.levelInterval); _root.levelInterval = setInterval(_root, 'executeCallback', 1000); } } movieClip 969 { frame 1 { stop(); } frame 2 { stop(); } } instance info_message2 of movieClip 969 { onClipEvent (load) { _visible = false; } } movieClip 976 { frame 1 { stop(); } frame 2 { stop(); } } instance info_message3 of movieClip 976 { onClipEvent (load) { _visible = false; } } movieClip 978 { } // unknown tag 88 length 67 movieClip 981 { } movieClip 984 { } movieClip 995 { } movieClip 996 { } movieClip 998 { } movieClip 999 { } movieClip 1010 { instance UpgradeButton of movieClip 981 { onClipEvent (press) { _root.upgrade(); } onClipEvent (rollOver) { _root.upgradeover = true; } onClipEvent (rollOut) { _root.upgradeover = false; } } instance UpgradeButton2 of movieClip 984 { onClipEvent (press) { if (_root.select_invi == true) { _root.sell2(); _root.select_invi = false; _root.selectlight._x = 3000; } else { _root.sell(); _root.select_invi = false; _root.selectlight._x = 3000; } } } instance t of movieClip 999 { onClipEvent (load) { if (_root.upgradeover == true) { this._visible = true; } else { this._visible = false; } } onClipEvent (enterFrame) { if (_root.upgradeover == true) { _visible = true; } else { _visible = false; } } } } instance UpgradeTowerInfo of movieClip 1010 { onClipEvent (load) { _visible = false; swapDepths(100000); } } movieClip 1020 { instance UpgradeButton2 of movieClip 984 { onClipEvent (press) { if (_root.select_invi == true) { _root.sell2(); _root.select_invi = false; _root.selectlight._x = 3000; } else { _root.sell(); _root.select_invi = false; _root.selectlight._x = 3000; } } } } instance UpgradeTowerInfo2 of movieClip 1020 { onClipEvent (load) { _visible = false; swapDepths(100000); } } movieClip 1022 { } movieClip 1024 { } movieClip 1026 { } movieClip 1028 { } movieClip 1029 { } movieClip 1032 { } movieClip 1033 { } movieClip 1035 { } movieClip 1037 { } movieClip 1039 { } movieClip 1041 { } movieClip 1042 { } movieClip 1044 { } movieClip 1046 { } movieClip 1047 { } movieClip 1048 { } movieClip 1049 { } movieClip 1050 { } movieClip 1052 { } movieClip 1056 { } movieClip 1057 { } movieClip 1059 { } movieClip 1061 { } movieClip 1063 { } movieClip 1065 { } movieClip 1066 { } movieClip 1068 { } movieClip 1069 { } movieClip 1070 { } movieClip 1072 { } movieClip 1074 { } movieClip 1076 { } movieClip 1078 { } movieClip 1080 { } movieClip 1081 { } movieClip 1083 { } movieClip 1085 { } movieClip 1086 { } movieClip 1087 { } movieClip 1094 { } movieClip 1096 { } movieClip 1098 { } movieClip 1099 { } movieClip 1101 { } movieClip 1103 { } movieClip 1105 { } movieClip 1106 { } movieClip 1113 { } movieClip 1115 { } movieClip 1117 { } movieClip 1120 { } movieClip 1123 { } movieClip 1125 { } movieClip 1127 { } movieClip 1129 { } movieClip 1131 { } movieClip 1133 { } movieClip 1135 { } movieClip 1136 { } movieClip 1138 { } movieClip 1140 { } movieClip 1142 { } movieClip 1143 { } movieClip 1144 { frame 1 { this._parent.human = true; stop(); } frame 2 { this._parent.human = true; } frame 3 { this._parent.human = true; } frame 4 { this._parent.human = true; } frame 5 { this._parent.human = false; } frame 6 { this._parent.human = false; } frame 7 { this._parent.human = false; } frame 8 { this._parent.human = false; } frame 9 { this._parent.human = false; } frame 10 { this._parent.human = false; } frame 11 { this._parent.human = false; } frame 12 { this._parent.human = false; } frame 13 { this._parent.human = false; } frame 14 { this._parent.human = false; } frame 15 { this._parent.human = false; } frame 16 { this._parent.human = true; } frame 17 { this._parent.human = true; } frame 18 { this._parent.human = false; } frame 19 { this._parent.human = false; } frame 20 { this._parent.boss = true; this._parent.human = false; } frame 21 { this._parent.human = true; this._parent.boss = false; } frame 22 { this._parent.human = false; } frame 23 { this._parent.human = false; } frame 24 { this._parent.human = false; } frame 25 { this._parent.human = false; } frame 26 { this._parent.human = false; } frame 27 { this._parent.human = false; } frame 28 { this._parent.human = false; } frame 29 { this._parent.human = false; } frame 30 { this._parent.boss = true; this._parent.human = false; } frame 31 { this._parent.human = true; } frame 32 { this._parent.human = false; this._parent.boss = false; } frame 33 { this._parent.human = false; } frame 34 { this._parent.human = false; } frame 35 { this._parent.human = false; } frame 36 { this._parent.human = false; } frame 37 { this._parent.human = false; } frame 38 { this._parent.human = false; } frame 39 { this._parent.human = false; } frame 40 { this._parent.boss = true; this._parent.human = false; } frame 41 { this._parent.human = false; this._parent.boss = false; } frame 42 { this._parent.human = false; } frame 43 { this._parent.human = false; } frame 44 { this._parent.human = false; } frame 45 { this._parent.human = true; } frame 46 { this._parent.human = false; } frame 47 { this._parent.human = false; } frame 48 { this._parent.human = false; } frame 49 { this._parent.human = false; } frame 50 { this._parent.boss = true; this._parent.human = false; } frame 51 { this._parent.human = true; this._parent.boss = false; } frame 52 { this._parent.human = false; } frame 53 { this._parent.human = false; } frame 54 { this._parent.human = false; } frame 55 { this._parent.human = false; } frame 56 { this._parent.human = true; } frame 57 { this._parent.human = false; } frame 58 { this._parent.human = false; } frame 59 { this._parent.human = false; } frame 60 { this._parent.boss = true; } frame 61 { this._parent.human = false; } frame 62 { this._parent.human = false; } frame 63 { this._parent.human = false; } frame 64 { this._parent.human = false; } frame 65 { this._parent.human = false; } frame 66 { this._parent.human = false; } frame 67 { this._parent.human = false; } frame 68 { this._parent.human = false; } frame 69 { this._parent.human = false; } frame 70 { this._parent.boss = true; this._parent.human = false; } } movieClip 1146 { } movieClip 1147 { } movieClip 1148 { frame 1 { var invisible = false; var human = false; var boss = false; } } instance creep1 of movieClip 1148 { onClipEvent (load) { } onClipEvent (enterFrame) { if (_root.remove == true) { this.removeMovieClip(); } } } movieClip 1173 { } movieClip 1174 { } movieClip 1177 { } movieClip 1179 { } movieClip 1183 { } movieClip 1189 { } movieClip 1192 { } movieClip 1193 { } movieClip 1196 { } movieClip 1197 { } movieClip 1199 { } movieClip 1202 { } movieClip 1203 { } movieClip 1205 { } movieClip 1207 { } movieClip 1208 { frame 1 { stop(); } } movieClip 1215 { } movieClip 1216 { } // unknown tag 88 length 59 movieClip 1220 { frame 1 { onEnterFrame = function () { if (_root.money_lvl < 9) { money_lvl.text = 'LV' + _root.money_lvl; } else { money_lvl.text = 'MAX'; } if (_root.life_lvl < 9) { life_lvl.text = 'LV' + _root.life_lvl; } else { life_lvl.text = 'MAX'; } if (_root.tech_lvl < 9) { tech_lvl.text = 'LV' + _root.tech_lvl; } else { tech_lvl.text = 'MAX'; } if (_root.damage_lvl < 9) { damage_lvl.text = 'LV' + _root.damage_lvl; } else { damage_lvl.text = 'MAX'; } if (_root.range_lvl < 9) { range_lvl.text = 'LV' + _root.range_lvl; } else { range_lvl.text = 'MAX'; } if (_root.dur_lvl < 9) { dur_lvl.text = 'LV' + _root.dur_lvl; } else { dur_lvl.text = 'MAX'; } }; } instance up_loader1 of movieClip 1208 { onClipEvent (load) { var HP = 0; var maxHP = 1000; var HPdelta = 9; this._visible = false; } onClipEvent (enterFrame) { if (_root.up_loader1 == true) { this._visible = true; HP += HPdelta - _root.money_lvl; this.bar._xscale = (HP / maxHP) * 100; } else { this._visible = false; } if (HP >= maxHP) { _root.up_loader1 = false; HP = 0; ++_root.money_lvl; _root.upgradeso.start(0, 1); } } } instance up_loader2 of movieClip 1208 { onClipEvent (load) { var HP = 0; var maxHP = 1000; var HPdelta = 9; this._visible = false; } onClipEvent (enterFrame) { if (_root.up_loader2 == true) { this._visible = true; HP += HPdelta - _root.life_lvl; this.bar._xscale = (HP / maxHP) * 100; } else { this._visible = false; } if (HP >= maxHP) { _root.up_loader2 = false; HP = 0; ++_root.life_lvl; _root.health += _root.life_lvl * 2; _root.updateInfoBar(); _root.upgradeso.start(0, 1); } } } instance up_loader3 of movieClip 1208 { onClipEvent (load) { var HP = 0; var maxHP = 1000; var HPdelta = 9; this._visible = false; } onClipEvent (enterFrame) { if (_root.up_loader3 == true) { this._visible = true; HP += HPdelta - _root.tech_lvl; this.bar._xscale = (HP / maxHP) * 100; } else { this._visible = false; } if (HP >= maxHP) { _root.up_loader3 = false; HP = 0; ++_root.tech_lvl; _root.updateInfoBar(); _root.upgradeso.start(0, 1); } } } instance up_loader3 of movieClip 1208 { onClipEvent (load) { var HP = 0; var maxHP = 1000; var HPdelta = 9; this._visible = false; } onClipEvent (enterFrame) { if (_root.up_loader4 == true) { this._visible = true; HP += HPdelta - _root.damage_lvl; this.bar._xscale = (HP / maxHP) * 100; } else { this._visible = false; } if (HP >= maxHP) { _root.up_loader4 = false; HP = 0; ++_root.damage_lvl; _root.upgradeso.start(0, 1); } } } instance up_loader2 of movieClip 1208 { onClipEvent (load) { var HP = 0; var maxHP = 1000; var HPdelta = 9; this._visible = false; } onClipEvent (enterFrame) { if (_root.up_loader5 == true) { this._visible = true; HP += HPdelta - _root.range_lvl; this.bar._xscale = (HP / maxHP) * 100; } else { this._visible = false; } if (HP >= maxHP) { _root.up_loader5 = false; HP = 0; ++_root.range_lvl; _root.towerInfo(_root.selectedTower); _root.upgradeso.start(0, 1); } } } instance up_loader2 of movieClip 1208 { onClipEvent (load) { var HP = 0; var maxHP = 1000; var HPdelta = 9; this._visible = false; } onClipEvent (enterFrame) { if (_root.up_loader6 == true) { this._visible = true; HP += HPdelta - _root.dur_lvl; this.bar._xscale = (HP / maxHP) * 100; } else { this._visible = false; } if (HP >= maxHP) { _root.up_loader6 = false; HP = 0; ++_root.dur_lvl; _root.upgradeso.start(0, 1); } } } } movieClip 1222 { } button 1224 { on (press) { gotoAndPlay('play'); } } movieClip 1231 { } movieClip 1232 { frame 1 { stop(); } instance of movieClip 1231 { onClipEvent (press) { if (_root.up_select == 'money') { if (_root.money_lvl < 9) { if (_root.gold >= 1000 * _root.money_lvl * 2 and _root.gold >= 1000) { if (_root.up_loader1 != true) { _root.up_loader1 = true; if (_root.money_lvl == 0) { _root.gold -= 1000; } else { _root.gold -= 1000 * _root.money_lvl * 2; } _root.updateInfoBar(); } } } } else { if (_root.up_select == 'tech') { if (_root.tech_lvl < 9) { if (_root.gold >= 1000 * _root.tech_lvl * 2 and _root.gold >= 1000) { if (_root.up_loader3 != true) { _root.up_loader3 = true; if (_root.tech_lvl == 0) { _root.gold -= 1000; } else { _root.gold -= 1000 * _root.tech_lvl * 2; } _root.updateInfoBar(); } } } } else { if (_root.up_select == 'life') { if (_root.life_lvl < 9) { if (_root.gold >= 1000 * _root.life_lvl * 2 and _root.gold >= 1000) { if (_root.up_loader2 != true) { _root.up_loader2 = true; if (_root.life_lvl == 0) { _root.gold -= 1000; } else { _root.gold -= 1000 * _root.life_lvl * 2; } _root.updateInfoBar(); } } } } else { if (_root.up_select == 'dur') { if (_root.dur_lvl < 9) { if (_root.gold >= 1000 * _root.dur_lvl * 2 and _root.gold >= 1000) { if (_root.up_loader6 != true) { _root.up_loader6 = true; if (_root.dur_lvl == 0) { _root.gold -= 1000; } else { _root.gold -= 1000 * _root.dur_lvl * 2; } _root.updateInfoBar(); } } } } else { if (_root.up_select == 'range') { if (_root.range_lvl < 9) { if (_root.gold >= 1000 * _root.range_lvl * 2 and _root.gold >= 1000) { if (_root.up_loader5 != true) { _root.up_loader5 = true; if (_root.range_lvl == 0) { _root.gold -= 1000; } else { _root.gold -= 1000 * _root.range_lvl * 2; } _root.updateInfoBar(); } } } } else { if (_root.up_select == 'damage') { if (_root.damage_lvl < 9) { if (_root.gold >= 1000 * _root.damage_lvl * 2 and _root.gold >= 1000) { if (_root.up_loader4 != true) { _root.up_loader4 = true; if (_root.damage_lvl == 0) { _root.gold -= 1000; } else { _root.gold -= 1000 * _root.damage_lvl * 2; } _root.updateInfoBar(); } } } } } } } } } _root.up_box.up_box.upgrade_detail._visible = false; } } } button 1233 { on (press) { gotoAndPlay('back'); upgrade_detail._visible = false; } } button 1234 { on (press) { _root.up_select = 'money'; _root.towerdeselect = false; _root.select_invi = false; _root.selectedTower = ''; _root.ranger._x = 3000; _root.selectlight._x = 3000; _root.ranger._width = 10; _root.ranger._height = 10; _root.UpgradeTowerInfo._visible = false; if (_root.money_lvl < 9 && _root.up_loader1 != true) { upgrade_detail._visible = true; upgrade_detail.name.text = 'MONEYS'; if (_root.money_lvl < 1) { upgrade_detail.dec.text = 'Increase more 10% of income by destroy enemy unit'; upgrade_detail.cost.text = '$1000'; } else { upgrade_detail.dec.text = 'Increase more ' + 10 * _root.money_lvl + '% of income by destroy enemy unit'; upgrade_detail.cost.text = '$' + 1000 * _root.money_lvl * 2; } } else { upgrade_detail._visible = false; } } } button 1235 { on (press) { _root.towerdeselect = false; _root.select_invi = false; _root.selectedTower = ''; _root.ranger._x = 3000; _root.selectlight._x = 3000; _root.ranger._width = 10; _root.ranger._height = 10; _root.UpgradeTowerInfo._visible = false; _root.up_select = 'tech'; if (_root.tech_lvl < 9 && _root.up_loader3 != true) { upgrade_detail._visible = true; upgrade_detail.name.text = 'TECHNOLOGY'; if (_root.tech_lvl < 1) { upgrade_detail.dec.text = 'Unlock 1 unit type'; upgrade_detail.cost.text = '$1000'; } else { upgrade_detail.dec.text = 'Unlock ' + 10 * _root.tech_lvl + 'unit type'; upgrade_detail.cost.text = '$' + 1000 * _root.tech_lvl * 2; } } else { upgrade_detail._visible = false; } } } button 1236 { on (press) { _root.towerdeselect = false; _root.select_invi = false; _root.selectedTower = ''; _root.ranger._x = 3000; _root.selectlight._x = 3000; _root.ranger._width = 10; _root.ranger._height = 10; _root.UpgradeTowerInfo._visible = false; _root.up_select = 'life'; if (_root.life_lvl < 9 && _root.up_loader2 != true) { upgrade_detail._visible = true; upgrade_detail.name.text = 'LIFE'; if (_root.life_lvl < 1) { upgrade_detail.dec.text = 'Increase more 10% of Player Health'; upgrade_detail.cost.text = '$1000'; } else { upgrade_detail.dec.text = 'Increase more ' + 10 * _root.life_lvl + '% of of Player Health'; upgrade_detail.cost.text = '$' + 1000 * _root.life_lvl * 2; } } else { upgrade_detail._visible = false; } } } button 1237 { on (press) { _root.towerdeselect = false; _root.select_invi = false; _root.selectedTower = ''; _root.ranger._x = 3000; _root.selectlight._x = 3000; _root.ranger._width = 10; _root.ranger._height = 10; _root.UpgradeTowerInfo._visible = false; _root.up_select = 'damage'; if (_root.damage_lvl < 9 && _root.up_loader4 != true) { upgrade_detail._visible = true; upgrade_detail.name.text = 'WEAPON POWER'; if (_root.damage_lvl < 1) { upgrade_detail.dec.text = 'Increase more 10% of Weapon Damage'; upgrade_detail.cost.text = '$1000'; } else { upgrade_detail.dec.text = 'Increase more ' + 10 * _root.damage_lvl + '% of Weapon Damage'; upgrade_detail.cost.text = '$' + 1000 * _root.damage_lvl * 2; } } else { upgrade_detail._visible = false; } } } button 1238 { on (press) { _root.towerdeselect = false; _root.select_invi = false; _root.selectedTower = ''; _root.ranger._x = 3000; _root.selectlight._x = 3000; _root.ranger._width = 10; _root.ranger._height = 10; _root.UpgradeTowerInfo._visible = false; _root.up_select = 'range'; if (_root.range_lvl < 9 && _root.up_loader5 != true) { upgrade_detail._visible = true; upgrade_detail.name.text = 'RANGE'; if (_root.range_lvl < 1) { upgrade_detail.dec.text = 'Increase more 5% of of Weapon Range'; upgrade_detail.cost.text = '$1000'; } else { upgrade_detail.dec.text = 'Increase more ' + 10 * _root.range_lvl + '% of Weapon Range'; upgrade_detail.cost.text = '$' + 1000 * _root.range_lvl * 2; } } else { upgrade_detail._visible = false; } } } button 1239 { on (press) { _root.towerdeselect = false; _root.select_invi = false; _root.selectedTower = ''; _root.ranger._x = 3000; _root.selectlight._x = 3000; _root.ranger._width = 10; _root.ranger._height = 10; _root.UpgradeTowerInfo._visible = false; _root.up_select = 'dur'; if (_root.dur_lvl < 9 && _root.up_loader6 != true) { upgrade_detail._visible = true; upgrade_detail.name.text = 'DURABILITY'; if (_root.dur_lvl < 1) { upgrade_detail.dec.text = 'Increase more 10% of Weapon Duration'; upgrade_detail.cost.text = '$1000'; } else { upgrade_detail.dec.text = 'Increase more ' + 10 * _root.dur_lvl + '% of of Weapon Duration'; upgrade_detail.cost.text = '$' + 1000 * _root.dur_lvl * 2; } } else { upgrade_detail._visible = false; } } } movieClip 1243 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1244 { frame 1 { stop(); } frame 2 { _root.open_map.start(0, 1); } frame 10 { upgrade_detail._visible = false; } frame 10 { stop(); } instance of movieClip 1243 { onClipEvent (load) { if (_root.gold >= 1000 * _root.money_lvl * 2 and _root.gold >= 1000) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.gold >= 1000 * _root.money_lvl * 2 and _root.gold >= 1000) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 1243 { onClipEvent (load) { if (_root.gold >= 1000 * _root.tech_lvl * 2 and _root.gold >= 1000) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.gold >= 1000 * _root.tech_lvl * 2 and _root.gold >= 1000) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 1243 { onClipEvent (load) { if (_root.gold >= 1000 * _root.damage_lvl * 2 and _root.gold >= 1000) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.gold >= 1000 * _root.damage_lvl * 2 and _root.gold >= 1000) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 1243 { onClipEvent (load) { if (_root.gold >= 1000 * _root.life_lvl * 2 and _root.gold >= 1000) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.gold >= 1000 * _root.life_lvl * 2 and _root.gold >= 1000) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 1243 { onClipEvent (load) { if (_root.gold >= 1000 * _root.dur_lvl * 2 and _root.gold >= 1000) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.gold >= 1000 * _root.dur_lvl * 2 and _root.gold >= 1000) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 1243 { onClipEvent (load) { if (_root.gold >= 1000 * _root.range_lvl * 2 and _root.gold >= 1000) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.gold >= 1000 * _root.range_lvl * 2 and _root.gold >= 1000) { gotoAndStop(2); } else { gotoAndStop(1); } } } frame 11 { _root.open_map.start(0, 1); } } movieClip 1245 { } instance up_box of movieClip 1245 { onClipEvent (load) { this.swapDepths(9999999); } onClipEvent (enterFrame) { if (_root.remove == true) { this.removeMovieClip(); } } } // unknown tag 88 length 229 movieClip 1249 { } movieClip 1250 { frame 1 { stop(); } frame 2 { stop(); } } instance of movieClip 1250 { onClipEvent (load) { if (_root.start_new_wave == true) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.start_new_wave == true) { gotoAndStop(2); } else { gotoAndStop(1); } } onClipEvent (press) { _root.sendCreepbt._visible = false; if (!_root.hasGameStarted) { _root.hasGameStarted = true; } if (_root.wave >= 0 && _root.wave - 1 <= _root.waves.length - 1) { if (_root.start_new_wave == true) { _root.start_new_wave = false; _root.score += _root.wave * (_root.maxCount - _root.count) * 10; trace(_root.wave); _root.gold += int(_root.gold * 0.03); _root.count = 1; _root.newLevel(); _root.newLevel2(); _root.level_msg.gotoAndPlay('play'); } } } } movieClip 1253 { frame 1 { stop(); } frame 2 { stop(); } } instance pause_bt of movieClip 1253 { onClipEvent (load) { if (_root.pausegame == true) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_root.pausegame == true) { gotoAndStop(2); } else { gotoAndStop(1); } } onClipEvent (press) { if (_root.pausegame == false) { stopAllSounds(); _root.pausegame = true; clearInterval(_root.levelInterval); _root.option.gotoAndPlay('play'); } } } movieClip 1257 { } movieClip 1259 { } movieClip 1261 { } movieClip 1263 { } movieClip 1266 { } movieClip 1268 { } movieClip 1270 { } movieClip 1273 { } movieClip 1275 { } movieClip 1277 { } movieClip 1279 { } movieClip 1280 { } movieClip 1282 { } movieClip 1283 { } movieClip 1285 { } movieClip 1287 { } movieClip 1289 { } movieClip 1291 { } movieClip 1294 { } // unknown tag 88 length 63 movieClip 1300 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1303 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1304 { frame 1 { scores.text = _root.score; } instance of movieClip 1300 { onClipEvent (press) { if (_root.map_select == '1') { if (_root.score > _root.map1_bs) { _root.map1_bs = _root.score; } _root.map2_lock = false; } if (_root.map_select == '2') { if (_root.score > _root.map2_bs) { _root.map2_bs = _root.score; } _root.map3_lock = false; } if (_root.map_select == '3') { if (_root.score > _root.map3_bs) { _root.map3_bs = _root.score; } _root.map4_lock = false; } if (_root.map_select == '4') { if (_root.score > _root.map4_bs) { _root.map4_bs = _root.score; } _root.map5_lock = false; } if (_root.map_select == '5') { if (_root.score > _root.map5_bs) { _root.map5_bs = _root.score; } _root.map6_lock = false; } if (_root.map_select == '6') { if (_root.score > _root.map6_bs) { _root.map6_bs = _root.score; } _root.map7_lock = false; } if (_root.map_select == '7') { if (_root.score > _root.map7_bs) { _root.map7_bs = _root.score; } _root.ending_fn = true; } if (_root.ending_fn != true) { _root.remove = true; stopAllSounds(); _root.gotoAndStop('map_selection'); } else { _root.remove = true; stopAllSounds(); _root.gotoAndStop('ending'); } } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } } instance of movieClip 1303 { onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { getURL('http://www.startonlinegames.com', '_blank'); } } } movieClip 1305 { frame 10 { stop(); } } movieClip 1306 { frame 1 { stop(); } frame 2 { stopAllSounds(); _root.towerdeselect = false; _root.select_invi = false; _root.selectedTower = ''; _root.selectlight._x = 3000; _root.UpgradeTowerInfo._visible = false; _root.ranger.gotoAndStop(1); _root.buytower = false; _root.selectedTower = ''; _root.ranger._x = 1000; _root.ranger._width = 10; _root.ranger._height = 10; } frame 55 { stop(); con.gotoAndPlay('play'); } } instance vic of movieClip 1306 { onClipEvent (load) { this.swapDepths(10000000000001.0); } onClipEvent (enterFrame) { if (_root.remove == true) { this.removeMovieClip(); } } } movieClip 1309 { } // unknown tag 88 length 87 movieClip 1316 { } movieClip 1317 { } movieClip 1320 { frame 10 { stop(); } } movieClip 1321 { frame 1 { stop(); } } button 1322 { on (release) { if (sd == false) { sd = true; my_sound.start(0, 999); } } } movieClip 1325 { frame 10 { stop(); } } movieClip 1326 { frame 1 { stop(); } } button 1327 { on (release) { sd = false; my_sound.stop(); } } movieClip 1328 { frame 1 { sd = true; sdrestart = false; my_sound = new Sound(); my_sound.attachSound('bgm_01'); my_sound.onSoundComplete = function () { trace('finish'); }; } instance tumami_mc of movieClip 1317 { onClipEvent (load) { dragFlag = false; } onClipEvent (press) { xWidth = _parent.back_mc._width - this._width; xMin = _parent.back_mc._x; xMax = _parent.back_mc._x + xWidth; this.startDrag(true, xMin, this._y, xMax, this._y); dragFlag = true; } onClipEvent (release, releaseOutside) { this.stopDrag(); dragFlag = false; } onClipEvent (mouseMove) { if (dragFlag == true) { vol = ((this._x - xMin) / xWidth) * 100; _parent.my_sound.setVolume(vol); } } } } movieClip 1329 { } movieClip 1330 { } movieClip 1331 { frame 90 { stop(); _parent.gotoAndStop('off'); } } movieClip 1332 { frame 1 { stop(); BG_02.move(0); BG_01.move(0); } frame 10 { BG_02.move(1); BG_01.move(1); stop(); } } // unknown tag 88 length 135 movieClip 1336 { } movieClip 1337 { } movieClip 1339 { } movieClip 1341 { } movieClip 1345 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 1346 { instance of movieClip 1337 { onClipEvent (press) { _root._quality = 'LOW'; } } instance of movieClip 1339 { onClipEvent (press) { _root._quality = 'MEDIUM'; } } instance of movieClip 1341 { onClipEvent (press) { _root._quality = 'HIGH'; } } instance of movieClip 1345 { onClipEvent (load) { if (_root._quality == 'LOW') { this.gotoAndStop(1); } else { if (_root._quality == 'MEDIUM') { this.gotoAndStop(2); } else { if (_root._quality == 'HIGH') { this.gotoAndStop(3); } } } } onClipEvent (enterFrame) { if (_root._quality == 'LOW') { gotoAndStop(1); } else { if (_root._quality == 'MEDIUM') { gotoAndStop(2); } else { if (_root._quality == 'HIGH') { gotoAndStop(3); } } } } } } movieClip 1347 { frame 1 { stop(); } frame 2 { stopAllSounds(); } frame 3 { _root.PauseSound.start(0, 1); } frame 15 { stop(); } instance of movieClip 554 { onClipEvent (press) { _root.pausegame = false; _root.pause_bt.gotoAndStop(1); _root.option.gotoAndPlay('resume'); } } instance of movieClip 554 { onClipEvent (press) { _root.remove = true; _root.gotoAndStop('map_selection'); } } frame 16 { _root.pausegame = false; _root.levelInterval = setInterval(_root, 'executeCallback', 1000); } frame 16 { _root.PauseSound.start(0, 1); } frame 30 { if (_root.map_select == '1') { _root.m1.start(0, 999); } else { if (_root.map_select == '2') { _root.m1.start(0, 999); } else { if (_root.map_select == '3') { _root.m2.start(0, 999); } else { if (_root.map_select == '4') { _root.m2.start(0, 999); } else { if (_root.map_select == '5') { _root.m3.start(0, 999); } else { if (_root.map_select == '6') { _root.m3.start(0, 999); } else { if (_root.map_select == '7') { _root.m4.start(0, 999); } else { stopAllSounds(); } } } } } } } } } instance option of movieClip 1347 { onClipEvent (load) { this.swapDepths(10000000000000.0); } onClipEvent (enterFrame) { if (_root.remove == true) { this.removeMovieClip(); } } } movieClip 1349 { } movieClip 1350 { frame 1 { stop(); } } frame 5 { var keyListener = new Object(); stopAllSounds(); keyListener.onKeyUp = function () { if (Key.getCode() == 83) { if (_root.UpgradeTowerInfo._visible == true) { if (_root.select_invi == true) { _root.sell2(); _root.select_invi = false; _root.selectlight._x = 3000; } else { _root.sell(); _root.select_invi = false; _root.selectlight._x = 3000; } } } if (Key.getCode() == 65) { _root.upgrade(); } if (Key.getCode() == 32) { _root.sendCreepbt._visible = false; if (!_root.hasGameStarted) { _root.hasGameStarted = true; } if (_root.wave >= 0 && _root.wave - 1 <= _root.waves.length - 1) { if (_root.start_new_wave == true) { _root.start_new_wave = false; _root.score += _root.wave * (_root.maxCount - _root.count) * 10; trace(_root.wave); _root.gold += int(_root.gold * 0.03); _root.count = 1; _root.newLevel(); _root.newLevel2(); _root.level_msg.gotoAndPlay('play'); } } } }; Key.addListener(keyListener); } frame 5 { _root.black_screen.gotoAndPlay(2); trace(_root.difc); _root.m1.start(0, 999); _root.gold = 7000 - 7000 * _root.difc * 20 / 100; updateInfoBar(); _root.map_select = '2'; _root.money_lvl = 0; _root.life_lvl = 0; _root.tech_lvl = 3; _root.damage_lvl = 0; _root.range_lvl = 0; _root.dur_lvl = 0; up_box._visible = true; trace(_root.map_select); _root.remove = false; stop(); _root.waves = [[6, 200, 2, 1300, 100], [8, 300, 2, 1300, 100], [6, 350, 2, 1300, 100], [8, 350, 2, 1300, 100], [6, 500, 3, 1300, 100], [8, 500, 3, 1300, 100], [6, 700, 3, 1300, 100], [6, 800, 3.5, 1800, 100], [6, 1800, 3, 1800, 200], [6, 1300, 4, 1300, 200], [6, 1300, 3, 1000, 200], [6, 1300, 3, 1000, 200], [5, 2000, 3, 2000, 200], [6, 2000, 3, 1300, 200], [6, 2200, 4, 1300, 200], [5, 2200, 3, 1000, 200], [6, 2200, 2, 1000, 200], [6, 4000, 3, 2000, 400], [6, 4000, 3, 1300, 400], [3, 9000, 2, 1800, 600], [6, 4000, 2.5, 1000, 500], [6, 5000, 2, 1000, 500], [6, 8000, 2.5, 2000, 500], [6, 7000, 2, 1300, 500], [6, 6000, 3.5, 1000, 700], [6, 7000, 2.5, 1000, 700], [6, 8000, 2.5, 1000, 700], [6, 9000, 2.5, 1300, 900], [6, 10000, 3.5, 1300, 900], [2, 35000, 2, 3000, 5000]]; } movieClip 1354 { } movieClip 1356 { } frame 6 { var keyListener = new Object(); stopAllSounds(); keyListener.onKeyUp = function () { if (Key.getCode() == 83) { if (_root.UpgradeTowerInfo._visible == true) { if (_root.select_invi == true) { _root.sell2(); _root.select_invi = false; _root.selectlight._x = 3000; } else { _root.sell(); _root.select_invi = false; _root.selectlight._x = 3000; } } } if (Key.getCode() == 65) { _root.upgrade(); } if (Key.getCode() == 32) { _root.sendCreepbt._visible = false; if (!_root.hasGameStarted) { _root.hasGameStarted = true; } if (_root.wave >= 0 && _root.wave - 1 <= _root.waves.length - 1) { if (_root.start_new_wave == true) { _root.start_new_wave = false; _root.score += _root.wave * (_root.maxCount - _root.count) * 10; trace(_root.wave); _root.gold += int(_root.gold * 0.03); _root.count = 1; _root.newLevel(); _root.newLevel2(); _root.level_msg.gotoAndPlay('play'); } } } }; Key.addListener(keyListener); } frame 6 { _root.black_screen.gotoAndPlay(2); trace(_root.difc); _root.m2.start(0, 999); _root.gold = 8000 - 8000 * _root.difc * 20 / 100; updateInfoBar(); _root.map_select = '3'; _root.money_lvl = 0; _root.life_lvl = 0; _root.tech_lvl = 4; _root.damage_lvl = 0; _root.range_lvl = 0; _root.dur_lvl = 0; up_box._visible = true; trace(_root.map_select); _root.remove = false; stop(); _root.waves = [[8, 200, 2, 1300, 100], [10, 300, 2, 1300, 100], [8, 350, 2, 1300, 100], [10, 350, 2, 1300, 100], [8, 500, 3, 1300, 100], [10, 500, 3, 1300, 100], [8, 700, 3, 1300, 100], [8, 800, 3.5, 2000, 100], [8, 1800, 3, 2000, 200], [8, 1300, 4, 1300, 200], [8, 1300, 3, 1300, 200], [8, 1300, 3, 1300, 200], [7, 2000, 3, 2000, 200], [8, 2000, 3, 1300, 200], [8, 2200, 4, 1300, 200], [7, 2200, 3, 1300, 200], [8, 2200, 2, 1000, 200], [8, 4000, 3, 2000, 400], [8, 4000, 3, 1300, 400], [5, 9000, 2, 2000, 400], [8, 5000, 2.5, 1300, 400], [8, 6000, 2, 1300, 400], [8, 9000, 2.5, 2000, 400], [8, 8000, 2, 1300, 400], [8, 7000, 3.5, 1300, 400], [8, 8000, 2.5, 1300, 400], [8, 9000, 2.5, 1300, 400], [8, 10000, 2.5, 1300, 400], [8, 10000, 3.5, 1300, 500], [4, 35000, 2, 3000, 3000], [10, 25000, 2.5, 1300, 500], [10, 30000, 3, 1300, 500], [10, 40000, 3, 2000, 500], [10, 35000, 3, 1300, 500], [10, 30000, 3, 1000, 700], [10, 40000, 2.5, 1000, 700], [5, 60000, 3, 4000, 700], [10, 50000, 3, 3000, 900], [10, 40000, 4.5, 1300, 900], [5, 150000, 4.5, 3000, 10000]]; } movieClip 1360 { } movieClip 1362 { } frame 7 { var keyListener = new Object(); stopAllSounds(); keyListener.onKeyUp = function () { if (Key.getCode() == 83) { if (_root.UpgradeTowerInfo._visible == true) { if (_root.select_invi == true) { _root.sell2(); _root.select_invi = false; _root.selectlight._x = 3000; } else { _root.sell(); _root.select_invi = false; _root.selectlight._x = 3000; } } } if (Key.getCode() == 65) { _root.upgrade(); } if (Key.getCode() == 32) { _root.sendCreepbt._visible = false; if (!_root.hasGameStarted) { _root.hasGameStarted = true; } if (_root.wave >= 0 && _root.wave - 1 <= _root.waves.length - 1) { if (_root.start_new_wave == true) { _root.start_new_wave = false; _root.score += _root.wave * (_root.maxCount - _root.count) * 10; trace(_root.wave); _root.gold += int(_root.gold * 0.03); _root.count = 1; _root.newLevel(); _root.newLevel2(); _root.level_msg.gotoAndPlay('play'); } } } }; Key.addListener(keyListener); } frame 7 { _root.black_screen.gotoAndPlay(2); _root.m2.start(0, 999); _root.gold = 9000 - 9000 * _root.difc * 20 / 100; updateInfoBar(); _root.map_select = '4'; _root.money_lvl = 0; _root.life_lvl = 0; _root.tech_lvl = 5; _root.damage_lvl = 0; _root.range_lvl = 0; _root.dur_lvl = 0; up_box._visible = true; _root.remove = false; stop(); _root.waves = [[10, 200, 2, 1300, 100], [10, 300, 2, 1300, 100], [10, 350, 2, 1300, 100], [10, 350, 2, 1300, 100], [10, 500, 3, 1300, 100], [10, 500, 3, 1300, 100], [10, 700, 3, 1300, 100], [10, 800, 3.5, 2000, 100], [10, 1800, 3, 2000, 200], [10, 1300, 4, 1300, 200], [10, 1300, 3, 1300, 200], [10, 1300, 3, 1300, 200], [10, 2000, 3, 2000, 200], [10, 2000, 3, 1300, 200], [10, 2200, 4, 1200, 200], [10, 2200, 3, 1300, 200], [10, 2200, 2, 1200, 200], [10, 4000, 3, 2000, 400], [10, 4000, 3, 1300, 400], [7, 9000, 2, 2000, 500], [10, 5000, 2.5, 1300, 400], [10, 6000, 2, 1300, 400], [10, 9000, 2.5, 2000, 500], [10, 8000, 2, 1300, 500], [10, 7000, 3.5, 1300, 500], [10, 8000, 2.5, 1300, 500], [10, 9000, 2.5, 1300, 500], [10, 10000, 2.5, 1300, 500], [10, 10000, 3.5, 1300, 500], [6, 35000, 2, 3000, 3000], [15, 25000, 2.5, 1300, 650], [15, 30000, 3, 1300, 650], [15, 40000, 3, 2000, 650], [15, 35000, 3, 1300, 650], [15, 30000, 3, 1000, 850], [15, 40000, 2.5, 1000, 850], [7, 60000, 3, 4000, 850], [15, 50000, 3, 3000, 850], [15, 40000, 4.5, 1300, 850], [5, 120000, 4.5, 3000, 5000], [15, 80000, 2.5, 1300, 1050], [15, 80000, 3, 1300, 1000], [15, 100000, 3, 2000, 1000], [15, 100000, 3, 1300, 1000], [15, 100000, 3, 1000, 1000], [15, 120000, 2.5, 1000, 1500], [10, 150000, 3, 3000, 1550], [10, 150000, 3, 2000, 1550], [10, 150000, 4.5, 1300, 1550], [5, 450000, 4.5, 3000, 10000]]; k = 0; while (k < 50) { duplicateMovieClip(_root.snow, 'snow' + k, k + 8999999); ++k; } } movieClip 1366 { } movieClip 1368 { } movieClip 1369 { } instance snow of movieClip 1369 { onClipEvent (load) { movieWidth = 650; movieHeight = 545; i = 1 + Math.random() * 2; k = -Math.PI + Math.random() * Math.PI; this._yscale = 50 + Math.random() * 100; this._xscale = this._yscale; this._alpha = 75 + Math.random() * 100; this._x = -10 + Math.random() * movieWidth; this._y = -10 + Math.random() * movieHeight; } onClipEvent (enterFrame) { if (_root.remove == true) { this.removeMovieClip(); } rad += (k / 180) * Math.PI; this._x -= Math.cos(rad); this._y += i; if (this._y >= movieHeight) { this._y = -5; } if (this._x >= movieWidth || this._x <= 0) { this._x = -10 + Math.random() * movieWidth; this._y = -5; } } } frame 8 { var keyListener = new Object(); stopAllSounds(); keyListener.onKeyUp = function () { if (Key.getCode() == 83) { if (_root.UpgradeTowerInfo._visible == true) { if (_root.select_invi == true) { _root.sell2(); _root.select_invi = false; _root.selectlight._x = 3000; } else { _root.sell(); _root.select_invi = false; _root.selectlight._x = 3000; } } } if (Key.getCode() == 65) { _root.upgrade(); } if (Key.getCode() == 32) { _root.sendCreepbt._visible = false; if (!_root.hasGameStarted) { _root.hasGameStarted = true; } if (_root.wave >= 0 && _root.wave - 1 <= _root.waves.length - 1) { if (_root.start_new_wave == true) { _root.start_new_wave = false; _root.score += _root.wave * (_root.maxCount - _root.count) * 10; trace(_root.wave); _root.gold += int(_root.gold * 0.03); _root.count = 1; _root.newLevel(); _root.newLevel2(); _root.level_msg.gotoAndPlay('play'); } } } }; Key.addListener(keyListener); } frame 8 { _root.black_screen.gotoAndPlay(2); _root.m3.start(0, 999); _root.gold = 10000 - 10000 * _root.difc * 20 / 100; updateInfoBar(); _root.map_select = '5'; _root.money_lvl = 0; _root.life_lvl = 0; _root.tech_lvl = 6; _root.damage_lvl = 0; _root.range_lvl = 0; _root.dur_lvl = 0; up_box._visible = true; _root.remove = false; stop(); _root.waves = [[10, 250, 2, 1200, 50], [10, 400, 2, 1200, 50], [10, 450, 2, 1200, 50], [10, 450, 2, 1200, 50], [9, 600, 3, 1200, 70], [10, 600, 3, 1200, 70], [10, 1000, 3, 1200, 70], [10, 900, 3.5, 1100, 70], [10, 2000, 3, 1100, 100], [10, 1500, 4, 1000, 100], [10, 1500, 3, 1000, 100], [10, 1500, 3, 1000, 100], [7, 3000, 3, 2000, 100], [10, 3000, 3, 1200, 200], [10, 2500, 4, 1200, 200], [7, 2500, 3, 1000, 200], [10, 2500, 2, 600, 200], [10, 5000, 3, 2000, 400], [10, 5000, 3, 1200, 400], [10, 10000, 2, 1500, 600], [10, 6000, 2, 1000, 500], [10, 6000, 3, 1000, 500], [10, 10000, 3, 1500, 500], [10, 9000, 3, 1200, 500], [10, 7000, 4, 1000, 500], [10, 8000, 4, 1000, 500], [10, 13000, 2, 1000, 500], [10, 13000, 3, 1200, 700], [10, 15000, 4, 1200, 700], [10, 35000, 2.5, 1200, 3000], [10, 25000, 2, 1200, 700], [10, 27000, 2.5, 1200, 700], [10, 30000, 2.5, 1500, 700], [10, 29000, 2.5, 1200, 700], [10, 27000, 2.5, 1000, 700], [10, 40000, 2, 1000, 700], [5, 120000, 2.5, 2500, 1000], [10, 120000, 2.5, 2000, 1000], [10, 90000, 4, 1200, 1000], [10, 220000, 4, 2000, 5000], [10, 120000, 2, 1200, 1000], [10, 120000, 2.5, 1200, 1000], [10, 140000, 2.5, 1500, 1000], [10, 140000, 2.5, 1200, 1000], [10, 140000, 2.5, 1000, 1500], [10, 180000, 2, 1000, 1500], [5, 240000, 2.5, 2000, 1500], [10, 190000, 2.5, 1500, 1500], [10, 190000, 4, 1200, 1500], [5, 350000, 4, 2000, 10000], [15, 190000, 2, 1200, 1500], [15, 190000, 2.5, 1200, 1500], [15, 260000, 2.5, 1500, 2000], [15, 240000, 3, 1200, 1500], [15, 240000, 3.5, 1000, 1500], [15, 350000, 2, 600, 1500], [10, 350000, 2.5, 600, 1700], [15, 450000, 2.5, 1500, 1900], [15, 450000, 3, 1200, 1900], [2, 4500000, 1.5, 7000, 10000]]; k = 0; while (k < 50) { duplicateMovieClip(_root.snow, 'snow' + k, k + 8999999); ++k; } } movieClip 1373 { } movieClip 1375 { } frame 9 { var keyListener = new Object(); stopAllSounds(); keyListener.onKeyUp = function () { if (Key.getCode() == 83) { if (_root.UpgradeTowerInfo._visible == true) { if (_root.select_invi == true) { _root.sell2(); _root.select_invi = false; _root.selectlight._x = 3000; } else { _root.sell(); _root.select_invi = false; _root.selectlight._x = 3000; } } } if (Key.getCode() == 65) { _root.upgrade(); } if (Key.getCode() == 32) { _root.sendCreepbt._visible = false; if (!_root.hasGameStarted) { _root.hasGameStarted = true; } if (_root.wave >= 0 && _root.wave - 1 <= _root.waves.length - 1) { if (_root.start_new_wave == true) { _root.start_new_wave = false; _root.score += _root.wave * (_root.maxCount - _root.count) * 10; trace(_root.wave); _root.gold += int(_root.gold * 0.03); _root.count = 1; _root.newLevel(); _root.newLevel2(); _root.level_msg.gotoAndPlay('play'); } } } }; Key.addListener(keyListener); } frame 9 { _root.black_screen.gotoAndPlay(2); _root.m3.start(0, 999); _root.gold = 11000 - 11000 * _root.difc * 20 / 100; updateInfoBar(); _root.map_select = '6'; _root.money_lvl = 0; _root.life_lvl = 0; _root.tech_lvl = 7; _root.damage_lvl = 0; _root.range_lvl = 0; _root.dur_lvl = 0; up_box._visible = true; _root.remove = false; stop(); _root.waves = [[15, 250, 2, 1000, 50], [15, 400, 2, 1000, 50], [15, 450, 2, 1000, 50], [15, 450, 2, 1000, 50], [15, 600, 3, 1000, 70], [15, 600, 3, 1000, 70], [15, 800, 3, 1000, 70], [15, 900, 3.5, 1800, 70], [15, 2000, 3, 1800, 100], [15, 1500, 4, 800, 100], [15, 1500, 3, 800, 100], [15, 1500, 3, 800, 100], [10, 3000, 3, 2000, 100], [15, 3000, 3, 1200, 200], [15, 2500, 4, 1200, 200], [10, 2500, 3, 800, 200], [15, 2500, 2, 600, 200], [15, 5000, 3, 2000, 400], [15, 5000, 3, 1200, 400], [15, 10000, 2, 1500, 600], [15, 6000, 2, 800, 500], [15, 6000, 3, 800, 500], [15, 10000, 3, 1500, 500], [15, 9000, 3, 1200, 500], [15, 7000, 4, 800, 700], [15, 8000, 4, 800, 700], [15, 13000, 2, 800, 700], [15, 13000, 3, 1200, 700], [15, 15000, 4, 1200, 700], [15, 35000, 2.5, 1200, 3000], [15, 25000, 2, 1200, 700], [15, 27000, 2.5, 1200, 700], [15, 30000, 2.5, 1500, 700], [15, 29000, 2.5, 1200, 700], [15, 27000, 2.5, 800, 700], [15, 40000, 2, 800, 700], [7, 120000, 2.5, 2500, 1000], [15, 120000, 2.5, 2000, 1200], [15, 90000, 4, 1200, 1200], [15, 220000, 4, 2000, 5000], [15, 120000, 2, 1200, 1200], [15, 120000, 2.5, 1200, 1200], [15, 140000, 2.5, 1500, 1500], [15, 140000, 2.5, 1200, 1200], [15, 140000, 2.5, 800, 1200], [15, 180000, 2, 800, 1200], [7, 240000, 2.5, 2000, 1500], [15, 190000, 2.5, 1500, 1500], [15, 190000, 4, 1200, 1500], [7, 350000, 4, 2000, 10000], [15, 190000, 2, 1200, 1500], [15, 190000, 2.5, 1200, 1500], [15, 260000, 2.5, 1500, 1500], [15, 240000, 3, 1200, 1500], [15, 240000, 3.5, 800, 1500], [15, 350000, 2, 600, 1500], [10, 350000, 2.5, 600, 1700], [15, 450000, 2.5, 1500, 1700], [15, 450000, 3, 1200, 1700], [4, 4500000, 1.5, 7000, 10000], [15, 350000, 3, 1200, 1700], [15, 470000, 3.5, 1500, 1700], [15, 400000, 3.5, 1200, 2000], [15, 400000, 3, 800, 1700], [15, 600000, 2.5, 800, 1700], [15, 600000, 2.5, 600, 1700], [10, 900000, 2.5, 600, 1700], [15, 1200000, 2.5, 1500, 1900], [15, 1000000, 4, 800, 1900], [4, 2000000, 4.5, 2000, 10000]]; k = 0; while (k < 50) { duplicateMovieClip(_root.snow, 'snow' + k, k + 8999999); ++k; } } movieClip 1379 { } movieClip 1381 { } frame 10 { var keyListener = new Object(); stopAllSounds(); keyListener.onKeyUp = function () { if (Key.getCode() == 83) { if (_root.UpgradeTowerInfo._visible == true) { if (_root.select_invi == true) { _root.sell2(); _root.select_invi = false; _root.selectlight._x = 3000; } else { _root.sell(); _root.select_invi = false; _root.selectlight._x = 3000; } } } if (Key.getCode() == 65) { _root.upgrade(); } if (Key.getCode() == 32) { _root.sendCreepbt._visible = false; if (!_root.hasGameStarted) { _root.hasGameStarted = true; } if (_root.wave >= 0 && _root.wave - 1 <= _root.waves.length - 1) { if (_root.start_new_wave == true) { _root.start_new_wave = false; _root.score += _root.wave * (_root.maxCount - _root.count) * 10; trace(_root.wave); _root.gold += int(_root.gold * 0.03); _root.count = 1; _root.newLevel(); _root.newLevel2(); _root.level_msg.gotoAndPlay('play'); } } } }; Key.addListener(keyListener); } frame 10 { _root.black_screen.gotoAndPlay(2); _root.m4.start(0, 999); _root.gold = 16000 - 16000 * _root.difc * 20 / 100; updateInfoBar(); _root.map_select = '7'; _root.money_lvl = 0; _root.life_lvl = 0; _root.tech_lvl = 8; _root.damage_lvl = 0; _root.range_lvl = 0; _root.dur_lvl = 0; up_box._visible = true; _root.remove = false; stop(); _root.waves = [[30, 250, 2, 1000, 50], [30, 400, 2, 1000, 50], [30, 450, 2, 1000, 50], [30, 450, 2, 1000, 50], [30, 600, 3, 1000, 70], [30, 600, 3, 1000, 70], [30, 800, 3, 1000, 70], [30, 900, 3.5, 1800, 70], [30, 2000, 3, 1800, 100], [30, 1500, 4, 800, 100], [30, 1500, 3, 800, 100], [30, 1500, 3, 800, 100], [20, 3000, 3, 2000, 100], [30, 3000, 3, 1200, 200], [30, 2500, 4, 1200, 200], [20, 2500, 3, 800, 200], [30, 2500, 2, 600, 200], [30, 5000, 3, 2000, 400], [30, 5000, 3, 1200, 400], [30, 10000, 2, 1500, 600], [30, 6000, 2, 800, 500], [30, 6000, 3, 800, 500], [30, 10000, 3, 1500, 500], [30, 9000, 3, 1200, 500], [30, 7000, 4, 800, 700], [30, 8000, 4, 800, 700], [30, 13000, 2, 800, 700], [30, 13000, 3, 1200, 700], [30, 15000, 4, 1200, 700], [30, 35000, 2.5, 1200, 3000], [30, 25000, 2, 1200, 700], [30, 27000, 2.5, 1200, 700], [30, 30000, 2.5, 1500, 700], [30, 29000, 2.5, 1200, 700], [30, 27000, 2.5, 800, 700], [30, 40000, 2, 800, 700], [20, 120000, 2.5, 2500, 1000], [30, 120000, 2.5, 2000, 1200], [30, 90000, 4, 1200, 1200], [30, 250000, 4, 2000, 5000], [30, 120000, 2, 1200, 1200], [30, 120000, 2.5, 1200, 1200], [30, 140000, 2.5, 1500, 1500], [30, 140000, 2.5, 1200, 1200], [30, 140000, 2.5, 800, 1200], [30, 180000, 2, 800, 1200], [20, 240000, 2.5, 2000, 1500], [30, 190000, 2.5, 1500, 1500], [30, 190000, 4, 1200, 1500], [20, 350000, 4, 2000, 10000], [30, 190000, 2, 1200, 1500], [30, 190000, 2.5, 1200, 1500], [30, 260000, 2.5, 1500, 1500], [30, 240000, 3, 1200, 1500], [30, 240000, 3.5, 800, 1500], [30, 350000, 2, 600, 1500], [20, 350000, 2.5, 600, 1700], [30, 450000, 2.5, 1500, 1700], [30, 450000, 3, 1200, 1700], [8, 4500000, 1.5, 7000, 10000], [30, 350000, 3, 1200, 1700], [30, 470000, 3.5, 1500, 1700], [30, 400000, 3.5, 1200, 2000], [30, 400000, 3, 800, 1700], [30, 600000, 2.5, 800, 1700], [30, 600000, 2.5, 600, 1700], [20, 900000, 2.5, 600, 1700], [30, 1200000, 2.5, 1500, 1900], [30, 1000000, 4, 800, 1900], [8, 2000000, 4.5, 2000, 10000]]; _root.waves2 = [[30, 250, 2, 1000, 50], [30, 400, 2, 1000, 50], [30, 450, 2, 1000, 50], [30, 450, 2, 1000, 50], [30, 600, 3, 1000, 70], [30, 600, 3, 1000, 70], [30, 800, 3, 1000, 70], [30, 900, 3.5, 1800, 70], [30, 2000, 3, 1800, 100], [30, 1500, 4, 800, 100], [30, 1500, 3, 800, 100], [30, 1500, 3, 800, 100], [20, 3000, 3, 2000, 100], [30, 3000, 3, 1200, 200], [30, 2500, 4, 1200, 200], [20, 2500, 3, 800, 200], [30, 2500, 2, 600, 200], [30, 5000, 3, 2000, 400], [30, 5000, 3, 1200, 400], [30, 10000, 2, 1500, 600], [30, 6000, 2, 800, 500], [30, 6000, 3, 800, 500], [30, 10000, 3, 1500, 500], [30, 9000, 3, 1200, 500], [30, 7000, 4, 800, 700], [30, 8000, 4, 800, 700], [30, 13000, 2, 800, 700], [30, 13000, 3, 1200, 700], [30, 15000, 4, 1200, 700], [30, 35000, 2.5, 1200, 3000], [30, 25000, 2, 1200, 700], [30, 27000, 2.5, 1200, 700], [30, 30000, 2.5, 1500, 700], [30, 29000, 2.5, 1200, 700], [30, 27000, 2.5, 800, 700], [30, 40000, 2, 800, 700], [20, 120000, 2.5, 2500, 1000], [30, 120000, 2.5, 2000, 1200], [30, 90000, 4, 1200, 1200], [30, 250000, 4, 2000, 5000], [30, 120000, 2, 1200, 1200], [30, 120000, 2.5, 1200, 1200], [30, 140000, 2.5, 1500, 1500], [30, 140000, 2.5, 1200, 1200], [30, 140000, 2.5, 800, 1200], [30, 180000, 2, 800, 1200], [20, 240000, 2.5, 2000, 1500], [30, 190000, 2.5, 1500, 1500], [30, 190000, 4, 1200, 1500], [20, 350000, 4, 2000, 10000], [30, 190000, 2, 1200, 1500], [30, 190000, 2.5, 1200, 1500], [30, 260000, 2.5, 1500, 1500], [30, 240000, 3, 1200, 1500], [30, 240000, 3.5, 800, 1500], [30, 350000, 2, 600, 1500], [20, 350000, 2.5, 600, 1700], [30, 450000, 2.5, 1500, 1700], [30, 450000, 3, 1200, 1700], [8, 4500000, 1.5, 7000, 10000], [30, 350000, 3, 1200, 1700], [30, 470000, 3.5, 1500, 1700], [30, 400000, 3.5, 1200, 2000], [30, 400000, 3, 800, 1700], [30, 600000, 2.5, 800, 1700], [30, 600000, 2.5, 600, 1700], [20, 900000, 2.5, 600, 1700], [30, 1200000, 2.5, 1500, 1900], [30, 1000000, 4, 800, 1900], [8, 2000000, 4.5, 2000, 10000]]; _root.wave = 0; _root.wave2 = 0; _root.u_lv = 0; _root.hasGameStarted = false; _root.hasGameFinished = false; _root.towerCount = 0; _root.towerCounts = 0; _root.selectedTower = ''; _root.selectedTower2 = ''; _root.currentNumberOfCreeps = 0; _root.currentNumberOfCreeps2 = 0; _root.creepCount = 0; _root.creepCount2 = 0; _root.creepArray = []; _root.creepArray2 = []; _root.creepLeaks = 0; _root.creepLeaks2 = 0; _root.explosionCount = 0; _root.particleCount = 0; _root.count = 1; _root.count2 = 1; _root.maxCount = 40; _root.maxCount2 = 40; _root.updateDuration = 2; _root.health = 20; _root.updateInfoBar(); } movieClip 1385 { } movieClip 1387 { } movieClip 1389 { frame 2 { stop(); } } frame 11 { stop(); stopAllSounds(); _root.remove = true; _root.game_over.start(0, 1); } movieClip 1392 { } movieClip 1400 { } movieClip 1402 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1405 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1406 { frame 1 { scores.text = _root.score; } instance of movieClip 1402 { onClipEvent (press) { stopAllSounds(); _root.gotoAndStop('map_selection'); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } } instance of movieClip 1405 { onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (press) { getURL('http://www.startonlinegames.com', '_blank'); } } } movieClip 1408 { frame 69 { stop(); } } frame 12 { stopAllSounds(); _root.ending_so.start(0, 999); stop(); } movieClip 1422 { } movieClip 1423 { } movieClip 1425 { } // unknown tag 88 length 85 movieClip 1428 { } movieClip 1430 { } movieClip 1432 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1435 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1436 { frame 1 { scores.text = _root.score; } instance of movieClip 1432 { onClipEvent (press) { getURL('http://www.startonlinegames.com', '_blank'); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } } instance of movieClip 1435 { onClipEvent (press) { stopAllSounds(); _root.gotoAndStop('movies'); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } } } movieClip 1437 { frame 25 { stop(); } } movieClip 1438 { frame 25 { stop(); } } frame 13 { stop(); } // unknown tag 88 length 116 button 1442 { on (press) { getURL('http://www.startonlinegames.com', '_blank'); } }




http://swfchan.com/27/131346/info.shtml
Created: 21/2 -2019 10:13:43 Last modified: 21/2 -2019 10:13:43 Server time: 14/05 -2024 02:06:56