tailieunhanh - Flash CS3 For Dummies PHẦN 7

Sau khi bạn tạo ra phim của bạn, bạn có thể làm cho nó tương tác để trải nghiệm web của người xem là có ý nghĩa hơn và hấp dẫn. Flash ActionScript cung cấp tiềm năng vô hạn, vì vậy hãy để trí tưởng tượng của bạn bay lên. Chúng tôi cho bạn thấy làm thế nào để kết hợp các hình ảnh động của bạn với các biểu tượng của bạn và sau đó thêm ActionScript toàn bộ kịch bản phim của bạn. | 224 Part IV Total Flash-o-Rama_ Actions panel choose EveiitDispatcher Methods addEventListener. In the Object text box type myButton. In the Type text box type . In the Listener text box type startMovie. Now the code in the Script pane on the right of the Actions panel looks like this import import function startMovie event MouseEvent void products startMovie This adds an event listener to myButton that listens for a mouse click and executes the startMovie function when it detects a mouse click on myButton. 14. If you want to change the parameter click it in the lower-right pane of the Actions panel. Then in the Parameters area of the Actions panel replace CLICK with another parameter such as MOUSE_OVER. See Table 10-1 for more information on some of the event parameters that you can use to define when a button action goes into effect. 15. Choose Controls Test Movie. When you click your button your Flash movie jumps to the frame labeled products in your Timeline. Table 10-1 Mouse Events Event When the Action Occurs CLICK When the user clicks the mouse button MOUSE_DOWN When the mouse cursor is over the object or the button s hit area and the user is pressing the mouse button MOUSE_UP When the mouse cursor is over the object or the button s hit area and the user releases the mouse button MOUSE_OVER When the mouse cursor moves over the object or the button s hit area without clicking MOUSE_OUT When the mouse cursor moves out of the object or the button s hit area without clicking MOUSE_WHEEL When a mouse wheel is spun over the object Chapter 10 Getting Interactive 225 The hit area of a button is the button s active area the area that responds to mouse clicks and other user interactions. See Chapter 8 to find out all about buttons. Here s a variation of

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.