Link to home
Start Free TrialLog in
Avatar of dsmjeff
dsmjeff

asked on

How do you take movie clips from Adobe Flash into Dreamweaver?

Everything I'm trying is not working. I've found dozens of articles online and from Adobe about taking a video or clips and decoding to a FLV format. In DW, I've tried every way that I know how or have been told how to add flash content into my websites. I have no trouble in Flash, but no matter how I put videos into DW, they do not appear right or at all.

Is it as simple as:
Placing cursor where I want video
Insert
Media
Flash - Have tried all.... None seem to work for me...
Every way I do it, the grayed out Flash bar goes in the place holder, but when I preview it in Firefox or IE, I keep getting either different errors, or no response at all. When I find the error, I go online and find out what causes it, do what different forums say that fixes it, but then something new happens.
Can someone please give me there step by step, known working way to insert video. I'm a beginner at Flash, so as step by step as possible.
Thanks! And if you need any more info, please let me know.

Thanks!
Avatar of garethh86
garethh86
Flag of United Kingdom of Great Britain and Northern Ireland image

copy the file to the website directory and enter this code in code view where you want it to appear:

<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>
Avatar of dsmjeff
dsmjeff

ASKER

So do I still:
Placing cursor where I want video
Insert
Media
Flash - object?
Or just put in the code, copy the flash object to the root directory of that page?

2.   Where do I put the code? Anywhere within the container div? Or just in the body?
can you upload your html file?
Avatar of dsmjeff

ASKER

I'm traveling today, but I'll do it tonight.
This page is still a work in progress, but do you want just the page html, or the video to? Forgive me, but I'm a newbie at web design! :)
example html, very very basic but if you pastes all of that into the html/code view, change the swf filename for the name of your video and then preview the page the video will display. Maybe give you more of an idea how it fits together.

Hope this helps!

<html>
  <body>
 
<h1>Title text</h1>
 
<p>Some Text</p>
 
<object width="550" height="400">
  <param name="movie" value="somefilename.swf">
     <embed src="somefilename.swf" width="550" height="400">
     </embed>
</object>
 
<p>some more text</p>
 
  </body>
</html>

Open in new window

Avatar of dsmjeff

ASKER

Here is the code from my sight that I'm rebuilding. . Let me know what you guys think.

Thanks!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Feedback For PC By Design LLC</title>
<style type="text/css">
<!--
body {
	background-color: #333333;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
#container {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	background-color: #FFFFFF;
	width: 780px;
	margin-right: auto;
	margin-left: auto;
	font-size: medium;
}
#nav li {
	display: inline;
	margin-right: 10px;
	margin-left: 5px;
	padding-right: 10px;
	padding-left: 5px;
}
#body {
	text-indent: 25px;
	padding-right: 5px;
	padding-left: 5px;
}
#lower li {
	display: inline;
	margin-right: 40px;
	margin-left: 15px;
	padding-right: 40px;
	padding-left: 15px;
}
#footer {
	background-color: #6699FF;
	text-align: center;
	height: 2000px;
	padding-top: 10px;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    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;
        else{
          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 = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}
</script>
<meta name="Description" content="Feedback for PC By Design LLC in Des Moines Iowa. We value your opion and look forward to hearing from you! We offer I.T. services to small businesses and home users. Call or email today for a free quote!" />
</head>
 
<body 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?');">
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
 
</script>
 
<div id="container">
  <div id="top"><img src="Images/Banner.gif" alt="Top Banner" width="780" height="100" /></div>
  <div id="nav">
    <ul>
      <li><a href="Business Services.html">Business Services</a></li>
      <li><a href="Home Services.html">Home Services</a></li>
      <li><a href="Service Area.html">Service Area</a></li>
 
      <li><a href="About Us.html">About Us</a></li>
      <li><a href="Contact.html">Contact</a></li>
    </ul>
  </div>
  <div id="banner">
    <p>flash content
      <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','634','height','341','align','middle','accesskey','F1','tabindex','1','title','Peyton Test','src','Flash Content/petyonmanning','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','scale','noborder','movie','Flash Content/petyonmanning' ); //end AC code
      </script>
      <noscript>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="634" height="341" align="middle" accesskey="F1" tabindex="1" title="Peyton Test">
        <param name="movie" value="Flash Content/petyonmanning.swf" /><param name="SCALE" value="noborder" />
        <embed src="Flash Content/petyonmanning.swf" width="634" height="341" align="middle" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" scale="noborder"></embed>
      </object>
      </noscript>
 
</p>
  </div>
  <div id="body">
    <p>Feedback forum. Tell us what you think. Of our site, our work, or anything else you may want to just vent! :)    </p>
    <p>- We are working on a user input form here, but for now, just email us and we will put it out on the site. -    </p>
    <p>
    Thanks,</p>
    <p>The Design Team</p>
 
    <p>&nbsp;</p>
  </div>
  <div id="lower">
    <ul>
      <li><a href="Website.html">Web sites</a></li>
      <li><a href="Hosting.html">Hosting</a></li>
      <li><a href="index.html">Home</a></li>
 
      <li><a href="Q And A.html">Q/A</a></li>
    </ul>
  </div>
  <div id="footer">
  <p>Content designed and hosted by PC By Design LLC</p>
  <p>All Rights Reserved 2008&copy;</p>
</div>
</div>
 
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3925516-6");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>

Open in new window

I can see your code is working fine.
If you check these it should be fine.
next to your html, you have a "Flash Content" folder with the "petyonmanning.swf"
and next to your html, you have the "Scripts" folder, with the "AC_RunActiveContent.js" file inside...

if you don't have the .js file.. you will have to create the "Scripts" folder next to the "html" file and in notepad copy the attach code in it and save as "AC_RunActiveContent.js"
//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}
 
function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';
 
  document.write(str);
}
 
function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
 
function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
 
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    
 
    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

Open in new window

Avatar of dsmjeff

ASKER

I do have both folders, but the content still doesn't seem to work. It works within my DW, but when I publish it, it doesn't work any longer. Is it something w/ IIS?
are you using IIS 6?
Avatar of dsmjeff

ASKER

Yes. Server 2003 Ent. and IIS 6.0
ASKER CERTIFIED SOLUTION
Avatar of kishoregp
kishoregp
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial