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

Dragging Movie Clips

As you saw in the last chapter, "Objects," the startDrag method of the Movie Clip object type moves a movie clip relative to the cursor. This method has some advantages and disadvantages.

An advantage is that it's automatic. When startDrag is used, the movie clip becomes the active movie clip and any previously dragging movie clip is dropped. The movement of the movie clip is handled by Flash. However, you can limit movement of the movie clip by specifying boundaries.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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