| Introduction |
|
ix | |
| Who Should Use This Book |
|
x | |
| Goals of This Book |
|
x | |
| What's New in Flash 5 |
|
xii | |
| Part I: Approaching Advanced Animation |
|
1 | (50) |
|
|
|
3 | (26) |
|
Motion Tweening Strategies |
|
|
4 | (9) |
|
Shape Tweening Strategies |
|
|
13 | (5) |
|
|
|
18 | (11) |
|
Working with Video and 3D |
|
|
29 | (22) |
|
Integrating Flash and Quick Time |
|
|
30 | (8) |
|
|
|
38 | (3) |
|
|
|
41 | (6) |
|
|
|
47 | (4) |
| Part II: Understanding Actionscript |
|
51 | (22) |
|
Getting a Handle on ActionScript |
|
|
53 | (20) |
|
About Objects and Classes |
|
|
54 | (1) |
|
About Methods and Properties |
|
|
55 | (1) |
|
|
|
56 | (2) |
|
|
|
58 | (1) |
|
|
|
59 | (7) |
|
|
|
66 | (5) |
|
|
|
71 | (2) |
| Part III: Navigating Timelines and Communicating |
|
73 | (98) |
|
Advanced Buttons and User Input |
|
|
75 | (24) |
|
|
|
76 | (3) |
|
|
|
79 | (1) |
|
Animated Buttons and the Movie Clip Symbol |
|
|
80 | (4) |
|
|
|
84 | (4) |
|
|
|
88 | (2) |
|
|
|
90 | (3) |
|
|
|
93 | (6) |
|
Managing Flash Communication |
|
|
99 | (30) |
|
Navigating Timelines with Movie Clips |
|
|
100 | (1) |
|
|
|
101 | (2) |
|
|
|
103 | (3) |
|
Absolute and Relative Paths |
|
|
106 | (6) |
|
Using the With Action to Target Movie Clips |
|
|
112 | (2) |
|
The Slash Notation and Tell Target |
|
|
114 | (2) |
|
Movie Clips as Containers |
|
|
116 | (3) |
|
|
|
119 | (4) |
|
|
|
123 | (6) |
|
Managing Outside Communication |
|
|
129 | (42) |
|
Communicating Through the Web Browser |
|
|
130 | (18) |
|
Communicating with External Movies |
|
|
148 | (11) |
|
Communicating with Generator |
|
|
159 | (2) |
|
Projectors and the Fscommand |
|
|
161 | (4) |
|
Communicating with the Printer |
|
|
165 | (6) |
| Part IV: Transforming Graphics and Sound |
|
171 | (68) |
|
Controlling the Movie Clip |
|
|
173 | (42) |
|
|
|
174 | (5) |
|
Setting the Movie-Clip Properties |
|
|
179 | (5) |
|
Modifying the Movie-Clip Color |
|
|
184 | (5) |
|
Swapping Overlapping Movie Clips |
|
|
189 | (3) |
|
Detecting Dropped Movie Clips |
|
|
192 | (4) |
|
Detecting Movie-Clip Collisions |
|
|
196 | (3) |
|
Getting the Boundaries of Movie Clips |
|
|
199 | (2) |
|
Duplicating and Removing Movie Clips |
|
|
201 | (4) |
|
|
|
205 | (4) |
|
|
|
209 | (3) |
|
Beginning to Animate with ActionScript |
|
|
212 | (3) |
|
|
|
215 | (24) |
|
|
|
216 | (2) |
|
|
|
218 | (2) |
|
|
|
220 | (3) |
|
|
|
223 | (3) |
|
Modifying Independent Sounds |
|
|
226 | (3) |
|
|
|
229 | (3) |
|
Creating Dynamic Sound Controls |
|
|
232 | (5) |
|
Managing Sounds as External Files |
|
|
237 | (2) |
| Part V: Working with Information |
|
239 | (150) |
|
Controlling Information Flow |
|
|
241 | (34) |
|
|
|
242 | (5) |
|
Using Variables and Expressions |
|
|
247 | (5) |
|
Loading External Variables |
|
|
252 | (3) |
|
|
|
255 | (3) |
|
Concatenating Variables and the Eval Function |
|
|
258 | (3) |
|
Testing Information with Conditional Statements |
|
|
261 | (3) |
|
Providing Alternatives to Conditions |
|
|
264 | (3) |
|
Branching Conditional Statements |
|
|
267 | (3) |
|
Combining Conditions with Logical Operators |
|
|
270 | (2) |
|
|
|
272 | (3) |
|
|
|
275 | (40) |
|
|
|
276 | (4) |
|
|
|
280 | (2) |
|
|
|
282 | (3) |
|
|
|
285 | (3) |
|
|
|
288 | (2) |
|
Controlling Text Box Scrolling |
|
|
290 | (4) |
|
|
|
294 | (1) |
|
|
|
294 | (1) |
|
Controlling the Selection Within Text Boxes |
|
|
295 | (3) |
|
Controlling the Focus of Text Boxes |
|
|
298 | (4) |
|
|
|
302 | (1) |
|
Analyzing Strings with the String Object |
|
|
303 | (5) |
|
Rearranging Strings with the String Object |
|
|
308 | (5) |
|
Modifying Strings with the String Object |
|
|
313 | (2) |
|
|
|
315 | (44) |
|
Calculations with the Math Object |
|
|
316 | (1) |
|
Calculating Angles with the Math Object |
|
|
317 | (7) |
|
Using Sine and Cosine for Directional Movement |
|
|
324 | (4) |
|
Calculating Distances with the Math Object |
|
|
328 | (3) |
|
Generating Random Numbers |
|
|
331 | (3) |
|
Ordering Information with Arrays |
|
|
334 | (7) |
|
|
|
341 | (8) |
|
Building Reusable Scripts |
|
|
349 | (5) |
|
Building Custom Classes with Functions |
|
|
354 | (5) |
|
Managing Content and Trouble-Shooting |
|
|
359 | (30) |
|
Creating Shared Libraries |
|
|
360 | (4) |
|
|
|
364 | (2) |
|
|
|
366 | (3) |
|
Including External ActionScript |
|
|
369 | (2) |
|
|
|
371 | (4) |
|
Listing Variables and Objects in the Output Window |
|
|
375 | (3) |
|
Tracing Variables in the Output Window |
|
|
378 | (3) |
|
|
|
381 | (4) |
|
|
|
385 | (3) |
|
|
|
388 | (1) |
| Appendix A Summary of Object Methods and Properties |
|
389 | (8) |
| Appendix B Keyboard Keys and Matching Key Codes |
|
397 | (2) |
| Appendix C Summary of the Actions Category |
|
399 | (8) |
| Index |
|
407 | |