View Full Version : Streaming a Movie

01-27-2009, 11:35 PM
Hi All,

I am trying to do what I think should be fairly simple (although its proving to be very frustrating)

I am trying to embed a Flash Movie into my site and having play when the page is loaded. Sounds simple but I just cant get it to work ....

After much frustration I tried just embedding it with DreamWeaver, then uploading it to my site....

here is the HTML:
<body><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="653" height="480" id="FLVPlayer">
<param name="movie" value="FlashContent/FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="flashvars" value="&amp;MM_ComponentVersion=1&amp;skinName=FlashContent/Clear_Skin_1&amp;streamName=FlashContent/WFSmart&amp;autoPlay=true&amp;autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" /><!-- 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. --><!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --><!--[if !IE]>--><!--<![endif]--><!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<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.gif" alt="Get Adobe Flash player" /></a></p></div><!--[if !IE]>--></object> <!--<![endif]--></object>
<script type="text/javascript">

Please Help :)

01-29-2009, 01:27 AM
You should check out swfObject ...


It's pretty easy to use ...

1. Download the .js (javascript file from the swfObject Download page).
2. Stick that .js file is a folder called "scripts" on your web server.
3. Here's what a basic swfObject HTML page will look like ...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<title>:: Put Your Web Page Title Here ::</title>

<meta name="keywords" content="Keyword, Keyword, Another Keyword, You get the idea, etc., etc.">

<meta name="description" content="Put your web page description here.">

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

<script type="text/javascript" src="scripts/swfobject.js"></script>



<div id="flashcontent">
<div id="noflash">
<h2>Alternate Content (see next few lines)</h2>
<p>This text will only display if someone doesn't have the required Flash Player. Otherwise it will be replaced by the swfObject code below.</p>
<p>So, for this alternate content you could put something like ... Download the latest <a href="http://www.adobe.com">Flash Player</a> for free! It takes just a few minutes to download and install.</p>

<!-- Here comes the magic ...

<script type="text/javascript">
// <![CDATA[
var so = new SWFObject('Your_SWF_FileName.swf', 'Your_MovieName-Call-This-Whatever-You-Want-It-Doesn't-Matter', '650', '400', '8', '#FFFFFF');
so.addParam('allowScriptAccess', 'always');
so.addParam('menu', 'false');
// ]]>

<!-- That's it - that's the entire embed code (above) ...
<!-- See the bold "var so = new SWFObject blah, blah, blah ...
<!-- Well, that's what you're going to change for your site ...

<!-- 650 = Change to the width of your .swf file ...
<!-- 400 = Change to the height of your .swf file ...
<!-- 8 = the plug-in version of Flash required to view your .swf ...
<!-- #FFFFFF = the background color of the .swf file (white in this case) ...


01-29-2009, 01:35 AM
One last note for you. You could just go into your Flash Publish Settings (File > Publish Settings) and check the boxes for .swf and .html

Then check those Tabs and set-up those settings to the way you want your page to work.

Then hit "publish" and Flash will create everything you need (.swf, .html, scripts)

But, I'd still recommend you use swfObject - it's easier to modify and reuse. And I think it's more compliant to current web standards.

Good luck.