 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
snablap
Joined: 06 Oct 2009 Posts: 4
|
Posted: Tue Oct 06, 2009 3:32 pm Newbie...Dreamweaver CS3..Flash won't play |
|
|
|
Hi All...new here and to web design...made site with Dreamweaver,Flash and Fireworks CS3...I can't for the life of me get my movie to show when uploaded to customers server...works fine locally and on my ISP's server but not my customers own server....any ideas?!!
Here's the code:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','320','height','240','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=flash2/Doors&autoPlay=false&autoRewind=false','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','FLVPlayer_Progressive' ); //end AC code
</script><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320" height="240" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=flash2/Doors&autoPlay=false&autoRewind=true" />
<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=flash2/Doors&autoPlay=false&autoRewind=true" quality="high" scale="noscale" width="320" height="240" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />
</script> |
|
sticks464

Joined: 31 Dec 2006 Posts: 2906
|
Posted: Tue Oct 06, 2009 5:10 pm |
|
|
|
| You should do away with the default Dreamweaver script and use swfObject. It does not rely on Shockwave or ActiveX but works strictly of javascript. |
|
snablap
Joined: 06 Oct 2009 Posts: 4
|
Posted: Tue Oct 06, 2009 5:56 pm |
|
|
|
Thanks Sticks...but I'd like to see if I could get this to work and again I'm to new to this to be figuring out SWFobject.
Cheers! |
|
sticks464

Joined: 31 Dec 2006 Posts: 2906
|
Posted: Tue Oct 06, 2009 7:37 pm |
|
|
|
It's very simple, go here and download swfObject, then use this code on your page.
| Code: |
<!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" lang="en" xml:lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=flash2/Doors&autoPlay=false&autoRewind = "true";
var params = {};
params.quality = "high";
params.scale = "noscale";
params.salign = "tl";
var attributes = {};
attributes.id = "FLVPlayer";
swfobject.embedSWF("FLVPlayer_Progressive.swf", "myFLVPlayer", "320", "240", "8.0.0", false, flashvars, params, attributes);
</script>
</head>
<body>
<div id="myFLVPlayer">
<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>
</div>
</body>
</html> |
or this one
| Code: |
<!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" lang="en" xml:lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("FLVPlayer", "8.0.0");
</script>
</head>
<body>
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="320" height="240" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="tl" />
<param name="flashvars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=flash2/Doors&autoPlay=false&autoRewind=true" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="320" height="240">
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="tl" />
<param name="flashvars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=flash2/Doors&autoPlay=false&autoRewind=true" />
<!--<![endif]-->
<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>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html> |
or even this one
| Code: |
<!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" lang="en" xml:lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=flash2/Doors&autoPlay=false&autoRewind = "true";
var params = {};
params.quality = "high";
params.scale = "noscale";
params.salign = "tl";
var attributes = {};
attributes.id = "FLVPlayer";
swfobject.embedSWF("FLVPlayer_Progressive.swf", "myFLVPlayer", "320", "240", "8.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>
</head>
<body>
<div id="myFLVPlayer">
<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>
</div>
</body>
</html> |
One of these three methods will work for all browsers.
Did Dreamweaver put a javascript link to AC_FL_RunContent.js in the head section of your page when you made it, and did you upload it to the server? |
|
snablap
Joined: 06 Oct 2009 Posts: 4
|
Posted: Wed Oct 07, 2009 8:00 am |
|
|
|
Thanks Sticks...I'll give it a try...but I'm starting to think it's my customers server...this will be useful for future projects!!
Cheers! |
|
snablap
Joined: 06 Oct 2009 Posts: 4
|
Posted: Wed Oct 07, 2009 8:08 am |
|
|
|
| ...and yes the AC_FL_RunContent.js is where it should be on the server...last night I tested it a couple of major hosting companies I have access to and it works fine there...my customer is running their own server at their office and I'm suspecting they maybe don't have scripts turned on or are at a very high security level or something?! |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|