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

V

valueOf function, 262 “263

values

NaN, testing, 46

return values (functions)

built-in, 86

user -defined, 91 “92

variables , undefined , 73

variables

arrays. See arrays

booleans, 51 “52, 70 “73

converting, 70 “73

case sensitivity, 52

creating, 38 “39

declaring

classes, 516

clips, 96

functions, 90 “91

keywords, 38

literals, 52

naming, 38, 48

NaN, testing, 46

numbers , 51 “52, 70 “72

overview, 38 “39

primitives, 52

properties, 96

reference

arrays, 191

functions, 106

overview, 101 “102

parent, 104 “106

root, 102 “103

this, 103 “104

reserved words, 48

scope

clips, 94 “95, 143 “144

code blocks, 92 “94

event handlers, 143 “144

local, 92 “94

movies, 94 “95

overview, 92

strings, 50 “52, 71 “73

troubleshooting, 73

types, 49 “50

arrays, 193

converting, 70

values, undefined , 73

wrappers, 52

vectors. See also moving; speed

adding, 584 “585

components , 583 “584

component-wise multiplication, 588

dot product multiplication, 588 “590

initial points, 584

magnitude, 583

normalizing, 586 “587

overview, 582 “584

scalar multiplication, 585 “586

scaling, 587 “588

subtracting, 584 “585

terminal points, 584

velocity, 591

angular, 614 “615

collision response, 613 “615

viewing

clips, 100

function members , 85

object members, 85

previewing movies, 23 “24

visible property, 100 “101

Категории