Skip to main content
December 6, 2011
Question

Playing a movieClip in a certain x position

  • December 6, 2011
  • 1 reply
  • 665 views

I want to play video clip when it is dragged into the timeline I created. I handled the timeline and drag/drop part but I need that clip to play when button is clicked on. So I need to make my function determine the x position of the movieClip and play it if it is on the certain x value.

Is this possible?

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
December 6, 2011

Does the clip play when you click on the button now?  If not, then you probably want to get that working first.  After you get that part working you can add a conditional for the button that tests if the clip is located where it needs to be.

December 6, 2011

No, let me explain. I am creating a timeline for draggable short videos. When they are dragged and snapped into my timeline, and the user clicks on the button, they should start play. I need a function to play the videos according to their x position. But I can't do that because I don't know if it is possible.

Ned Murphy
Legend
December 6, 2011

When you drag/drop a movieclip you can test if it is at the x location you want in the drop code and if so set that movieclip to be the target of the button that you click.