Skip navigation
Currently Being Moderated

Dreamweaver SWF Problem

Dec 3, 2012 7:04 PM

Tags: #flash #dreamweaver #swf #coding

I am a relatively new Flash/Dreamweaver user and cannot seem to figure this one out.

 

I have checked my root files and *believe* all of them are pointing to the correct files, but for some reason my .swf is not loading in any browser; only locally.

 

The .swf doesn't show up on its own (ie: at http://www.5enses.eu/Index_.swf), which is odd. I heard it might be a path problem, but I have no idea how to fix it.

 

The site is:

http://www.5enses.eu/Index_.html

 

Code is:

_____________________________

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>

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

<title>5 | FASHION/ART | FRAGRANCE | MUSIC | CUISINE | SEX</title>

<style type="text/css">

html, body { height: 100%; padding: 0; margin: 0; }

table { text-align: center; height: 100%; width: 100%; border: 0; }

</style>

</head>

<body>

<table>

<tr>

<td>

 

 

<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1200" height="800">

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

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

  <param name="wmode" value="opaque" />

  <param name="swfversion" value="15.0.0.0" />

  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->

  <param name="expressinstall" value="Scripts/expressInstall.swf" />

  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->

  <!--[if !IE]>-->

  <object type="application/x-shockwave-flash" data="Index_.swf" width="1200" height="800">

    <!--<![endif]-->

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

    <param name="wmode" value="opaque" />

    <param name="swfversion" value="15.0.0.0" />

    <param name="expressinstall" value="Scripts/expressInstall.swf" />

    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->

    <div>

      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>

      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.g if" alt="Get Adobe Flash player" width="112" height="33" /></a></p>

    </div>

    <!--[if !IE]>-->

  </object>

  <!--<![endif]-->

</object>

<script type="text/javascript">

swfobject.registerObject("FlashID");

</script>

 

 

</td>

</tr>

</table>

</body>

</html>

 

_____________________________

 

 

My swfobject_modified.js and expressInstall.swf are both uploaded under a Scripts folder and loose in the root directory.

 

Thanks for your help!

 
Replies
  • Currently Being Moderated
    Dec 3, 2012 7:25 PM   in reply to wasp-nesser

    I believe your Flash movie depends on a FLV file that it can't find.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 3, 2012 7:44 PM   in reply to wasp-nesser

    The Flash movie is on the page but is not rendering.

    There was a recent thread on here with same problem.

    http://forums.adobe.com/message/4890850#4890850

     

    Saving the swf file to my desktop and playing with flash player gives this

     

    flv.jpg

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Dec 3, 2012 8:08 PM   in reply to wasp-nesser

    Have you removed the index_.html file from the location you originally posted at?

     

    -ST

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Dec 3, 2012 8:25 PM   in reply to wasp-nesser

    What is also happening is your HTML code has Flash version 15.0 - it doesn't exist.

     

    Lines 20 & 29:

     

      <param name="swfversion" value="15.0.0.0">

    Comment/ Remove these 2 lines.

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Dec 3, 2012 8:31 PM   in reply to Sudarshan Thiagarajan

    It works now. I see you've change swfversion to 10.0.0.0:

     

    Screen Shot 2012-12-04 at 10.01.11 AM.png

     

    -ST

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Dec 3, 2012 8:47 PM   in reply to wasp-nesser

    The screenshot I posted earlier was taken from Firefox. I use FF.

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Dec 3, 2012 8:48 PM   in reply to Sudarshan Thiagarajan

    Also, I noticed clicking on the SWF takes me to http://5enses.eu/home.html

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Dec 3, 2012 9:10 PM   in reply to wasp-nesser

    Glad to hear that. The version number was the culprit - leading to the Adobe website for update to Flash player. Since 15.0 is non-existant, every user would have been re-directed to the Flash Player update page.

     

    Well regarding the load time, have you considered using a pre-loader to your Flash document?

     

    Also, if your goal is to play the FLV video only, why use a SWF file to embed that? Why cant you use a FLV player such as JW Player? Or even better, have you thought of using a HTML5 video player such as VideoJS? You do know that Flash is not supported on mobile devices right? You don't want to alienate your handheld visitors - which is why I'm suggesting you use a HTML5 video player. Let me know what you think.

     

    -ST

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Dec 3, 2012 10:07 PM   in reply to wasp-nesser

    Publish Settings in Flash when you're exporting the SWF:

     

    Screen Shot 2012-12-04 at 11.27.40 AM.png

     

    Under HTML wrapper settings as shown above:

     

    • Size should be 'Percent' at 100 width and 100 height
    • This will make the entire area of browser a wrapper for holding your flash SWF
    • Now, the important part: Scale & Alignment: I've opened the drop-down menu in the screenshot:
      • Default (Show All) will fit the SWF movie to screen, keeping the aspect ratio intact - but will leave white space on either sides, if your screen's aspect ratio and the SWF aspect ratio don't match - scales when browser resizes
      • No border will fit movie to screen, but will bleed the borders with the stage color you set in Flash and may crop the content sometimes - scales when browser resizes
      • Exact Fit - Shows complete content to occupy full screen width & height and doesn't maintain aspect ratio - may cause stretching - scales when browser resizes
      • No Scale - doesn't scale movie to full screen - container will be 100% width & height but SWF shows at exact stage size - doesn't scale when browser is resized

     

    To read more about HTML Wrapper Publish Settings for Flash, look here: http://help.adobe.com/en_US/flash/cs/using/WSd60f23110762d6b883b18f10c b1fe1af6-7bd1a.html#WSd60f23110762d6b883b18f10cb1fe1af6-7bcca

     

    -ST

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Dec 4, 2012 7:11 PM   in reply to wasp-nesser

    You're welcome Wasp!

     

    Good luck.

     

    Happy to help

     

    -ST

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points