Sử dụng Clip Sự kiện Khi một trường hợp clip phim với kịch bản đính kèm vào một cảnh, rằng cảnh có thể mang về một cái nhìn mới, cảm thấy, và chức năng thông qua việc sử dụng các sự kiện clip. Những sự kiện này cho phép hành động được kích hoạt khi đi vào ví dụ một hoặc lá một cảnh, khi người dùng di chuyển con chuột trong khung cảnh xung quanh, và theo những cách khác. | Using Clip Events When a movie clip instance with attached scripts enters a scene that scene can take on a new look feel and function through the use of clip events. These events allow actions to be triggered when an instance enters or leaves a scene when the user moves the mouse around in the scene and in other ways. This section describes the various clip events and provides real-world analogies for their uses. Note that you can use clip events only with scripts attached to movie clip instances. Presence onClipEvent load When someone or something enters a room or an area there can be all kinds of ripple effects the demeanor of people already in the room changes the environment can be affected in some way even the person or thing entering the room can change as a result of what s going on inside. This event handler provokes a similar response by triggering a script when a movie clip instance enters a scene useful for initializing the movie clip for having it be affected by the environment it s entering or for having it affect the environment. Absence onClipEvent unLoad If a movie clip instance can affect a scene when it enters it can also affect the scene when it leaves sometimes in the opposite way . You can use this event handler to trigger a script when a movie clip instance exits a scene. Power Energy onClipEvent enterFrame When an object is given energy or power it usually signifies that it is taking action on a continuous basis. Consider a clock without power it sits motionless and useless. If you provide power to it it ticks the hands on the face move and you re able to use it to tell time. This event handler is used to trigger a script continuously at the same rate as that of your movie as it plays. If your movie s frame rate is set to 20 frames per second the scripts this event handler triggers are executed 20 times a second. This event handler has many powerful applications as you ll learn from lessons throughout this book. Movement onClipEvent mouseMove