ActionScript 3.0精髓(英文影印版)
基本信息
- 原书名: Essential ActionScript 3.0
- 原出版社: Adobe Dev Library
- 作者: Colin Moock
- 丛书名: 东南大学出版社O'REILLY图书系列
- 出版社:东南大学出版社
- ISBN:9787564110390
- 上架时间:2007-12-24
- 出版日期:2008 年2月
- 开本:16开
- 页码:911
- 版次:1-1
- 所属分类:
计算机 > 软件与程序设计 > 网络编程 > 综合
编辑推荐
ActionScript 3.0公认经典杰作!
Flex/Flash开发者必备宝典!
内容简介回到顶部↑
《actionscript 3.0精髓》十分清晰地涵盖了actionscript编程的所有细节。若你此前没有任何编程基础,该书会引导你循序渐进地逐步掌握actionscript。如果你已具备一定的actionscript开发经验,这本书将帮助你进一步弥补知识漏洞,并以正规的术语重新思考那些重要概念。
actionscript 3.0是对flash编程语言的一次重大升级。它更快、更简洁,而且比以前的各个版本都更为先进。只有《actionscript 3.0精髓》可以把你所需理解的每一个actionscript 3.0主要概念,都通过明白流畅的语言细细讲述。也只有《actionscript 3.0精髓》可以让你深入掌控actionscript 3.0的全部潜力。
这是一本真正的开发者手册,它包含实用的阐释、深刻的警示和数以千计的样例程序,以展示如何多快好省地完成工作。在这本900余页的书中,你能找到:
详尽的actionscript核心语言概述,包括面向对象编程、类、对象、变量、方法、函数、继承、数据类型、数组、事件、异常、范围、名字空间、xml和安全等。
对于可视化交互编程议题的深入探索,诸如图形显示api、层次化事件处理机制、鼠标及键盘交互、动画、矢量图形、位图、文本与内容装载操作等。
开发相关的实用建议,例如将actionscript与flash创作工具制作的内容相结合、在flex builder 2中使用flex框架以及生成可重用的代码库等。
作为flash和actionscript开发社区的首选资料,很多人将《actionscript 3.0精髓》一书以作者的名字命名为“the colin moock book”。这样命名的理由是:没有其他任何书较之更能深入浅出地阐释actionscript、研究其细微差别和全部能力并且通过容易理解的方式表述每一件事。moock多年的悉心研究、实战编程经验以及通过内部渠道与abobe工程师的沟通,成就了这本无比准确全面的书。如果想学习actionscript 3.0,你已经来到了正确的起点。
actionscript 3.0是对flash编程语言的一次重大升级。它更快、更简洁,而且比以前的各个版本都更为先进。只有《actionscript 3.0精髓》可以把你所需理解的每一个actionscript 3.0主要概念,都通过明白流畅的语言细细讲述。也只有《actionscript 3.0精髓》可以让你深入掌控actionscript 3.0的全部潜力。
这是一本真正的开发者手册,它包含实用的阐释、深刻的警示和数以千计的样例程序,以展示如何多快好省地完成工作。在这本900余页的书中,你能找到:
详尽的actionscript核心语言概述,包括面向对象编程、类、对象、变量、方法、函数、继承、数据类型、数组、事件、异常、范围、名字空间、xml和安全等。
对于可视化交互编程议题的深入探索,诸如图形显示api、层次化事件处理机制、鼠标及键盘交互、动画、矢量图形、位图、文本与内容装载操作等。
开发相关的实用建议,例如将actionscript与flash创作工具制作的内容相结合、在flex builder 2中使用flex框架以及生成可重用的代码库等。
作为flash和actionscript开发社区的首选资料,很多人将《actionscript 3.0精髓》一书以作者的名字命名为“the colin moock book”。这样命名的理由是:没有其他任何书较之更能深入浅出地阐释actionscript、研究其细微差别和全部能力并且通过容易理解的方式表述每一件事。moock多年的悉心研究、实战编程经验以及通过内部渠道与abobe工程师的沟通,成就了这本无比准确全面的书。如果想学习actionscript 3.0,你已经来到了正确的起点。
目录回到顶部↑
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
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
前言回到顶部↑
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 reservationinterface 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”(RIAs). To better support RIAs, we aimed to create:
? A tremendously faster virtual machine in Flash Player for ActionScript 3.0.? A development framework called Flex, making it radically easier to build RIAs.? An environment specifically to deliver rich Internet applications to their full potential, known now as the Adobe Integrated Runtime (AIR). During the dotcom bust, we held onto the vision of enabling this future world of rich Internet applications.
We continued to invest in building a range of technologies and prepared for the day that innovation on the web would ignite again. The days of innovation have now returned in full force, and I am delighted to see rich Internet applications coming into their own with Web 2.0. Developers are creating applications with a range of technologies and frameworks that tap into the distributed creativity of the Internet,take advantage of HTML, Flash, Flex, Ajax; and balance logic between the client and server.
The new virtual machine has been delivered now in Flash Player 9, enabling ActionScript 3.0 to run an order of magnitude faster and implement the most recent work on the ECMA standard for the language (JavaScript follows this same standard). This modern implementation has also now been released as open source with the Mozilla Foundation as the Tamarin project, enabling the Flash Player team to work with Mozilla engineers and others in the open source community to continue optimizing the virtual machine and keeping up with the most recent standards work. This core scripting engine will be incorporated over time in Firefox, bringing consistency across scripting in HTML and Flash. ..
The development framework has also been delivered today as Flex, enabling rapid development through common patterns for interaction and data management, with the whole framework built in ActionScript 3.0. The Flex framework is available for free, and the framework source code is included so you can see exactly how it works. You can use any editor to write code using Flex, and a specific IDE is also available,called Adobe Flex Builder.
As we saw innovation on the web returning and were pursuing this vision, we decided to unite efforts across Adobe and Macromedia. While Macromedia was driving RIAs with Flash, Adobe was innovating in delivery of electronic documents,among other areas. We saw over time that Macromedia would be adding electronic document capability to RIAs and that Adobe would add RIA capability around electronic documents. Rather than pursue those paths separately and duplicate efforts, we joined forces to deliver our vision for the next generation of documents and RIAs, bringing together the world’s best technology for electronic documents and the world’s best, most pervasive technology for RIAs. It’s an incredibly powerful combination.
After we announced the merger, we created a “clean room” team to plan for our nextgeneration of software, drawing on everything we’ve learned to date as well as from the potential of bringing Flash, PDF, and HTML together in the new Adobe AIR environment for RIAs.
The AIR project is actually our third attempt at creating this new environment. The first two attempts were part of an experimental project called Central which was code named Mercury and then Gemini after the United States space program, and with AIR code named Apollo. We learned a lot from those first two projects, and as I like to remind the team, Apollo is the one that actually went to the moon. With AIR, you can leverage your existing web development skills (Flash, Flex, HTML, JavaScript, Ajax) to build and deploy RIAs to the desktop. Just like web publishing allowed anyone with basic HTML skills to create a web site, AIR will enable anyone with basic web development skills to create a desktop application.
As a developer, you can now create a closer connection to your users. With the browser, you have a fleeting, somewhat tenuous, connection to users. They browse to a page, and then they’re gone. AIR enables you to create an experience that can keep you continuously connected to your customers. Just like a desktop application, AIR applications have an icon on the desktop, in the Windows start menu, or in the OS X dock. Also, when you’re running a web application today, it’s a separate world from your computer. You can’t easily integrate local data with your web application. For example, you can’t just drag and drop your Outlook contacts onto a web-based mapping application to get directions to your friend’s house. Yet with AIR applications you can, as it bridges the chasm between your computer and the Internet.
I believe AIR represents the beginning of a new medium. And these applications are fun to build. If you start early, you’ll be able to deliver capabilities in your applications that others won’t have yet—especially in terms of increasing the presence of your application on the computer and bridging the web and the desktop.
The core of these RIAs is the ActionScript language, whether they run in the Flash Player in a browser, as a desktop application through AIR, or on mobile devices.Each generation of the ActionScript language has been comprehensively described by Colin Moock in this series of O’Reilly books, becoming the reference book you’ll find on most Flash developer’s desks. With ActionScript 3.0, you have unprecedented power in building engaging applications and with this reference you have tremendous insight to use that power effectively.
I look forward to seeing what you create and to the next generation of applications ahead. Keep pushing the boundaries of what’s possible on the Internet to make the experience more engaging and effective for people around the world, and we will do our best to continue bringing more expressiveness and power to help you in your efforts. ...
—Kevin Lynch
Chief Software Architect, Adobe
San Francisco, 2007
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 reservationinterface 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”(RIAs). To better support RIAs, we aimed to create:
? A tremendously faster virtual machine in Flash Player for ActionScript 3.0.? A development framework called Flex, making it radically easier to build RIAs.? An environment specifically to deliver rich Internet applications to their full potential, known now as the Adobe Integrated Runtime (AIR). During the dotcom bust, we held onto the vision of enabling this future world of rich Internet applications.
We continued to invest in building a range of technologies and prepared for the day that innovation on the web would ignite again. The days of innovation have now returned in full force, and I am delighted to see rich Internet applications coming into their own with Web 2.0. Developers are creating applications with a range of technologies and frameworks that tap into the distributed creativity of the Internet,take advantage of HTML, Flash, Flex, Ajax; and balance logic between the client and server.
The new virtual machine has been delivered now in Flash Player 9, enabling ActionScript 3.0 to run an order of magnitude faster and implement the most recent work on the ECMA standard for the language (JavaScript follows this same standard). This modern implementation has also now been released as open source with the Mozilla Foundation as the Tamarin project, enabling the Flash Player team to work with Mozilla engineers and others in the open source community to continue optimizing the virtual machine and keeping up with the most recent standards work. This core scripting engine will be incorporated over time in Firefox, bringing consistency across scripting in HTML and Flash. ..
The development framework has also been delivered today as Flex, enabling rapid development through common patterns for interaction and data management, with the whole framework built in ActionScript 3.0. The Flex framework is available for free, and the framework source code is included so you can see exactly how it works. You can use any editor to write code using Flex, and a specific IDE is also available,called Adobe Flex Builder.
As we saw innovation on the web returning and were pursuing this vision, we decided to unite efforts across Adobe and Macromedia. While Macromedia was driving RIAs with Flash, Adobe was innovating in delivery of electronic documents,among other areas. We saw over time that Macromedia would be adding electronic document capability to RIAs and that Adobe would add RIA capability around electronic documents. Rather than pursue those paths separately and duplicate efforts, we joined forces to deliver our vision for the next generation of documents and RIAs, bringing together the world’s best technology for electronic documents and the world’s best, most pervasive technology for RIAs. It’s an incredibly powerful combination.
After we announced the merger, we created a “clean room” team to plan for our nextgeneration of software, drawing on everything we’ve learned to date as well as from the potential of bringing Flash, PDF, and HTML together in the new Adobe AIR environment for RIAs.
The AIR project is actually our third attempt at creating this new environment. The first two attempts were part of an experimental project called Central which was code named Mercury and then Gemini after the United States space program, and with AIR code named Apollo. We learned a lot from those first two projects, and as I like to remind the team, Apollo is the one that actually went to the moon. With AIR, you can leverage your existing web development skills (Flash, Flex, HTML, JavaScript, Ajax) to build and deploy RIAs to the desktop. Just like web publishing allowed anyone with basic HTML skills to create a web site, AIR will enable anyone with basic web development skills to create a desktop application.
As a developer, you can now create a closer connection to your users. With the browser, you have a fleeting, somewhat tenuous, connection to users. They browse to a page, and then they’re gone. AIR enables you to create an experience that can keep you continuously connected to your customers. Just like a desktop application, AIR applications have an icon on the desktop, in the Windows start menu, or in the OS X dock. Also, when you’re running a web application today, it’s a separate world from your computer. You can’t easily integrate local data with your web application. For example, you can’t just drag and drop your Outlook contacts onto a web-based mapping application to get directions to your friend’s house. Yet with AIR applications you can, as it bridges the chasm between your computer and the Internet.
I believe AIR represents the beginning of a new medium. And these applications are fun to build. If you start early, you’ll be able to deliver capabilities in your applications that others won’t have yet—especially in terms of increasing the presence of your application on the computer and bridging the web and the desktop.
The core of these RIAs is the ActionScript language, whether they run in the Flash Player in a browser, as a desktop application through AIR, or on mobile devices.Each generation of the ActionScript language has been comprehensively described by Colin Moock in this series of O’Reilly books, becoming the reference book you’ll find on most Flash developer’s desks. With ActionScript 3.0, you have unprecedented power in building engaging applications and with this reference you have tremendous insight to use that power effectively.
I look forward to seeing what you create and to the next generation of applications ahead. Keep pushing the boundaries of what’s possible on the Internet to make the experience more engaging and effective for people around the world, and we will do our best to continue bringing more expressiveness and power to help you in your efforts. ...
—Kevin Lynch
Chief Software Architect, Adobe
San Francisco, 2007
【插图】








点击看大图





加载中...

