Unable to view swf on web server but works locally

Posted on 2008-11-18
Last Modified: 2012-05-05
I have created an html page (test.html) and have inserted a flash video (fernartsandcrafts.flv) into it using insert > media > flash video.
I have selected the progressive download option.
When i preview test html locally it plays fine but when i open it on the webserver it displays nothing.  My html file code is shown below.
I have added the MIME extension .flv and content type video/x-flv to my web server

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

<html xmlns="">


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

<title>Untitled Document</title>

<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 onload="MM_CheckFlashVersion('8,0,0,0','Content on this page requires a newer version of Adobe Flash Player. Do you want to download it now?');">

<script type="text/javascript">

AC_FL_RunContent( 'codebase',',0,0,0','width','250','height','188','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=FernArtsandCrafts&autoPlay=true&autoRewind=false','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="250" height="188" 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_1&streamName=FernArtsandCrafts&autoPlay=true&autoRewind=false" />

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




Open in new window

Question by:Viewbiz
    LVL 15

    Accepted Solution

    have you uploaded the flv fernartsandcrafts.flv to the server?

    Author Comment

    Yes - i have uploaded the fernartsandcrafts.flv to the server along with the FLVPlayer_Progressive.swf and the Clear_Skin_1.swf.  I also have the scripts folder containing the AC_RunActiveContent.js. It is structured exactly as it is on my machine locally but doesn't run on the web server???

    Author Comment

    I have worked out what the problem was!  Because i was testing this on a sub domain the file paths needed to be changed to cater for the extra level of folders on the web server.

    Thanks for you help anyway.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

    728 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

    17 Experts available now in Live!

    Get 1:1 Help Now