Skip navigation
lmasterson17
Currently Being Moderated

How do I get buttons to play a movie?

Jun 25, 2012 10:45 AM

Tags: #script #buttons #play #movie

I basically just want a page with like 6 buttons. When you click on a button I want it to play a movie clip, and when the movie is done I want it to return to the home page. Does anyone know how I can do this? Is there a behavior or do I need to write the script? What would that script look like? Any help GREATLY appreciated!!

 
Replies
  • Currently Being Moderated
    Jun 25, 2012 1:39 PM   in reply to lmasterson17

    By movie clips, I assume you are talking about video clips, not Director movies.  If so, the easiest way would be to upload the video clips to YouTube, Then, for each button script you just put the link to the video clip you want it to play.

     

    Dewey

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 25, 2012 1:58 PM   in reply to lmasterson17

    Does anyone know how to get video clips to play within a Director movie?

    Yes, what you ask can be done. Are you familiar with Director at all, or are you looking to outsource your requirements?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 25, 2012 4:03 PM   in reply to lmasterson17

    One approach might be to create a series of markers in your score, one for each video file and one for the menu/index. When the user clicks on a button to view a video, you navigate to the associated marker. In this section of the score you have a (video) sprite whose member is linked to the associated file. Somewhere within this sprite span you have a behavior, either in the frameScript channel or attached directly to the video sprite, that monitors its movieTime against its duration and when these are equal it navigates back to the menu/index in the score.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 26, 2012 3:45 PM   in reply to lmasterson17

    Would I need to put the "menu" part of the video on a loop so that the play head doesn't go ahead and keep going and play the videos? Obviously I don't want the clips to play unless someone clicks a button to watch them.

    Yes.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points