Macromedia Flash MX 2004 Game Programming (Premier Press Game Development)

T

tags (HTML), 710 “715

tail recursion, 540

tangent function, 444 “449

terminal points (vectors), 584

Test Movie command (Control menu), 23

testing. See also troubleshooting

Blow 'Em Up , 492

Critter Attack , 358

infinite loops , 560

Marbles, 601 “602

Match 'Em Up , 222 “226

Mouse Chaser , 126 “127

movies, 23

logical errors, 35

Output panel, 35 “37

syntax error reports , 35 “36

trace function, 36 “37

Pachinko , 649 “650, 656

Shoot 'Em Up , 417 “418

Sliders , 236, 239 “244

Tic Tac Toe , 560, 572 “573

variables (NaN), 46

text

aliasing, 13

anti-aliasing, 13

blurry, 13

button menu, 166, 171 “173

fields

dynamic, 12

input, 12

Selection object, 290

static, 12 “13

TextField object, 327

formatting, 327

loading, servers, 668 “672

properties, 15

size , 15

strings

case sensitivity, 266, 269, 276

String object, 265 “276

variables, 50 “52, 71 “73

TextField object, 327

TextFormat object, 327

this reference variable, 103 “104

Tic Tac Toe

AI, 559 “572

alpha/beta cutoff, 572

designing, 546 “548

ending, 555 “556

files, 545 “546

idea, 545

implementing, 548 “572

initializing, 546, 548 “549

libraries, 545 “546

listing, 573 “578

minimax searching, 562 “573

moving, 547 “548, 556 “558, 560 “572

number of players, 551 “552

recursion functions, 562 “573

skill levels, 551, 559

starting, 546 “547, 550 “553

testing, 560, 572 “573

tree pruning, 571 “572

trees, 562 “563, 568, 570 “572

tiles

Match 'Em Up , 212 “216, 219 “221

Sliders , 230 “231, 234 “236, 240 “243

Timeline panel. See timelines

timelines. See also timing

buttons , disabling, 310

conditional statements, 385

Critter Attack , 334

event handlers, 217 “219

frames , 161 “164

keyframes, 18

labels, 20 “22

layers , 21

overview, 17

layers, 18 “20

logic, 385

loops, 95, 385

movies, 17

playhead, 17

playing, 160

referencing

arrays, 209

instances, 102 “103

scripts, 385, 390

Shoot 'Em Up , 385

stopping, 158 “159, 161

timing. See also timelines

clearInterval function, 374 “375

clock, 406

getTimer function, 373

intervals, 428 “430

objects, moving, 429 “430

overview, 372 “373

performance, 428 “430

real-time programming, 372

setInterval function, 373 “374

state machines

designing, 375 “378, 399 “405

FSMs, 375

overview, 375

scripts, 377 “378, 399 “405

updating, 428

toLowerCase function, 276

Toolbox, 7 “9

tools, 7 “9

Tools panel, 7 “9

toString function, 276

arrays, 188 “189

boolean object, 262

totalframes function, 163 “164

toUpperCase function, 276

trace function, 36 “37, 189

tracing wrappers, 262

tracking games , 690

Transform panel instances, 15 “16

transforms, color , 303 “306

trees

binary, 542

minimax searches, 544

nodes, 541 “542

overview, 541 “544

pruning, 571 “572

Tic Tac Toe , 562 “563, 568, 570 “572

triangles

acute, 449 “450

obtuse, 449 “450

right, 430 “437

hypoteneuse, 431

legs, 431

Pythagorean Theorem, 432 “437

right angles, 431

trigonometry. See also math functions

acute triangles, 449 “450

Blow 'Em Up , 471, 475, 485 “486

collision detection, 435 “437

degrees, 440 “446

distance formula, 432 “437

functions, 442 “443

arccosine , 445 “449

arcsine, 445 “449

arctangent, 445 “449

cosine, 444, 446 “449

inverse, 445 “449

sine, 443 “444, 446 “449

tangent, 444 “449

objects

moving, 437 “439

rotating, 440 “446, 448 “449

obtuse triangles, 449 “450

performance, troubleshooting, 436

radians, 440 “446

right triangles, 430 “437

hypoteneuse, 431

legs, 431

Pythagorean Theorem, 432 “437

right angles, 431

SOHCAHTOA, 446 “449

Web sites, 721

troubleshooting. See also testing

arrays, 187

classes, 519

clips, 133

Find, 52

functions, 262, 279

images, 11

infinite loops, 560

loops, timeline, 95

movies, stage, 10

numbers , 263

objects, 262, 279

Pachinko , 656

performance, 101

arrays, 196

trigonometry, 436

Replace, 52

scripts, syntax errors, 47

text, blurry, 13

variables, converting, 73

true/false statements. See booleans

Truth, 73 “77

TT (Truth Tables), logical operators, 73 “77

turn -based games, 534, 544

tutorials, Web sites, 720

tweening, 22 “23

typeof operator, 254 “255

types

arrays, mixing, 193

objects, 254 “255

variables, 49 “50, 70

Категории