- Page 3 and 4:
Flash MX 2004 Games
- Page 5 and 6:
Flash MX 2004 Games Art to ActionSc
- Page 7 and 8:
Contents at a glance Introduction x
- Page 9 and 10:
Contents in summary Introduction xi
- Page 11 and 12:
Contents in summary Chapter 15: Maz
- Page 13 and 14:
Introduction: Learn to write Action
- Page 15 and 16:
1 Your first game Rather alarmingly
- Page 17 and 18:
Chapter 1: Your first game view of
- Page 19 and 20:
Using the Line tool Chapter 1: Your
- Page 21 and 22:
Chapter 1: Your first game Adding t
- Page 23 and 24:
Chapter 1: Your first game is true
- Page 25 and 26:
Chapter 1: Your first game would tr
- Page 27 and 28:
_x = startX; _y = startY; moveX = 0
- Page 29:
Section 1 Animation The first secti
- Page 32 and 33:
Flash MX 2004 Games Using the drawi
- Page 34 and 35:
Flash MX 2004 Games Figure 2.7 Stag
- Page 36 and 37:
Flash MX 2004 Games The Pencil tool
- Page 38 and 39:
Flash MX 2004 Games When you use th
- Page 40 and 41:
Flash MX 2004 Games Figure 2.25 Sca
- Page 42 and 43:
Flash MX 2004 Games To use a gradie
- Page 44 and 45:
Flash MX 2004 Games tweening was se
- Page 46 and 47:
Flash MX 2004 Games Figure 2.37 Usi
- Page 48 and 49:
3 Simple cut-out animation Flash is
- Page 50 and 51:
Flash MX 2004 Games Figure 3.4 Sele
- Page 52 and 53:
Flash MX 2004 Games Figure 3.7 Usin
- Page 54 and 55:
Flash MX 2004 Games Figure 3.10 The
- Page 56 and 57:
Flash MX 2004 Games pressing F5. Th
- Page 58 and 59:
Flash MX 2004 Games WalkLeft TurnLe
- Page 60 and 61:
4 Using CGI programs to create anim
- Page 62 and 63:
Flash MX 2004 Games that sometimes
- Page 64 and 65:
Flash MX 2004 Games Figure 4.6 The
- Page 66 and 67:
Flash MX 2004 Games Figure 4.9 The
- Page 68 and 69:
Flash MX 2004 Games As you get expe
- Page 70 and 71:
Flash MX 2004 Games colour layer us
- Page 72 and 73:
Flash MX 2004 Games A higher settin
- Page 74 and 75:
5 Background art All your games wil
- Page 76 and 77:
Flash MX 2004 Games Figure 5.3 A si
- Page 78 and 79:
Flash MX 2004 Games better to expor
- Page 80 and 81:
Flash MX 2004 Games if it is only d
- Page 82 and 83:
Figure 5.10 Using symbols to add te
- Page 84 and 85:
Flash MX 2004 Games independent whe
- Page 86 and 87:
Flash MX 2004 Games Using photograp
- Page 88 and 89:
Flash MX 2004 Games Website and you
- Page 90 and 91:
Flash MX 2004 Games 3 Choose ‘png
- Page 92 and 93:
Flash MX 2004 Games User input on m
- Page 94 and 95:
Flash MX 2004 Games Figure 6.8 Opti
- Page 97 and 98:
7 So what is a variable? After the
- Page 99 and 100:
Chapter 7: So what is a variable? a
- Page 101 and 102:
Chapter 7: So what is a variable? T
- Page 103 and 104:
Chapter 7: So what is a variable? B
- Page 105 and 106:
Chapter 7: So what is a variable? 3
- Page 107 and 108:
Chapter 7: So what is a variable? P
- Page 109 and 110:
Chapter 7: So what is a variable? 5
- Page 111 and 112:
Chapter 7: So what is a variable? n
- Page 113 and 114:
Chapter 7: So what is a variable? B
- Page 115 and 116:
8 In tip-top condition Should I go
- Page 117 and 118:
Chapter 8: In tip-top condition All
- Page 119 and 120:
Chapter 8: In tip-top condition Wit
- Page 121 and 122:
} } return false; Chapter 8: In tip
- Page 123 and 124:
Figure 8.5 Properties window for th
- Page 125 and 126:
Chapter 8: In tip-top condition to
- Page 127 and 128:
Chapter 8: In tip-top condition Tab
- Page 129 and 130:
Figure 8.12 The anchor point for th
- Page 131 and 132:
53 return 4; 54 } 55 } 56 } Listing
- Page 133 and 134:
Chapter 9: Using loops and the repe
- Page 135 and 136:
Chapter 9: Using loops Now instead
- Page 137 and 138:
do{ a++; if (a==10) continue; //Do
- Page 139 and 140:
Chapter 9: Using loops Two examples
- Page 141 and 142:
Figure 9.2 The Loops01 project at r
- Page 143 and 144:
Chapter 9: Using loops Creating sim
- Page 145 and 146:
Chapter 9: Using loops Creating phy
- Page 147 and 148:
1 //Initialise firing 2 for (i=0; i
- Page 149 and 150:
Chapter 9: Using loops heart of alm
- Page 151 and 152:
Chapter 10: Keep it modular a game
- Page 153 and 154:
Chapter 10: Keep it modular for(j=0
- Page 155 and 156:
Chapter 10: Keep it modular From a
- Page 157 and 158:
Chapter 10: Keep it modular To call
- Page 159 and 160:
4 pt2.init(20, 30); 5 pt2.sum(pt1);
- Page 161 and 162:
Chapter 10: Keep it modular a locat
- Page 163 and 164:
Chapter 10: Keep it modular 1 v1 =
- Page 165 and 166:
Chapter 10: Keep it modular Summary
- Page 167 and 168:
Chapter 11: Debugging would give th
- Page 169 and 170:
4 trace("n = " + n); 5 6 function s
- Page 171 and 172:
5 onClipEvent(enterFrame){ 6 count+
- Page 173 and 174:
10 name = "Box" + i; 11 eval(name).
- Page 175 and 176:
Chapter 11: Debugging 5 switch(i){
- Page 177 and 178:
Chapter 11: Debugging Using the Fla
- Page 179 and 180:
the Watch window, then you can see
- Page 181 and 182:
Figure 11.12 Debugging remotely Cha
- Page 183 and 184:
is presumed, www.niklever.net/flash
- Page 185 and 186:
Chapter 12: Using external files Th
- Page 187 and 188:
Chapter 12: Using external files Wh
- Page 189 and 190:
with a query string version: Chapte
- Page 191 and 192:
Figure 12.3 Developing the Weather
- Page 193 and 194:
function loaded(success){ if (succe
- Page 195:
Chapter 12: Using external files
- Page 199 and 200:
13 Small games to keep them loading
- Page 201 and 202:
Chapter 13: Small games to keep the
- Page 203 and 204:
Chapter 13: Small games to keep the
- Page 205 and 206:
Chapter 13: Small games to keep the
- Page 207 and 208:
Figure 13.7 Developing the Pong gam
- Page 209 and 210:
Chapter 13: Small games to keep the
- Page 211 and 212:
Chapter 13: Small games to keep the
- Page 213 and 214:
Chapter 13: Small games to keep the
- Page 215 and 216:
Chapter 13: Small games to keep the
- Page 217 and 218:
Chapter 13: Small games to keep the
- Page 219 and 220:
14 Quizzes Quizzes are a very popul
- Page 221 and 222:
Chapter 14: Quizzes For now we will
- Page 223 and 224:
Figure 14.5 Creating a user Chapter
- Page 225 and 226:
Figure 14.8 Setting user permission
- Page 227 and 228:
Remember that a querystring takes t
- Page 229 and 230:
Chapter 14: Quizzes 36 "\’, diffi
- Page 231 and 232:
Chapter 14: Quizzes the query strin
- Page 233 and 234:
s.Close(); conn.Close(); Response.W
- Page 235 and 236:
Chapter 14: Quizzes 1 function setQ
- Page 237 and 238:
5 status = "Question deleted"; 6 }
- Page 239 and 240:
Chapter 14: Quizzes Summary Most of
- Page 241 and 242:
Chapter 15: Mazes The strategy used
- Page 243 and 244:
Chapter 15: Mazes Notice that the f
- Page 245 and 246:
Chapter 15: Mazes 128, and exclude
- Page 247 and 248:
Figure 15.3 Creating the tunnel mod
- Page 249 and 250:
Chapter 15: Mazes Open ‘Examples\
- Page 251 and 252:
Chapter 15: Mazes sequence to show
- Page 253 and 254:
64 Tunnel.gotoAndPlay("T_Right"); 6
- Page 255 and 256:
Chapter 15: Mazes 32 dir = EAST; 33
- Page 257 and 258:
Chapter 15: Mazes Summary In common
- Page 259 and 260:
Figure 16.1 The traditional game Re
- Page 261 and 262:
5 cBoard = new Array(64); 6 pBoard
- Page 263 and 264:
Chapter 16: Board games 6 }else{ 7
- Page 265 and 266:
Chapter 16: Board games Once the pl
- Page 267 and 268:
Chapter 16: Board games Here ‘row
- Page 269 and 270:
19 }else{ 20 flip[2] = false; 21 }
- Page 271 and 272: 8 if (flip[6]) flipArrayLine(i, pie
- Page 273 and 274: Chapter 16: Board games this way, i
- Page 275 and 276: A simple example Figure 17.1 Develo
- Page 277 and 278: Chapter 17: Platformers game much e
- Page 279 and 280: Chapter 17: Platformers If the cat
- Page 281 and 282: Chapter 17: Platformers 11 break; 1
- Page 283 and 284: Chapter 17: Platformers 96 gotoAndP
- Page 285 and 286: a metre. Therefore u − 20t = 0 an
- Page 287 and 288: 56 }else if (moveY-4){ 57 moveY -=
- Page 289 and 290: 13 name = "_root.Bin" + i; 14 dx =
- Page 291 and 292: 16 mc.scale = 1.0; 17 } 18 19 House
- Page 293 and 294: Chapter 17: Platformers 68 }else if
- Page 295 and 296: Chapter 17: Platformers array, ‘d
- Page 297 and 298: Figure 18.1 Developing the football
- Page 299 and 300: 5 ScoreB = 0; 6 playerTeam = RED; 7
- Page 301 and 302: 50 Pitch.Red2.targetx = -96; 51 Pit
- Page 303 and 304: Chapter 18: Sports simulations Havi
- Page 305 and 306: Chapter 18: Sports simulations 37 k
- Page 307 and 308: Chapter 18: Sports simulations 37 i
- Page 309 and 310: Chapter 18: Sports simulations Upda
- Page 311 and 312: 26 break; 27 } 28 } 29 name = "_roo
- Page 313 and 314: Chapter 18: Sports simulations 27 v
- Page 315 and 316: Chapter 18: Sports simulations 1 fu
- Page 317 and 318: Chapter 18: Sports simulations For
- Page 319 and 320: Chapter 18: Sports simulations 22 _
- Page 321: Section 4 Flash for mobiles The mob
- Page 325 and 326: Figure 19.2 Developing a Flash Lite
- Page 327 and 328: Chapter 19: Flash Lite - how does i
- Page 329 and 330: Chapter 19: Flash Lite - how does i
- Page 331 and 332: Chapter 19: Flash Lite - how does i
- Page 333 and 334: Figure 20.1 Pocket Internet Explore
- Page 335 and 336: Chapter 20: Using Flash on a Pocket
- Page 337 and 338: Figure 20.4 Layout problems from a
- Page 339 and 340: Chapter 20: Using Flash on a Pocket
- Page 341: Section 5 Flash for boffins Sometim
- Page 344 and 345: Flash MX 2004 Games Figure 21.1 Cre
- Page 346 and 347: Flash MX 2004 Games The ASP page
- Page 348 and 349: Flash MX 2004 Games To create a tab
- Page 350 and 351: Flash MX 2004 Games 55 break; 56 ca
- Page 352 and 353: Flash MX 2004 Games 10 //Connect to
- Page 354 and 355: Flash MX 2004 Games 17 //Connect to
- Page 356 and 357: Flash MX 2004 Games This method can
- Page 358 and 359: Flash MX 2004 Games 3 4 for (i=1; i
- Page 360 and 361: Flash MX 2004 Games 65 Response.Wri
- Page 362 and 363: Flash MX 2004 Games The example we
- Page 364 and 365: Flash MX 2004 Games 7 8 9 CDialog::
- Page 366 and 367: Flash MX 2004 Games 1 BOOL CSockLis
- Page 368 and 369: Flash MX 2004 Games 23 24 return; 2
- Page 370 and 371: Flash MX 2004 Games Figure 22.3 Cre
- Page 372 and 373:
Flash MX 2004 Games 34 35 } 36 if (
- Page 374 and 375:
23 Using Flash Communication Server
- Page 376 and 377:
Flash MX 2004 Games Figure 23.3 Che
- Page 378 and 379:
Flash MX 2004 Games you will find s
- Page 380 and 381:
Flash MX 2004 Games In line 17 we c
- Page 382 and 383:
Flash MX 2004 Games 195 break; 196
- Page 384 and 385:
Flash MX 2004 Games To enter the ad
- Page 386 and 387:
Flash MX 2004 Games Using the NetCo
- Page 388 and 389:
Flash MX 2004 Games Summary Flash C
- Page 390 and 391:
Flash MX 2004 Games Figure 24.1 Sel
- Page 392 and 393:
Figure 24.3 Creating a new Visual C
- Page 394 and 395:
Figure 24.7 Select Shockwave Flash
- Page 396 and 397:
Flash MX 2004 Games Figure 24.10 Ch
- Page 398 and 399:
Flash MX 2004 Games Initializing th
- Page 400 and 401:
Flash MX 2004 Games this at ‘C:\P
- Page 402 and 403:
Flash MX 2004 Games 96 97 MSG msg;
- Page 404 and 405:
Flash MX 2004 Games Figure A.1 Deve
- Page 406 and 407:
Flash MX 2004 Games The first param
- Page 408 and 409:
Flash MX 2004 Games To retrieve the
- Page 410 and 411:
Flash MX 2004 Games Options for eas
- Page 412 and 413:
Flash MX 2004 Games by the offset r
- Page 414 and 415:
Flash MX 2004 Games Figure B.5 A se
- Page 416 and 417:
Flash MX 2004 Games Figure B.6 Usin
- Page 418 and 419:
Flash MX 2004 Games function setPoi
- Page 420 and 421:
Flash MX 2004 Games Figure B.9 Piec
- Page 422 and 423:
Flash MX 2004 Games 408 } h1 = 2 *
- Page 424 and 425:
Flash MX 2004 Games Figure B.10 Usi
- Page 426 and 427:
Flash MX 2004 Games www.catalystpic
- Page 428 and 429:
Index Arrays: board games, 246-8, 2
- Page 430 and 431:
Index Conditions: And operation, 10
- Page 432 and 433:
Index Examples (Continued) mazes, 2
- Page 434 and 435:
Index Ideas, plans, 136-7 IE see In
- Page 436 and 437:
Index Modularization (Continued) ex
- Page 438 and 439:
Index Projects (Continued ) object-
- Page 440 and 441:
Index SQL Server databases (Continu
- Page 442:
Index Walks: fat-cat examples, 36-4