playing a swf file in HTML web page using a combobox

Posted on 2005-05-09
Last Modified: 2010-04-09
Hi this is my first post in this forum,  so hello to all, i am really new to all this HTML stuff, it's great though!!!

i am trying to create a single web page that has a combo box on it....with the full list of video's i want to be able to play...

i also want to have the flash player....

can someone please advise me how to set this up.

i have no idea how to :

1) get the film to play
2) film to change when the user selects a differnet option.

any tips or advice would be much appreciated

web set up:

Root --->VideoPlayback.html
Video Folder Contains --->Log on Tutorial 1.swf
                                  --->Players Database Tutorial 2.swf


Question by:chimp_8471
    LVL 2

    Expert Comment

    What are you using to write the HTML code? If you have Dreamweaver, this is a cinch.

    Author Comment

    yes it is dreamweaver mx

    you say a cinch!!!!

    i say ouch!!!

    LVL 2

    Accepted Solution

    Some question for you:

    1) DO you have Flash MX 2004 Professional?
    2) Sorenson Squeeze ? If you don't have Squeeze, then you can use Wizard that is built in Flash for to encode but the encoding option is not as flexible as Squeeze.
    3) Are your SWF movie files come from .mov, or .mpeg, etc?
    4) Do you have Toast?
    5) How many MB are your SWF files?
    6) Flash Video Kit from Macromedia?

    There are many factors you need to consider before implementing videos. If you don't have any of these mentioned above, then it is best probaly embedding the .mpeg or .mov into your HTML file in Dreamweaver. See this tutorial . If you don't have these softwares monetioned above, it is better using progressive download with quicktime file method because at least the user will see something while your movie file downloads meanwhile embedding SWF, you have no way of knowing how much is being downloaded.

    But if you have the softwares mentioned above, then I can explain the process using these softwares.


    Author Comment


    2) No but will by the end of today :)
    3) i created them using Captavia... screen grabbing video maker, it saves them as SWF, but i have also converted them to mpg so to answer your question ....both.
    4) have no idea what this is.... let me know and i will try to give you a better answer
    5)Maximun 2mb.... i don't think they will be that big...
    6) nope but will get

    so lets assume i have the items...... :)

    thanks foryour help here..

    LVL 2

    Expert Comment

    Here is a most basic way to build what you are asking for. And there many different ways, but since you are starting out, this will give you a good basis. Here is a suggested workflow for you.

    1) Use Captavia to capture your footage
    2) Export the footage as MPEG
    3) Use Toast it ( ) or do a google search for a cheaper MPEG TO DV file converter to convert the mpeg to DV file.
    4) Use Sorenson Squeeze to convert DV file to FLV. Here you can set the compression to modem, 256K, 384K, etc depending on your audience. You should play around here for quality in the preview window.
    5) In flash, open up the COMPONENT pallette and look for the MediaPlayBack  and drag it to the stage.
    6) open up the COMPONENT INSPECTOR pallette. Make sure you are on the PARAMETERS tab. Here it is self explanatory. Fill in the values as needed. In the URL area, type in the path to your FLV file and the FLV file name.
    7) Test the movie.
    8) If you have 3 movies, then create 3 HTML files in Dreamweaver to its corresponding movies by embedding the corresponding SWF files. Make sure the path structure is maintained.
    9) Instead of radio buttons, I would suggest using links instead to get to the movies. You can design the page however you like.

    Give it a whirl.
    LVL 2

    Expert Comment

    And if you are planning to purchase the Macromedia's video kit for Dreamweaver, check out this article.

    Expert Comment

    well you could use is fairly easy..i will write out a script for u ok?
    LVL 12

    Assisted Solution

    I used something called SwishVideo to convert my .wmv to a .swf file.  SwishVideo also creates an .htm file that is used to contain and show the flash video.  So, you'll need to ftp both files to your host, and reference the .htm in your page code.  

    But, in your case, since you already have the .swf file, you could (theoretically) just create the 'container' html file with a reference to your .swf file along with it's width and height.

    You can get a copy of SwishVideo from:

    Also, you can see an example at:

    Just click on one of the video clip links at left...


    Featured Post

    Course: HTML5 Mobile App Development with PhoneGap

    PhoneGap can help you leverage your already existing HTML5, JavaScript, and CSS skills in order to create and deploy cross-platform mobile apps.This program comprehensively covers HTML5 mobile app development from top to bottom.

    Join & Write a Comment

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    "I want to put my photos online, but I don't want them stolen.  What settings should I use?" When You Put Photos Online First and foremost, any digital file published on the WWW can be copied, stored, modified, retransmitted, etc.  Remember Naps…
    In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now