Foreword Preface Part I. ActionScript from the Ground Up 1. Core Concepts 2. Conditionals and Loops 3. Instance Methods Revisited 4. Static Variables and Static Methods 5. Functions 6. Inheritance 7. Compiling and Running a Program 8. Datatypes and Type Checking 9. Interfaces 10. Statements and Operators 11. Arrays 12. Events and Event Handling 13. Exceptions and Error Handling 14. Garbage Collection 15. Dynamic ActionScript 16. Scope 17. Namespaces 18. XML and E4X 19. Flash Player Security Restrictions Part II. Display and Interactivity 20. The Display API and the Display List 21. Events and Display Hierarchies 22. Interactivity 23. Screen Updates 24. Programmatic Animation 25. Drawing with Vectors 26. Bitmap Programming 27. Text Display and Input 28. Loading External Display Assets Part III. Applied ActionScript Topics 29. ActionScript and the Flash Authoring Tool 30. A Minimal MXML Application 31. Distributing a Class Library Appendix Index
精彩片段:
We imagine a world where every digital interaction—whether in the classroom, the office, the living room, the airport, or the car—is a powerful, simple, efficient, and engaging experience. Flash Player is widely used to deliver these experiences and has evolved into a sophisticated platform across browsers, operating systems, and devices. One of the main forces driving Adobe’s innovation and the development of the Flash Player is seeing where developers are pushing the edge of what’s possible to implement, and then enabling more developers to accomplish that kind of work. Taking the way-back machine to 2001, you would see the web being widely used and the early signs of web sites containing not only pages but also interactive applications. These applications were primarily using HTML forms and relying on web servers for processing the form information. A handful of leading edge developers were working to implement a more responsive interaction by taking advantage of clientside processing with ActionScript in Flash. One of the earliest examples of successful interactive applications was the hotel reservation system for the Broadmoor Hotel, which moved from a multi-page HTML form to a one-screen, highly interactive reservation interface that increased their online reservations by 89%. Clearly, responsiveness matters. It creates a much more effective, engaging experience. However, in 2001, there was a lot to be desired in terms of performance, power of the scripting language, ease of debugging, and design constraints within browsers (which were created to view pages rather than host applications). We did a lot of brainstorming and talked extensively to developers and decided to embark on a mission to enable this trend, naming the category “Rich Internet Applications”