macromedia flash 8 revealed working with symbols and interactivity

27
Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

Upload: bernard-blake

Post on 20-Jan-2016

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

Macromedia Flash 8Revealed

WORKING WITH SYMBOLSAND INTERACTIVITY

Page 2: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

2Working With Symbols and Interactivity Chapter 3

Create symbols and instances

Work with Libraries

Create buttons

Assign actions to buttons

Chapter Lessons

Page 3: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

3Working With Symbols and Interactivity Chapter 3

Create small file sizes

Symbols are graphics that can be re-used without adding file size– Symbols are the original object– Instances are the copied object

Flash stores only symbol information (size, shape, color) thus creating a smaller file size

Using Flash Symbols

Page 4: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

4Working With Symbols and Interactivity Chapter 3

Attributes, such as color and shape, can be freely changed for each instance

You can have as many altered instances as you like

Symbols reside in the Library– Dragging a symbol from the Library to

the stage creates an instance

Using Flash Symbols

Page 5: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

5Working With Symbols and Interactivity Chapter 3

Three types of symbols– Graphics, Buttons, Movie Clips

Graphics are effective for single, re-usable images Buttons are for interactivity, such as starting or stopping a movieA Movie Clip is a “movie within a movie”

Flash Symbol Types

Page 6: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

6Working With Symbols and Interactivity Chapter 3

Creating a Graphic SymbolTwo ways to create a symbol– New Symbol command– Convert to Symbol command

“Convert to Symbol” dialog box allows you to name and specify the type of symbol

Symbol gets placed in the Library– To create an instance, drag a symbol from

the Library panel to the stage

Page 7: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

7Working With Symbols and Interactivity Chapter 3

Naming a Symbol

FIGURE 1 Using the Convert to Symbol dialog box to convert a symbol

Page 8: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

8Working With Symbols and Interactivity Chapter 3

Editing a Symbol

Select from the Library and double-click, or use the Edit Symbol command

Changes made to symbols are reflected in all their associated instances

Changes made to instances do not affect their symbol

Page 9: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

9Working With Symbols and Interactivity Chapter 3

Working with InstancesInstances can be altered in many ways– Rotate, skew, resize– Change color, brightness, transparency

Some limitations to editing an instance– Changes must be made to entire instance– Use “Break Apart” for more edibility, but

note that the link to the symbol will be broken

Page 10: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

10Working With Symbols and Interactivity Chapter 3

Understanding the Library

The Library provides a way to view and organize symbols– Change symbol names and

properties– Add or delete symbols

Page 11: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

11Working With Symbols and Interactivity Chapter 3

The Library

Title Bar – Names the movie with which the

Library is associated

Options Menu – Provides access to additional

features of the library

Item Preview window– Displays the selected symbol

Page 12: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

12Working With Symbols and Interactivity Chapter 3

The Library

Toggle Sorting Order Icon– Allows you to reorder the lists of

folders and symbols within folders

Wide Library View and Narrow Library View icon– Used to expand and collapse the

Library window to display more or less of the symbol properties

Page 13: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

13Working With Symbols and Interactivity Chapter 3

The Library

Name Text Box – Lists the folder and symbol names

New Symbol Icon – Displays the Create New Symbol

dialog box

New Folder Icon– Allows you to create a new folder

Page 14: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

14Working With Symbols and Interactivity Chapter 3

The Library

Properties Icon– Displays the Symbol Properties

dialog box for the selected symbol

Delete Item Icon– Deletes the selected symbol or folder

Page 15: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

15Working With Symbols and Interactivity Chapter 3

The Library Panel

Name Text Box

New Symbol Icon

New Folder IconProperties Icon

Options Menu

Delete Icon

Narrow Library View Icon

Wide Library View Icon

Toggle Sorting Order Icon

Item Preview window

Click to list Library panel of an open document

FIGURE 11 The Library panel

Page 16: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

16Working With Symbols and Interactivity Chapter 3

Understanding Buttons

Button symbols provide interactivity

Any object, including Flash objects, can be turned into a Button symbol

Button symbols have four states– Correspond to the use of the mouse– Recognize that the user requires

feedback

Page 17: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

17Working With Symbols and Interactivity Chapter 3

The Four Button StatesUp– Represents how the button appears

when the mouse pointer is not over it

Over– Represents how the button appears

when the mouse pointer is over it

Page 18: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

18Working With Symbols and Interactivity Chapter 3

The Four Button StatesDown– How the button appears after the user

clicks the mouse

Hit– Defines the area of the screen that will

respond to the click

Page 19: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

19Working With Symbols and Interactivity Chapter 3

The Four Button StatesUp Over Down Hit

FIGURE 19 The button timeline

FIGURE 18 The four button

states

Page 20: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

20Working With Symbols and Interactivity Chapter 3

Button DevelopmentCreate a button symbol

Edit the button symbol

Return to the main timeline

Preview the button

Page 21: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

21Working With Symbols and Interactivity Chapter 3

Understanding ActionsIn a basic movie, Flash plays frames sequentially

To gain greater control, ActionScripting provides interactivity– Button presses can start/stop a Movie– Jump to a frame or scene

Page 22: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

22Working With Symbols and Interactivity Chapter 3

Analyzing ActionScriptBasic ActionScript involves an event (such as a mouse click) that causes some action to occur

Category panel

Event

ActionFIGURE 26 The Actions panel displaying an ActionScript

Page 23: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

23Working With Symbols and Interactivity Chapter 3

Assigning Actions to a Button

Select the desired button on the stage

Display the Actions panel

Select the Script Assist button to display the Script Assist panel within the ActionScript panel

Page 24: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

24Working With Symbols and Interactivity Chapter 3

Assigning Actions to a Button

Select the appropriate category

Select the desired action

Specify the event that triggers the action

Page 25: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

25Working With Symbols and Interactivity Chapter 3

Button ActionsButtons respond to one or more of the following events– Release

• With the pointer inside the button Hit area, the user presses and releases the mouse button

– Key Press • With the pointer inside the button Hit area,

the user presses a predetermined key on the keyboard

Page 26: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

26Working With Symbols and Interactivity Chapter 3

– Roll Over• The user moves the pointer into the button

Hit area

– Drag Over• The user holds down the mouse button,

moves the pointer out of the button Hit area and then back into the Hit

– Using Frame Actions• Actions assigned to frames• Executed when the playhead reaches the

frame

Button Actions

Page 27: Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY

27Working With Symbols and Interactivity Chapter 3

Chapter 3 TasksCreate symbols and instances

Work with Libraries

Create buttons

Assign actions to buttons