Contents
5
Chapter 10: Handling Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
Using event handler methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
Using event listeners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
Using event listeners with components . . . . . . . . . . . . . . . . . . . . . . . . . 335
Using button and movie clip event handlers. . . . . . . . . . . . . . . . . . . . . 337
Broadcasting events from component instances . . . . . . . . . . . . . . . . 342
Creating movie clips with button states . . . . . . . . . . . . . . . . . . . . . . . . . 342
Event handler scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
Scope of the this keyword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Using the Delegate class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Chapter 11: Working with Movie Clips. . . . . . . . . . . . . . . . . . . . . . 351
About controlling movie clips with ActionScript . . . . . . . . . . . . . . . . . 352
Calling multiple methods on a single movie clip . . . . . . . . . . . . . . . . . 354
Loading and unloading SWF files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
Changing movie clip position and appearance . . . . . . . . . . . . . . . . . . 357
Dragging movie clips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
Creating movie clips at runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360
Adding parameters to dynamically created movie clips. . . . . . . . . . . 364
Managing movie clip depths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
About caching and scrolling movie clips with ActionScript . . . . . . . 369
Using movie clips as masks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
Handling movie clip events. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
Assigning a class to a movie clip symbol. . . . . . . . . . . . . . . . . . . . . . . . 378
Initializing class properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
Chapter 12: Working with Text and Strings . . . . . . . . . . . . . . . . . 381
About text fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
About loading text and variables into text fields . . . . . . . . . . . . . . . . . 392
Using fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
About font rendering and anti-alias text . . . . . . . . . . . . . . . . . . . . . . . . 406
About text layout and formatting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .414
Formatting text with Cascading Style Sheet styles . . . . . . . . . . . . . . .421
Using HTML-formatted text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
Example: Creating scrolling text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
About strings and the String class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
Summary of Contents for FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Page 1: ...Learning ActionScript 2 0 in Flash...
Page 8: ...8 Contents...
Page 18: ...18 Introduction...
Page 30: ...30 What s New in Flash 8 ActionScript...
Page 66: ...66 Writing and Editing ActionScript 2 0...
Page 328: ...328 Interfaces...
Page 350: ...350 Handling Events...
Page 590: ...590 Creating Interaction with ActionScript...
Page 710: ...710 Understanding Security...
Page 730: ...730 Debugging Applications...
Page 780: ...780 Deprecated Flash 4 operators...
Page 830: ...830 Index...