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

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

Warhammer_game.swf

This is the info page for
Flash #97475

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


Text
LOADING 0%

F

O

Warhammer40k Fan Art by
Skeen09

FINISH

ActionScript [AS3]

Section 1
//Game (com.elf7.Game) package com.elf7 { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; import flash.net.*; public class Game extends MovieClip { private var replayBtn:SimpleButton; private var counter:int;// = 0 public var credits_bt:SimpleButton; public var next_bt:SimpleButton; public var cursor_mc:MovieClip; public var cursor_mask:MovieClip; public var play_bt:SimpleButton; private var cursor:MovieClip; private var pos:Array; public var p:MovieClip; public var start_bt:SimpleButton; public var cursorMask:MovieClip; private var playBtn:SimpleButton; public var mg:SimpleButton; public var tiles:Array; private var level:int;// = 0 private var creditsBtn:SimpleButton; private var nextBtn:SimpleButton; public var replay_bt:SimpleButton; private var gameResult:String;// = "win" public var mask_mc:MovieClip; private var blackMask:MovieClip; public function Game():void{ tiles = new Array(); counter = 0; level = 0; gameResult = "win"; pos = [{x:505, y:683}, {x:505, y:683}, {x:454, y:683}, {x:505, y:683}, {x:150, y:629}, {x:150, y:580}, {x:455, y:580}]; super(); addFrameScript(7, frame8, 13, frame14, 18, frame19, 23, frame24, 32, frame33, 37, frame38, 38, frame39); stop(); addFrameScript(0, frame1); addFrameScript(1, frame2); addFrameScript(2, frame3); addFrameScript(3, frame4); addFrameScript(4, frame5); } public function checkDownloading(e:Event):void{ var preloader:MovieClip; var preloaderBar:MovieClip; var label:TextField; var percent:int; preloader = (getChildByName("p") as MovieClip); preloaderBar = (preloader.getChildByName("bar") as MovieClip); label = (preloader.getChildByName("txt") as TextField); percent = Math.floor(((loaderInfo.bytesLoaded / loaderInfo.bytesTotal) * 100)); if (percent < 100){ preloaderBar.gotoAndStop((percent + 1)); label.text = (((((("LOADING " + percent) + "% ") + String((Math.floor(((loaderInfo.bytesLoaded / 0x0400) * 10)) / 10))) + "/") + String((Math.floor(((loaderInfo.bytesTotal / 0x0400) * 10)) / 10))) + " KB"); } else { nextFrame(); removeEventListener(Event.ENTER_FRAME, checkDownloading); }; } function frame14(){ stop(); } private function frame3():void{ (getChildByName("start_bt") as SimpleButton).addEventListener(MouseEvent.CLICK, onClick, false, 0, true); } private function endLevel():void{ var i:int; i = 0; removeEventListener(Event.ENTER_FRAME, dragCursor); cursor.x = 1000; cursorMask.x = 1000; blackMask.visible = false; if (gameResult == "win"){ i = 0; while (i < tiles.length) { i++; }; tiles = new Array(); nextBtn.visible = true; replayBtn.visible = true; creditsBtn.visible = true; play(); level++; }; if (gameResult == "lose"){ newLevel(); }; } private function frame1():void{ addEventListener(Event.ENTER_FRAME, checkDownloading); } public function wait(e:Event):void{ if (counter > (24 * 3)){ counter = 0; removeEventListener(Event.ENTER_FRAME, wait); nextFrame(); } else { counter++; }; } private function frame4():void{ playBtn = (getChildByName("play_bt") as SimpleButton); creditsBtn = (getChildByName("credits_bt") as SimpleButton); nextBtn = (getChildByName("next_bt") as SimpleButton); replayBtn = (getChildByName("replay_bt") as SimpleButton); blackMask = (getChildByName("mask_mc") as MovieClip); cursorMask = (getChildByName("cursor_mask") as MovieClip); cursor = (getChildByName("cursor_mc") as MovieClip); cursor.visible = false; blackMask.visible = false; nextBtn.visible = false; replayBtn.visible = false; playBtn.addEventListener(MouseEvent.CLICK, onClick, false, 0, true); creditsBtn.addEventListener(MouseEvent.CLICK, onClick, false, 0, true); nextBtn.addEventListener(MouseEvent.CLICK, onClick, false, 0, true); replayBtn.addEventListener(MouseEvent.CLICK, onClick, false, 0, true); } private function frame5():void{ newLevel(); } function frame8(){ stop(); } private function frame2():void{ addEventListener(Event.ENTER_FRAME, wait); (getChildByName("mg") as SimpleButton).addEventListener(MouseEvent.CLICK, onClick, false, 0, true); } function frame24(){ stop(); } function frame38(){ stop(); } function frame19(){ stop(); } function frame39(){ stop(); (getChildByName("next_bt") as SimpleButton).visible = false; } public function dragCursor(e:Event):void{ var i:int; var dx:Number; var dy:Number; i = 0; dx = ((stage.mouseX - cursor.x) / 1.5); dy = ((stage.mouseY - cursor.y) / 1.5); cursor.x = (cursor.x + dx); cursor.y = (cursor.y + dy); cursorMask.x = cursor.x; cursorMask.y = cursor.y; i = 0; while (i < tiles.length) { if (tiles[i].type == "Tile3"){ if (tiles[i].link.hitTestPoint(cursor.x, cursor.y, true)){ gameResult = "win"; endLevel(); return; }; }; if (tiles[i].type == "Tile1"){ if (tiles[i].link.hitTestPoint(cursor.x, cursor.y, true)){ gameResult = "lose"; endLevel(); return; }; }; i++; }; } function frame33(){ stop(); } private function newLevel():void{ var i:int; nextBtn.visible = false; replayBtn.visible = false; creditsBtn.visible = false; playBtn.visible = false; blackMask.visible = true; cursor.visible = true; cursorMask.visible = true; cursor.addEventListener(MouseEvent.CLICK, onClick, false, 0, true); cursor.x = pos[level].x; cursor.y = pos[level].y; cursorMask.x = cursor.x; cursorMask.y = cursor.y; i = 0; while (i < numChildren) { if (getQualifiedClassName(getChildAt(i)).indexOf("Tile") > -1){ (getChildAt(i) as Tile).init(); }; i++; }; } public function onClick(e:MouseEvent):void{ if (e.target.name == "start_bt"){ nextFrame(); }; if (e.target.name == "play_bt"){ nextFrame(); }; if (e.target.name == "replay_bt"){ gotoAndStop(5); level = 0; }; if (e.target.name == "next_bt"){ newLevel(); }; if (e.target.name == "cursor_mc"){ cursor.removeEventListener(MouseEvent.CLICK, onClick); addEventListener(Event.ENTER_FRAME, dragCursor); }; if (e.target.name == "mg"){ navigateToURL(new URLRequest("http://www.7thelf.com/"), "_blank"); }; } } }//package com.elf7
Section 2
//Tile (com.elf7.Tile) package com.elf7 { import flash.events.*; import flash.display.*; import flash.utils.*; public class Tile extends MovieClip { public function Tile(){ super(); } public function init():void{ mouseChildren = false; (parent as Game).tiles.push({link:this, type:getQualifiedClassName(this)}); } public function onAdded(e:Event):void{ mouseChildren = false; (parent as Game).tiles.push({link:this, type:getQualifiedClassName(this)}); } } }//package com.elf7
Section 3
//Preloader_1 (WH40000_DRESSUP_BY_7THELF_DOT_COM_fla.Preloader_1) package WH40000_DRESSUP_BY_7THELF_DOT_COM_fla { import flash.display.*; import flash.text.*; public dynamic class Preloader_1 extends MovieClip { public var txt:TextField; public var preloaderBar:MovieClip; public function Preloader_1(){ super(); } } }//package WH40000_DRESSUP_BY_7THELF_DOT_COM_fla
Section 4
//PreloaderBar_2 (WH40000_DRESSUP_BY_7THELF_DOT_COM_fla.PreloaderBar_2) package WH40000_DRESSUP_BY_7THELF_DOT_COM_fla { import flash.display.*; public dynamic class PreloaderBar_2 extends MovieClip { public function PreloaderBar_2(){ super(); addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package WH40000_DRESSUP_BY_7THELF_DOT_COM_fla
Section 5
//Tile1 (Tile1) package { import com.elf7.*; public dynamic class Tile1 extends Tile { public function Tile1(){ super(); } } }//package
Section 6
//Tile2 (Tile2) package { import com.elf7.*; public dynamic class Tile2 extends Tile { public function Tile2(){ super(); } } }//package
Section 7
//Tile3 (Tile3) package { import com.elf7.*; public dynamic class Tile3 extends Tile { public function Tile3(){ super(); } } }//package

