Ashley Rolley
Graphic Design III
What is a mouse event? How many are there in Flash?
Describe each for the Class.
What is a mouse event?
• A mouse event is something that requires input with a mouse.
How many are there in Flash?
• There are eight mouse events in Flash.
Mouse Events
• Press: refers to the downward part of the click when the pointer is located within the hit area of a button.
• Release: refers to the upward part of a click (the user presses and then releases the mouse button) when the pointer is located within the hit area of a button.
• Release Outside: happens when the user clicks inside the button area, holds down the mouse button, and moves the mouse outside the active button area before releasing the mouse button.
• Key Press: happens anytime the user presses the specified keyboard key while the flash button is resent on screen. The user doesn’t have to use the mouse to interact with the button for this event to trigger action.
• Roll Over: occurs anytime the pointer rolls into the button’s hit area when the mouse button hasn’t been pressed.
• Drag Over: works in a slightly unexpected way. A Drag Over event occurs when the user clicks and holds down the mouse button within the button’s hit area, rolls the pointer outside the hit area, and then rolls the pointer back into the hit area, all without releasing the mouse button.
• Drag Out: happens when the user clicks within the button’s hit area, holds down the mouse button, and rolls the pointer out of the hit area.








Comments!
Emily VanHaaften
Graphic Design 3
Week 8 Topics
Add a frame action to a simple animation, including creating a special layer for frame actions. Why would you do this? What is a comment line? Add a comment, based on steps in the text.
Adding Frame Actions
Page 397
· Create a Flash document with three layers: Actions, Scene, and Frames
· In the Scene layer, add in-between frames in frames 2-5; there is a keyframe in the first frame by default
· On the Stage, for keyframe 1, create text that identifies scene
· In the Frames layer, create keyframes in frames 1-5
· On the Stage, for each keyframe, add text that identifies the frame number
Creating a separate layer for actions prevents you from accidentally putting actions in keyframes in two different layers for the same frame number, which can cause problems if you reorder the layers.
What is a comment line?
A comment line is a note about your script to help remind yourself what you intend the script to do. Comments will also help anyone who needs to modify your script later. The double slash is known as a comment delimiter, which sets the boundaries of a comment within a script. Flash will not pick up any text between the two slashes. For the longer comments, there is a multiline delimiter that begins the comment with a /* and ends with a /*. Flash excludes everything in between the opening and closing delimiters from the script.
Adding Comments
· Continue with the document already started for last task, in the Actions layer, select keyframe 1
· Access the Actions panel. Windows > Actions
· From the options menu, in the upper right corner of the Actions-Frame panel, make sure Line Numbers is active.
· From the options menu, choose Word Wrap
· In the toolbar of the Actions-Frame panel, check that Script Assist is active.
· In the Actions Toolbox, click the Global Function category
· Click the Miscellaneous Functions subcategory
· Click comment
· To add comment action to the script, do either of the following
o Double-click the comment action in the Actions Toolbox
o Drag the comment action from the Actions Toolbox to the Script pane
· Click the comment field in the Script Assist window to activate the field
· Type Pause the movie on frame 1 at runtime
Comments