Create Dynamic FLV Player in Flash - getW3Help.com - Free Web Tutorials and Resources
getw3help.com
 Subscribe
Enter your email address:
 Web Development
 HTML
 Javascript
 PHP
 Graphics & Multimedia
 Flash / AS
 Fireworks
 Illustrator
 Archives
 May 2008
 June 2008
 July 2008
 September 2008
 October 2008
 November 2008
 December 2008
 May 2009
 Share Us
RSS Feed  

Add to Google Reader or Homepage
Subscribe in NewsGator Online
Add to My AOL
 Latest Tutorials and Resources
Create Dynamic FLV Player in Flash
May 27, 2008 - By Makubex
9 comments
  Share on Facebook     Share on Digg     Share on Del.icio.us
In this tutorial, you will learn how to create dynamic FLV player in Flash. The FLV file URL will be passed to the player in the embed code with the help of FlahVars.
Flash 8



Output:




Download Source File

Step 01: Create a new flash document and save it as "flvplayer.fla"

Step 02: Click Window and select Components (or) press Ctrl + F7 to open the Components panel.



Step 03: In the Components panel, locate FLV Playback. Click and drag it to the board.







Step 04: Resize the FLV Playback component to your desired dimension.

Step 05: Left click the FLV Playback component, open properties panel (Ctrl + F3).
Give "flv" as the instance name to the component.




Step 06: Now click the frame at the top and open the action script panel, press F9 to open it.



Ste 07: Copy and Paste this action script code in that frame:



flv.contentPath = flvurl;



Step 08: Your FLV player is ready, Now we need to make use of FlashVars to pass the flv file URL. FlashVars are used in the PARAM tag in the embed code.

Step 09: Create a HTML page in the same location of the flvplayer.fla and save the HTML page as flvplayer.html

Copy and paste this code in that HTML page:



< embed src="flvplayer.swf" flashvars="flvurl=movie.flv" type="application/x-shockwave-flash" height="290" width="300">< /embed>



Step 10: In the above code, change the value of the flvurl variable to the the location where your FLV file is located.

- End of Tutorial.

Labels: , , , ,

 Comments

Post a Comment

i find this tutoriol realy nice and easy one. i never thought creating a dynamic movie is is so easy. thanke


but i have question...
what if i have more then one flv file to play dynamically one by one plz solv this prob.


thak you onecagain

By Blogger mahatab, at May 29, 2008 1:05 AM  

I think you should make changes in the FLV player itself. I will do some search on this issue, and post a good tutorial soon on your question.

By Blogger makubex, at May 29, 2008 4:07 AM  

Very nice! I used 3days to search for this solution!

Thanks mate!

By Blogger Olav, at June 15, 2008 5:40 AM  

flv.contentPath = flvurl; works in Flash9? I cannot find the way to make it work to take advantage of the full screen option template

By Blogger guillermo, at August 26, 2008 7:54 PM  

Spent a few hours on an different, older tutorial that left me scratching my head. This one worked exactly as planned. Thanks for sharing.

By Blogger asdf, at September 3, 2008 8:49 AM  

in AS 3.0 flv.source = flvurl

By Blogger Jakub Nerad, at February 18, 2009 1:12 AM  

hi, your tutorial helped me a lot. i would like to know how can i add total time/ time remaining in this video player.

vineet

By Blogger vinweb, at March 4, 2009 7:18 AM  

Simple and very useful

Thanks!

By Blogger Tass P, at March 24, 2009 9:56 AM  

I tried this and it doesn't work. I also downloaded the source files and that doesn't work either.
Please help

By OpenID davidadelsberg, at May 5, 2009 11:53 AM  


 Recent Tutorials
 Cartoon Cloud Animation in Flash
 3D Hammer using Illustrator
 Create Simple Animation in Flash
 Creating Simple Button in Flash
 Contact Us
 Privacy Policy
 Recent Comments
 Links
1. Webmaster Directory
2. Mini Pixel Icons
3. Photoshop Resources
4.
5.

6.
7.
8.
9.
10.

Your link here

Contact Us | Privacy Policy