Targeting Movies on Levels

Tập tin swf vào cửa sổ chơi Flash đồng thời (một cái gì đó bạn sẽ học cách làm trong việc thực hiện sau đây, và chúng tôi thảo luận nhiều hơn trong Bài Học 18, " Tài sản Loading ngoài "). File SWF tồn tại trong cửa sổ chơi Flash trong những gì được gọi là các cấp. Chức năng, các cấp (đối với tổ chức các file SWF) tương tự như các lớp (đối với tổ chức nội dung) trên một dòng thời gian: họ là một mặt phẳng của sự tồn tại. | Targeting Movies on Levels With the loadMovie action Flash enables you to load more than one .swf file into the Flash player window simultaneously something you ll learn how to do in the exercise that follows and that we discuss more in Lesson 18 Loading External Assets . SWFs exist in the Flash player window in what are known as levels. Functionally levels for holding SWFs are similar to layers for holding content on a timeline they are a plane of existence a depth that puts a loaded SWF and all its content on top of or below other movies that have been loaded in the player window. You can load hundreds of external .swf files into various levels in the player window. When you use the loadMovie action to load a movie into a level you must assign a level number to which the movie will be loaded. However you don t need to load movies into sequential levels. You can assign arbitrary numbers such as 46 or 731 if you prefer. Once a movie has been loaded into a level its target path is its level number. For example if you were to load a movie into Level 37 movies on other levels would target that movie using this target path level37 To tell the main timeline on this level to stop you would use the following syntax NOTE The first movie to appear in the player window automatically loads into Level 0. A level s target path is the key to controlling the SWF loaded there including its main timeline and any movie clip instances it may contain. Because you re loading multiple SWFs into the player window using the loadMovie action it s important to note that each SWF s main timeline is considered the _root timeline in relation to other movies within that SWF. Thus although an SWF loaded into a level might be addressed as _level37 by movies on other levels the main timeline of that SWF can be addressed as _root by movie clip instances within that same SWF. This means that if movies have been loaded into 15 levels there are a total of 16 root movies including the one

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
277    265    1    01-07-2024
1    116    2    01-07-2024
Đã 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.