Sử dụng chuột điều khiển các sự kiện chuột Sự kiện thực hiện các script khi tương tác với một nút chuột hoặc dụ movie clip. Bạn sử dụng chúng để mô phỏng những điều bạn có thể làm gì với bàn tay của bạn. Làm Liên hệ: trên (báo chí) Trong thế giới vật lý, khi bạn chạm hoặc bấm một cái gì đó-một người hoặc một khối băng-bạn mong đợi một phản ứng: người trả lời, các khối băng tan chảy | Using Mouse Events Mouse events control the execution of scripts when the mouse interacts with a button or movie clip instance. You use them to emulate things you might do with your hands. Making Contact on press In the physical world when you touch or press something a person or an ice cube you expect a reaction the person responds the ice cube melts. The on press event handler works great for emulating touching grabbing or just plain pushing as well as the results of any of these actions. You can use this event handler to trigger a script when the cursor is above a button or movie clip instance and the mouse button is pressed. Letting Go on release When you release something or cease to make contact with it you re usually finished interacting with it and ready to move on. This event handler which emulates letting go of something or dropping it is the most direct way of allowing the user to make your movie take action. It s often used on buttons or movie clip instances to trigger actions. You use it to trigger a script when the mouse button is released it was first pressed while it was over a button or movie clip instance . Pulling Snapping on releaseOutside Imagine a deck of cards sitting on a table you push down on the top card with your finger drag it away from the deck and then let your finger up. In Flash this deck of cards could represent a button that the user presses drags away from then releases. You can use this event handler to trigger a script when your user has pressed a movie button or movie clip instance but released the mouse away from it making this event handler useful for emulating pulling or snapping. Keyboard Control on keyPress You use this event to program your movie to trigger a script when a user presses a letter number punctuation mark symbol or arrow key or the Backspace Insert Home End Page Up or Page Down key. Over But Not Touching on rollOver You can place your hand over a hot stove and feel the heat without actually touching the .