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

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

Castle defenders (alpha1).swf

This is the info page for
Flash #76380

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


Text
Play

X

Archery

Train an Archer

Upgrade Bows

Hide/Show shooting range

Magician School

Train a Mage

Factory

Build a catapult

Upgrade catapult

Upgrade walls

Repair walls (20 hp)

Paused

Launch next wave!

ActionScript [AS1/AS2]

Frame 1
stop();
Frame 3
function hit(dammage) { walls_now = walls_now - dammage; } enemy_depth = 100; e_d = enemy_depth; e_num = 20; e_online = 0; enemy_next = 3; enemy_limit = 50; enemy_worth = 5; i = 0; catapult_price = 350; catapult_number = 0; catapult_upgrade_price = 400; catapult_upgrade_add = 10; catapult_upgrade = 100; catapult_hitsize = 30; cash = 0; Set("port\u00E9e_archers", 170); archer_number = 0; archer_price = 100; archer_limit = 40; archer_upgrade_price = 200; archer_upgrade = 50; walls_limit = 200; walls_now = 200; walls_display = (walls_now + "/") + walls_limit; walls_upgrade_price = 50; walls_upgrade_add = 15; walls_upgrade = 25; walls_repair_price = 40; walls_repair = 20; cata.stop(); timer = 0; wave_time = 200; _root.catapult1._visible = false; _root.catapult2._visible = false; _root.catapult3._visible = false; _root.catapult4._visible = false; level = 0; sit = "create_level";
Instance of Symbol 81 MovieClip "damage" in Frame 3
onClipEvent (enterFrame) { _width = _root.catapult_hitsize; _height = _root.catapult_hitsize; }
Instance of Symbol 83 MovieClip "archer_zone" in Frame 3
onClipEvent (load) { size = _root["port\u00E9e_archers"] * 2; _width = size; _height = size; showing = "yes"; } onClipEvent (enterFrame) { size = _root["port\u00E9e_archers"] * 2; _width = size; _height = size; if (showing == "yes") { _visible = true; } else if (showing == "no") { _visible = false; } }
Instance of Symbol 167 MovieClip "menu_batiments" in Frame 3
onClipEvent (load) { gotoAndStop ("closed"); _x = 210; _y = 100; }
Instance of Symbol 169 MovieClip "description_cursor" in Frame 3
onClipEvent (enterFrame) { _x = _root._xmouse; _y = _root._ymouse; }
Frame 4
if (sit == "waiting") { play_level.gotoAndStop("go"); sit == "waiting open"; } if (sit == "create_level") { a = e_num; while (a > 0) { _root.attachMovie("enemy", "enemy" + e_d, e_d); _root["enemy" + e_d].wave = random(3); e_d++; e_online++; a--; } if (e_num < enemy_limit) { e_num = e_num + enemy_next; } if (e_d >= 1000) { e_d = enemy_depth; } level++; sit = "playing"; timer = 0; } if (sit == "playing") { timer++; if (e_online == 0) { sit = "waiting"; } } display_level = "level " + (level + 1); walls_display = (walls_now + "/") + walls_limit;
Frame 5
gotoAndPlay ("loop");
Symbol 29 MovieClip Frame 23
gotoAndPlay (1);
Symbol 29 MovieClip Frame 29
_root.hit(1);
Symbol 29 MovieClip Frame 41
gotoAndPlay ("attacking");
Symbol 31 Button
on (press) { health = health - 1; }
Symbol 38 MovieClip Frame 1
gotoAndStop(random(4) + 2);
Symbol 43 MovieClip [enemy] Frame 1
side = random(3); if (side == 0) { _y = (random(800) - 50); _x = 750; } if (side == 1) { _x = (random(400) + 350); _y = -50; } if (side == 2) { _x = (random(400) + 350); _y = 750; } speed = 1.5; health = 1; sit = "wave"; _rotation = (Math.atan2(_root.castle_zone._y - _y, _root.castle_zone._x - _x) / (Math.PI/180)); progressx = speed * Math.cos((Math.PI/180) * _rotation); progressy = speed * Math.sin((Math.PI/180) * _rotation);
Symbol 43 MovieClip [enemy] Frame 2
if (_root.archer_number > 0) { if (inzone != 1) { a = _root.castle_zone._y - _y; b = _root.castle_zone._x - _x; distance = Math.sqrt((a * a) + (b * b)); } if (distance < _root["port\u00E9e_archers"]) { inzone = 1; chance = random(250 - (_root.archer_number * 2)); if (chance <= (_root.archer_number / 25)) { sit = "dead"; } } } if (sit == "wave") { if ((wave == 0) and (_root.timer > (_root.wave_time * wave))) { sit = "walking"; } else if ((wave == 1) and (_root.timer > (_root.wave_time * wave))) { sit = "walking"; } else if ((wave == 2) and (_root.timer > (_root.wave_time * wave))) { sit = "walking"; } else if (_visible == true) { _visible = false; } } if (sit == "walking") { if (_visible == false) { _visible = true; } _y = (_y + progressy); _x = (_x + progressx); if (_root.castle_zone.hitTest(_x, _y, true)) { sit = "attacking"; } } if (sit == "attacking") { anim.gotoAndPlay("attacking"); sit = "attack.wait"; } if (health == 0) { sit = "dead"; } if (_root.damage.hitTest(_x, _y, true)) { sit = "dead"; } if (sit == "dead") { gotoAndPlay ("dead"); }
Symbol 43 MovieClip [enemy] Frame 3
gotoAndPlay (2);
Symbol 43 MovieClip [enemy] Frame 12
stop(); _root.e_online--; _root.cash = _root.cash + _root.enemy_worth; removeMovieClip(this);
Symbol 49 Button
on (press) { play(); }
Symbol 54 Button
on (press) { _root.menu_batiments.gotoAndStop("archery"); } on (rollOver) { _root.description_cursor.description = "archery"; } on (rollOut) { _root.description_cursor.description = ""; }
Symbol 55 Button
on (press) { _root.menu_batiments.gotoAndStop("Magic"); } on (rollOver) { _root.description_cursor.description = "Magician School"; } on (rollOut) { _root.description_cursor.description = ""; }
Symbol 58 Button
on (press) { _root.menu_batiments.gotoAndStop("factory"); } on (rollOver) { _root.description_cursor.description = "factory"; } on (rollOut) { _root.description_cursor.description = ""; }
Symbol 70 MovieClip Frame 1
stop();
Instance of Symbol 64 MovieClip in Symbol 70 MovieClip Frame 1
on (press) { if (this._parent._parent.timer >= 199) { this._parent._parent.ready = 1; trace("touched"); } }
Symbol 71 MovieClip Frame 1
ready = 0; timer = 200;
Symbol 71 MovieClip Frame 2
if (_root.sit == "playing") { if (ready == 1) { anim._rotation = Math.atan2(_root._ymouse - _y, _root._xmouse - _x) / (Math.PI/180); _root.onMouseDown = function () { if (ready == 1) { anim.play(); timer = 0; _root.i++; _root.cata.duplicateMovieClip("catapult_balle" + _root.i, _root.i); _root["catapult_balle" + _root.i]._x = _root._xmouse; _root["catapult_balle" + _root.i]._y = _root._ymouse; if (_root.i > 5) { _root.i = 0; } ready = 0; } }; } if (timer < 200) { timer++; } timerbar._xscale = timer / 2; }
Symbol 71 MovieClip Frame 3
gotoAndPlay (2);
Symbol 79 MovieClip Frame 28
_root.damage._x = _x; _root.damage._y = _y;
Symbol 79 MovieClip Frame 30
_root.damage._x = -200; _root.damage._y = -200;
Symbol 79 MovieClip Frame 35
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 129 Button
on (press) { startDrag (this); } on (release) { stopDrag(); }
Symbol 132 Button
on (press) { gotoAndStop ("closed"); }
Symbol 142 Button
on (rollOver) { if (_root.archer_number < _root.archer_limit) { _root.description_cursor.description = _root.archer_price; } else { _root.description_cursor.description = "no more place"; } } on (rollOut) { _root.description_cursor.description = ""; } on (press) { if ((_root.cash >= _root.archer_price) and (_root.archer_number < _root.archer_limit)) { _root.archer_number++; _root.archer_graphic.nextFrame(); _root.cash = _root.cash - _root.archer_price; } }
Symbol 144 Button
on (rollOver) { _root.description_cursor.description = _root.archer_upgrade_price; } on (rollOut) { _root.description_cursor.description = ""; } on (press) { if (_root.cash >= _root.archer_upgrade_price) { _root["port\u00E9e_archers"] = _root["port\u00E9e_archers"] + _root.archer_upgrade; _root.cash = _root.cash - _root.archer_upgrade_price; _root.archer_upgrade_price = _root.archer_upgrade_price + 100; } }
Symbol 146 Button
on (press) { if (_root.archer_zone.showing == "no") { _root.archer_zone.showing = "yes"; } else if (_root.archer_zone.showing == "yes") { _root.archer_zone.showing = "no"; } }
Symbol 159 Button
on (rollOver) { if (_root.catapult_number < 4) { _root.description_cursor.description = _root.catapult_price; } else { _root.description_cursor.description = "no more place"; } } on (rollOut) { _root.description_cursor.description = ""; } on (press) { if ((_root.cash >= _root.catapult_price) and (_root.catapult_number < 4)) { _root.catapult_number++; _root["catapult" + _root.catapult_number]._visible = true; _root.cash = _root.cash - _root.catapult_price; } }
Symbol 160 Button
on (rollOver) { _root.description_cursor.description = _root.catapult_upgrade_price; } on (rollOut) { _root.description_cursor.description = ""; } on (press) { if (_root.cash >= _root.catapult_upgrade_price) { _root.catapult_hitsize = _root.catapult_hitsize + _root.catapult_upgrade_add; _root.cash = _root.cash - _root.catapult_upgrade_price; _root.catapult_upgrade_price = _root.catapult_upgrade_price + _root.catapult_upgrade; } }
Symbol 161 Button
on (rollOver) { _root.description_cursor.description = _root.walls_upgrade_price; } on (rollOut) { _root.description_cursor.description = ""; } on (press) { if (_root.cash >= _root.walls_upgrade_price) { _root.walls_limit = _root.walls_limit + _root.walls_upgrade_add; _root.walls_now = _root.walls_now + _root.walls_upgrade_add; _root.cash = _root.cash - _root.walls_upgrade_price; } }
Symbol 162 Button
on (rollOver) { _root.description_cursor.description = _root.walls_repair_price; } on (rollOut) { _root.description_cursor.description = ""; } on (press) { if ((_root.cash >= _root.walls_repair_price) and (_root.walls_now != _root.walls_limit)) { _root.walls_now = _root.walls_now + _root.walls_repair; _root.cash = _root.cash - _root.walls_repair_price; while (_root.walls_now > _root.walls_limit) { _root.walls_now--; } } }
Symbol 178 Button
on (press) { _root.sit = "create_level"; play(); }
Symbol 181 MovieClip Frame 1
stop();

