MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Manual de usuario Pagina 22

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 24
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 21
22 Using Director MX 2004 behaviors
Play Frame X moves the playhead to the specified location. Attached to a sprite, the behavior
moves the playhead when the user clicks the sprite (on
mouseUp). Attached to a frame, the
behavior moves the playhead when the playhead leaves the current frame (on
exitFrame). Use
the Play Done behavior to end the sequence and return the playhead to the frame it was in before
jumping to the current sequence.
Play Movie X moves the playhead to a given movie. Attached to a sprite, the behavior moves the
playhead when the user clicks the sprite (on
mouseUp). Attached to a frame, the behavior moves
the playhead when the playhead leaves the current frame (on
exitFrame). Use the Play Done
behavior to end the sequence and return the playhead to the frame it was in before jumping to the
current sequence.
Wait for Mouse Click or Keypress displays a special pointer and holds the playhead in the
current frame until the mouse button is clicked or a key is pressed. You can specify whether
playback resumes after a mouse click, a keypress, or both. Drop this behavior directly onto the
desired frame in the script channel of the Score, or select the desired frame in the Score and then
drop this behavior onto the Stage.
Paintbox behaviors
Behaviors in the Paintbox library let the user create or modify bitmap images using the Director
drawing tools. You can view more information about a particular paintbox behavior, including
parameters and dependencies, if appropriate, by dragging a behavior to the Cast window,
selecting it, and displaying the Behavior inspector (Window > Behavior Inspector).
Canvas lets the user paint on a bitmap sprite. The default settings specify a round, black
paintbrush that is 10 pixels in size, and an opaque white background. You can specify different
values for these settings when you attach the behavior to a sprite.
Canvas is a “master” behavior that implements a single-color, single-size paintbrush. You can use
the other behaviors in this library to let the user switch drawing tools, change colors, and so on.
You can use the related Whiteboard behavior in the Multiuser library to share the canvas between
two or more movies. This can be useful when more than one person wants to view or modify the
same image.
Color Selector sets the paint color used by the Canvas behavior to the color of the pixel that the
user clicks on. This behavior can be attached to any type of sprite, but it is designed to be used
with bitmap sprites.
Erase All Button erases the contents of the canvas when the user clicks or double-clicks the sprite
to which the behavior is attached. You can attach this behavior to any sprite, but it is designed to
be attached to a sprite that can act as a button. To undo the erasure, use the Undo Paint behavior.
Tool Selector - Brush defines the bitmap member to be used as a paintbrush by the Canvas
behavior.
Tool Selector - Eraser lets the user erase with the Canvas behavior. You can attach this behavior
to any sprite, but it is designed to be attached to a sprite that can act as a button. You can attach
this behavior to the same button as the Erase All Button behavior, and set the Erase All Button
behavior so that it requires a double-click to function.
Undo Paint is designed to be attached to a sprite that can act as a button. When the user clicks
the button, the Canvas behavior swaps its current image for the previous, unaltered image stored
by this behavior.
Vista de pagina 21
1 2 ... 17 18 19 20 21 22 23 24

Comentarios a estos manuales

Sin comentarios