Skip to main content
Participant
July 4, 2006
Question

To Stop a Clip from Dragging

  • July 4, 2006
  • 1 reply
  • 216 views
Quick version:

I have three clips (dynamically loaded) onto the stage. The user is to drag the three clips from one area to another (movie clip destination). When each clip is dragged to the destination it then becomes un-dragable (refer to attached script).

The problem below arises only once in a blue moon, but poses a problem.

If the clip is dragged and dropped directly on the specified spot, the script jumps into the first if statement (which ignores the rest of the script totally) and does not complete the count for moving onto the next section.

Is there an alternative way to change a movie script dynamically when it is dragged to the proper destination to just turn it off from being dragged again.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 5, 2006
don't use an if-else statement if you want more code to execute after the if-branch.