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

Chapter 17. Interface Techniques > Drag-and-Drop with a Drop Target

Drag-and-Drop with a Drop Target

For the garbage to be able to drop into the trash can, the garbage needs to know where the trash can is located. Right now, the trash can is a miscellaneous movie clip on the Stage; it needs an instance name so that you can talk to it.

After you’ve assigned an instance name to the trash can movie clip, you can use the _droptarget property of the garbage movie clip you’re dragging to control what happens next.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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