| Making objects (movie clips) Draggable | ||||||||||||||||||||
![]() |
||||||||||||||||||||
|
-create a movie clip symbol, drag it to the stage (it only needs one frame on the timeline) |
||||||||||||||||||||
![]() |
||||||||||||||||||||
| -create an "invisible" button in which only hit state has content ·TIP: paste a copy of the graphic used for the movie clip (NOT the movie clip itself) into the "hit" frame to exactly match the new button's active area to that of the movie clip's. |
||||||||||||||||||||
![]() |
||||||||||||||||||||
|
-place an instance of the invisible button inside the movie clip, centering it on the movie clip's graphic |
||||||||||||||||||||
![]() |
||||||||||||||||||||
|
-select the button instance (it will be light blue) and open the actions panel - it should read "Object Actions" -choose Actions > on -uncheck box next to "Release," check box next to "Press" (we want the clip to start dragging when pressed). |
||||||||||||||||||||
![]() |
||||||||||||||||||||
|
-choose Actions > startDrag
-in Target field, enter this, check expression box (removes quotes-so flash recognizes the word as a keyword, i.e. script) |
||||||||||||||||||||
![]() |
test movie (note that it "sticks" to cursor - we need to tell it to stop dragging when released
-select last bracket in script line (to add to the script) test movie -woo hoo! |
|||||||||||||||||||