Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Kế hoạch một dự án Khi tạo một dự án có chứa một số lượng ActionScript, nó khôn ngoan để làm một số quy hoạch lên phía trước. Đối phó với các vấn đề trong giai đoạn ý tưởng có ý nghĩa nhiều hơn đối với họ trong giai đoạn phát triển, nơi họ thường đòi hỏi nhiều thời gian và thất vọng gây ra trước khi chúng được cố định. | Planning a Project When creating a project that contains a generous amount of ActionScript it s wise to do some planning up front. Dealing with problems in the idea stage makes a lot more sense than dealing with them in the development stage where they often require more time and cause frustration before they are fixed. We guarantee you ll save time in the long run. Many issues must be addressed before you even open Flash and start scripting. A good way to go about this is to ask yourself a series of questions. What do you want to occur This is the most important question in the script planning process. Be as clear informative and visual as possible in your answer but avoid going into too much detail. For the project we discuss in this lesson we want to create a scene that acts as a front end for paying an electric bill. We want the amount of the bill to be loaded into the movie from an external source a text file. We want to allow the user to enter an amount to pay into a text box. When a button is pressed the amount the user paid will be compared to the amount he or she owed and a visual and textual representation a custom message of the result overpaid underpaid or paid in full will be presented. When the user releases that button we want the visual and textual elements in the scene to return to their original state. The script that accomplishes this will be the main script in the project. What pieces of data do you need to track In other words what numbers or values in the application are integral to its function In our case that data is the amount of the electric bill. We will also need to keep track of the difference between what the user owes and what he or she has paid so that we can display that value in custom messages. What needs to happen in the movie prior to a script being triggered In our project the amount of the electric bill must be established in the movie before anything else can happen. Because the primary goal of our project is to compare the