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

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

Stalingrad 2.swf

This is the info page for
Flash #130973

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


ActionScript [AS1/AS2]
Combined Code
movieClip 3 LogoFly { frame 1 { stop(); } frame 10 { stop(); } } frame 1 { FOG.AS2.FogServices.Connect({'id': 118, 'fogid': 14961, 'name': 'stalingrad-2', 'title': 'Stalingrad 2', 'category': 'arcade-games'}); FOG.AS2.FogPreloader.Start(); _quality = 'LOW'; var i_i_levelmap = 1; var i_startmusic = true; var i_score = 0; var musicplay = true; } movieClip 13 { frame 1 { stop(); } } movieClip 55 { } instance of movieClip 55 { onClipEvent (release) { FOG.AS2.FogServices.TrackClick(); } } movieClip 58 { } button 60 { on (release) { FOG.AS2.FogServices.TrackClick(); } } movieClip 65 { } movieClip 68 { } movieClip 69 { frame 14 { if (_root._currentframe == 5 || _root._currentframe == 6 || _root._currentframe == 7) { stop(); } } frame 21 { stop(); } frame 46 { _root.gotoAndStop(_root.stopwhere); } } button 73 { on (press) { FOG.AS2.FogServices.TrackClick(); } on (keyPress 'i') { gotoAndStop(2); } } button 74 { on (press) { FOG.AS2.FogServices.TrackClick(); } on (keyPress 'g') { gotoAndStop(3); } } button 75 { on (press) { FOG.AS2.FogServices.TrackClick(); } on (keyPress 'n') { gotoAndStop(4); } } button 76 { on (press) { FOG.AS2.FogServices.TrackClick(); } on (keyPress 'a') { gotoAndStop(5); } } button 77 { on (press) { FOG.AS2.FogServices.TrackClick(); } on (keyPress 't') { gotoAndStop(6); } } movieClip 80 { frame 1 { _root.i_money += 1000000; } frame 135 { _parent.gotoAndStop(1); } } button 81 { on (press) { FOG.AS2.FogServices.TrackClick(); } } movieClip 82 { frame 1 { stop(); } } movieClip 83 { } movieClip 1137 __Packages.FOG.AS2.FogServices { #initclip if (!_global.FOG) { _global.FOG = new Object(); } if (!_global.FOG.AS2) { _global.FOG.AS2 = new Object(); } if (!_global.FOG.AS2.FogServices) { var v1 = function () {}; FOG.AS2.FogServices = v1; var v2 = v1.prototype; v1.Connect = function (D) { FOG.AS2.FogServices.Data = D; FOG.AS2.FogServices.Data.domain = FOG.AS2.FogServices.GetHostedDomain(); FOG.AS2.FogUtils.Debug(D, 'Game Data'); }; v1.TrackClick = function (Url) { if (!Url) { Url = 'www.freeonlinegames.com'; } var v2 = '?utm_source=' + FOG.AS2.FogServices.Data.domain + '&utm_medium=api-game' + '&utm_campaign=' + FOG.AS2.FogServices.Data.name; FOG.AS2.FogUtils.Debug('Tracking Url: ' + Url); FOG.AS2.FogUtils.Debug('Tracking Query: ' + v2); getURL('http://' + Url + (Url.indexOf('.html') ? '' : '/') + v2, '_blank'); }; v1.TrackPlay = function () { FOG.AS2.FogUtils.Debug('Track Play Using FogDev'); FOG.AS2.FogDev.TrackPlay(); }; v1.GetHostedDomain = function () { var v2 = _url.indexOf('://') + 3; var v4 = _url.indexOf('/', v2); var v1 = _url.substring(v2, v4); var v3 = v1.lastIndexOf('.') - 1; var v5 = v1.lastIndexOf('.', v3) + 1; if (!v1) { v1 = 'local'; } return v1; }; v1.Version = '1.3'; v1.Data = new Object(); ASSetPropFlags(FOG.AS2.FogServices.prototype, null, 1); } #endinitclip } movieClip 1138 __Packages.FOG.AS2.FogUtils { #initclip if (!_global.FOG) { _global.FOG = new Object(); } if (!_global.FOG.AS2) { _global.FOG.AS2 = new Object(); } if (!_global.FOG.AS2.FogUtils) { var v1 = function () {}; FOG.AS2.FogUtils = v1; var v2 = v1.prototype; v1.Debug = function (S, N) { if (typeof S == 'object') { if (N) { FOG.AS2.FogUtils.Debug(N); } else { FOG.AS2.FogUtils.Debug('Object'); } for (var v2 in S) { FOG.AS2.FogUtils.Debug('> ' + v2 + ': ' + S[v2]); } return undefined; } if (flash.external.ExternalInterface.available) { flash.external.ExternalInterface.call('fog.debug', S); } if (S.indexOf('>') != 0) { trace(' '); } trace(S); }; ASSetPropFlags(FOG.AS2.FogUtils.prototype, null, 1); } #endinitclip } movieClip 1139 __Packages.FOG.AS2.FogDev { #initclip if (!_global.FOG) { _global.FOG = new Object(); } if (!_global.FOG.AS2) { _global.FOG.AS2 = new Object(); } if (!_global.FOG.AS2.FogDev) { var v1 = function () {}; FOG.AS2.FogDev = v1; var v2 = v1.prototype; v1.Connect = function () { System.security.allowDomain('*'); FOG.AS2.FogUtils.Debug('> Connecting'); FOG.AS2.FogUtils.Debug('> http://' + FOG.AS2.FogDev.Server + '/' + FOG.AS2.FogDev.LibFile + '?as=2&v=' + FOG.AS2.FogServices.Version); var v2 = new Object(); v2.onLoadInit = function (Clip) { FOG.AS2.FogDev.Remote = Clip; if (!FOG.AS2.FogDev.Remote.CanAccess) { FOG.AS2.FogUtils.Debug('> Corrupt Library'); return undefined; } FOG.AS2.FogDev.Remote.Connect(FOG.AS2.FogServices.Data.name, FOG.AS2.FogServices.Data.domain); }; v2.onLoadError = function (c, e) { FOG.AS2.FogUtils.Debug('> Can\'t Load Library'); }; _root.createEmptyMovieClip('conn_remote', _root.getNextHighestDepth()); var v3 = new MovieClipLoader(); v3.addListener(v2); v3.loadClip('http://' + FOG.AS2.FogDev.Server + '/' + FOG.AS2.FogDev.LibFile + '?as=2&v=' + FOG.AS2.FogServices.Version + '&c=' + Math.random(), _root.conn_remote); }; v1.TrackPlay = function () { FOG.AS2.FogUtils.Debug('> Tracking'); FOG.AS2.FogDev.Connect(); }; v1.Server = 'x.fogdev.com'; v1.LibFile = 'api/library-as2.swf'; v1.LibPath = ''; ASSetPropFlags(FOG.AS2.FogDev.prototype, null, 1); } #endinitclip } movieClip 1140 __Packages.FOG.AS2.FogPreloader { #initclip if (!_global.FOG) { _global.FOG = new Object(); } if (!_global.FOG.AS2) { _global.FOG.AS2 = new Object(); } if (!_global.FOG.AS2.FogPreloader) { var v1 = function () {}; FOG.AS2.FogPreloader = v1; var v2 = v1.prototype; v1.Start = function () { FOG.AS2.FogUtils.Debug('Preloader Initialized'); _root.stop(); var v5 = _root.mcTaglines; var v4 = _root.btnFoggy; var mcLogo = _root.mcLogo; var prel = _root.prel; var fogNo = 0; var GameDura = 3000; var percent = 0; var percentGame = 0; var percentDura = 0; var stagewidth = Stage.width; var stageheight = Stage.height; var startTimer = getTimer(); v4._width = stagewidth; v4._height = stageheight; v5.swapDepths(99996); prel.swapDepths(99997); mcLogo.swapDepths(99998); v4.swapDepths(99999); prel.onEnterFrame = function () { var v4 = Math.random(); if (v4 < _root.getBytesLoaded() / _root.getBytesTotal() / 5) { if (fogNo > 999) { fogNo = 0; } var v5 = random(2) + 1; var v3 = _root.attachMovie('LogoFly', 'fog' + fogNo++, fogNo); v3.cacheAsBitmap = true; v3._x = stagewidth / 2; v3._y = stageheight / 2; v3._yscale = 0; v3._xscale = 0; v3.gotoAndStop(random(10) + 1); v3.speed = 100; v3._alpha = 0; v3.grow = Math.random(); v3.fade = false; v3.targetX = random(10); if (v3.targetX < 5) { v3.targetX = random(10); if (v3.targetX < 5) { v3.targetX = -100; } else { v3.targetX = stagewidth + 100; } v3.targetY = random(stageheight); } else { v3.targetY = random(10); if (v3.targetY < 5) { v3.targetY = -100; } else { v3.targetY = stageheight + 100; } v3.targetX = random(stagewidth); } v3.onEnterFrame = function () { this._x += ((this.targetX - this._x) / this.speed) * 0.5; this._y += ((this.targetY - this._y) / this.speed) * 0.5; this.speed *= 0.99; this._yscale += this.grow * 2; this._xscale = this._yscale; if (this._alpha < 100 && !this.fade) { this._alpha += 2; } if (this._x < -50 || this._y < -50 || this._x > stagewidth + 50 || this._y > stageheight + 50 || this._xscale > 200) { this.fade = true; } if (this.fade) { this._alpha -= 5; if (this._alpha <= 0) { delete this.onEnterFrame; this.removeMovieClip(); } } }; } percentGame = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); percentDura = ((getTimer() - startTimer) / GameDura) * 100; percent = Math.round(Math.min(percentGame, percentDura, 100)); prel.gotoAndStop(percent); prel.procent.text = percent; if (percent > 99) { FOG.AS2.FogPreloader.onLoaded(); mcLogo.removeMovieClip(); delete this.onEnterFrame; play(); } }; }; v1.onLoaded = FOG.AS2.FogServices.TrackPlay; v2.onComplete = function () {}; ASSetPropFlags(FOG.AS2.FogPreloader.prototype, null, 1); } #endinitclip } frame 2 { stop(); mcLogo.swapDepths(99998); } movieClip 85 { } movieClip 126 { } movieClip 127 { instance mcNotice of movieClip 85 { onClipEvent (load) { _visible = false; } } frame 120 { _root.play(); } } movieClip 128 { frame 60 { stop(); } } frame 3 { prel.removeMovieClip(); btnFoggy.removeMovieClip(); mcTaglines.removeMovieClip(); mcLogo.removeMovieClip(); gotoAndStop(5); } movieClip 147 { frame 1 { stop(); } } // unknown tag 88 length 63 movieClip 154 { } // unknown tag 88 length 63 movieClip 187 { } button 207 { on (release) { FOG.AS2.FogServices.TrackClick('www.freeonlinegames.com/shooting-games/stalingrad.html'); } } movieClip 229 i_paused { frame 1 { var musicplay = true; onEnterFrame = function () { _root.build = 0; }; i_quit.onPress = function () { _root.i_gamemusic.stop(); _root.i_startmusic = true; _root.blackanimation.gotoAndPlay('close'); _root.stopwhere = 8; }; i_resume.onPress = function () { _root.i_pausegame = false; _root.i_menu.i_paused.removeMovieClip(); }; i_pmg.onPress = function () { FOG.AS2.FogServices.TrackClick(); }; i_stalin1.onPress = function () {}; i_high.onPress = function () { _quality = 'HIGH'; }; i_medium.onPress = function () { _quality = 'MEDIUM'; }; i_low.onPress = function () { _quality = 'LOW'; }; i_on.onPress = function () { if (musicplay) { _root.i_gamemusic.attachSound('STALINGRAD_level' + i_levelmap); _root.i_gamemusic.start(0, 9999); _root.i_gamemusic.setVolume(75); musicplay = false; } }; i_off.onPress = function () { _root.i_gamemusic.stop(); musicplay = true; }; i_son.onPress = function () { _root.i_gamemusic.setVolume(75); }; i_soff.onPress = function () { _root.i_gamemusic.stop(); _root.i_gamemusic.setVolume(0); musicplay = true; }; } } movieClip 231 { } movieClip 232 i_smokefire { } movieClip 234 { } movieClip 241 bird { frame 1 { onEnterFrame = function () { if (_root.i_pausegame == false) { _x = _x - 2; if (_x <= -50) { _x = random(600) + 631; _y = random(481); } } if (_root.i_pausegame == true) { stop(); } else { play(); } }; } } movieClip 252 { } // unknown tag 88 length 63 movieClip 264 { } movieClip 266 { } movieClip 267 { frame 1 { stop(); } } movieClip 269 { } movieClip 270 { frame 1 { stop(); } } movieClip 275 { frame 1 { stop(); } } movieClip 302 { frame 1 { stop(); i_researchname = 'turret'; i_info = 'info: turret - fast fire rate, great damage'; i_researchguns = 1; i_researchtanks = 0; onEnterFrame = function () { if (i_researchguns <= _root.i_built_factory_defence) { gun_blink.gotoAndStop(1); } else { gun_blink.gotoAndStop(2); } if (i_researchtanks <= _root.i_built_factory_tanks) { tank_blink.gotoAndStop(1); } else { tank_blink.gotoAndStop(2); } if (_root.i_showfirst) { gotoAndStop(_root.i_researchframe); _root.i_showfirst = false; } i_research_btn.onPress = function () { if (i_researchguns <= _root.i_built_factory_defence) { if (_currentframe == 2) { if (!_root.i_bunkerresearch) { _root.i_bunkerresearch = true; _root.i_built_factory_defence -= i_researchguns; } } if (_currentframe == 3) { if (!_root.i_artilleryresearch) { _root.i_artilleryresearch = true; _root.i_built_factory_defence -= i_researchguns; } } if (_currentframe == 5) { if (!_root.i_machineresearch) { _root.i_machineresearch = true; _root.i_built_factory_defence -= i_researchguns; } } } if (i_researchtanks <= _root.i_built_factory_tanks) { if (_currentframe == 7) { if (!_root.i_bikere) { _root.i_bikere = true; _root.i_built_factory_tanks -= i_researchtanks; } } if (_currentframe == 8) { if (!_root.i_truckre) { _root.i_truckre = true; _root.i_built_factory_tanks -= i_researchtanks; } } if (_currentframe == 9) { if (!_root.i_apcre) { _root.i_apcre = true; _root.i_built_factory_tanks -= i_researchtanks; } } if (_currentframe == 10) { if (!_root.i_tankre) { _root.i_tankre = true; _root.i_built_factory_tanks -= i_researchtanks; } } if (_currentframe == 11) { if (!_root.i_bigtankre) { _root.i_bigtankre = true; _root.i_built_factory_tanks -= i_researchtanks; } } } }; if (_root.i_bikere) { i_researched_bik.gotoAndStop(1); } else { i_researched_bik.gotoAndStop(2); } if (_root.i_truckre) { i_researched_tru.gotoAndStop(1); } else { i_researched_tru.gotoAndStop(2); } if (_root.i_apcre) { i_researched_apc.gotoAndStop(1); } else { i_researched_apc.gotoAndStop(2); } if (_root.i_tankre) { i_researched_tank.gotoAndStop(1); } else { i_researched_tank.gotoAndStop(2); } if (_root.i_bigtankre) { i_researched_bigtank.gotoAndStop(1); } else { i_researched_bigtank.gotoAndStop(2); } if (_root.i_turretresearch) { i_researched_tur.gotoAndStop(1); } else { i_researched_tur.gotoAndStop(2); } if (_root.i_bunkerresearch) { i_researched_bun.gotoAndStop(1); } else { i_researched_bun.gotoAndStop(2); } if (_root.i_artilleryresearch) { i_researched_art.gotoAndStop(1); } else { i_researched_art.gotoAndStop(2); } if (_root.i_flakresearch) { i_researched_fla.gotoAndStop(1); } else { i_researched_fla.gotoAndStop(2); } if (_root.i_machineresearch) { i_researched_mac.gotoAndStop(1); } else { i_researched_mac.gotoAndStop(2); } }; } frame 2 { i_researchname = 'bunker'; i_info = 'info: bunker - powerful, short range, long reload'; i_researchguns = 4; i_researchtanks = 0; } frame 3 { i_researchname = 'artillery'; i_info = 'info: artillery - long range, great damage'; i_researchguns = 7; i_researchtanks = 0; } frame 4 { i_researchname = 'flak'; i_info = 'info: flak - speacily anti-air'; i_researchguns = 2; i_researchtanks = 0; } frame 5 { i_researchname = 'machine gun'; i_info = 'info: machine gun - fast self reloading machine gun, great damage'; i_researchguns = 15; i_researchtanks = 0; } frame 7 { i_researchname = 'MotorBikes'; i_info = 'info: fast, cheap'; i_researchguns = 0; i_researchtanks = 2; } frame 8 { i_researchname = 'Trucks'; i_info = 'info: Good price good performance'; i_researchguns = 0; i_researchtanks = 6; } frame 9 { i_researchname = 'armored trucks'; i_info = 'info: Exactly what you need on the field, good armor'; i_researchguns = 0; i_researchtanks = 10; } frame 10 { i_researchname = 'T-80'; i_info = 'info: Strong little toy'; i_researchguns = 0; i_researchtanks = 14; } frame 11 { i_researchname = 'IS-3'; i_info = 'info: Iosif Stalin tank it self'; i_researchguns = 0; i_researchtanks = 20; } } // unknown tag 88 length 63 movieClip 315 { } movieClip 346 { } movieClip 367 research_menu { frame 1 { _root.build = 0; i_close_btn.onPress = function () { _root.i_menu.i_paused.removeMovieClip(); removeMovieClip(_root.i_menu.research_menu); _root.i_pausegame = false; }; i_turret.onPress = function () { i_research.gotoAndStop('turret'); }; i_bunker.onPress = function () { i_research.gotoAndStop('bunker'); }; i_artillery.onPress = function () { i_research.gotoAndStop('artillery'); }; i_flak.onPress = function () { i_research.gotoAndStop('flak'); }; i_machine.onPress = function () { i_research.gotoAndStop('machine'); }; i_bike.onPress = function () { i_research.gotoAndStop('bike'); }; i_truck.onPress = function () { i_research.gotoAndStop('truck'); }; i_armtruck.onPress = function () { i_research.gotoAndStop('armtruck'); }; i_mediumtank.onPress = function () { i_research.gotoAndStop('mediumtank'); }; i_bigtank.onPress = function () { i_research.gotoAndStop('bigtank'); }; } } movieClip 372 { } movieClip 381 { frame 1 { onEnterFrame = function () { if (_root.i_pausegame == true) { stop(); } else { play(); } }; } frame 100 { stop(); _parent.gotoAndStop(2); } } movieClip 392 { frame 1 { stop(); } } movieClip 404 { frame 1 { stop(); gotoAndStop(random(10)); } } movieClip 405 { } movieClip 435 { frame 1 { onEnterFrame = function () { if (_root.i_pausegame == true) { stop(); } else { play(); } }; } frame 70 { stop(); } frame 71 { gotoAndStop(70); } } movieClip 438 { } movieClip 440 factory { frame 1 { stop(); } frame 2 { factory.gotoAndStop(random(5)); i_money_give._alpha = 0; onEnterFrame = function () { if (_root.i_enemy_dead == _root.i_totalenemy) { MONEY = random(5) + 1; i_money_give._y = -13.9; i_money_give._alpha = 100; _root.i_money += 1; i_money_give.swapDepths = 100000; } if (_root.i_pausegame == false) { i_money_give._y -= 0.1; --i_money_give._alpha; } }; } } movieClip 443 { frame 1 { onEnterFrame = function () { if (_root.i_pausegame == true) { stop(); } else { play(); } }; } frame 300 { stop(); _parent.gotoAndStop(2); } } movieClip 444 factoryd { frame 1 { stop(); } frame 2 { factory.gotoAndStop(random(5)); } } movieClip 445 factoryt { frame 1 { stop(); } frame 2 { factory.gotoAndStop(random(5)); } } // unknown tag 88 length 63 movieClip 475 { frame 1 { stop(); } } movieClip 476 { } movieClip 486 { } movieClip 495 { } // unknown tag 88 length 63 // unknown tag 88 length 63 movieClip 505 top_menu { } // unknown tag 88 length 63 movieClip 527 { } movieClip 538 { } // unknown tag 88 length 63 movieClip 552 { } movieClip 553 botom_menu { frame 1 { stop(); _root.i_demolish = false; onEnterFrame = function () { function i_startattack() { if (!_root.i_sovietattack) { _root.i_sovietattack = true; _root.i_sovietcount = 0; _root.i_sovietnumber = 0; } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 12; _root.i_showfirst = true; } } if (Key.isDown(49)) { if (_root.i_turretresearch) { _root.build = 2; _root.i_menu_text = 'turret - 15'; gotoAndStop(5); } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 1; _root.i_showfirst = true; } } if (Key.isDown(50)) { if (_root.i_bunkerresearch) { _root.build = 3; _root.i_menu_text = 'bunker - 45'; gotoAndStop(5); } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 2; _root.i_showfirst = true; } } if (Key.isDown(51)) { if (_root.i_artilleryresearch) { _root.build = 4; _root.i_menu_text = 'artillery - 40'; gotoAndStop(5); } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 3; _root.i_showfirst = true; } } if (Key.isDown(52)) { if (_root.i_flakresearch) { _root.build = 7; _root.i_menu_text = 'flak - 20'; gotoAndStop(5); } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 4; _root.i_showfirst = true; } } if (Key.isDown(53)) { if (_root.i_machineresearch) { _root.build = 8; _root.i_menu_text = 'machine gun - 50'; gotoAndStop(5); } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 5; _root.i_showfirst = true; } } if (Key.isDown(54)) { _root.build = 9; _root.i_menu_text = 'demolish'; _root.i_demolish = true; gotoAndStop(5); } if (_root.build == 0 && _currentframe == 5) { gotoAndStop(1); } if (Key.isDown(32) && _currentframe == 5) { _root.build = 0; } i_tank.onPress = function () { gotoAndStop(4); }; i_factory.onPress = function () { gotoAndStop(2); }; i_back.onPress = function () { gotoAndStop(1); }; i_gun.onPress = function () { gotoAndStop(3); }; i_turret.onPress = function () { if (_root.i_turretresearch) { _root.build = 2; gotoAndStop(5); } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 1; _root.i_showfirst = true; } }; i_bunker.onPress = function () { if (_root.i_bunkerresearch) { _root.build = 3; gotoAndStop(5); } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 2; _root.i_showfirst = true; } }; i_artillery.onPress = function () { if (_root.i_artilleryresearch) { _root.build = 4; gotoAndStop(5); } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 3; _root.i_showfirst = true; } }; i_flak.onPress = function () { if (_root.i_flakresearch) { _root.build = 7; gotoAndStop(5); } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 4; _root.i_showfirst = true; } }; i_machine.onPress = function () { if (_root.i_machineresearch) { _root.build = 8; gotoAndStop(5); } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 5; _root.i_showfirst = true; } }; i_demolish.onPress = function () { _root.build = 9; _root.i_demolish = true; gotoAndStop(5); }; i_factory_money.onPress = function () { _root.build = 1; gotoAndStop(5); }; i_factory_gun.onPress = function () { _root.build = 5; gotoAndStop(5); }; i_factory_tank.onPress = function () { _root.build = 6; gotoAndStop(5); }; i_factory.onRollOver = function () { _root.i_menu_text = 'factories'; }; i_back.onRollOver = function () { _root.i_menu_text = 'back'; }; i_gun.onRollOver = function () { _root.i_menu_text = 'defence'; }; i_turret.onRollOver = function () { _root.i_menu_text = 'turret - 15'; }; i_bunker.onRollOver = function () { _root.i_menu_text = 'bunker - 45'; }; i_artillery.onRollOver = function () { _root.i_menu_text = 'artillery - 40'; }; i_flak.onRollOver = function () { _root.i_menu_text = 'flak - 20'; }; i_machine.onRollOver = function () { _root.i_menu_text = 'machine gun - 50'; }; i_demolish.onRollOver = function () { _root.i_menu_text = 'demolish'; }; i_factory_money.onRollOver = function () { _root.i_menu_text = 'money factory - 5'; }; i_factory_gun.onRollOver = function () { _root.i_menu_text = 'gun factory - 5'; }; i_factory_tank.onRollOver = function () { _root.i_menu_text = 'tank factory - 5'; }; i_tank.onRollOver = function () { _root.i_menu_text = 'tanks'; }; i_bike.onRollOver = function () { _root.i_menu_text = 'soviet motorbike - 5'; }; i_truck.onRollOver = function () { _root.i_menu_text = 'truck - 10'; }; i_apc.onRollOver = function () { _root.i_menu_text = 'armored truck - 20'; }; i_mediumtank.onRollOver = function () { _root.i_menu_text = 'tank - T-80 - 40'; }; i_bigtank.onRollOver = function () { _root.i_menu_text = 'tank - IS-3 - 55'; }; i_bike.onPress = function () { if (!_root.i_sovietattack) { if (_root.i_bikere) { if (_root.i_money >= 5) { _root.i_money -= 5; _root.i_soviettype = 1; _root.i_sovietspeed = 4; i_startattack(); } } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 7; _root.i_showfirst = true; } } }; i_truck.onPress = function () { if (!_root.i_sovietattack) { if (_root.i_truckre) { if (_root.i_money >= 10) { _root.i_money -= 10; _root.i_soviettype = 2; _root.i_sovietspeed = 3; i_startattack(); } } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 8; _root.i_showfirst = true; } } }; i_apc.onPress = function () { if (!_root.i_sovietattack) { if (_root.i_apcre) { if (_root.i_money >= 20) { _root.i_money -= 20; _root.i_soviettype = 3; _root.i_sovietspeed = 3; i_startattack(); } } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 9; _root.i_showfirst = true; } } }; i_mediumtank.onPress = function () { if (!_root.i_sovietattack) { if (_root.i_tankre) { if (_root.i_money >= 40) { _root.i_money -= 40; _root.i_sovietspeed = 3; _root.i_soviettype = 4; i_startattack(); } } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 10; _root.i_showfirst = true; } } }; i_bigtank.onPress = function () { if (!_root.i_sovietattack) { if (_root.i_bigtankre) { if (_root.i_money >= 55) { _root.i_money -= 55; _root.i_sovietspeed = 2; _root.i_soviettype = 5; i_startattack(); } } else { _root.i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); _root.i_menu.research_menu._alpha = 85; _root.i_pausegame = true; _root.i_researchframe = 11; _root.i_showfirst = true; } } }; }; } instance of movieClip 527 { onClipEvent (load) { wkt = new Date(); detik = wkt.getSeconds(); fps = 0; cek = 0; detiklama = 0; } onClipEvent (enterFrame) { detiklama = detik; wkt = new Date(); detik = wkt.getSeconds(); if (detiklama == detik) { ++cek; } else { fps = cek; cek = 1; } } } } movieClip 555 i_mask { } movieClip 558 { } movieClip 559 startbutton { } movieClip 560 { } movieClip 623 { frame 1 { stop(); } frame 1 { _parent.maxpower = 25; _parent.HEALTH = 25; _parent.MONEY = 1; _root.i_enemyspeed = 4; _root.i_totalenemy = 20; _root.i_enemy_appear = 20; _root.air = false; } frame 2 { _parent.maxpower = 50; _parent.HEALTH = 50; _parent.MONEY = 2; _root.i_enemyspeed = 4; _root.i_totalenemy = 15; _root.i_enemy_appear = 15; _root.air = false; } frame 3 { _parent.maxpower = 70; _parent.HEALTH = 70; _parent.MONEY = 3; _root.i_enemyspeed = 3; _root.i_totalenemy = 10; _root.i_enemy_appear = 15; _root.air = false; } frame 4 { _parent.maxpower = 150; _parent.HEALTH = 150; _parent.MONEY = 3; _root.i_enemyspeed = 3; _root.i_totalenemy = 10; _root.i_enemy_appear = 10; _root.air = true; } frame 5 { _parent.maxpower = 100; _parent.HEALTH = 100; _parent.MONEY = 3; _root.i_enemyspeed = 4; _root.i_totalenemy = 10; _root.i_enemy_appear = 15; _root.air = false; } frame 6 { _parent.maxpower = 150; _parent.HEALTH = 150; _parent.MONEY = 4; _root.i_enemyspeed = 4; _root.i_totalenemy = 15; _root.i_enemy_appear = 25; _root.air = false; } frame 7 { _parent.maxpower = 200; _parent.HEALTH = 200; _parent.MONEY = 5; _root.i_enemyspeed = 2; _root.i_totalenemy = 10; _root.i_enemy_appear = 35; _root.air = false; } frame 8 { _parent.maxpower = 120; _parent.HEALTH = 120; _parent.MONEY = 3; _root.i_enemyspeed = 4; _root.i_totalenemy = 15; _root.i_enemy_appear = 15; _root.air = false; } frame 9 { _parent.maxpower = 200; _parent.HEALTH = 200; _parent.MONEY = 5; _root.i_enemyspeed = 3; _root.i_totalenemy = 15; _root.i_enemy_appear = 20; _root.air = false; } frame 10 { _parent.maxpower = 400; _parent.HEALTH = 400; _parent.MONEY = 5; _root.i_enemyspeed = 3; _root.i_totalenemy = 15; _root.i_enemy_appear = 20; _root.air = true; } frame 11 { _parent.maxpower = 350; _parent.HEALTH = 350; _parent.MONEY = 6; _root.i_enemyspeed = 3; _root.i_totalenemy = 20; _root.i_enemy_appear = 20; _root.air = false; } frame 12 { _parent.maxpower = 450; _parent.HEALTH = 450; _parent.MONEY = 7; _root.i_enemyspeed = 3; _root.i_totalenemy = 15; _root.i_enemy_appear = 25; _root.air = false; } frame 13 { _parent.maxpower = 600; _parent.HEALTH = 600; _parent.MONEY = 8; _root.i_enemyspeed = 2; _root.i_totalenemy = 15; _root.i_enemy_appear = 35; _root.air = false; } frame 14 { _parent.maxpower = 300; _parent.HEALTH = 300; _parent.MONEY = 7; _root.i_enemyspeed = 4; _root.i_totalenemy = 15; _root.i_enemy_appear = 15; _root.air = false; } frame 15 { _parent.maxpower = 450; _parent.HEALTH = 450; _parent.MONEY = 8; _root.i_enemyspeed = 4; _root.i_totalenemy = 20; _root.i_enemy_appear = 15; _root.air = false; } frame 16 { _parent.maxpower = 1000; _parent.HEALTH = 1000; _parent.MONEY = 10; _root.i_enemyspeed = 4; _root.i_totalenemy = 20; _root.i_enemy_appear = 20; _root.air = true; } frame 17 { _parent.maxpower = 650; _parent.HEALTH = 650; _parent.MONEY = 11; _root.i_enemyspeed = 3; _root.i_totalenemy = 15; _root.i_enemy_appear = 25; _root.air = false; } frame 18 { _parent.maxpower = 750; _parent.HEALTH = 750; _parent.MONEY = 12; _root.i_enemyspeed = 3; _root.i_totalenemy = 15; _root.i_enemy_appear = 25; _root.air = false; } frame 19 { _parent.maxpower = 900; _parent.HEALTH = 900; _parent.MONEY = 13; _root.i_enemyspeed = 2; _root.i_totalenemy = 15; _root.i_enemy_appear = 35; _root.air = false; } frame 20 { _parent.maxpower = 500; _parent.HEALTH = 500; _parent.MONEY = 10; _root.i_enemyspeed = 5; _root.i_totalenemy = 20; _root.i_enemy_appear = 20; _root.air = false; } frame 21 { _parent.maxpower = 700; _parent.HEALTH = 700; _parent.MONEY = 12; _root.i_enemyspeed = 4; _root.i_totalenemy = 15; _root.i_enemy_appear = 20; _root.air = false; } frame 22 { _parent.maxpower = 2000; _parent.HEALTH = 2000; _parent.MONEY = 15; _root.i_enemyspeed = 4; _root.i_totalenemy = 20; _root.i_enemy_appear = 10; _root.air = true; } frame 23 { _parent.maxpower = 1000; _parent.HEALTH = 1000; _parent.MONEY = 14; _root.i_enemyspeed = 3; _root.i_totalenemy = 15; _root.i_enemy_appear = 25; _root.air = false; } frame 24 { _parent.maxpower = 1500; _parent.HEALTH = 1500; _parent.MONEY = 16; _root.i_enemyspeed = 4; _root.i_totalenemy = 15; _root.i_enemy_appear = 25; _root.air = false; } frame 25 { _parent.maxpower = 2000; _parent.HEALTH = 2000; _parent.MONEY = 18; _root.i_enemyspeed = 3; _root.i_totalenemy = 15; _root.i_enemy_appear = 25; _root.air = false; } frame 26 { _parent.maxpower = 900; _parent.HEALTH = 900; _parent.MONEY = 12; _root.i_enemyspeed = 6; _root.i_totalenemy = 20; _root.i_enemy_appear = 10; _root.air = false; } frame 27 { _parent.maxpower = 1200; _parent.HEALTH = 1200; _parent.MONEY = 15; _root.i_enemyspeed = 3; _root.i_totalenemy = 15; _root.i_enemy_appear = 20; _root.air = false; } frame 28 { _parent.maxpower = 3800; _parent.HEALTH = 3800; _parent.MONEY = 20; _root.i_enemyspeed = 3; _root.i_totalenemy = 20; _root.i_enemy_appear = 5; _root.air = true; } frame 29 { _parent.maxpower = 2000; _parent.HEALTH = 2000; _parent.MONEY = 25; _root.i_enemyspeed = 3; _root.i_totalenemy = 15; _root.i_enemy_appear = 20; _root.air = false; } frame 30 { _parent.maxpower = 3000; _parent.HEALTH = 3000; _parent.MONEY = 28; _root.i_enemyspeed = 3; _root.i_totalenemy = 15; _root.i_enemy_appear = 20; _root.air = false; } frame 31 { _parent.maxpower = 4000; _parent.HEALTH = 4000; _parent.MONEY = 35; _root.i_enemyspeed = 3; _root.i_totalenemy = 20; _root.i_enemy_appear = 25; _root.air = false; } frame 32 { ++_root.i_mainlevel; } } movieClip 624 { } movieClip 625 { } movieClip 636 { frame 1 { stop(); } } movieClip 637 enemy { frame 1 { stop(); var i_speed = _root.i_enemyspeed; var i_direction = _root.i_enemystartdirection; onEnterFrame = function () { if (_root.i_pausegame == false) { HPbar.onEnterFrame = function () { this.bar._xscale = (HEALTH / maxpower) * 100; }; i_body.gotoAndStop(_root.i_level); if (HEALTH <= 0) { this.gotoAndStop(2); } if (_x >= 675) { ++_root.i_baseHP; _root.i_money -= MONEY; gotoAndStop(2); } if (_root.air == true) { i_direction == 'right'; _x = _x + i_speed; i_body._rotation = 1; } else { _root.i_enemystartpos._y = _root.i_enemystartposition; } if (_currentframe == 1) { if (_root.air == false) { if (i_direction == 'right') { _x = _x + i_speed; i_body._rotation = 1; } if (i_direction == 'left') { _x = _x - i_speed; i_body._rotation = -180; } if (i_direction == 'up') { _y = _y - i_speed; i_body._rotation = -90; } if (i_direction == 'down') { _y = _y + i_speed; i_body._rotation = 90; } if (_root.i_pausegame == true) { _y = _y + 0; _x = _x + 0; } } } } }; } frame 2 { ++_root.i_enemy_dead; _root.i_money += MONEY; _root.i_score += MONEY; i_explosion.gotoAndStop(random(11)); onEnterFrame = function () { if (_root.i_pausegame == false) { i_money_give._y -= 1; --i_money_give._alpha; if (smoke._currentframe == 70) { this.removeMovieClip(); } } }; } } movieClip 646 { frame 1 { stop(); } frame 1 { _parent.maxpower = 25; _parent.HEALTH = 25; _root.i_sovietspeed = 4; } frame 2 { _parent.maxpower = 200; _parent.HEALTH = 200; _root.i_sovietspeed = 3; } frame 3 { _parent.maxpower = 800; _parent.HEALTH = 800; _root.i_sovietspeed = 3; } frame 4 { _parent.maxpower = 1500; _parent.HEALTH = 1500; _root.i_sovietspeed = 3; } frame 5 { _parent.maxpower = 2000; _parent.HEALTH = 2000; _root.i_sovietspeed = 2; } } movieClip 648 { } movieClip 649 soviet { frame 1 { stop(); var i_speed = _root.i_sovietspeed; var i_direction = _root.i_sovietdirection; onEnterFrame = function () { if (_root.i_pausegame == false) { i_body.gotoAndStop(_root.i_soviettype); i = 0; while (i <= 21) { if (this.hitTest(_root.i_enemy['enemy' + i]) && _root.i_enemy['enemy' + i]._currentframe == 1) { HEALTH -= 50; _root.i_enemy['enemy' + i].HEALTH -= 50; } ++i; } if (_root.i_pausegame == false) { HPbar.onEnterFrame = function () { this.bar._xscale = (HEALTH / maxpower) * 100; }; if (HEALTH <= 0) { this.gotoAndStop(2); if (this._name == 'soviet' + _root.i_sovietmaximum) { _root.i_sovietattack = false; } } if (_currentframe == 1) { if (i_direction == 'right') { _x = _x + i_speed; i_body._rotation = 1; } if (i_direction == 'left') { _x = _x - i_speed; i_body._rotation = -180; } if (i_direction == 'up') { _y = _y - i_speed; i_body._rotation = -90; } if (i_direction == 'down') { _y = _y + i_speed; i_body._rotation = 90; } if (_root.i_pausegame == true) { _y = _y + 0; _x = _x + 0; } } } if (this._x < -20) { this.gotoAndStop(2); if (this._name == 'soviet' + _root.i_sovietmaximum) { _root.i_sovietattack = false; } } } }; } frame 2 { i_explosion.gotoAndStop(random(11)); onEnterFrame = function () { if (_root.i_pausegame == false) { i_star._y -= 1; --i_star._alpha; if (smoke._currentframe == 70) { this.removeMovieClip(); } } }; } } movieClip 654 { } movieClip 657 { } movieClip 720 tile { frame 1 { stop(); i_allow = 1; posx = this._x; posy = this._y; i_notbuildtile.onPress = function () { var v1 = new Sound(); v1.attachSound('cancel'); v1.start(); }; i_buildtile.onPress = function () { var v2 = new Sound(); v2.attachSound('click'); v2.start(); if (_root.build == 1) { if (_root.i_money >= 5) { _root.i_factoriesland.attachMovie('factory', 'factory' + _root.i_gundepth, _root.i_gundepth++, {'_x': posx, '_y': posy}); _root.i_money -= 5; _root.i_built_factory_money += 1; _root.i_factory += 1; } } if (_root.build == 2) { if (_root.i_money >= 15) { _root.i_gun.attachMovie('turret', 'turret' + _root.i_gundepth, _root.i_gundepth++, {'_x': posx, '_y': posy}); _root.i_money -= 15; } } if (_root.build == 3) { if (_root.i_money >= 45) { _root.i_gun.attachMovie('bunker', 'bunker' + _root.i_gundepth, _root.i_gundepth++, {'_x': posx, '_y': posy}); _root.i_money -= 45; } } if (_root.build == 4) { if (_root.i_money >= 40) { _root.i_gun.attachMovie('artillery', 'artillery' + _root.i_gundepth, _root.i_gundepth++, {'_x': posx, '_y': posy}); _root.i_money -= 40; } } if (_root.build == 5) { if (_root.i_money >= 5) { _root.i_gun.attachMovie('factoryd', 'factory' + _root.i_gundepth, _root.i_gundepth++, {'_x': posx, '_y': posy}); _root.i_money -= 5; _root.i_built_factory_defence += 1; _root.i_factory += 1; } } if (_root.build == 6) { if (_root.i_money >= 5) { _root.i_gun.attachMovie('factoryt', 'factory' + _root.i_gundepth, _root.i_gundepth++, {'_x': posx, '_y': posy}); _root.i_money -= 5; _root.i_built_factory_tanks += 1; _root.i_factory += 1; } } if (_root.build == 7) { if (_root.i_money >= 20) { _root.i_gun.attachMovie('flak', 'flak' + _root.i_gundepth, _root.i_gundepth++, {'_x': posx, '_y': posy}); _root.i_money -= 20; } } if (_root.build == 8) { if (_root.i_money >= 50) { _root.i_gun.attachMovie('machine', 'machine' + _root.i_gundepth, _root.i_gundepth++, {'_x': posx, '_y': posy}); _root.i_money -= 50; } } if (_root.build == 9) { if (_root.i_money >= 0) { _root.i_demolish = true; _root.i_money -= 0; } } }; } frame 4 { i_hit.onEnterFrame = function () { i = 0; while (i <= _root.i_totalenemy) { if (this.hitTest(_root.i_enemy['enemy' + i].i_body.i_ground) && _root.i_enemy['enemy' + i]._currentframe == 1) { _root.i_enemy['enemy' + i].i_direction = 'right'; } ++i; } }; i_s_hit.onEnterFrame = function () { j = 0; while (j <= 20) { if (this.hitTest(_root.i_soviet['soviet' + j].i_body) && _root.i_soviet['soviet' + j]._currentframe == 1) { _root.i_soviet['soviet' + j].i_direction = 'down'; } ++j; } }; } frame 5 { i_hit.onEnterFrame = function () { i = 0; while (i <= _root.i_totalenemy) { if (this.hitTest(_root.i_enemy['enemy' + i].i_body.i_ground) && _root.i_enemy['enemy' + i]._currentframe == 1) { _root.i_enemy['enemy' + i].i_direction = 'down'; } ++i; } }; i_s_hit.onEnterFrame = function () { j = 0; while (j <= 20) { if (this.hitTest(_root.i_soviet['soviet' + j].i_body) && _root.i_soviet['soviet' + j]._currentframe == 1) { _root.i_soviet['soviet' + j].i_direction = 'left'; } ++j; } }; } frame 6 { i_hit.onEnterFrame = function () { i = 0; while (i <= _root.i_totalenemy) { if (this.hitTest(_root.i_enemy['enemy' + i].i_body.i_ground) && _root.i_enemy['enemy' + i]._currentframe == 1) { _root.i_enemy['enemy' + i].i_direction = 'up'; } ++i; } }; i_s_hit.onEnterFrame = function () { j = 0; while (j <= 20) { if (this.hitTest(_root.i_soviet['soviet' + j].i_body) && _root.i_soviet['soviet' + j]._currentframe == 1) { _root.i_soviet['soviet' + j].i_direction = 'left'; } ++j; } }; } frame 7 { i_hit.onEnterFrame = function () { i = 0; while (i <= _root.i_totalenemy) { if (this.hitTest(_root.i_enemy['enemy' + i].i_body.i_ground) && _root.i_enemy['enemy' + i]._currentframe == 1) { _root.i_enemy['enemy' + i].i_direction = 'right'; } ++i; } }; i_s_hit.onEnterFrame = function () { j = 0; while (j <= 20) { if (this.hitTest(_root.i_soviet['soviet' + j].i_body) && _root.i_soviet['soviet' + j]._currentframe == 1) { _root.i_soviet['soviet' + j].i_direction = 'up'; } ++j; } }; } } movieClip 724 { } movieClip 727 { } movieClip 728 { } movieClip 743 { frame 1 { stop(); gotoAndStop(random(10)); } } movieClip 746 { frame 1 { _parent._parent._parent.i_enemydamage = false; onEnterFrame = function () { if (_root.i_pausegame == true) { stop(); } else { play(); } }; } frame 6 { _root.fire_line.clear(); _parent._parent._parent.i_enemydamage = true; _parent.gotoAndStop(1); } } movieClip 747 { frame 1 { stop(); } } movieClip 754 { frame 1 { _parent._parent._parent.i_enemydamage = false; } frame 6 { _root.fire_line.clear(); _parent._parent._parent.i_enemydamage = true; _parent.gotoAndStop(1); } } movieClip 755 { frame 1 { stop(); } } movieClip 760 { frame 1 { stop(); damage = 1; cost = 15; range = 50; bar = 100; } frame 2 { damage = 2; cost = 30; range = 50; bar = 150; } frame 3 { damage = 4; cost = 50; range = 50; bar = 220; } frame 4 { damage = 7; cost = 80; range = 50; bar = 350; } frame 5 { damage = 11; cost = 150; range = 50; bar = 480; } frame 6 { damage = 20; cost = 0; range = 50; bar = 0; } } movieClip 764 turret { frame 1 { stop(); MONEY = 15; onEnterFrame = function () { if (_root.i_pausegame == false) { i_buildprice._y -= 1; --i_buildprice._alpha; } }; } frame 2 { function i_checkenemy() { var v3 = 0; while (v3 < 21) { if (i_upgrade == 1) { if (_root.i_pausegame == false) { if (this.range.hitTest(_root.i_enemy['enemy' + v3]) && _root.i_enemy['enemy' + v3]._currentframe == 1) { gun.fire.gotoAndStop(2); if (gun.fire.fire._currentframe == 5) { _root.createEmptyMovieClip('fire_line', 1); _root.fire_line.lineStyle(1, 16777215, 100); _root.fire_line.moveTo(this._x, this._y); _root.fire_line.lineTo(_root.i_enemy['enemy' + v3]._x, _root.i_enemy['enemy' + v3]._y); } if (i_enemydamage == true) { _root.i_enemy['enemy' + v3].HEALTH -= gun.damage; } return v3; break; } } } ++v3; } } range._visible = false; i_upgrade = 1; loadbar = 0; power = 0; i_mask.onRollOver = function () { range._visible = true; _root.i_cost = gun.cost; _root.i_attack = gun.damage; _root.i_range = gun.range; }; i_mask.onRollOut = function () { range._visible = false; _root.i_cost = 0; _root.i_attack = 0; _root.i_range = 0; }; i_mask.onPress = function () { if (!_root.i_demolish) { if (i_upgrade == 1) { if (_root.i_money >= gun.cost) { _root.i_money -= gun.cost; i_upgrade = 2; } } } else { gotoAndStop(3); } }; onEnterFrame = function () { if (_root.i_baseHP == 21) { gotoAndStop(3); } barpower._visible = false; if (_root.i_pausegame == false) { if (i_upgrade == 2) { if (maxpower >= 1) { barpower._visible = true; power += 1; } } } if (maxpower <= 1) { i_upgrade = 1; } if (maxpower >= 1) { maxpower = gun.bar; barpower.bar._xscale = (power / maxpower) * 100; if (power >= maxpower) { gun.gotoAndStop(gun._currentframe + 1); power = 0; i_upgrade = 1; smoke.gotoAndPlay(2); } } dy = _root.i_enemy['enemy' + i_checkenemy()]._y - this._y; dx = _root.i_enemy['enemy' + i_checkenemy()]._x - this._x; if (dx >= 0) { this.gun._rotation = 180 + Math.atan(dy / dx) * 180 / Math.PI; } else { this.gun._rotation = Math.atan(dy / dx) * 180 / Math.PI; } }; } } movieClip 767 { frame 1 { _parent._parent._parent.i_enemydamage = false; onEnterFrame = function () { if (_root.i_pausegame == true) { stop(); } else { play(); } }; } frame 4 { _root.fire_line.clear(); _parent._parent._parent.i_enemydamage = true; _parent.gotoAndStop(1); } } movieClip 768 { frame 1 { stop(); } } movieClip 775 { frame 1 { stop(); damage = 5; cost = 50; range = 50; bar = 300; } frame 2 { damage = 10; cost = 80; range = 50; bar = 500; } frame 3 { damage = 15; cost = 130; range = 50; bar = 800; } frame 4 { damage = 25; cost = 0; range = 50; bar = 0; } } movieClip 776 machine { frame 1 { stop(); MONEY = 50; onEnterFrame = function () { if (_root.i_pausegame == false) { i_buildprice._y -= 1; --i_buildprice._alpha; } }; } frame 2 { function i_checkenemy() { var v3 = 0; while (v3 < 21) { if (i_upgrade == 1) { if (_root.i_pausegame == false) { if (this.range.hitTest(_root.i_enemy['enemy' + v3]) && _root.i_enemy['enemy' + v3]._currentframe == 1) { gun.fire.gotoAndStop(2); if (gun.fire.fire._currentframe == 3) { _root.createEmptyMovieClip('fire_line', 3); _root.fire_line.lineStyle(1, 16777215, 100); _root.fire_line.moveTo(this._x, this._y); _root.fire_line.lineTo(_root.i_enemy['enemy' + v3]._x, _root.i_enemy['enemy' + v3]._y); } if (i_enemydamage == true) { _root.i_enemy['enemy' + v3].HEALTH -= gun.damage; } return v3; break; } } } ++v3; } } range._visible = false; i_upgrade = 1; loadbar = 0; power = 0; i_mask.onRollOver = function () { range._visible = true; _root.i_cost = gun.cost; _root.i_attack = gun.damage; _root.i_range = gun.range; }; i_mask.onRollOut = function () { range._visible = false; _root.i_cost = 0; _root.i_attack = 0; _root.i_range = 0; }; i_mask.onPress = function () { if (!_root.i_demolish) { if (i_upgrade == 1) { if (_root.i_money >= gun.cost) { _root.i_money -= gun.cost; i_upgrade = 2; } } } else { gotoAndStop(3); } }; onEnterFrame = function () { if (_root.i_baseHP == 21) { gotoAndStop(3); } barpower._visible = false; if (_root.i_pausegame == false) { if (i_upgrade == 2) { if (maxpower >= 1) { barpower._visible = true; power += 1; } } } if (maxpower <= 1) { i_upgrade = 1; } if (maxpower >= 1) { maxpower = gun.bar; barpower.bar._xscale = (power / maxpower) * 100; if (power >= maxpower) { gun.gotoAndStop(gun._currentframe + 1); power = 0; i_upgrade = 1; smoke.gotoAndPlay(2); } } dy = _root.i_enemy['enemy' + i_checkenemy()]._y - this._y; dx = _root.i_enemy['enemy' + i_checkenemy()]._x - this._x; if (dx >= 0) { this.gun._rotation = 180 + Math.atan(dy / dx) * 180 / Math.PI; } else { this.gun._rotation = Math.atan(dy / dx) * 180 / Math.PI; } }; } } movieClip 780 { frame 1 { _parent._parent._parent.i_enemydamage = false; onEnterFrame = function () { if (_root.i_pausegame == true) { stop(); } else { play(); } }; } frame 11 { _parent._parent._parent.i_enemydamage = true; _parent.gotoAndStop(1); } } movieClip 781 { frame 1 { stop(); } } movieClip 792 { frame 1 { stop(); damage = 20; cost = 30; range = 60; bar = 150; } frame 2 { damage = 40; cost = 25; range = 60; bar = 250; } frame 3 { damage = 80; cost = 50; range = 60; bar = 375; } frame 4 { damage = 150; cost = 90; range = 60; bar = 450; } frame 5 { damage = 250; cost = 150; range = 60; bar = 550; } frame 6 { damage = 375; cost = 0; range = 60; bar = 0; } } movieClip 793 flak { frame 1 { stop(); MONEY = 20; onEnterFrame = function () { if (_root.i_pausegame == false) { i_buildprice._y -= 1; --i_buildprice._alpha; } }; } frame 2 { function i_checkenemy() { var v3 = 0; while (v3 < 30) { if (i_upgrade == 1) { if (_root.i_pausegame == false && _root.air == true) { if (this.range.hitTest(_root.i_enemy['enemy' + v3]) && _root.i_enemy['enemy' + v3]._currentframe == 1) { gun.fire.gotoAndStop(2); if (i_enemydamage == true) { _root.i_enemy['enemy' + v3].HEALTH -= gun.damage; } return v3; break; } } } ++v3; } } range._visible = false; i_upgrade = 1; loadbar = 0; power = 0; i_mask.onRollOver = function () { range._visible = true; _root.i_cost = gun.cost; _root.i_attack = gun.damage; _root.i_range = gun.range; }; i_mask.onRollOut = function () { range._visible = false; _root.i_cost = 0; _root.i_attack = 0; _root.i_range = 0; }; i_mask.onPress = function () { if (!_root.i_demolish) { if (i_upgrade == 1) { if (_root.i_money >= gun.cost) { _root.i_money -= gun.cost; i_upgrade = 2; } } } else { gotoAndStop(3); } }; onEnterFrame = function () { if (_root.i_baseHP == 21) { gotoAndStop(3); } barpower._visible = false; if (_root.i_pausegame == false) { if (i_upgrade == 2) { if (maxpower >= 1) { barpower._visible = true; power += 1; } } } if (maxpower <= 1) { i_upgrade = 1; } if (maxpower >= 1) { maxpower = gun.bar; barpower.bar._xscale = (power / maxpower) * 100; if (power >= maxpower) { gun.gotoAndStop(gun._currentframe + 1); power = 0; i_upgrade = 1; smoke.gotoAndPlay(2); } } dy = _root.i_enemy['enemy' + i_checkenemy()]._y - this._y; dx = _root.i_enemy['enemy' + i_checkenemy()]._x - this._x; if (dx >= 0) { this.gun._rotation = 180 + Math.atan(dy / dx) * 180 / Math.PI; } else { this.gun._rotation = Math.atan(dy / dx) * 180 / Math.PI; } }; } } movieClip 796 { frame 1 { _parent._parent._parent.i_enemydamage = false; onEnterFrame = function () { if (_root.i_pausegame == true) { stop(); } else { play(); } }; } frame 30 { _root.fire_line.clear(); _parent._parent._parent.i_enemydamage = true; _parent.gotoAndStop(1); } } movieClip 797 { frame 1 { stop(); } } movieClip 808 { frame 1 { stop(); damage = 5; cost = 45; range = 100; bar = 150; } frame 2 { damage = 8; cost = 60; range = 100; bar = 250; } frame 3 { damage = 15; cost = 100; range = 100; bar = 350; } frame 4 { damage = 22; cost = 150; range = 100; bar = 500; } frame 5 { damage = 30; cost = 200; range = 100; bar = 630; } frame 6 { damage = 40; cost = 0; range = 100; bar = 0; } } movieClip 809 artillery { frame 1 { stop(); MONEY = 40; onEnterFrame = function () { if (_root.i_pausegame == false) { i_buildprice._y -= 1; --i_buildprice._alpha; } }; } frame 2 { function i_checkenemy() { var v3 = 0; while (v3 < 30) { if (i_upgrade == 1) { if (_root.i_pausegame == false && _root.air == false) { if (this.range.hitTest(_root.i_enemy['enemy' + v3]) && _root.i_enemy['enemy' + v3]._currentframe == 1) { gun.fire.gotoAndStop(2); if (gun.fire.fire._currentframe == 29) { _root.createEmptyMovieClip('fire_line', 2); _root.fire_line.lineStyle(3, 16777215, 100); _root.fire_line.moveTo(this._x, this._y); _root.fire_line.lineTo(_root.i_enemy['enemy' + v3]._x, _root.i_enemy['enemy' + v3]._y); } if (i_enemydamage == true) { _root.i_enemy['enemy' + v3].HEALTH -= gun.damage; } return v3; break; } } } ++v3; } } range._visible = false; i_upgrade = 1; loadbar = 0; power = 0; i_mask.onRollOver = function () { range._visible = true; _root.i_cost = gun.cost; _root.i_attack = gun.damage; _root.i_range = gun.range; }; i_mask.onRollOut = function () { range._visible = false; _root.i_cost = 0; _root.i_attack = 0; _root.i_range = 0; }; i_mask.onPress = function () { if (!_root.i_demolish) { if (i_upgrade == 1) { if (_root.i_money >= gun.cost) { _root.i_money -= gun.cost; i_upgrade = 2; } } } else { gotoAndStop(3); } }; onEnterFrame = function () { if (_root.i_baseHP == 21) { gotoAndStop(3); } barpower._visible = false; if (_root.i_pausegame == false) { if (i_upgrade == 2) { if (maxpower >= 1) { barpower._visible = true; power += 1; } } } if (maxpower <= 1) { i_upgrade = 1; } if (maxpower >= 1) { maxpower = gun.bar; barpower.bar._xscale = (power / maxpower) * 100; if (power >= maxpower) { gun.gotoAndStop(gun._currentframe + 1); power = 0; i_upgrade = 1; smoke.gotoAndPlay(2); } } dy = _root.i_enemy['enemy' + i_checkenemy()]._y - this._y; dx = _root.i_enemy['enemy' + i_checkenemy()]._x - this._x; if (dx >= 0) { this.gun._rotation = 180 + Math.atan(dy / dx) * 180 / Math.PI; } else { this.gun._rotation = Math.atan(dy / dx) * 180 / Math.PI; } }; } } movieClip 822 { frame 1 { stop(); } } movieClip 824 { frame 1 { _parent._parent._parent.i_enemydamage = false; onEnterFrame = function () { if (_root.i_pausegame == true) { stop(); } else { play(); } }; } frame 36 { _parent._parent._parent.i_enemydamage = true; _parent.gotoAndStop(1); } } movieClip 825 { frame 1 { stop(); } } movieClip 826 { frame 1 { stop(); damage = 20; cost = 60; range = 15; bar = 170; } frame 2 { damage = 40; cost = 55; range = 15; bar = 250; } frame 3 { damage = 70; cost = 90; range = 15; bar = 380; } frame 4 { damage = 90; cost = 150; range = 15; bar = 500; } frame 5 { damage = 120; cost = 200; range = 15; bar = 650; } frame 6 { damage = 170; cost = 0; range = 100; bar = 0; } } movieClip 827 bunker { frame 1 { stop(); MONEY = 45; onEnterFrame = function () { if (_root.i_pausegame == false) { i_buildprice._y -= 1; --i_buildprice._alpha; } }; } frame 2 { function i_checkenemy() { var v3 = 0; while (v3 < 30) { if (i_upgrade == 1) { if (_root.i_pausegame == false && _root.air == false) { if (this.range.hitTest(_root.i_enemy['enemy' + v3]) && _root.i_enemy['enemy' + v3]._currentframe == 1) { gun.fire.gotoAndStop(2); if (i_enemydamage == true) { _root.i_enemy['enemy' + v3].HEALTH -= gun.damage; } return v3; break; } } } ++v3; } } range._visible = false; i_upgrade = 1; loadbar = 0; power = 0; i_mask.onRollOver = function () { range._visible = true; _root.i_cost = gun.cost; _root.i_attack = gun.damage; _root.i_range = gun.range; }; i_mask.onRollOut = function () { range._visible = false; _root.i_cost = 0; _root.i_attack = 0; _root.i_range = 0; }; i_mask.onPress = function () { if (!_root.i_demolish) { if (i_upgrade == 1) { if (_root.i_money >= gun.cost) { _root.i_money -= gun.cost; i_upgrade = 2; } } } else { gotoAndStop(3); } }; onEnterFrame = function () { if (_root.i_baseHP == 21) { gotoAndStop(3); } bunker_types.gotoAndStop(gun._currentframe); barpower._visible = false; if (_root.i_pausegame == false) { if (i_upgrade == 2) { if (maxpower >= 1) { barpower._visible = true; power += 1; } } } if (maxpower <= 1) { i_upgrade = 1; } if (maxpower >= 1) { maxpower = gun.bar; barpower.bar._xscale = (power / maxpower) * 100; if (power >= maxpower) { gun.gotoAndStop(gun._currentframe + 1); power = 0; i_upgrade = 1; smoke.gotoAndPlay(2); } } dy = _root.i_enemy['enemy' + i_checkenemy()]._y - this._y; dx = _root.i_enemy['enemy' + i_checkenemy()]._x - this._x; if (dx >= 0) { this.gun._rotation = 180 + Math.atan(dy / dx) * 180 / Math.PI; } else { this.gun._rotation = Math.atan(dy / dx) * 180 / Math.PI; } }; } } movieClip 828 { frame 1 { stop(); } } frame 5 { stop(); i_score = 0; smoke_2.gotoAndPlay(20); smoke_3.gotoAndPlay(40); mySharedObject = SharedObject.getLocal('stalingrad'); i_firsttime = mySharedObject.data.i_timenow; if (i_firstime == 0 or i_firsttime == undefined) { i_cur_level = 1; mySharedObject.data.i_timenow = 1; mySharedObject.flush(); } i_i_levelmap = mySharedObject.data.i_cur_level; if (i_i_levelmap == undefined) { i_i_levelmap = 1; } var i_menumusic = new Sound(); if (i_startmusic) { i_menumusic.attachSound('STALINGRAD_menu'); i_menumusic.start(0, 9999); i_menumusic.setVolume(50); i_startmusic = false; } onEnterFrame = function () { i_tank._y = _ymouse; if (i_tank._y >= 310) { i_tank.soviet._x = -40; i_tank.german._x = 191; } if (i_tank._y >= 345) { i_tank.soviet._x = -40; i_tank.german._x = 191; } if (i_tank._y < 310) { i_tank.soviet._x = 0; i_tank.german._x = 151; } if (i_tank._y <= 190) { i_tank._y = 190; } if (i_tank._y >= 335) { i_tank._y = 335; } q_high.onPress = function () { _quality = 'HIGH'; }; q_medium.onPress = function () { _quality = 'MEDIUM'; }; q_low.onPress = function () { _quality = 'LOW'; }; back_btn.onPress = function () { blackanimation.gotoAndPlay(29); stopwhere = 5; }; options_btn.onPress = function () { blackanimation.gotoAndPlay(29); stopwhere = 6; }; pmg_btn.onPress = function () { FOG.AS2.FogServices.TrackClick(); }; i_instruct.onPress = function () { blackanimation.gotoAndPlay(29); stopwhere = 11; }; StartGame.onPress = function () { blackanimation.gotoAndPlay(29); stopwhere = 8; }; i_moregames.onRelease = function () { FOG.AS2.FogServices.TrackClick('www.freegamesforyourwebsite.com'); }; }; } movieClip 832 { frame 1 { i_randomnumber = random(100) / 20 + 1; onEnterFrame = function () { this._x += i_randomnumber; if (this._x >= 680) { this._x = -50; } }; } } movieClip 838 { frame 1 { stop(); gotoAndStop(random(5) + 1); } } movieClip 839 { frame 51 { this._x = random(631); this._y = random(40) + 60; } } movieClip 842 { } // unknown tag 88 length 66 // unknown tag 88 length 101 movieClip 847 { } movieClip 851 { } movieClip 855 { } movieClip 858 { } movieClip 861 { } movieClip 862 { } movieClip 865 { } movieClip 917 { } movieClip 920 { } instance of movieClip 55 { onClipEvent (release) { FOG.AS2.FogServices.TrackClick(); } } // unknown tag 88 length 63 movieClip 929 { } movieClip 935 { } movieClip 939 { } movieClip 943 { } frame 7 { function updateScoreboard(sNum) { xmlPlayer = new XML(); xmlPlayer.ignoreWhite = true; xmlPlayer.onLoad = function (success) { if (success) { _root['mcScoreboard' + sNum].mcLoading._visible = false; myPlayer = xmlPlayer.firstChild.childNodes; ctr2 = 0; while (ctr2 < myPlayer.length) { thisPlayer = _root['mcScoreboard' + sNum].sboard.mcScoreHolder.mcScore.duplicateMovieClip('mcScore' + ctr2, ctr2); thisPlayer._y = ctr2 * thisPlayer._height; thisPlayer._visible = true; if (ctr2 % 2 > 0) { thisPlayer.gotoAndStop(2); } thisPlayer.txtNumber.text = ctr2 + 1 + ')'; thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player; thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score; ++ctr2; } _root['mcScoreboard' + sNum].sboard.mcScoreHolder.item = myPlayer.length; _root['mcScoreboard' + sNum].sboard.mcScoreHolder.speedy = 0; _root['mcScoreboard' + sNum].sboard.mcScoreHolder.desty = 0; _root['mcScoreboard' + sNum].sboard.mcScoreHolder.onEnterFrame = function () { if (this.desty < 0 && this._parent.dir == 'ups') { this.desty += 10; if (this.desty > 0) { this.desty = 0; } } if (this.desty > this._parent.mcBlock._height - this.mcScore._height * this.item && this._parent.dir == 'downs') { this.desty -= 10; if (this.desty < this._parent.mcBlock._height - this.mcScore._height * this.item) { this.desty = this._parent.mcBlock._height - this.mcScore._height * this.item; } } this.speedy = this.desty - this._y + this.speedy * 0.4; this._y += this.speedy; }; } if (sNum == 1) { updateScoreboard(2); } }; if (sNum == 1) { xmlPlayer.load('http://' + _root.Dsource + '.freeonlinegames.com/scoreboard/getTopPlayer.php?id=' + _root.gameID + '&rand=' + random(999999)); } else { if (sNum == 2) { xmlPlayer.load('http://' + _root.Dsource + '.freeonlinegames.com/scoreboard/getTopPlayer.php?id=' + _root.gameID + '&rand=' + random(999999) + '&filt=1'); } } } var gameID = 91; Dsource = 'www'; mcScoreboard1.sboard.dir = 'stop'; mcScoreboard2.sboard.dir = 'stop'; mcScoreboard1.sboard.mcScoreHolder.mcScore._visible = false; mcScoreboard2.sboard.mcScoreHolder.mcScore._visible = false; updateScoreboard(1); btnMain.onRelease = function () { currentPage = 'main'; fader.play(); }; } movieClip 950 { } // unknown tag 88 length 63 movieClip 953 { } movieClip 955 { } button 959 { on (press) { sboard.dir = 'ups'; } on (release) { sboard.dir = 'stop'; } } button 960 { on (press) { sboard.dir = 'downs'; } on (release) { sboard.dir = 'stop'; } } movieClip 968 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 969 { } movieClip 971 { } movieClip 972 { } movieClip 973 { } movieClip 975 { } movieClip 976 { } movieClip 977 { frame 1 { stop(); } frame 40 { _root.gotoAndStop(3); } } frame 8 { var i_golevel; var i_i_levelmap; var i_thing; var i_menumusic = new Sound(); if (i_startmusic) { i_menumusic.attachSound('STALINGRAD_menu'); i_menumusic.start(0, 9999); i_menumusic.setVolume(50); i_startmusic = false; } i_thing = i_i_levelmap + 1; onEnterFrame = function () { i_thing; while (i_thing <= 10) { if (i_i_levelmap >= i_golevel) { i_level_mc['i_btnlevel' + i_thing]._alpha = 50; } ++i_thing; } i = 0; while (i <= i_i_levelmap) { i_game_instruct['i_' + i + '_lvl'].gotoAndStop(3); ++i; } }; i_level_mc.i_btnlevel1.onPress = function () { i_golevel = 1; if (i_i_levelmap >= i_golevel) { blackanimation.gotoAndPlay('close'); stopwhere = 12; i_levelmap = 1; } else { this._alpha = 50; } }; i_level_mc.i_btnlevel2.onPress = function () { i_golevel = 2; if (i_i_levelmap >= i_golevel) { blackanimation.gotoAndPlay('close'); stopwhere = 12; i_levelmap = 2; } else { this._alpha = 50; } }; i_level_mc.i_btnlevel3.onPress = function () { i_golevel = 3; if (i_i_levelmap >= i_golevel) { blackanimation.gotoAndPlay('close'); stopwhere = 12; i_levelmap = 3; } else { this._alpha = 50; } }; i_level_mc.i_btnlevel4.onPress = function () { i_golevel = 4; if (i_i_levelmap >= i_golevel) { blackanimation.gotoAndPlay('close'); stopwhere = 12; i_levelmap = 4; } else { this._alpha = 50; } }; i_level_mc.i_btnlevel5.onPress = function () { i_golevel = 5; if (i_i_levelmap >= i_golevel) { blackanimation.gotoAndPlay('close'); stopwhere = 12; i_levelmap = 5; } else { this._alpha = 50; } }; i_level_mc.i_btnlevel6.onPress = function () { i_golevel = 6; if (i_i_levelmap >= i_golevel) { blackanimation.gotoAndPlay('close'); stopwhere = 12; i_levelmap = 6; } else { this._alpha = 50; } }; i_level_mc.i_btnlevel7.onPress = function () { i_golevel = 7; if (i_i_levelmap >= i_golevel) { blackanimation.gotoAndPlay('close'); stopwhere = 12; i_levelmap = 7; } else { this._alpha = 50; } }; i_level_mc.i_btnlevel8.onPress = function () { i_golevel = 8; if (i_i_levelmap >= i_golevel) { blackanimation.gotoAndPlay('close'); stopwhere = 12; i_levelmap = 8; } else { this._alpha = 50; } }; i_level_mc.i_btnlevel9.onPress = function () { i_golevel = 9; if (i_i_levelmap >= i_golevel) { blackanimation.gotoAndPlay('close'); stopwhere = 12; i_levelmap = 9; } else { this._alpha = 50; } }; i_level_mc.i_btnlevel10.onPress = function () { i_golevel = 10; if (i_i_levelmap >= i_golevel) { blackanimation.gotoAndPlay('close'); stopwhere = 12; i_levelmap = 10; } else { this._alpha = 50; } }; back_btn.onPress = function () { blackanimation.gotoAndPlay('close'); stopwhere = 5; }; } movieClip 981 { } movieClip 983 { } movieClip 984 { frame 1 { stop(); } } movieClip 995 { } movieClip 1038 { } // unknown tag 88 length 69 frame 9 { build = 0; fire_line.clear(); var i_startmusic = true; i_gamemusic.stop(); var i_lostmusic = new Sound(); i_lostmusic.attachSound('i_lostmusic'); i_lostmusic.start(0, 0); back_btn.onPress = function () { blackanimation.gotoAndPlay('close'); stopwhere = 5; }; i_pmg.onRelease = function () { FOG.AS2.FogServices.TrackClick(); }; i_moregames.onRelease = function () { FOG.AS2.FogServices.TrackClick('www.freegamesforyourwebsite.com'); }; } movieClip 1052 { } movieClip 1055 { } frame 10 { build = 0; fire_line.clear(); if (i_i_levelmap == i_golevel) { ++i_i_levelmap; } mySharedObject = SharedObject.getLocal('stalingrad'); mySharedObject.data.i_cur_level = i_i_levelmap; mySharedObject.data.i_timenow = 1; mySharedObject.flush(); continue_btn.onPress = function () { blackanimation.gotoAndPlay('close'); stopwhere = 8; }; i_pmg.onRelease = function () { FOG.AS2.FogServices.TrackClick(); }; i_moregames.onRelease = function () { FOG.AS2.FogServices.TrackClick('www.freegamesforyourwebsite.com'); }; } movieClip 1058 { } movieClip 1062 { } movieClip 1113 { } movieClip 1127 { frame 1 { stop(); onEnterFrame = function () { i_next.onPress = function () { gotoAndStop(_currentframe + 1); }; i_back.onPress = function () { gotoAndStop(_currentframe - 1); }; }; } frame 6 { _root.blackanimation.gotoAndPlay('close'); _root.stopwhere = 5; } } frame 12 { var map1 = new Array([1, 1, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 8, 8, 9, 0, 0, 0], [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 11, 12, 0, 0, 0], [0, 0, 0, 2, 0, 0, 0, 0, 0, 3, 1, 1, 4, 0, 10, 11, 11, 12, 0, 0, 0], [0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 13, 14, 14, 15, 0, 0, 0], [0, 0, 0, 6, 1, 1, 4, 7, 9, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 20, 21, 2, 10, 12, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 22, 23, 2, 10, 12, 2, 20, 21, 2, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 10, 12, 2, 22, 23, 2, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 10, 12, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 10, 12, 2, 16, 17, 2, 16, 17, 0, 0, 0, 3, 1, 1], [0, 0, 0, 0, 0, 0, 2, 13, 15, 2, 18, 19, 2, 18, 19, 0, 0, 0, 2, 0, 0], [0, 0, 0, 0, 0, 0, 6, 1, 1, 5, 0, 0, 6, 1, 1, 1, 1, 1, 5, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); var map2 = new Array([0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 8, 8, 9], [0, 0, 0, 24, 30, 30, 31, 16, 17, 0, 0, 0, 0, 0, 0, 0, 10, 11, 11, 12, 0], [0, 0, 0, 27, 0, 0, 0, 18, 19, 0, 0, 0, 0, 0, 0, 0, 10, 11, 11, 12, 0], [0, 0, 0, 27, 3, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0, 0, 13, 14, 14, 15, 0], [30, 30, 30, 31, 2, 7, 8, 8, 8, 8, 8, 8, 9, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 2, 10, 11, 11, 11, 11, 11, 11, 12, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 2, 10, 11, 11, 11, 11, 11, 11, 12, 2, 0, 3, 1, 1, 1, 1, 1], [0, 20, 21, 0, 2, 10, 11, 11, 11, 11, 11, 11, 12, 2, 0, 2, 0, 0, 0, 0, 0], [0, 22, 23, 0, 2, 10, 11, 11, 11, 11, 11, 11, 12, 2, 0, 2, 0, 0, 0, 0, 0], [0, 3, 1, 1, 5, 10, 11, 11, 11, 11, 11, 11, 12, 6, 1, 5, 0, 0, 0, 0, 0], [0, 2, 0, 16, 17, 13, 14, 14, 14, 14, 14, 14, 15, 0, 0, 0, 0, 0, 0, 0, 0], [0, 2, 0, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); var map3 = new Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 1, 1, 1, 1, 1, 4, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 20, 21, 0, 0, 16, 17, 2, 0, 0, 0, 0], [1, 1, 1, 4, 0, 0, 0, 0, 0, 2, 22, 23, 0, 0, 18, 19, 2, 20, 21, 0, 0], [0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 22, 23, 0, 0], [0, 16, 17, 2, 0, 0, 0, 16, 17, 2, 0, 0, 0, 0, 0, 0, 6, 1, 1, 1, 1], [0, 18, 19, 2, 0, 0, 0, 18, 19, 2, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [0, 0, 0, 6, 1, 1, 1, 1, 1, 5, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11]); var map4 = new Array([0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0], [0, 20, 21, 29, 30, 30, 30, 30, 30, 30, 30, 30, 31, 0, 0, 0, 7, 8, 8, 8, 8], [0, 22, 23, 0, 0, 0, 20, 21, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 11, 11, 11], [1, 1, 1, 1, 4, 0, 22, 23, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 11, 11, 11], [0, 0, 16, 17, 2, 16, 17, 0, 0, 20, 21, 0, 0, 0, 0, 0, 10, 11, 11, 11, 11], [0, 0, 18, 19, 2, 18, 19, 0, 0, 22, 23, 0, 20, 21, 0, 0, 13, 14, 14, 14, 14], [0, 0, 0, 0, 6, 1, 1, 1, 1, 1, 4, 0, 22, 23, 0, 0, 0, 0, 0, 0, 0], [8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 2, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8], [11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 2, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14], [11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8], [11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11]); var map5 = new Array([11, 11, 11, 11, 11, 11, 11, 12, 20, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [11, 11, 11, 11, 11, 11, 11, 12, 22, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [14, 14, 14, 14, 14, 14, 14, 15, 16, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 4, 18, 19, 3, 1, 1, 1, 1, 1, 4, 0, 0, 0, 0], [0, 0, 0, 20, 21, 0, 0, 2, 20, 21, 2, 0, 0, 0, 16, 17, 2, 0, 0, 0, 0], [0, 0, 0, 22, 23, 0, 0, 2, 22, 23, 2, 0, 0, 0, 18, 19, 2, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 6, 1, 1, 5, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0], [30, 30, 30, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0], [0, 0, 0, 28, 0, 0, 0, 7, 8, 8, 8, 8, 9, 0, 0, 0, 6, 1, 1, 1, 1], [0, 0, 0, 28, 0, 0, 0, 10, 11, 11, 11, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 28, 0, 0, 0, 10, 11, 11, 11, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 28, 0, 0, 0, 10, 11, 11, 11, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 28, 0, 0, 0, 10, 11, 11, 11, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0]); var map6 = new Array([11, 11, 11, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [11, 11, 11, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [11, 11, 11, 11, 12, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0, 0, 0], [11, 11, 11, 11, 12, 2, 16, 17, 0, 0, 16, 17, 0, 0, 20, 21, 0, 2, 20, 21, 0], [11, 11, 11, 11, 12, 2, 18, 19, 0, 0, 18, 19, 0, 0, 22, 23, 0, 2, 22, 23, 0], [11, 11, 11, 11, 12, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 1, 1], [11, 11, 11, 11, 12, 2, 20, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [11, 11, 11, 11, 12, 2, 22, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [14, 14, 14, 14, 15, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [20, 21, 0, 20, 21, 0, 0, 0, 0, 24, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], [22, 23, 0, 22, 23, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); var map7 = new Array([0, 0, 0, 0, 27, 0, 0, 27, 0, 0, 0, 0, 0, 27, 10, 11, 11, 11, 12, 27, 0], [0, 0, 0, 0, 27, 0, 0, 27, 0, 0, 0, 0, 0, 27, 10, 11, 11, 11, 12, 27, 0], [1, 1, 4, 0, 29, 30, 30, 31, 0, 0, 0, 0, 0, 27, 10, 11, 11, 11, 12, 27, 0], [0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 10, 11, 11, 11, 12, 27, 0], [0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 10, 11, 11, 11, 12, 27, 0], [0, 0, 2, 16, 17, 0, 0, 0, 0, 0, 0, 0, 0, 27, 10, 11, 11, 11, 12, 27, 0], [0, 0, 2, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 27, 13, 14, 14, 14, 15, 27, 0], [0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 30, 30, 30, 30, 30, 31, 0], [0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 2, 20, 21, 0, 20, 21, 0, 16, 17, 2, 16, 17, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, 22, 23, 0, 22, 23, 0, 18, 19, 2, 18, 19, 0, 0, 0, 0, 0, 0, 0], [0, 0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); var map8 = new Array([0, 0, 20, 21, 0, 20, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 0, 0], [0, 0, 22, 23, 0, 22, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 19, 0, 0], [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, 16, 17, 20, 21, 16, 17, 20, 21, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, 18, 19, 22, 23, 18, 19, 22, 23, 0, 2, 20, 21, 0, 0, 0, 0, 0, 0], [0, 0, 2, 20, 21, 20, 21, 16, 17, 16, 17, 0, 2, 22, 23, 0, 0, 0, 0, 0, 0], [1, 1, 5, 22, 23, 22, 23, 18, 19, 18, 19, 0, 6, 1, 1, 1, 1, 1, 4, 0, 0], [0, 16, 17, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 0, 0, 0, 0, 2, 0, 0], [0, 18, 19, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0, 0, 0, 0, 6, 1, 1], [0, 0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0, 0, 20, 21, 0, 0, 0], [0, 0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0, 0, 22, 23, 0, 0, 0], [20, 21, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 16, 17, 0, 0, 0, 0, 0], [22, 23, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 18, 19, 0, 0, 0, 0, 0]); var map9 = new Array([1, 1, 1, 1, 1, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [8, 8, 8, 9, 20, 21, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [11, 11, 11, 12, 22, 23, 2, 0, 0, 20, 21, 0, 0, 7, 8, 8, 8, 9, 0, 0, 0], [11, 11, 11, 12, 0, 0, 2, 0, 0, 22, 23, 0, 0, 10, 11, 11, 11, 12, 0, 0, 0], [11, 11, 11, 12, 0, 0, 2, 0, 0, 0, 0, 0, 0, 10, 11, 11, 11, 12, 0, 0, 0], [11, 11, 11, 12, 16, 17, 2, 0, 0, 0, 0, 0, 0, 10, 11, 11, 11, 12, 0, 0, 0], [11, 11, 11, 12, 18, 19, 2, 0, 0, 0, 0, 0, 0, 13, 14, 14, 14, 15, 0, 0, 0], [11, 11, 11, 12, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 1], [14, 14, 14, 15, 0, 0, 2, 0, 0, 0, 0, 16, 17, 0, 0, 0, 0, 0, 2, 20, 21], [25, 25, 25, 25, 26, 0, 2, 0, 0, 0, 0, 18, 19, 0, 0, 0, 0, 0, 2, 22, 23], [0, 0, 0, 0, 28, 0, 2, 16, 17, 20, 21, 20, 21, 16, 17, 0, 0, 0, 2, 20, 21], [0, 0, 0, 0, 28, 0, 2, 18, 19, 22, 23, 22, 23, 18, 19, 0, 0, 0, 2, 22, 23], [0, 0, 0, 0, 28, 0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 0, 0]); var map10 = new Array([0, 0, 0, 0, 0, 0, 16, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [20, 21, 0, 0, 0, 0, 18, 19, 0, 0, 7, 8, 8, 8, 9, 0, 0, 0, 0, 0, 0], [22, 23, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 11, 11, 12, 0, 0, 0, 0, 0, 0], [1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 14, 14, 15, 0, 0, 3, 1, 1, 1], [0, 2, 20, 21, 0, 16, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0], [0, 2, 22, 23, 0, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0], [0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 0, 0, 0], [25, 25, 25, 25, 25, 26, 0, 0, 0, 0, 0, 0, 16, 17, 0, 0, 20, 21, 16, 17, 0], [8, 8, 8, 8, 9, 28, 0, 0, 0, 0, 0, 0, 18, 19, 0, 0, 22, 23, 18, 19, 0], [11, 11, 11, 11, 12, 28, 0, 0, 0, 0, 0, 16, 17, 0, 0, 0, 20, 21, 0, 0, 0], [11, 11, 11, 11, 12, 28, 0, 0, 20, 21, 0, 18, 19, 0, 0, 0, 22, 23, 0, 16, 17], [11, 11, 11, 11, 12, 28, 0, 0, 22, 23, 0, 0, 0, 0, 16, 17, 0, 20, 21, 18, 19], [11, 11, 11, 11, 12, 28, 0, 0, 0, 0, 0, 0, 0, 0, 18, 19, 0, 22, 23, 0, 0]); } frame 12 { stop(); var posy = new Array(0, 38, 396, 185, 125, 125, 305, 95, 215, 35, 125); var sovietposy = new Array(0, 285, 192, 225, 285, 255, 165, 255, 255, 225, 105); var d = 0; var i_startgame = 0; var i_gundepth = 0; var i_enemycount = 1; var i_enemyspeed = 0; var i_enemycount = 1; var i_enemynumber = 0; var i_enemystartdirection = 'right'; var i_sovietdirection = 'left'; var i_totalenemy = 0; var i_build; var i_money = 150; var i_cost = 10; var i_attack = 1; var i_range = 5; var i_factory = 0; var i_baseHP = 1; var i_built_factory_money = 0; var i_built_factory_defence = 0; var i_built_factory_tanks = 0; var i_level = 0; var i_enemy_dead = 0; var i_enemy_appear = 0; var i_pausegame = false; var i_sovietattack = false; var i_enemystartposition = 396; var air = false; var i_winlevel = true; var i_mainlevel = 1; var i_gameover = false; var i_demolish = false; var i_showfirst = false; var i_sovietcount = 1; var i_sovietnumber = 0; var i_sovietmaximum = 10; var i_sovietspeed = 4; var i_soviettype = 0; var i_pausewait = 0; var i_unpausewait = 0; var i_researchframe = 1; var i_turretresearch = true; var i_bunkerresearch = false; var i_artilleryresearch = false; var i_flakresearch = true; var i_machineresearch = false; var i_bikere = true; var i_truckre = false; var i_apcre = false; var i_tankre = false; var i_bigtankre = false; i_menumusic.stop(); var i_gamemusic = new Sound(); i_gamemusic.attachSound('STALINGRAD_level' + i_levelmap); i_gamemusic.start(0, 9999); i_gamemusic.setVolume(75); i_menu.attachMovie('startbutton', 'i_start', 1, {'_x': 300, '_y': 50}); i_menu.attachMovie('botom_menu', 'menu2', 2, {'_x': 0, '_y': 420}); i_menu.attachMovie('top_menu', 'menu1', 3, {'_x': 0, '_y': 0}); build_tile.swapDepths(4); var i = 0; while (i < 21) { var g = 0; while (g < 13) { i_tiles.attachMovie('tile', 'tile' + i + '_' + g, d++, {'_x': 15 + i * 30, '_y': 45 + g * 30}); i_tiles['tile' + i + '_' + g].gotoAndStop(_root['map' + String(i_levelmap)][g][i] + 1); ++g; } ++i; } i_menu.i_start.onPress = function () { i_gameover = false; i_pausegame = false; i_startgame = 1; ++i_level; i_menu.i_start.removeMovieClip(); }; i_menu.menu1.i_menu_btn.onPress = function () { if (i_pausegame == true) { i_menu.i_paused.removeMovieClip(); i_pausegame = false; } else { if (i_pausegame == false) { i_menu.attachMovie('i_paused', 'i_paused', 105, {'_x': 0, '_y': 0}); i_pausegame = true; } } }; i_menu.menu2.i_menu_btn.onPress = function () { if (i_pausegame == true) { i_menu.i_paused.removeMovieClip(); i_pausegame = false; } else { if (i_pausegame == false) { i_menu.attachMovie('i_paused', 'i_paused', 105, {'_x': 0, '_y': 0}); i_pausegame = true; } } }; i_menu.menu1.i_research.onPress = function () { i_menu.attachMovie('research_menu', 'research_menu', 4, {'_x': 0, '_y': 0}); i_menu.research_menu._alpha = 85; i_pausegame = true; }; onEnterFrame = function () { if (i_gameover) { blackanimation.gotoAndPlay('close'); stopwhere = 9; i_gameover = false; } if (i_baseHP == 20) { i_gameover = true; } i_pause = Key.isDown(80); if (i_pausegame) { ++i_pausewait; } if (!i_pausegame) { ++i_unpausewait; if (i_pause) { if (i_unpausewait >= 10) { i_menu.attachMovie('i_paused', 'i_paused', 105, {'_x': 0, '_y': 0}); i_pausegame = true; i_pausewait = 0; } } } else { if (i_pause) { if (i_pausewait >= 10) { i_menu.i_paused.removeMovieClip(); i_pausegame = false; i_unpausewait = 0; } } } if (i_enemy_dead == i_totalenemy) { ++i_level; i_enemy_dead = 0; i_startgame = 1; } i_menu.menu1.i_base.gotoAndStop(_root.i_baseHP); if (i_startgame == 1) { if (i_pausegame == false) { ++i_enemycount; if (i_enemycount > i_enemy_appear) { ++i_enemynumber; if (!air) { i_enemy.attachMovie('enemy', 'enemy' + i_enemynumber, i_enemynumber, {'_x': -15, '_y': posy[i_levelmap]}); i_enemycount = 0; } else { i_enemystartpos._y = random(380) + 20; i_enemy.attachMovie('enemy', 'enemy' + i_enemynumber, i_enemynumber, {'_x': -15, '_y': i_enemystartpos._y}); i_enemycount = 0; } } if (i_enemynumber >= i_totalenemy) { i_enemynumber = 0; i_startgame = 0; } } } if (!i_pausegame && i_sovietattack && i_sovietnumber < i_sovietmaximum) { ++i_sovietcount; if (i_sovietcount > 15 && !i_pausegame) { ++i_sovietnumber; i_sovietcount = 0; i_soviet.attachMovie('soviet', 'soviet' + i_sovietnumber, i_sovietnumber, {'_x': i_sovietstartpos._x, '_y': sovietposy[i_levelmap]}); } } if (i_level == 32) { if (i_winlevel) { i_winlevel = false; blackanimation.gotoAndPlay('close'); stopwhere = 10; } } }; i_gun._x = 0; i_gun._y = 0; } movieClip 1128 { } movieClip 1136 { frame 1 { stop(); this.onEnterFrame = function () { this.startDrag(true); updateAfterEvent(); if (_root.build == 0) { this.gotoAndStop(1); } if (_root.build == 1) { this.gotoAndStop(2); } if (_root.build == 2) { this.gotoAndStop(5); } if (_root.build == 3) { this.gotoAndStop(6); } if (_root.build == 4) { this.gotoAndStop(7); } if (_root.build == 5) { this.gotoAndStop(3); } if (_root.build == 6) { this.gotoAndStop(4); } if (_root.build == 7) { this.gotoAndStop(8); } if (_root.build == 8) { this.gotoAndStop(9); } if (_root.build == 9) { this.gotoAndStop(10); } }; } }




http://swfchan.com/27/130973/info.shtml
Created: 21/2 -2019 19:06:36 Last modified: 21/2 -2019 19:06:36 Server time: 25/04 -2024 17:23:29