tailieunhanh - adobe flash cs5 on demand part 60
Sử dụng ActionScript ActionScript đã trải qua những thay đổi đáng kể. Điều này không có nghĩa là nếu bạn đã làm việc với Flash ActionScript hoặc là bạn sẽ hoàn toàn bị mất, nhưng nó sẽ yêu cầu bạn tìm hiểu cách thức mới để sử dụng mã của bạn. | Using ActionScript ActionScript has undergone significant changes. This does not mean that if you have worked with Flash ActionScript or that you will be completely lost but it will require that you learn new ways to use your code. Understanding ActionScript ActionScript is a robust programming model completely up-to-date with the latest release of the ECMAScript standard familiar to developers with a basic knowledge of object-oriented programming. If you have developed for other programming languages such as Java C or C then you have heard of this term. Object-oriented programming allows you break your code into objects that can be easily re-used. With object-oriented programming it s easier to manage an application that has a collection of smaller files than one large file. There are number of changes that will take a while to get used. The main changes are ActionScript is located in Class files or in the Timeline. Code design is truly object oriented. You cannot add ActionScript directly to movie clips or buttons instances. Triggering events has changed. Loading data has changed. XML is managed differently. Some other enhancements include more run-time exceptions for common error conditions added use of run-time type information improved use of properties and classes with sealed classes added use of method closures for event handling added use of industry standard ECMAScript for XML more support for regular expressions and added primitive types int and uint . There are a score of smaller changes. As you dive directly into ActionScript you will find a learning curve as you move from ActionScript . Is it all worthwhile to go through the pain Absolutely. ActionScript is simply so much faster and more powerful that it is worth the undertaking. Working with ActionScript There are two ways in which you can work with ActionScript. The first method is to add ActionScript to the Timeline. This will be familiar to earlier Flash .
đang nạp các trang xem trước