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

R

radians, trigonometry, 440 “446

real-time programming. See timelines

recursion functions, 535

base cases, 539 “540

factorials, 535 “537, 540

performance, 540 “541

powers, 537 “540

tail recursion, 540

Tic Tac Toe , 562 “573

reference variables

arrays, 191

functions, 106

overview, 101 “102

parent, 104 “106

root, 102 “103

this, 103 “104

referencing

clips

arrays, 208 “209

self referencing, 103 “104

instances

object arrays, 208 “209

timelines

arrays, 209

instances, 102 “103

refreshing frames , 428 “430

registering event handlers, 290

relative distance

collision detection, 435 “437

objects, 435 “437

removeListener function, 285 “286, 290

removeListener property, 295 “296

removing clips, 136

Replace, troubleshooting, 52

reports , syntax errors, 35 “36

reserved words. See keywords

resetting

Blow 'Em Up , 467 “468

Critter Attack , 352 “353

Match 'Em Up , 222 “223

Mouse Chaser , 120 “121

return values (functions)

built-in, 86

user -defined, 91 “92

reverse function, 192 “193

right angles, 431

right triangles , 430 “437

hypoteneuse, 431

legs, 431

Pythagorean Theorem, 432 “437

right angles, 431

rigid body dynamics, 590 “591

root reference variable, 102 “103

rotating

clips, 101

instances, 15 “16

objects

Blow 'Em Up , 459 “460, 468, 470 “471, 475, 479, 485 “486

trigonometry, 440 “446, 448 “449

rotation property, 101

rotation property, 101

run-time, classes, 527 “530

Категории