Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-27-2009, 11:35 PM   #1
Registered User
Join Date: Jan 2009
Posts: 37
Default Streaming a Movie

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:
ActionScript Code:
</head> <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. --> <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.gif" alt="Get Adobe Flash player" /></a></p></div><!--[if !IE]>--></object> <!--<![endif]--></object> <script type="text/javascript">

Please Help
NathanStryker is offline   Reply With Quote
Old 01-29-2009, 01:27 AM   #2
Senior Member
Join Date: Jul 2007
Posts: 216

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) ...

RefreshGFX is offline   Reply With Quote
Old 01-29-2009, 01:35 AM   #3
Senior Member
Join Date: Jul 2007
Posts: 216

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.
RefreshGFX is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
play movie clip before attaching second movie clip!!! marijanca ActionScript 2.0 0 12-09-2007 04:24 PM
embedding a streaming quicktime movie messhof ActionScript 2.0 1 10-26-2007 06:29 PM
FLASH 8 PRO: when using Flash Video Streaming why the movie controls dont show? (FLV) luisrene Components 2 06-13-2006 11:52 AM
Skinning components with embedded components epeace Components 5 06-16-2005 08:35 PM
Stop streaming first movie when loading second, how? swank.inc ActionScript 1.0 (and below) 10 03-27-2003 08:42 PM

All times are GMT. The time now is 07:09 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.