(cymbal swell) - Welcome back, now that you've completed the MSO it's my turn to do it. Let's see how your solution compared to mine. The first thing that I needed to do is create buttons for the navigation, so let's go ahead and do that. I'm gonna use the rectangle frame tool to just draw out some no fill, no stroke frames. I'll do one for San Francisco, one for Mammoth Lakes, one for Los Angeles, one for Palm Springs, and finally, one for San Diego.
Now they don't have to be the exact size, and they don't have to be in any real exact position, so this is good enough for what we're gonna do now. Let me get my selection tool here and I'm just gonna get all of these frames selected here. And four and five, finally. Now I'm gonna use the Buttons and Forms panel to convert these to buttons. So far so good, now I'm not gonna add the actions yet because they'll just get lost when I put them into each individual state, so let's just close this up for right now.
As long as I've got them all selected, I'll use the cmd+g keyboard shortcut to group them. If you recall earlier on, we saw that trying to paste these buttons into individual states without grouping them had them kind of moving around on us, so grouping them seemed to fix that, so that's what we're gonna do. Now I need to get this group of buttons into each state. So I'm gonna cut it to the clipboard using the command+x keyboard shortcut, and now with that on the clipboard I can select the multi-state object.
I can open the Object States panel and I'm just gonna pull it out here so we can see it. We have the Paste copied objects into selected sate option available to us. So we're gonna do that for each state. Let me go right ahead and do that for the first one. And those are in there. Let's go to San Francisco now and let's do the same thing again. L.A., one more time. Mammoth Lakes.
One more. Palm Springs and finally, San Diego. Okay, that's great. We've got our buttons in place, but now we got our work cut out for us because we've got to add the Go to State action to each one of them. Let's go back to our first state and pull out our Layers panel because that's gonna be where we're gonna find the easiest way to select items. Let's go ahead and expand this, and expand it one more time, and finally, we're at the Start state and I can expand that.
Now here's the group that has the buttons in it, so let's just click these one at a time and you'll see them highlight. I know that's San Diego, so here's where I need to open up my Buttons and Forms panel and start to add actions to these. Let's go ahead and pull this out, and we'll just put it over the Object States panel while we're working on this. I'm going to use a Go to State action for this. I'm gonna click on Go to State and because those buttons are already in this MSO, the only MSO I'm gonna be able to select is Explore California.
I want this button to go to San Diego and there we go. Let's go back over to the Layers panel and let's add a Go to State for Palm Springs. Keep on going here. We'll add Go to State and choose Los Angeles. Next up, is Mammoth Lakes.
And finally, San Francisco. Okay, that's great. We've got this state done. Let's just get this out of the way so we can see our Object States panel. Now we need to get back to the MSO itself, so I've got to find it and we can just. Let me move this out of the way here? I'm having a little trouble selecting it myself. So let me just come back up here and do it the easy way and select it.
There we go. Let's get to the next state, which is San Francisco. We're gonna need to do this all over again. Let me get the Buttons and Forms panel out of the way, and let's just get down to that group where the buttons are and let's just select the first one. That is Go to State for San Diego, and we'll click on Button 109 and see where that is and that's going to be Palm Springs.
108 seems to take us to Los Angeles. And 107 is going to go to Mammoth Lakes, and finally, we're going to Go to State for San Francisco. And now we get to do that all over again with the next state, so we'll just come back up here and grab Explore California so I've got the MSO highlighted.
Let me just pull this down a little bit so you can see that and now it's time to do L.A. Alright, so I'll just pull this out and away to fix that. Okay, that's a little bit better. And as you can see this can get a little complicated when you're working with multiple panels and all these buttons, but we'll get through this. Alright, so let's see what we've got here now. Let's get down in the Layers panel, back to our buttons and we'll expand that group.
We've got, let's see, San Diego highlighted. So this is Go to State, San Diego, and let's see our next button is Go to State, and we will pick Palm Springs. Next up is Los Angeles, and Mammoth Lakes, and last, but not least, San Francisco, so we're getting there.
Let's just get our MSO selected again and we're halfway through here, so let's go to Mammoth Lakes and let's take care of the buttons in this state. Go back over to my Layers panel and expand this state and here's the group with the buttons right on top. Let's just go through here and select them. Add our actions again. We'll Go to State and choose San Diego and come on back here and get Palm Springs in there.
Get the next button, and get Los Angeles in there, and Mammoth Lakes, and finally, San Francisco. Okay, we are definitely getting there. Let's get that MSO selected again and get to Palm Springs. Again we will expand that.
Find the group with the buttons. We're gonna do it all over again, so let's just select that first button and add the Go to State action for San Diego and then, Palm Springs, and Los Angeles, and Mammoth Lakes, and finally, San Francisco.
Okay, again let's get the MSO selected, and let's go to San Diego which is our last stop. And let's see where we're going to go. We're going to go back to the Layers panel and let's get this state expanded so we can see the group with the buttons and let's just do this last set of buttons, so I've got the first one chosen here. That of course is San Diego.
We'll get the next one which is Palm Springs. Next up is Los Angeles. Mammoth Lakes, and finally, San Francisco. So, we now finally have all these buttons in place and I will remind you one more time about that great Object States assistant extension.
We would've had this done in a whole lot less time had we had that available to us, but it's important that you understand how to do this even without third-party plug-ins, so now that we've got the buttons in place, the next part of this challenge was to change the appearance of each of those pins so that you could see exactly where we were on the map without even looking at the city that was spelled out. Let's take a look at the way that I'd like to accomplish this.
Again, we're going to need the Layers panel. I've got the group of buttons here and we'll just stick with San Diego and work our way up this time and I don't need the buttons because I'm done with those, but I've got a group here called pins so let's open this up and you can see we actually did rename those groups earlier so that we'd know where we were going with this and let's just see where we are. We're at San Diego, so I wanna find the San Diego pin and let's just expand that and you can see that that group consists of an oval and a path, so let's select the oval and sure enough, I've got the oval selected down here and if you can't see that it's highlighted right down here.
I'm gonna open up my Swatches panel and let's just go with this orange color here for the fill for that. Okay, I think that looks great, and we can go on to the next one. So let me just get the Buttons and Forms panel out of the way here and I can even get the Swatches panel out of the way for right now. Let's just get back to our MSO and now we'll just go up in order and let's go to Palm Springs, and again we're gonna need to expand this.
Let's open up the pins group and let's find Palm Springs and sure enough it's right here. Let's select that oval here and open up the Swatch panel and get that orange color in there. Okay, let's move along to the next one, which is Mammoth Lakes. Let's expand it in the Layers panel. Let's get down to the pins, find the one we're looking for. Let's click on that oval. Open up the Swatches panel and go right ahead and color that one in.
So let's go to Los Angeles now. Again, the Layers panel is going to help us out. Let's open up the pins, find L.A., expand that, select the oval, and open up the Swatches panel and color that one in as well. Now let's go to San Francisco. This one was already done for us, so we're good to go. At this point, the last thing we need to do is test this out and make sure it works. So let's just go right to the bottom of the Object States panel and open up the EPUB Interactivity Preview panel.
Okay, let's see how we did here. Let's pick this city. Let's just go for Los Angeles and well, that's a good sign right away because the cursor has changed, and I'm gonna click on that and look at that. I've got the highlight here. Everything seems to look okay. Let's just try to get to Mammoth Lakes from Los Angeles, and well, that was pretty quick and easy. How about if we try San Diego? That's working.
Finally, let's take a look at San Francisco. So, everything seems to be working. I hope everything worked out as well for you. That's it. I hope you had a lot of fun with this challenge and I hope you learned a little bit along the way as well.
- 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