User Guide
334 Index
C
calling methods 37
capturing keypresses 184
cascading style sheets
and TextField.StyleSheet class 228
applying style classes 231
applying to text fields 230
assigning styles to built-in HTML tags 231
combining styles 231
defining styles in ActionScript 229
example of using with HTML tags 232
example of using with XML tags 235
formatting text 226
loading 228
properties supported 227
using to define new tags 234
casting data types 42
character sequences. See strings
checking
for loaded data 276
syntax and punctuation 150
child
movie clips, defined 205
node 280
class files, creating 251
class members 199
and Singleton design pattern 104, 264
and subclasses 266
created once per class 263
creating 263
example of using 265
classes
about compiling and exporting 272
and ActionScript 2 99
and object-oriented programming 248
assigning to movie clips 218
classpaths 268
coding conventions 73
comments 102
creating and organizing 100
creating and using 254
creating external class files 251
creating properties and methods 256
creating subclasses 258
defined 197
defined only in external files 251, 254
dynamic 259
example of creating 250
excluding from SWF file 273
extending 258
extending at runtime 259
getter/setter methods 267
importing 271
initializing properties at runtime 219
initializing properties inline 257
instance members and class members 263
interfaces 261, 262, 263
naming 255
organizing in packages 260
overloading not supported 255
programming 102
public and private member attributes 256
resolving class references 269
scoping 97
specifying export frame 272
using prefixes 102
See also classes, built-in
classes, built-in 197, 204
extending 258
list of 199
classpaths
defined 268
for classes you create 269
global and document-level 268
modifying 270
search order of 269
code
completion 78
displaying line numbers 152
formatting 76, 151, 152
selecting a line 160
stepping through lines 160
word wrapping 152
code hints 145
manually displaying 149
not being displayed 149
specifying settings for 147
triggering 145, 147
using 147
coding conventions 69
classes and objects 73
components 74
constants 72
functions 72
interfaces 74
loops 72
methods 72
naming 69
packages 73