-
1. Re: How do I add this code?
kglad Jun 29, 2010 8:45 PM (in response to rlafoto1)that looks like swfobject code that should be added to javascript for use by swfobject.
but you can add that object code to flash if that's what you want.
-
2. Re: How do I add this code?
rlafoto1 Jun 30, 2010 4:32 AM (in response to kglad)Thanks for responding.
When I click on the SWF object and highlight the code using DW - do I simply type in the javascript as shown? Or do I start with <...
Randy
-
3. Re: How do I add this code?
Darshan Rane Jun 30, 2010 4:43 AM (in response to rlafoto1)Hey, code of html file to include swf using swfobject
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
//Include swfobject.js
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var params = {};
params.menu = "false";
params.scale = "noScale";
params.salign = "TL";
params.allowFullScreen = "true";
swfobject.embedSWF('SWFFILENAME.swf', 'noswf', '100%', '100%', '10.0.2', 'src/js/swfobject/expressinstall.swf', {}, params, {id: 'noswf'});
</script>
</head>
<body>
<div id="noswf"></div>
</body>
</html>
-
4. Re: How do I add this code?
rlafoto1 Jun 30, 2010 7:00 AM (in response to Darshan Rane)Hi Darshan... thanks!
I am just starting out learning Flash - so I don't want to abuse my forum privaledges by asking to many simple questions! I am trying to incorporate "SlideshowPro" into my website. I generate the SWF file in Flash Pro and embed using Dreamweaver and it works but does not expand. I have triedt to simplify the HTML page below. When I incorporate the code you provided i get a white screen when uploaded.
<!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>Untitled Document</title>
<script type="text/javascript" src="swfobject.js"></script>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<script type="text/javascript">
var params = {};
params.menu = "false";
params.scale = "noScale";
params.salign = "TL";
params.allowFullScreen = "true";
swfobject.embedSWF('slideshow.swf', 'noswf', '100%', '100%', '10.0.2', 'src/js/swfobject/expressinstall.swf', {}, params, {id: 'ge_swf'}); </script>
</head>
<body>
<div id="noswf">
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400">
<param name="movie" value="slideshow.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.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="slideshow.swf" width="550" height="400">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.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.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</body>
</html> -



