• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Controlling the Movie Clip > Dragging the Movie Clip

Dragging the Movie Clip

Drag-and-drop behaviors give the viewer one of the most direct interactions with the Flash movie. There's nothing more satisfying than grabbing a graphic on the screen, moving it around, and dropping it somewhere else. It's a natural way of interacting with objects, and it's easy to give your viewers this experience. Creating a drag-and-drop behavior in Flash involves just two basic steps: creating the movie clip, and then creating a button inside it that triggers the drag action.

The usual behavior for drag-and-drop interactivity is for the dragging to begin when the viewer presses the mouse button. Then, when the mouse button is released, the dragging stops. Hence, the action to start dragging is tied to the on (press) mouse event, and the action to stop dragging is tied to the on (release) mouse event.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint