TAILIEUCHUNG - Using Frame Events

Sử dụng Frame Frame Sự kiện sự kiện có thể là sự kiện đơn giản nhất để hiểu được. Khi bạn đính kèm một loạt các hành động để một keyframe trên timeline, Flash thực thi những hành động khi bộ phim đạt rằng khung trong khi phát. | Using Frame Events Frame events are probably the easiest events to understand. When you attach a series of actions to a keyframe on the timeline Flash executes those actions when the movie reaches that frame during playback. Frame events are great for triggering actions based on the passage of time or actions that need to be synchronized with elements currently visible on the stage. NOTE Many projects need to have a number of things set in place as soon as they begin to play. Known as initializing this process usually involves creating data or establishing certain aspects of the movie s functionality. For this reason many developers place a number of actions on Frame 1 of the main timeline to implement this initialization process. These actions are used to create variables and arrays as well as to define functions all of which may be needed soon after the movie begins to play. In the next exercise we ll create a simple self-running presentation that displays pictures and related text sequentially using frame events. 1. Open FrameEventshfla in the Lesson02 Assets folder. Open the Property Inspector. First let s get acquainted with what s on the stage. This 200-frame scene contains six layers named according to their content five text fields three buttons and two movie clip instances. The movie will begin playing at Frame 1 displaying a picture and associated text on the screen. We will place actions on Frame 200 to advance the picture and send this timeline back to Frame 1 to repeat the process. Because our movie is set to play at 20 frames per second each picture and the information it contains will be visible for 10 seconds 200 frames divided by 20 frames a second before moving on. If you select the center picture in the left portion of the stage the Property Inspector indicates that this is a movie clip instance named pictures_mc that itself contains several pictures these pictures form the basis of our slide show. Soon we ll add frame events to this clip s .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.