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

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

supplydepot.swf

This is the info page for
Flash #160247

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


ActionScript [AS1/AS2]
Combined Code
// unknown tag 88 length 63 movieClip 17 { } movieClip 18 { } movieClip 19 start_screen { } movieClip 21 general_mask { } movieClip 24 incoming-ui { frame 1 { stop(); } frame 263 { stop(); } } movieClip 52 { frame 1 { _root.depot = this; preGame = false; actionLock = preGame; isUp = true; stop(); this.onRelease = function () { if (!actionLock) { if (preGame) { preGame = false; if (_root.go && false) { _root.go.swapDepths(999); _root.go.removeMovieClip(); _root.go = null; } _root.gameStage.action_plane.mission_intro.removeMovieClip(); _root.gameStage.startGame(); } play(); } else { _root.gosound('bur.wav'); } }; } frame 2 { _root.gosound('SupplyDepot.mp3'); } frame 41 { isUp = false; } frame 55 { stop(); } frame 57 { _root.gosound('SupplyDepot.mp3'); } frame 76 { isUp = true; } } movieClip 53 action_plane { } movieClip 62 { } movieClip 65 { } movieClip 66 { frame 1 { health_mask._x = health_bar._x; health_mask._width = health_bar._width; health_mask.targetWidth = health_mask._width; onEnterFrame = function () { health_mask._width -= (health_mask._width - health_mask.targetWidth) / 7; }; updateHealth = function (target) { var v1 = health_bar._width; health_mask.targetWidth -= v1 * target / 100; }; } } movieClip 72 { frame 1 { stop(); this.onRelease = function () { gotoAndStop((this._currentframe == 1) ? 2 : 1); }; } } movieClip 73 { } movieClip 75 { } movieClip 77 { } movieClip 78 { frame 1 { stop(); } frame 30 { stop(); } } // unknown tag 88 length 63 movieClip 81 game_stage { frame 1 { var init = false; var mission = 0; var friendlies = []; var nmes = []; var baseHealth = 100; _root.gameStage = this; debugTxt._alpha = 0; var missionUnits = [['ally']]; if (!init) { init = true; var idle = function () { if (!idleTimer) { this.idleTimerDefault = 400; this.idleTimer = 400; } }; var unitLive = function () { var v5 = 2; var v3 = _root.depot; var v4 = this._x - v5; if (v4 < v3._x + v3._width - 40 && v3.isUp && v4 > v3._x + 20) { if (this.currentAnimation != 'stand') { this.animate('stand'); } this.idleChat.idleCountDown(); } else { if (this.currentAnimation != 'walk') { this.idleChat.hideChat(); this.animate('walk'); } this._x = v4; } if (this._x < -this.frameSize[0]) { if (this.type == 'ally') { givePoints(100); boostCombo(); friendlies.shift(); } else { baseDamage(); nmes.shift(); } removeMovieClip(this); } }; var positionUnit = function (target) { target._x = stageWidth / 2; target._y = -target.frameSize[1] + 16; }; var spawnUnit = function (type) { var newUnit; if (type == 'ally') { newUnit = action_plane.attachMovie('marine', 'marine' + friendlies.length, action_plane.getNextHighestDepth()); newUnit.type = 'ally'; friendlies.push(newUnit); trace('Ally spawned'); } else { newUnit = action_plane.attachMovie('hydra', 'hydra' + nmes.length, action_plane.getNextHighestDepth()); newUnit.type = 'nme'; nmes.push(newUnit); trace('Enemy spawned'); } var v1 = function () { positionUnit(newUnit); newUnit.animate('walk'); newUnit.onEnterFrame = unitLive; newUnit._alpha = 100; clearInterval(interval); }; newUnit._alpha = 0; var interval = setInterval(v1, 20); }; var givePoints = function (val) { _root.scoreVal += val * _root.comboVal; _root.gosound('powerup1.wav'); updateScore(); }; var boostCombo = function () { _root.comboVal += 1; updateCombo(); }; var resetCombo = function () { _root.comboVal = 1; updateCombo(); }; var baseDamage = function () { baseHealth -= 25; updateBaseHealth(); }; var updateScore = function () { ui.score_text.text = _root.scoreVal; }; var updateCombo = function () { ui.combo_text.text = _root.comboVal < 10 ? _root.comboVal + 'x' : 'MAX'; }; var updateBaseHealth = function () { ui.health_bar.updateHealth(baseHealth); }; var startGame = function () { trace('start game'); _root.gomusic(_root.game_music, 'lv2-choose-loop.mp3'); ui.incoming.gotoAndPlay('start'); var v3 = 1; var unitWait = 600; var unitDefaultWait = 200; this.onEnterFrame = function () { debugTxt.text = 'unitWait: ' + unitWait; if (--unitWait < 0) { unitWait = unitDefaultWait; if (missionUnits[mission].length > 0) { spawnUnit(missionUnits[mission].shift()); } else { if ((friendlies.concat(nmes)).length <= 0) { trace((friendlies.concat(nmes)).length); this.attachMovie('mission_complete', 'mission_complete', this.getNextHighestDepth()); delete this.onEnterFrame; } } } }; }; if (mission == 0) { action_plane.attachMovie('mission0_intro', 'mission_intro', action_plane.getNextHighestDepth()); _root.gomusic(_root.game_music, 'listen_here_auger.mp3'); _root.game_music.setVolume(100); } updateScore(); updateCombo(); updateBaseHealth(); } } } movieClip 84 { } movieClip 85 scv { frame 1 { var init = false; var frameSize = [100, 150]; var frameCols = 6; var animations = {'walk': {'row': 1, 'frames': 5}, 'punch': {'row': 2, 'frames': 6, 'loop': false}, 'pickup': {'row': 3, 'frames': 4, 'loop': false}, 'carry': {'row': 4, 'frames': 5}}; if (!init) { initSpriteSheet(this); } } } movieClip 88 { } movieClip 89 meryl { frame 1 { var init = false; var frameSize = [78, 78]; var frameCols = 6; var animations = {'stand': {'row': 1, 'frames': 4}, 'walk': {'row': 2, 'frames': 6}, 'hit': {'row': 3, 'frames': 4, 'loop': false}}; if (!init) { initSpriteSheet(this); } } } movieClip 92 { } // unknown tag 88 length 63 movieClip 97 { frame 294 { gotoAndPlay('startframe'); } } movieClip 98 { frame 1 { var init = false; var frameSize = [85, 87]; var frameCols = 15; var animations = {'blink': {'row': 1, 'frames': 15}}; if (!init) { initSpriteSheet(this); } } } movieClip 99 mission0_intro { frame 1 { _root.depot.actionLock = true; _root.depot.preGame = true; _root.depot.gotoAndStop('raise'); if (!_root.showIntro) { gotoAndStop(this._totalframes); } } frame 2 { meryl.flip(); meryl.animate('walk'); scv.animate('walk'); } frame 86 { meryl.animate('stand'); } frame 294 { scv.animate(['punch', 'pickup', 'carry']); } frame 304 { _root.gosound('punch.wav'); } frame 310 { meryl.animate('hit'); } frame 310 { _root.gosound('punch-hit.wav'); } frame 401 { scv.flip(); } frame 450 { go.animate('blink'); _root.depot.actionLock = false; _root.gameStage.ui.gotoAndPlay('in'); stop(); } } movieClip 102 { } movieClip 104 { } movieClip 107 { frame 1 { function updateText(txt) { idleText.text = txt; idleText.autoSize = true; idleTxtBg._width = idleText._width + 20; } function hideChat() { this._alpha = 0; idleTimer = 500; } if (!init) { var idleTimer = 600; var idleOTimer = 300; var idleOptions = ['Hey.', '...Hey!', 'Lemme through.', 'I\'m on your side.', 'Bro, c\'mon.', 'I\'m late for my daughter\'s recital.', 'It\'s my birthday.', 'I knew you\'d forget.', 'I wish we talked more.', 'Fine, don\'t say anything.', 'Your eyes say everything.', 'Don\'t freeze me out.', 'Let\'s talk this over.', 'Where did we go wrong?', 'Ok, let\'s start over.', 'My name\'s inmate #4121', 'Let\'s go steady.', 'Man, we\'re moving so fast.', 'I need to slow down.', 'I\'ve been burned before.', 'Your servos say no...', '...but your capicitors say yes.', 'Seriously, bro.', 'There\'s zergs out here.', 'Fine.', 'I\'ll just play games on my HUD.']; init = true; this._alpha = 0; } var idleCountDown = function () { if (--idleTimer <= 0) { idleTimer = idleOTimer; if (idleOptions.length > 0) { updateText(idleOptions.shift()); this._alpha = 100; } else { this._alpha = 0; } } }; } } movieClip 108 marine { frame 1 { var init = false; var frameSize = [93, 93]; var frameCols = 6; var animations = {'stand': {'row': 1, 'frames': 1}, 'walk': {'row': 2, 'frames': 6}}; if (!init) { initSpriteSheet(this); } } } movieClip 111 { } movieClip 112 hydra { frame 1 { var init = false; var frameSize = [114, 114]; var frameCols = 8; var animations = {'stand': {'row': 1, 'frames': 1}, 'walk': {'row': 2, 'frames': 8}}; if (!init) { initSpriteSheet(this); } } } movieClip 115 { } movieClip 116 mission_complete { frame 1 { _root.gosound('Heroism_Cast.mp3'); i = 1; while (i < 50) { newConfetti = attachMovie('mc_confetti', 'confetti' + i, this.getNextHighestDepth()); newConfetti._x = randrange(0, stageWidth / 2); newConfetti._y = -20; newConfetti._xscale = randrange(20, 60); newConfetti._yscale = newConfetti._xscale; newConfetti.fallSpeed = -randrange(300, 1000) / 100; var myTransform = new flash.geom.Transform(newConfetti); var myColorTransform = new flash.geom.ColorTransform(); myColorTransform.rgb = Math.floor(Math.random() * 16777215); myTransform.colorTransform = myColorTransform; newConfetti.onEnterFrame = function () { this.fallSpeed += 0.3; if (this._xscale < -100) { scaleDir = 1; } if (this._xscale >= 100) { scaleDir = -1; } this._y += this.fallSpeed; this._xscale -= this.fallSpeed * scaleDir; this._rotation += this.fallSpeed; }; ++i; } } frame 126 { _root.everything.attachMovie('credits', 'credits', _root.getNextHighestDepth()); _root.everything.removeMovieClip('game_stage'); stop(); } } movieClip 117 mc_confetti { } // unknown tag 88 length 63 movieClip 121 { } movieClip 122 credits { frame 1 { if (!init) { var creditBuffer = 6; init = true; _root.gomusic(_root.game_music, 'lv2-theme-loop.mp3'); duplicateMovieClip('names', 'names2', this.getNextHighestDepth()); names2._y = names._y + names._height + creditBuffer; } this.onEnterFrame = function () { if (names._y + names._height < 0) { names._y = names2._y + names2._height + creditBuffer; } if (names2._y + names2._height < 0) { names2._y = names._y + names._height + creditBuffer; } names._y -= 1; names2._y -= 1; }; } } movieClip 123 everything { } frame 1 { function initEverything() { everything._yscale = 200; everything._xscale = 200; if (!showIntro) { everything.attachMovie('game_stage', 'game_stage', everything.getNextHighestDepth()); } else { everything.attachMovie('start_screen', 'start_screen', everything.getNextHighestDepth()); gomusic(game_music, 'lv2-future-loop.mp3'); game_music.setVolume(75); everything.start_screen.onRelease = function () { everything.start_screen.removeMovieClip(); game_music.stop(); everything.attachMovie('game_stage', 'game_stage', everything.getNextHighestDepth()); everything.start_screen.useHandCursor = false; }; } } function preloadLoop() { var v3 = _root.getBytesLoaded(); var v2 = _root.getBytesTotal(); trace(v3 + ' : ' + v2); if (v3 >= v2) { trace('Load Complete'); delete _root.onEnterFrame; initEverything(); } } function gomusic(obj, id) { obj.stop(); obj.attachSound(id); obj.start(); } function gosound(id) { game_sound.attachSound(id); game_sound.start(); } function goloop(id) { _root.currloop = id; loop_sound.attachSound(id); loop_sound.start(); } Stage.scaleMode = 'noscale'; Stage.align = 'TL'; _quality = 'BEST'; _global.stageWidth = Stage.width; _global.stageHeight = Stage.width; _global.pauseGame = false; var showIntro = false; showIntro = true; var scoreVal = 0; var comboVal = 1; _global.randrange = function (min, max) { if (min) { min = min; var v2 = Math.floor(Math.random() * (max - min + 1)) + min; return v2; } min = 0; var v2 = Math.floor(Math.random() * (max - min + 1)) + min; return v2; }; _global.initSpriteSheet = function (target) { var v2 = target.attachMovie('general_mask', 'spriteMask', target.sprite.getDepth() + 1); var v4 = target.frameSize[0]; var v3 = target.frameSize[1]; var v5 = target.createEmptyMovieClip('animationDrive', target.getNextHighestDepth()); v2._y = 0; v2._x = 0; v2._width = v4; v2._height = v3; target.sprite.cacheAsBitmap = true; v2.cacheAsBitmap = true; target.sprite.setMask(target.spriteMask); target.animate = animTools.animate; target.flip = animTools.flip; }; _global.animTools = {'animate': function (animation, loop) { if (typeof animation == 'object') { var v4 = animation.shift(); var animationQueue = animation; animation = v4; trace('animationQueue : ' + animationQueue); } var aniData = this.animations[animation]; var frameWidth = this.frameSize[0]; var v3 = this.frameSize[1]; var spriteFrame = 1; var canLoop = aniData.loop != false; frameTimer = aniData.delay || 5; var frameDelay = frameTimer; var sprite = this.sprite; if (animationQueue.length <= 0 && aniData.loop != false) { canLoop = true; } if (this.currentAnimation != animation) { this.currentAnimation = animation; sprite._y = -((aniData.row - 1) * v3); sprite._x = 0; trace('drive: ' + this._name + ' / animation: ' + animation + ' / queue: ' + animationQueue); this.animationDrive.onEnterFrame = function () { if (--frameTimer <= 0) { spriteFrame += 1; if (spriteFrame > aniData.frames) { if (canLoop) { sprite._x = 0; spriteFrame = 1; } else { if (animationQueue) { this._parent.animate(animationQueue); } else { delete this.onEnterFrame; } } } else { sprite._x -= frameWidth; } frameTimer = frameDelay; } }; } }, 'getFrame': function (frame) { var v7 = this.animations[animation]; var v4 = this.frameSize[0]; var v2 = this.frameSize[1]; var v3 = Math.floor(frame / this.frameCols); var v5 = frame % this.frameCols; sprite._y = -((v3 - 1) * v2); sprite._x = (v5 - 1) * v4; }}; _root.onEnterFrame = preloadLoop; var game_sound = new Sound(); var game_music = new Sound(); var loop_sound = new Sound(); var player_sound = new Sound(); var nme_sound = new Sound(); _root.game_music.setVolume(60); loop_sound.onSoundComplete = function () { loop_sound.start(); }; game_music.onSoundComplete = function () { game_music.start(); }; } frame 1 { v; } movieClip 128 { frame 1 { function togglesound() { if (off) { off = false; this.gotoAndStop(1); _root.game_sound.setVolume(100); _root.game_music.setVolume(60); } else { off = true; this.gotoAndStop(2); _root.game_sound.setVolume(0); _root.game_music.setVolume(0); } } if (!init) { init = true; off = false; this.onRelease = togglesound; stop(); } } }




http://swfchan.com/33/160247/info.shtml
Created: 21/10 -2018 23:23:47 Last modified: 21/10 -2018 23:23:47 Server time: 04/05 -2024 23:02:30