Flash video not showing up in a simple HTML page

Posted on 2009-04-16
Last Modified: 2012-05-06
Hello! I've created a basic html page in an attempt to embed a Flash video file.

The flv file, the swf file and progressive player swf file are all uploaded on the web server. But the video just doesn't show up. The permissions on these files are all set to 755 since I thought it might be a permission issue. Guess not. Also, flv is setup as a MIME type on the server.

I tried to add this video by going through the insert menu in Dreamweaver. I just can't figure this out. Any and all help appreciated!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>B.E.S.T. Living Online</title>

<style type="text/css">


body {

	font: 100% Verdana, Arial, Helvetica, sans-serif;

	background: #666666;

	margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */

	padding: 0;

	text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */

	color: #000000;


.oneColElsCtr #container {

	width: 46em;

	background: #FFFFFF;

	margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */

	border: 1px solid #000000;

	text-align: left; /* this overrides the text-align: center on the body element. */


.oneColElsCtr #mainContent {

	padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */




<script type="text/javascript">

function MM_CheckFlashVersion(reqVerStr,msg){


    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);

    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);

    if (!isIE || !isWin){  

      var flashVer = -1;

      if (plugins && plugins.length > 0){

        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";

        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;

        if (desc == "") flashVer = -1;


          var descArr = desc.split(" ");

          var tempArrMajor = descArr[2].split(".");

          var verMajor = tempArrMajor[0];

          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");

          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;

          flashVer =  parseFloat(verMajor + "." + verMinor);



      // WebTV has Flash Player 4 or lower -- too low for video

      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");

      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);


      if (flashVer < reqVer){

        if (confirm(msg))

          window.location = "";






<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>


<body class="oneColElsCtr" onload="MM_CheckFlashVersion('7,0,0,0','Content on this page requires a newer version of Adobe Flash Player. Do you want to download it now?');">

<div id="container">

  <div id="mainContent">

    <h1 align="center">Where's my video?</h1>

    <p align="center">

      <script type="text/javascript">

AC_FL_RunContent( 'codebase',',0,0,0','width','640','height','480','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=media/BestLivingOnline&autoPlay=false&autoRewind=true','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','','movie','FLVPlayer_Progressive' ); //end AC code

</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,0,0" width="640" height="480" id="FLVPlayer">

        <param name="movie" value="FLVPlayer_Progressive.swf" />

        <param name="salign" value="lt" />

        <param name="quality" value="high" />

        <param name="scale" value="noscale" />

        <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=media/BestLivingOnline&autoPlay=false&autoRewind=true" />

        <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=media/BestLivingOnline&autoPlay=false&autoRewind=true" quality="high" scale="noscale" width="640" height="480" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="" />        



    <p>You should be able to see a video just above. But it's prolly not working. :o)</p>

  <!-- end #mainContent --></div>

<!-- end #container --></div>



Open in new window

Question by:Don_Pendergraft
    LVL 70

    Accepted Solution

    Hi Don,

    You're missing one file:

    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

    When you embed Flash in a page using Dreamweaver, a new folder (Scripts) is created at your public site root and the AC_RunActiveContent.js file is placed there.  You also need to upload that folder and file (as well as the Flash files) to get it to work.


    Author Closing Comment

    Genius! So simple too. Thank you for your help. Much appreciated!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
    There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    759 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

    13 Experts available now in Live!

    Get 1:1 Help Now