Library Items

Symbol 1 GraphicUsed by:4
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:4
Symbol 4 MovieClip {WH40000_DRESSUP_BY_7THELF_DOT_COM_fla.PreloaderBar_2}Uses:1 3Used by:7
Symbol 5 FontUsed by:6
Symbol 6 EditableTextUses:5Used by:7
Symbol 7 MovieClip {WH40000_DRESSUP_BY_7THELF_DOT_COM_fla.Preloader_1}Uses:4 6Used by:Timeline
Symbol 8 GraphicUsed by:13 95
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:9Used by:13
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:11Used by:13
Symbol 13 ButtonUses:8 10 12Used by:Timeline
Symbol 14 GraphicUsed by:36
Symbol 15 GraphicUsed by:24
Symbol 16 GraphicUsed by:24
Symbol 17 GraphicUsed by:24
Symbol 18 GraphicUsed by:24
Symbol 19 GraphicUsed by:24
Symbol 20 GraphicUsed by:24
Symbol 21 GraphicUsed by:24
Symbol 22 GraphicUsed by:24
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:15 16 17 18 19 20 21 22 23Used by:25
Symbol 25 MovieClipUses:24Used by:28
Symbol 26 GraphicUsed by:28
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:25 26 27Used by:36
Symbol 29 GraphicUsed by:32
Symbol 30 GraphicUsed by:32
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:29 30 31Used by:36
Symbol 33 FontUsed by:34 35 92 118
Symbol 34 TextUses:33Used by:36
Symbol 35 TextUses:33Used by:36
Symbol 36 MovieClipUses:14 28 32 34 35Used by:Timeline
Symbol 37 GraphicUsed by:44
Symbol 38 GraphicUsed by:44
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:39Used by:44
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:41Used by:44
Symbol 43 GraphicUsed by:44
Symbol 44 ButtonUses:37 38 40 42 43Used by:Timeline
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:Timeline
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClipUses:47Used by:Timeline
Symbol 49 GraphicUsed by:52
Symbol 50 GraphicUsed by:52
Symbol 51 GraphicUsed by:52
Symbol 52 MovieClipUses:49 50 51Used by:Timeline
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClipUses:53Used by:Timeline
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:57
Symbol 57 MovieClipUses:56Used by:Timeline
Symbol 58 BitmapUsed by:59
Symbol 59 GraphicUses:58Used by:60
Symbol 60 MovieClipUses:59Used by:Timeline
Symbol 61 BitmapUsed by:62
Symbol 62 GraphicUses:61Used by:63
Symbol 63 MovieClipUses:62Used by:Timeline
Symbol 64 BitmapUsed by:65
Symbol 65 GraphicUses:64Used by:66
Symbol 66 MovieClipUses:65Used by:Timeline
Symbol 67 BitmapUsed by:68
Symbol 68 GraphicUses:67Used by:69
Symbol 69 MovieClipUses:68Used by:Timeline
Symbol 70 BitmapUsed by:71
Symbol 71 GraphicUses:70Used by:72
Symbol 72 MovieClipUses:71Used by:Timeline
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:75
Symbol 75 MovieClipUses:74Used by:Timeline
Symbol 76 GraphicUsed by:77
Symbol 77 MovieClipUses:76Used by:Timeline
Symbol 78 GraphicUsed by:84
Symbol 79 GraphicUsed by:84 100
Symbol 80 GraphicUsed by:84
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:81Used by:84
Symbol 83 GraphicUsed by:84 89 95 100
Symbol 84 ButtonUses:78 79 80 82 83Used by:Timeline
Symbol 85 GraphicUsed by:89
Symbol 86 GraphicUsed by:89
Symbol 87 GraphicUsed by:88
Symbol 88 ButtonUses:87Used by:89
Symbol 89 ButtonUses:85 86 88 83Used by:Timeline
Symbol 90 GraphicUsed by:95
Symbol 91 GraphicUsed by:95
Symbol 92 TextUses:33Used by:95
Symbol 93 GraphicUsed by:94
Symbol 94 MovieClipUses:93Used by:95
Symbol 95 ButtonUses:90 91 92 8 94 83Used by:Timeline
Symbol 96 GraphicUsed by:100
Symbol 97 GraphicUsed by:100
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClipUses:98Used by:100
Symbol 100 ButtonUses:96 97 99 79 83Used by:Timeline
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:101Used by:Timeline
Symbol 103 ShapeTweeningUsed by:108
Symbol 104 GraphicUsed by:108
Symbol 105 GraphicUsed by:108
Symbol 106 ShapeTweeningUsed by:108
Symbol 107 GraphicUsed by:108
Symbol 108 MovieClipUses:103 104 105 106 107Used by:Timeline
Symbol 109 GraphicUsed by:114
Symbol 110 GraphicUsed by:114 117
Symbol 111 GraphicUsed by:114
Symbol 112 GraphicUsed by:114
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClip {Tile1}Uses:109 110 111 112 113Used by:Timeline
Symbol 115 GraphicUsed by:117
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClip {Tile2}Uses:115 110 116Used by:Timeline
Symbol 118 TextUses:33Used by:120
Symbol 119 GraphicUsed by:120
Symbol 120 MovieClip {Tile3}Uses:118 119Used by:Timeline
Symbol 121 BitmapUsed by:122
Symbol 122 GraphicUses:121Used by:123
Symbol 123 MovieClipUses:122Used by:Timeline
Symbol 124 BitmapUsed by:125
Symbol 125 GraphicUses:124Used by:126
Symbol 126 MovieClipUses:125Used by:Timeline

