Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Drop a movie clip to play it

Explorer ,
Jan 14, 2013 Jan 14, 2013

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

Screen Shot 2013-01-14 at 10.57.15 AM.png

TOPICS
ActionScript
431
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 14, 2013 Jan 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

Translate
Community Expert ,
Jan 14, 2013 Jan 14, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines