4
Contents
Chapter 5: Syntax and Language Fundamentals . . . . . . . . . . . . 113
About syntax, statements, and expressions . . . . . . . . . . . . . . . . . . . . . .114
About dot syntax and target paths. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .118
About language punctuators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
About constants and keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
About statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141
About arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
About operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
Chapter 6: Functions and Methods . . . . . . . . . . . . . . . . . . . . . . . 201
About functions and methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
Understanding methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .222
Chapter 7: Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
About object-oriented programming and Flash . . . . . . . . . . . . . . . . . .226
Writing custom class files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .235
About working with custom classes in an application . . . . . . . . . . . . .238
Example: Writing custom classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .263
Example: Using custom class files in Flash . . . . . . . . . . . . . . . . . . . . . .276
Assigning a class to symbols in Flash . . . . . . . . . . . . . . . . . . . . . . . . . . .279
Compiling and exporting classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
Understanding classes and scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .283
About top-level and built-in classes . . . . . . . . . . . . . . . . . . . . . . . . . . . .286
About working with built-in classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . .296
Chapter 8: Inheritance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
About inheritance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
About writing subclasses in Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
Using polymorphism in an application . . . . . . . . . . . . . . . . . . . . . . . . . 308
Chapter 9: Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
About interfaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Creating interfaces as data types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
Understanding inheritance and interfaces . . . . . . . . . . . . . . . . . . . . . . 320
Example: Using interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Example: Creating a complex interface . . . . . . . . . . . . . . . . . . . . . . . . .323
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...