Library Items

Symbol 1 ShapeTweeningUsed by:29
Symbol 2 ShapeTweeningUsed by:29
Symbol 3 ShapeTweeningUsed by:29
Symbol 4 ShapeTweeningUsed by:29
Symbol 5 ShapeTweeningUsed by:29
Symbol 6 ShapeTweeningUsed by:29
Symbol 7 ShapeTweeningUsed by:29
Symbol 8 ShapeTweeningUsed by:29
Symbol 9 ShapeTweeningUsed by:29
Symbol 10 ShapeTweeningUsed by:29
Symbol 11 ShapeTweeningUsed by:29
Symbol 12 ShapeTweeningUsed by:29
Symbol 13 ShapeTweeningUsed by:29
Symbol 14 ShapeTweeningUsed by:29
Symbol 15 ShapeTweeningUsed by:29
Symbol 16 ShapeTweeningUsed by:29
Symbol 17 ShapeTweeningUsed by:29
Symbol 18 ShapeTweeningUsed by:29
Symbol 19 ShapeTweeningUsed by:29
Symbol 20 ShapeTweeningUsed by:29
Symbol 21 GraphicUsed by:29
Symbol 22 GraphicUsed by:29
Symbol 23 GraphicUsed by:29
Symbol 24 GraphicUsed by:29
Symbol 25 GraphicUsed by:29
Symbol 26 GraphicUsed by:29
Symbol 27 GraphicUsed by:29
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClipUses:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28Used by:43
Symbol 30 GraphicUsed by:31 54 55 181
Symbol 31 ButtonUses:30Used by:43
Symbol 32 GraphicUsed by:43
Symbol 33 GraphicUsed by:38
Symbol 34 SoundUsed by:38
Symbol 35 SoundUsed by:38
Symbol 36 SoundUsed by:38
Symbol 37 SoundUsed by:38
Symbol 38 MovieClipUses:33 34 35 36 37Used by:43
Symbol 39 GraphicUsed by:43
Symbol 40 GraphicUsed by:43
Symbol 41 GraphicUsed by:43
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClip [enemy]Uses:29 31 32 38 39 40 41 42
Symbol 44 BitmapUsed by:45
Symbol 45 GraphicUses:44Used by:Timeline
Symbol 46 GraphicUsed by:49
Symbol 47 FontUsed by:48 131 133 143 145 147 148 154 155 163 164 165 166 168 170 171 173 175 177 179
Symbol 48 TextUses:47Used by:49
Symbol 49 ButtonUses:46 48Used by:Timeline
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:Timeline
Symbol 52 GraphicUsed by:54 55
Symbol 53 SoundUsed by:54 55 58 132
Symbol 54 ButtonUses:30 52 53Used by:Timeline
Symbol 55 ButtonUses:30 52 53Used by:Timeline
Symbol 56 GraphicUsed by:58
Symbol 57 GraphicUsed by:58
Symbol 58 ButtonUses:56 57 53Used by:Timeline
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:59Used by:71
Symbol 61 GraphicUsed by:70
Symbol 62 GraphicUsed by:70
Symbol 63 GraphicUsed by:64 129
Symbol 64 MovieClipUses:63Used by:70
Symbol 65 SoundUsed by:70
Symbol 66 GraphicUsed by:70
Symbol 67 GraphicUsed by:70
Symbol 68 GraphicUsed by:70
Symbol 69 GraphicUsed by:70
Symbol 70 MovieClipUses:61 62 64 65 66 67 68 69Used by:71
Symbol 71 MovieClipUses:60 70Used by:Timeline
Symbol 72 ShapeTweeningUsed by:79
Symbol 73 GraphicUsed by:79
Symbol 74 SoundUsed by:79
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClipUses:75Used by:79
Symbol 77 GraphicUsed by:79
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClipUses:72 73 74 76 77 78Used by:Timeline
Symbol 80 GraphicUsed by:81
Symbol 81 MovieClipUses:80Used by:Timeline
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:82Used by:Timeline
Symbol 84 GraphicUsed by:127
Symbol 85 GraphicUsed by:127
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:86Used by:127
Symbol 88 GraphicUsed by:127
Symbol 89 GraphicUsed by:127
Symbol 90 GraphicUsed by:127
Symbol 91 GraphicUsed by:127
Symbol 92 GraphicUsed by:127
Symbol 93 GraphicUsed by:127
Symbol 94 GraphicUsed by:127
Symbol 95 GraphicUsed by:127
Symbol 96 GraphicUsed by:127
Symbol 97 GraphicUsed by:127
Symbol 98 GraphicUsed by:127
Symbol 99 GraphicUsed by:127
Symbol 100 GraphicUsed by:127
Symbol 101 GraphicUsed by:127
Symbol 102 GraphicUsed by:127
Symbol 103 GraphicUsed by:127
Symbol 104 GraphicUsed by:127
Symbol 105 GraphicUsed by:127
Symbol 106 GraphicUsed by:127
Symbol 107 GraphicUsed by:127
Symbol 108 GraphicUsed by:127
Symbol 109 GraphicUsed by:127
Symbol 110 GraphicUsed by:127
Symbol 111 GraphicUsed by:127
Symbol 112 GraphicUsed by:127
Symbol 113 GraphicUsed by:127
Symbol 114 GraphicUsed by:127
Symbol 115 GraphicUsed by:127
Symbol 116 GraphicUsed by:127
Symbol 117 GraphicUsed by:127
Symbol 118 GraphicUsed by:127
Symbol 119 GraphicUsed by:127
Symbol 120 GraphicUsed by:127
Symbol 121 GraphicUsed by:127
Symbol 122 GraphicUsed by:127
Symbol 123 GraphicUsed by:127
Symbol 124 GraphicUsed by:127
Symbol 125 GraphicUsed by:127
Symbol 126 GraphicUsed by:127
Symbol 127 MovieClipUses:84 85 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126Used by:Timeline
Symbol 128 GraphicUsed by:167
Symbol 129 ButtonUses:63Used by:167
Symbol 130 GraphicUsed by:132
Symbol 131 TextUses:47Used by:132
Symbol 132 ButtonUses:130 131 53Used by:167
Symbol 133 TextUses:47Used by:167
Symbol 134 GraphicUsed by:137
Symbol 135 GraphicUsed by:137
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClipUses:134 135 136Used by:138
Symbol 138 MovieClipUses:137Used by:167
Symbol 139 GraphicUsed by:167
Symbol 140 GraphicUsed by:142 144 146
Symbol 141 GraphicUsed by:142 144 146
Symbol 142 ButtonUses:140 141Used by:167
Symbol 143 TextUses:47Used by:167
Symbol 144 ButtonUses:140 141Used by:167
Symbol 145 TextUses:47Used by:167
Symbol 146 ButtonUses:140 141Used by:167
Symbol 147 TextUses:47Used by:167
Symbol 148 TextUses:47Used by:167
Symbol 149 GraphicUsed by:167
Symbol 150 GraphicUsed by:153
Symbol 151 GraphicUsed by:153
Symbol 152 GraphicUsed by:153
Symbol 153 ButtonUses:150 151 152Used by:167
Symbol 154 TextUses:47Used by:167
Symbol 155 TextUses:47Used by:167
Symbol 156 GraphicUsed by:167
Symbol 157 GraphicUsed by:159 160 161 162
Symbol 158 GraphicUsed by:159 160 161 162
Symbol 159 ButtonUses:157 158Used by:167
Symbol 160 ButtonUses:157 158Used by:167
Symbol 161 ButtonUses:157 158Used by:167
Symbol 162 ButtonUses:157 158Used by:167
Symbol 163 TextUses:47Used by:167
Symbol 164 TextUses:47Used by:167
Symbol 165 TextUses:47Used by:167
Symbol 166 TextUses:47Used by:167
Symbol 167 MovieClipUses:128 129 132 133 138 139 142 143 144 145 146 147 148 149 153 154 155 156 159 160 161 162 163 164 165 166Used by:Timeline
Symbol 168 EditableTextUses:47Used by:169
Symbol 169 MovieClipUses:168Used by:Timeline
Symbol 170 EditableTextUses:47Used by:Timeline
Symbol 171 EditableTextUses:47Used by:Timeline
Symbol 172 GraphicUsed by:Timeline
Symbol 173 EditableTextUses:47Used by:Timeline
Symbol 174 GraphicUsed by:181
Symbol 175 TextUses:47Used by:181
Symbol 176 GraphicUsed by:178
Symbol 177 TextUses:47Used by:178
Symbol 178 ButtonUses:176 177Used by:181
Symbol 179 EditableTextUses:47Used by:181
Symbol 180 SoundUsed by:181
Symbol 181 MovieClipUses:30 174 175 178 179 180Used by:Timeline