Instance Names

"p"Frame 1Symbol 7 MovieClip {WH40000_DRESSUP_BY_7THELF_DOT_COM_fla.Preloader_1}
"mg"Frame 2Symbol 13 Button
"start_bt"Frame 3Symbol 44 Button
"mask_mc"Frame 4Symbol 77 MovieClip
"replay_bt"Frame 4Symbol 84 Button
"next_bt"Frame 4Symbol 89 Button
"credits_bt"Frame 4Symbol 95 Button
"play_bt"Frame 4Symbol 100 Button
"cursor_mask"Frame 4Symbol 102 MovieClip
"cursor_mc"Frame 4Symbol 108 MovieClip
"preloaderBar"Symbol 7 MovieClip {WH40000_DRESSUP_BY_7THELF_DOT_COM_fla.Preloader_1} Frame 1Symbol 4 MovieClip {WH40000_DRESSUP_BY_7THELF_DOT_COM_fla.PreloaderBar_2}
"txt"Symbol 7 MovieClip {WH40000_DRESSUP_BY_7THELF_DOT_COM_fla.Preloader_1} Frame 1Symbol 6 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.
EnableDebugger2 (64)Timeline Frame 131 bytes "..$1$mG$uEExNOGRzeDqqJ/90NOZO0."




http://swfchan.com/20/97475/info.shtml
Created: 1/12 -2018 05:39:41 Last modified: 1/12 -2018 05:39:41 Server time: 22/12 -2024 02:50:40