tailieunhanh - Loading Movies into Levels

Tải phim vào trình độ Như vậy đến nay, chúng tôi đã được tải nội dung bên ngoài vào một thể hiện clip phim, tuy nhiên, bạn cũng có thể tải phim bên ngoài và JPGs vào các cấp. Bạn có thể nghĩ về mức độ như các lớp của phim (file SWF) đang tồn tại bên trong cửa sổ Flash player, tất cả cùng một lúc. | Loading Movies into Levels Thus far we ve loaded external content into an existing movie clip instance however you can also load external movies and JPGs into levels. You can think of levels as layers of movies SWFs that exist within the Flash player window all at the same time. For example when you view an HTML page containing a Flash movie a Flash player window is created and the initial movie as identified in the object and embed tags is loaded into the player. That movie is loaded into a z-plane a term signifying depth within the player window known as Level 0. You can load additional SWFs into higher levels in the player window. You load SWFs into higher levels by employing a variant of the loadMovie action loadMovieNum 1 There are two differences between this code and the code used to load an external asset into a target instance the action is now named loadMovieNum rather than loadMovie and instead of identifying a target for the external asset we ve identified a level number. This action loads into Level 1 of the Flash player window. It s important to keep the following rules in mind when loading a movie into a level Only one SWF or JPG can occupy a level at any time. You don t have to load movies or JPGs into sequential levels. For example you can load a movie into Level 50 even if Levels 1 through 49 are empty. The content of movies on higher levels appears above the content from levels below it. In other words the content of a movie on Level 10 appears above all content on Levels 9 and lower. The frame rate of the movie loaded into Level 0 takes precedence dictating the rate at which all movies in the Flash player window will play. For example if the movie on Level 0 is set to play at 24 frames per second and an external movie with a frame rate of 12 fps is loaded into a target or level the externally loaded movie s frame rate speeds up to match that of the movie on Level 0. Be sure to set similar frame rates when