tailieunhanh - adobe flash cs5 on demand part 57
Sử dụng ActionScripts cơ bản ngôn ngữ lập trình Flash của được gọi là ActionScript. ActionScript cho phép bạn tạo hướng dẫn chi tiết về cách thức các bộ phim Flash sẽ thực hiện. CS5 Flash cho phép bạn xây dựng ứng dụng sử dụng hai phiên bản khác nhau của ActionScript, hoặc là ActionScript & hoặc . | Using Basic ActionScripts 14 Introduction Flash s programming language is called ActionScript. ActionScript lets you create detailed instructions on how the Flash movie will perform. Flash CS5 allows you to build applications using two different versions of ActionScript either ActionScript or ActionScript . In this chapter you ll learn the basics of ActionScript along with scripting as it relates to ActionScript . In the next chapter you ll learn about scripting as it relates to ActionScript . ActionScripts can use an event to trigger the specific action. Say you create a button and you want the ActionScript to trigger an instruction that will stop the movie but only when the user clicks the button object. The defined event is the user clicking his mouse and the action would be to stop playing the movie. ActionScript is a relatively easy language to learn but a very precise language to code so pay close attention to the syntax. The good news is that once you master the language and the syntax the full power of Flash is available to you. You can create ActionScripts that are triggered the event by specific data or information typed in by a visitor. You can even create ActionScripts that are sensitive to variables such as date and time. Flash helps you by giving you functions English-like script and as your ActionScript skills grow you can even create and call your own functions. Each new version of Flash moves the ActionScripting language closer and closer to JavaScript. The power of Flash is fully realized when you write ActionScripts and incorporate them in your Flash documents. What You ll Do View the Actions Panel Set ActionScript Preferences Understand Properties and Methods Apply Properties and Methods to an Object Use Dot Syntax Understand Data Types Use Functions Use Conditional Statements Attach a Mouse Event to a Button Work with Frame Events Work with Clip Events Attach a Clip Event to a Movie Clip Work with Loops Use For Loops Work with
đang nạp các trang xem trước