Viewers: in countries Watching now:
Let me open this thing up. And if you take a look, you are going to see that I have got kind of a simple SWF here that has the FLV playback component in it, and all it's going to do is play a video. That's all I wanted to do. Now the cool thing about the story is in the SWF when I created this file in Flash, I put an action on the first frame and I put a little bit of ActionScript code in there, which created two variables. So what this is ultimately going to do is it's going to make it where we are going to have an FLV up in the web server that I have already loaded up there, and we are going to make it so that if they are connected to the web, it will do that one.
It will actually play that one within the PDF file. It will stream it. And if they are not connected to the web, it will use this one right here called Chocolate. That's embedded in the file, and it's a relatively small file, 4MB, but anyway we'll put it in there. So we are going to insert the Flash file, the SWF file right now, and kind of get things set up. So we are going to use what's called FlashVars or FlashVars, however we want to pronounce it, and this allows us to use FlashVars field to add ActionScript variables to the file. So I'm going to come under Multimedia here with this PDF file opened, come to the Flash tool, and I'm going to double-click.
So it scales it, puts it in 100%. I am going to go find that file. So I'll click on Browse, and I can see it's called Multi version, it's a SWF file, we are not going to put an FLA in here. So that's the original file. So I'll click Open. Now we are going to go down and Show Advanced Options, click Show Advanced Options, and we have got some things we can do. We can make it, once you're activated, as soon as the page is opened, and that's what I really want to do here. So if you come to pages visible, how about that? And I wanted to stop playing when somebody gets off the page.
So the page is not visible. We can play it on the page or we can play it in a floating window. If you really want to do that, you can. It's kind of cool, puts in the box that floats out there. You can set a width and a height for that floating window if you want to. It won't pull it from the original file usually. One of the big things we want to do is I want to make it a transparent background. So if you insert let's say SWF files, you want to make sure that you select this, because wherever you see the stage itself in Flash, it's going to become transparent. Otherwise, you'll see like a white background, or if you set the background yourself.
So if I come to border width here, I can set the border as well. Let's say Thin maybe. And it will retrieve the poster from the media itself. We could also run with a poster from any kind of picture file within reason. So I'll click OK. Now there's a couple of things we need to setup here for this to work. I could have done it right then, but I didn't. So if you guys come up to the toolbars up there, right-click or Ctrl-click, we are going to come to Advanced Editing, we are going to edit this thing. Now if you have the Flash also selected, we could go out there and get to the Properties, but typically I come to the Select Object tool, come on out to this piece, and double-click on it to open up the Properties again.
If you take a look, you are going to see Resources. Now we could have done this when we placed it, I just wanted to get it on the page. The Resources are all the files necessary to run this SWF to get it to work. So we can add them independently or we can add an individual directory if we wanted to. I am going to click add and what we need to do is we need to insert the FLV and the Skin here. This is the skin for the player. I Ctrl-clicked on Windows or Command-clicked on Mac to get those. You can see there they are. They are going to be embedded eventually. I'll click Flash tab here, you are going to see that we have the ability to pass the context menu to the Flash Movie if you want.
Now by default, there is an Adobe or an Acrobat Context menu that shows up saying like, Disable Multimedia or something like that. If you have developed using ActionScript your own, or Context menu, you can pass it by selecting this. Now we are going to setup our Flash first. Like I said, I created two variables in the ActionScript and now we are going to tell them what they are. So we are passing them here. The variables themselves are online. This is the first one. So we are going to tell, if it's online, we are going to do a check here. I'm going to go up to the server, and typically when you do this yourself, if you decide to go with something like this, you are going to take a video and you are going to post it up there yourself.
So I'm going to put this FLV. Now this is the FLV playback component so it is going to require me to do FLV right now, which is fine. I'll also set my next variable here, and I'll say if it's offline, we are going to use this video that's embedded called Chocolate.flv. Now this may not make sense to you. You are going to see I have got two movies here that are different names. I'm going to prove a point here. I'm trying to say we have got a Cocoa up online, and we have got this one embedded. It should play the Cocoa version if I'm online, and if I'm offline it will play this one.
Typically what you do is you may have up online a high res version, maybe an H.264, awesome great looking video that you want to be able to stream into the PDF, and then this one offline may be kind of a lower res version that doesn't look as great, smaller file size, and it's embedded. So that's all I'm trying to get across here. So I'll click OK, I'm double-checking all its syntax. Everything I got out there. Looks good to me. Click OK, and we'll test it out. So if you come to the Hand tool. You are going to see we got the border and you got the played activated there.
Now I can still click on it, or I can go to the next page. To go to the next page by scrolling down, and then scroll back up, I'm using the scrollbar on the right, and there we go. It's playing the Cocoa video right now. Let's take a look. Hovering over, I can see this is part of the FLV playback component. This is the skin that came with it. So you can still play, you can pause, you can do different things with it. If I was offline right now, if I turned off my Internet, let's say it should play the internal video. Now if you played this thing, you may have gotten a warning the first time you played it saying it's going to play this thing, do you trust it as a trust? So you can take a look here and see that we can pass variables, and make it so that if you know ActionScript and you've got a lot of skill in that area, you can take a SWF file, bring it in, and do a lot of different types of interactivity between the PDF and the SWF file.
It's just a really simple example, and it's kind of a passive example if you will. So I would take a look in Adobe's website, you can see that there is an Acrobat 9 SDK up there and it's got lots of different things, to talk about related to ActionScript, and kind of how to get this to work, to do a lot of really cool things.
Find answers to the most frequently asked questions about Acrobat 9 Pro: Creating Multimedia Projects .
Here are the FAQs that matched your search "" :
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.