Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Sound and video buttons

From: InDesign Insider Training: Interactive PDFs

Video: Sound and video buttons

As we saw last movie it's super easy to add a movie to your document because InDesign treats it like a graphic. I will go ahead and place that movie again and setup the Media panel. I'm going to chose Place, select my movie, click inside of here, I will wait for a moment while it loads the movie. And then I'm just going to scale this down to fit and setup a Media panel. Let's grab an image that we like a little bit more, and set that to be the current poster. Now, just like in the last movie, I'm going to turn on the controller and set the Show Controller on Rollover check box. So, we're in good shape here, but instead of forcing my user to click on the movie to play it, I'd like to add a button, a Play button. I'll open my sample Buttons and Forms library and grab a button out of here, maybe this green button.

Sound and video buttons

As we saw last movie it's super easy to add a movie to your document because InDesign treats it like a graphic. I will go ahead and place that movie again and setup the Media panel. I'm going to chose Place, select my movie, click inside of here, I will wait for a moment while it loads the movie. And then I'm just going to scale this down to fit and setup a Media panel. Let's grab an image that we like a little bit more, and set that to be the current poster. Now, just like in the last movie, I'm going to turn on the controller and set the Show Controller on Rollover check box. So, we're in good shape here, but instead of forcing my user to click on the movie to play it, I'd like to add a button, a Play button. I'll open my sample Buttons and Forms library and grab a button out of here, maybe this green button.

I'll just drag it out and drop it on my page. Now, to make this button play the movie, all I need to do is go to the Buttons and Forms panel, make sure it's selected on the page, and then give it an action. Right now the action is set to Go to URL, so I don't want that. I'm going to delete it with a little Minus button. And instead I'll go to the Plus button and add a new action, and the action is going to be Video. When you choose Video, InDesign looks for all the videos that are on your current spread and gives you a list inside the Video pop-up menu. Right now there's only one video of course, so it just picked it for me. Then it lets me choose, what do I want to do to that video? And you can see in the Options pop-up menu, you have a bunch of different options.

I could play it. I could stop it, or pause, or resume it. In this case, all I want to do is play. Now, unfortunately, buttons in a PDF are one state. That is, you cannot make a single button do two different things, like I cannot make this one button play if the movie if the movie is not playing, but pause if it is playing. You can however, make two different buttons and then hide and show them. So, this is kind of a trick. I'm going to duplicate this button but before I do that I'm going to change its name. And I'm going to call this Play video. Now, I'll duplicate it simply by Option+Alt dragging. Now, I want this copy of a button to do something different. I want it to stop, so I'm going to come over here to the Action panel, choose Video.

It'll choose the same video, but I'm going to change the option to Stop. Then I'll change the name of course, I want to have a very descriptive name, like Stop Video. I'm also going to tell this button to be hidden until triggered. In other words, make it invisible until I tell it to show up. Now, you'll remember from an earlier chapter that you can hide and show buttons simply by using the Hide Show Buttons action. When someone clicks on this Stop Video button, I want it to not only stop the video, but I also wanted to show and hide some buttons.

Specifically I wanted to show the Play Video and hide itself, I am going to do the opposite thing for the play video button. I'm going to tell it to show and hide some buttons but its going to hide itself and show the Stop Video. Just so that we can see what's going on here, I'm going to change the color of the Stop Video one, otherwise it will be really hard to see that they've changed. So, I'll double click on this and then double click again to select the frame inside the button. This is the green frame and I'm going to change it to a different color, like blue.

Finally, I'm going to deselect everything by clicking off of the pace board and then dragging the Stop button on top of the green Play button. Remember, the Stop button is going to be hidden until it's triggered. And it's going to be triggered by clicking on the Play button. Okay, after setting this thing up, we better test it to see if it's going to work. I'll test it inside the SWF Preview panel instead of exporting a PDF. I'll open the panel, click Play, and up comes that one page. We have the video and we have the button. As soon as I click on that button, it plays the movie and it changes, hides itself and shows the Stop Movie button.

There it is, there's the Blue button. Then when I click on this Blue button, it stops the movie playing and it changes back to the Play button. Now, you don't have to add buttons to control your video or audio files, especially if you use a poster image that makes it clear that you should click on it to start it playing. But sometimes having a button to trigger a sound or a movie is really helpful, so now you know how.

Show transcript

This video is part of

Image for InDesign Insider Training: Interactive PDFs
InDesign Insider Training: Interactive PDFs

30 video lessons · 11973 viewers

David Blatner
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed InDesign Insider Training: Interactive PDFs.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.