Skip to main content
Inspiring
January 14, 2013
Answered

Drop a movie clip to play it

  • January 14, 2013
  • 1 reply
  • 461 views

I have a drag and drop set up and I can move the two clips at the bottom around on the stage. When I let go, it snaps back to the original position. I would like to have the user choose a movie clip and drop it in the gray area. On release in that area, I would like the movie to play in the window. Any advice on creating this type of drop trigger would be great. If you know of a tutorial, or sample code, even better.

Thanks,

Rich

This topic has been closed for replies.
Correct answer kglad

convert your gray area to a movieclip (eg, preview_mc) and when your movieclips are dropped use a hitTestObject(preview_mc) to determine whether to center the draged movieclip in preview_mc and play it or return it to its start point

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
January 14, 2013

convert your gray area to a movieclip (eg, preview_mc) and when your movieclips are dropped use a hitTestObject(preview_mc) to determine whether to center the draged movieclip in preview_mc and play it or return it to its start point