09. Add Flash Player Controls To Your Video
In this quick tutorial I will show you how to convert a video to flash and how to add player controls enabling the full-screen option. You will need Adobe Flash to follow along.
here is an example for the video player controls
My Other Templates:
After Effects Text Tutorials of the video
I’m Gyorfi Szilard, from Bluefx.net. In this short tutorial, I’ll show you how to add Flash player controls to your video, and enable the fullscreen option on it. So, just like on this video, you have this nice Flash control, you have the Audio control, and you have the fullscreen option. First, let’s create the folder. I will name it Video. Now, let’s open up Adobe Flash, create a Flash Action Script 3 file – you can also make a Script 2 file – and save this Flash file in the folder we just created. I’ll name it Video, and hit Save. This step is really important, because Adobe Flash will export, and put all associated files into this folder.
The next step is to add in the video. I’ll just drag and drop one of my videos here. When this screen appears, just hit Next. We’re going to encode the video file; let’s use the 12 VP-6 codec. For the quality of the video, I would go up to 800 or 900 kbps, but you can go lower to make the video load faster. In the Audio, you can leave it at 96kbps, or go up to 128. Click Next. Here, you can choose a scheme – there are a lot to choose from, but I like this one, in the middle. Change the color here. I would leave it at black – I like it that way. Click Next, Finish, and we’ll wait until the encoding finishes.
Now that encoding is done, you will see the video in the Flash composition. The Flash video, with the player controls, is now much bigger than our stage, which is 550×400, and if you click on the video, you can check its properties. It’s 800×450. We need to make the stage larger, so click away from the video, and let’s set the size of the stage to the size of the video: 800×450. Sometimes the controls will make the video larger, and you’ll need to adjust its height – so let’s say 800×460, and the framerate is 30 fps, so let’s change that, too. Hit OK, and let’s see what happened. We still have a small white line at the bottom. Let’s set it again, to 800×450. Now sometimes, your video may not be exactly in the center of the stage, so you’ll need to adjust the X-Y coordinates to 0, and then it will be in the center. You can also change the background – let’s use black. Hold down Ctrl+Enter to preview the video: It plays fine! Great.
Let’s see the fullscreen option. To make this file work in fullscreen, you will need to go to File—Publish Settings, and in the HTML tag, select Allow Full Screen. Click Publish, and hit OK. Now, let’s open the folder we created. Here, you will see all the components – this is the actual video layer, and these are the other components the Flash player uses. You will need to start with the .html file, and you can see we have a black background with our player controls, and if you hit Fullscreen, it jumps out to fullscreen. When you preview your video in Flash, by pressing Ctrl+Enter, it won’t work; it only works from the HTML document. When I opened this HTML file, the video was in the top-left corner. We can correct this by opening the HTML file in Dreamweaver, like this. We’re only interested in the design, so select that. We can see that this is the Flash component, and it is in the top-left corner. So click here, near the Flash component, but don’t actually select it, and press this Align to Center button. And we can go up here and press Enter a couple times, so it isn’t at the top of the page. Hit Save. And if we look at the HTML document, we’ll see the video is in the center of the screen, and not directly at the top.
Thank you for watching! Follow my new updates on Twitter: Go here and click Twitter, or go to www.twitter.com/bluefx, and you’ll always see my new tutorials and free projects. Thanks again! This was Gyorfi Szilard from Bluefx.net.
Popular Files










Hello Gyorfi. Thanks for the tutorial! I noticed in the sample video, your background has boucing particles. How did you do this effect? Can you teach me?
Hussin
UK
Hey Hussin, thanks for the comment. The video is actually a template of mine that I sell http://bluefx.net/store/#id=album-11&num=448 . So I cant really tell you how to create that
but if you have other questions or effects that you like please let me know and I could create a tutorial about theme.
Update on the tutorial:
Frank Verni http://www.linkedin.com/in/verni
sugested this solution to skip using Dreamweaver:
To center your video in the browser, you can skip using Dreamweaver (or any HTML program you may have) and simply open the the html file in any plain text editor such as notepad.
- Scroll down from the top to where toy see the tag.
- Hit the return key to enter a new line after the body tag, and add the center tag like so:
- Scroll down to the bottom of the html code and look for the closing body tag, which looks like so:
- Add a new line above this, and add your closing center tag:
Save your html document.
That’s it.
Dreamweaver has been lately my goto program for years. I really do not know what I would do without it. There were periods when I initially begun making use of the program, and I believed it was way too complex. Now I fly around it, and it has turn out to be a strong asset in my tool box. At any rate thank you for the content.
Szia. Nagyon jók, és hasznosak a tutorial videók.
Köszönöm.
Üdv: Máté
Koszi Mate, orulok hogy tetszenek. Terben van meg par tutorial video
Én is profi szinten ?zöm a Modesign-t. Ha érdekelnek amunkáim, keress fel a Mailemen. Vagy msn-en cacha@vipmail.hu
Hi Gyorfi,
Thanks for your great site & templates.
Can you tell me how to add a “SKIP” button to one of your AE templates to skip movie playback and send visitors to the site homepage.
Thanks !
Thanks! I am glad that you like our site and templates.
Not sure ho to add the skip button, flash is not my strongpoint, sorry
No problems, I found this:
http://www.youtube.com/watch?v=mgXxTZwm1UY