Instance Names

"castle_zone"Frame 3Symbol 51 MovieClip
"catapult1"Frame 3Symbol 71 MovieClip
"cata"Frame 3Symbol 79 MovieClip
"catapult2"Frame 3Symbol 71 MovieClip
"catapult3"Frame 3Symbol 71 MovieClip
"catapult4"Frame 3Symbol 71 MovieClip
"damage"Frame 3Symbol 81 MovieClip
"archer_zone"Frame 3Symbol 83 MovieClip
"archer_graphic"Frame 3Symbol 127 MovieClip
"menu_batiments"Frame 3Symbol 167 MovieClip
"description_cursor"Frame 3Symbol 169 MovieClip
"play_level"Frame 3Symbol 181 MovieClip
"anim"Symbol 43 MovieClip [enemy] Frame 1Symbol 29 MovieClip
"timerbar"Symbol 71 MovieClip Frame 1Symbol 60 MovieClip
"anim"Symbol 71 MovieClip Frame 1Symbol 70 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 43 as "enemy"

Labels

"loop"Frame 4
"attacking"Symbol 29 MovieClip Frame 24
"dead"Symbol 43 MovieClip [enemy] Frame 4
"archery"Symbol 167 MovieClip Frame 1
"magic"Symbol 167 MovieClip Frame 2
"factory"Symbol 167 MovieClip Frame 3
"closed"Symbol 167 MovieClip Frame 4
"go"Symbol 181 MovieClip Frame 2

Dynamic Text Variables

descriptionSymbol 168 EditableText""
cashSymbol 170 EditableText""
archer_numberSymbol 171 EditableText""
walls_displaySymbol 173 EditableText""
_root.display_levelSymbol 179 EditableText""




http://swfchan.com/16/76380/info.shtml
Created: 5/4 -2019 01:08:05 Last modified: 5/4 -2019 01:08:05 Server time: 05/11 -2024 06:46:45