MACROMEDIA FLASH 8-DEVELOPING FLASH LITE 2.X Uživatelský manuál Strana 12

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 21
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 11
12
Adobe Flash CS3 Classroom in a Book
Lesson 8: Using Components
Lesson 8 introduces students to components, which
are pre-built movie clip symbols that you can custom-
ize for interactive user interface elements and video
elements. In the lesson, students create two Text Area
components, one with ActionScript and one without,
and a Tile List component.
About components
You can create components in Flash by dragging them
from the Components panel or by creating them in
ActionScript. To add components using the Flash inter-
face, drag them from the Components panel onto the
Stage, set their parameters in the Parameters panel or
Component inspector, and then assign behaviors and
methods using ActionScript.
Note: You can use the Behaviors panel to assign be-
haviors to components if the document’s ActionScript
Publish setting is set to ActionScript 2.0. In this book,
we always use ActionScript 3.0, so behaviors in the
Behaviors panel are not available.
When you drag a component from the Components
panel to the Stage, Flash imports an editable movie clip
to the library. After a component has been imported
to the library, you can drag instances of it to the Stage
from either the Library panel or the Components
panel.
You can set properties for each instance of a compo-
nent in the Parameters tab of the Property inspector
or in the Component inspector. You can also change
the color and text formatting of a component by set-
ting style properties for it or customize its appearance
by editing the component’s skins. Name component
instances to refer to them in ActionScript.
Students can learn more about components by
creating their own projects using components from
the Components panel. Examples of components are
included in the sidebar at the end of the lesson.
LESSON 8
Zobrazit stránku 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 20 21

Komentáře k této Příručce

Žádné komentáře