Copy link to clipboard
Copied
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
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
Copy link to clipboard
Copied
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
Find more inspiration, events, and resources on the new Adobe Community
Explore Now