tailieunhanh - Targeting Movie Clip Instances on Levels
Nhắm mục tiêu Movie Clip trường hợp về trình độ mục tiêu là một ví dụ movie clip mà tồn tại trong một SWF được tải vào một cấp độ là một quá trình đơn giản: số lượng đầu vào cấp độ của các SWF chứa các clip phim, theo sau là tên dụ chính nó. Một ví dụ được gọi là cuteDog_mc trong một SWF được nạp vào Cấp 42 | Targeting Movie Clip Instances on Levels Targeting a movie clip instance that exists within an SWF loaded into a level is a straightforward process input the level number of the SWF that holds the movie clip followed by the instance name itself. An instance called cuteDog_mc within an SWF loaded on Level 42 for example would have this target path relative to movies on other levels If cuteDog_mc itself contained a movie clip instance named tail_mc that instance s target path would be Although we ve used absolute paths in these examples because we re targeting timelines on different levels remember that you can use relative target paths to target timelines on the same level. In this exercise we ll build on our operating system project by targeting movie clip instances in SWFs loaded into levels and we ll show you how to use simple data from one level in another. 1. Open in the Lesson03 Assets folder. This is like the file to which we added scripts in the last exercise with one addition the timeline now includes a layer called Colors Clip. 2. Press the Show Layer button with the big red X on the Colors Clip layer to reveal the content of this layer. You should now see a purple box that covers the entire stage. This box is a movie clip instance named colors_mc. This movie clip instance will act as a color layer above the multicolored textured background you see when this instance is not visible. Changing the color and transparency of this instance will make it seem as if the textured background on the desktop is changing. Soon we ll script the movie that s loaded into Level 1 to change colors and control transparency of this instance. 3. Double-click the colors_mc movie clip instance to edit it in place. The timeline of the colors_mc movie clip instance is composed of a single layer that contains several frame labels. At each of these frame labels the colored box on stage is filled .
đang nạp các trang xem trước