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

A

acceleration, 591

Accessibility object, 282

accessing

Accessibility object, 282

arrays, 185 “186

classes (OOP), 510 “511

Actions Panel

ActionScript, 28 “30

color , 48

ActionScript. See scripts

acute triangles , 449 “450

adding vectors, 584 “585

addListener function, 285 “286, 290

addListener property, 295 “296

Adobe Acrobat Web site, 721

AI (artificial intelligence), 534

backgammon, 534, 544

checkers, 534, 544

chess, 534, 544

Connect 4, 534

go, 544

mancala, 544

overview, 534

recursion, 535

base cases, 539 “540

factorials, 535 “537, 540

performance, 540 “541

powers, 537 “540

tail recursion, 540

Tic Tac Toe , 559 “572

alpha/beta cutoff, 572

tree pruning, 571 “572

trees

binary, 542

minimax searches, 544

nodes, 541 “542

overview, 541 “544

pruning, 571 “572

turn -based games , 534, 544

Web sites, 721

algebra Web sites, 721

algorithms ( Match 'Em Up ), 210 “211

aliasing text, 13

align property, 296 “298

alignment, Critter Attack , 334

alpha property, 97

alpha/beta

cutoff, 572

pruning, 721

AND (&&) operator, 73 “74

angles, right, 431

angular velocity, collision response, 614 “615

anti-aliasing text, 13

apply function, 279

arccosine function, 445 “449

arcsine function, 445 “449

arctangent function, 445 “449

arguments (functions)

built-in, 84 “86

user -defined, 89 “91

Arguments object, 261

arithmetic operators, 39 “41

Array object, 204, 261

arrays

accessing, 185 “186

creating, 185, 204

functions, 187 “188

concat, 190 “192

join, 190

pop, 193 “194

push, 194 “195

reverse, 192 “193

shift, 195 “196

slice, 200 “202

sort , 197 “200

sortOn, 200

splice, 202 “204

toString, 188 “189

unShift, 196 “197

indexes, 184 “185

initializing, 204

loops , iterating, 192

members , 186

multidimensional, 205 “208

nesting, 204 “205

overview, 184

properties, 186 “187, 195

reference variables , 191

referencing

clips, 208 “209

objects, 208 “209

timelines , 209

size , 186 “187, 195

sorting, 197 “200

troubleshooting, 187, 196

types, mixing, 193

artificial intelligence. See AI

ASCII character keyboard shortcuts, 696 “701

ASP, 679

assignment operators, 46 “47

Asteroids. See Blow 'Em Up

attaching scripts, 29 “31

attachMovie function, 132 “134

attachSound function, 329

attributes, HTML, 714

author Web site, 692

authoring

clips, 398

objects, 332 “333

Категории