- We've been working a lot with static content, but nothing adds to an electronic publication or book like a video or other interactive content, and by adding that content into a pop-up using an MSO, you can really elevate the user experience by allowing them to view a video or check an online map. Let's get started with this. I've got a video on my page I wanna use. I've also got a little close button here, because I want the user to be able to make this video pop up and watch it and then close it up when they're done.
But I wanna add a little bit more of an effect to this. And I wanna do that by sort of dimming out the background so that the focus is really on the video itself. So the first thing I wanna do is grab my rectangle tool and I'm just gonna drag out a full page frame and let's just make sure we got that. I'll look up here and sure enough, it's 1024x768 in the control panel. And that's not really what I want yet, so let's just take a look in the layers panel here and you can see I've got a rectangle sitting here but it's on top of everything in this video layer.
So let's just grab it and drag it down and now we've got it under that, but that's still not quite what I'm going for. So let's go up to the Window, Effects menu and that's gonna bring up our effects panel and I wanna change the opacity so that this sort of just let's people see the background enough so that they know what's going on and it just leaves the focus on the video itself though. So let's drag this back down to about 70% or so and I think that's pretty good.
I can close up the effects panel now. Now, I need to group everything in this layer because I'm going to be creating a single state out of that so let's just come up and opt+click on this video layer and then I can just use the cmd+g keyboard shortcut to group everything. So, I've got pretty much my video state done, but I need something to get here, and I'm just going to create and empty button for that and that's gonna go over this text that's down here that says "Watch the video." So let's just drag out the rectangle frame tool and create a small little button down here.
Enough that somebody's going to be able to tap it without missing that text, and I'm going to go over to the buttons and forms panel and let's do what we've done several times already and convert this to a button. Now, just to refresh your memory, I can't really put a button with an action in it into a state, because I'm gonna lose that action, so there's no point in even going through that right now. So I'm gonna leave the button selected, and I'm gonna get my selection tool and I'm gonna shift+click on my group and that's going to allow me to have these two distinct objects selected, and you'll see that in the layers panel.
I have the button and I've got the group that is going to become the video. And I can even change this group name here and call it "Video" so that when I create a multi-state object out of it it will get that name for the state. So let's go ahead and do that, and we'll close up the layers panel, open up our object states panel and we can just click on the Convert Selection to Multi-State Object button at the bottom of the panel and there we go.
I've got my MSO, and we can see that, because I just had a button here, it went with state one, and that's really okay for this. And here's my video state, so let's click on that and take a look. Sure enough, there it is. But now we need to add a little bit more for our readers. So let's go back to state one, and I can actually just close that object state panel up and I've got what I think is the button selected and let me open up the buttons and forms panel and I don't have the button selected.
Why is that? Well, let's take a quick look. Let's open up the layers panel again, and let's take a look at what I've got selected. I really only have that state selected. I don't have the button selected. So, I can just come on down here and I can click on the little proxy here on the right side here next to button three, and now I've got my button selected. So, let's go ahead and close that up, open up the buttons and forms panel, and now I can add an action to that button.
And I'll click on the Add New Action button and I think what we're gonna do is change this up a little bit and we'll use the Go To State action. So let's click on that. And now you can see I've got a drop-down that's asking me what state I wanna go to, and I wanna go to that video state so let's go ahead and click on this drop-down and you can see that not only do I get the names of the states, I get a small little thumbnail as well so I can kind of identify it visually in many cases, so I'm gonna click on that, and that's pretty good for that state really.
There's nothing visible there for the user, but that button is gonna function properly. So let's close that up now. We're gonna need to select our multi-state object again and that's looks like a little bit difficult for me and the reasons is, is that I've got this static content going on in the background. So why don't we just open up the layers panel and lock that background layer, so that the only thing that we're gonna be working with is the content in this video layer that has our multi-state object in it.
So now I can pretty much just marquee anywhere and grab that multi-state object, and sure enough, I've got it selected. I can close this now and go back to the objects-states panel and move over to my video state. Now, I need one more button here, because I need to close this state up when I'm done watching the video. So let's just get this out of the way, and we'll do the same thing. I'm gonna draw another no-fill, no stroke rectangle using the rectangle frame tool, and let's just drag it out here.
Doesn't even matter if you're going over the video a little bit, because nobody is actually going to see this specifically. All their going to see is that artwork there for a button and again, we will convert this to a button using the buttons and forms panel. And I've got a button, and again I don't wanna add an action to it right now. I wanna get that button into the state first. So I've got it selected already. I can grab my selection tool and then just shift+click on the MSO itself.
I've got them both selected now, and I'm going to open up the objects states panel, and again I'm just going to add this to the visible state, because I've got the button and the MSO. I'm gonna get this choice to add the object to the visible state, so let's go ahead and do that. And now that button is inside of that video state. I can close this up. Now, I can probably try and just double-click to get that and let's see how I did here.
Yep, looks like I got the button, so I can add the action to it, and we're going to say "Go to state." and the first state in the MSO is always going to be the default that's going to show up there. So, I'm going to accept this one just the way it is and I can just close this up. Now I can test this out. I'm just gonna make sure I've got the MSO selected. I'm gonna select outside the page, and let's just marquee select to get the MSO again.
We'll open up the objects state panel and that's gonna give me that little button to launch the EPUB interactivity preview panel. So we'll just click on that. I'll move my cursor over the button and you can see that it changes from an arrow to a hand, and that gives me a visual cue that I can click on that area. So let's go ahead and click it and see what happens. And, sure enough, there's my video and it's nicely dimmed out here. I kinda like that, so we're just gonna leave that and click on the play button for the video.
And that's working quite nicely. And I can just close up this state now that I'm done watching this, and we're back to here. Now, what about DPS? How's that gonna work? Let's close this up and just make sure that it works there also. I'm going to open up the folio overlays panel and let's just click on preview. Preview on desktop. And the content viewer launchers and let's see what we get here.
Now, you're not gonna get a cursor changing with the Adobe Content Viewer. You're just gonna have to go with it and know that the button is there, so let's just click and see what happens. And sure enough, that works nicely. I'm gonna tap the video to get it to play. And that's working as well. We can click here to close up that state. And that's it. It looks great in EPUB and DPS, and by adding that level of interactivity, your readers will get an experience they could not possibly get in a printed version.
- Working with the Object States panel
- Creating content for basic multistate objects (MSOs)
- Using layers and pages to create MSOs
- Adding and removing states
- Adding content
- Adding objects as states
- Controlling MSOs with buttons
- Using MSOs for interactive content
- Nesting MSOs