View Full Version : first time flash embedder
Verndewd
12-21-2008, 01:40 AM
oh the embarrasment :eek: I am totally clueless on this. I found info to read but I may as well be reading heiroglyphs. I do expect a lashing at my poor guesswork on this concept :D
head
<!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" 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 = {};
var params = {};
var attributes = {};
attributes.id = "gallery";
swfobject.embedSWF("crygal.swf", "myAlternativeContent", "513", "187", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>
</head>
<body>
<div id="myAlternativeContent">
<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>
http://www.bobbyvandersluis.com/swfobject/generator/index.html
http://verndewd.free-site-host.com/crysis/cryblog.html
atomic
12-21-2008, 03:30 AM
What's the problem? Your crygal.swf not appearing?
Verndewd
12-21-2008, 03:39 AM
What's the problem? Your crygal.swf not appearing?
yeah. is it my relative linking to the js?
<script type="text/javascript" src=".../crysis/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.quality = "best";
params.bgcolor = "fffff";
var attributes = {};
attributes.id = "gallery";
attributes.name = "crygal.swf";
swfobject.embedSWF("crygal.swf", "gallery", "513", "187", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>
atomic
12-21-2008, 04:24 AM
Well I'm not that good with html, and you've changed it, since I grabbed it an hour or so ago...
Got it to work for me, leaving the first part as you had it...
...
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
var attributes = {};
attributes.id = "gallery";
swfobject.embedSWF("crygal.swf", "myAlternativeContent", "513", "187", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>
...
And then replacing...
...
<div id="gallery">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','513','heigh t','187','title','swf','src','crygal/crygal','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','crygal/crygal' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="513" height="187" id="gallery">
<param name="movie" value="crygal.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="crygal.swf" width="513" height="187">
<!--<![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>
</noscript>
</div>
...
With...
...
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="513" height="187" id="gallery">
<param name="movie" value="crygal.swf " />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="crygal.swf " width="513" height="187">
<!--<![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>
...
Verndewd
12-21-2008, 04:30 AM
Well I'm not that good with html, and you've changed it, since I grabbed it an hour or so ago...
Got it to work for me, leaving the first part as you had it...
...
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
var attributes = {};
attributes.id = "gallery";
swfobject.embedSWF("crygal.swf", "myAlternativeContent", "513", "187", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>
...
And then replacing...
...
<div id="gallery">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','513','heigh t','187','title','swf','src','crygal/crygal','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','crygal/crygal' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="513" height="187" id="gallery">
<param name="movie" value="crygal.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="crygal.swf" width="513" height="187">
<!--<![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>
</noscript>
</div>
...
With...
...
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="513" height="187" id="gallery">
<param name="movie" value="crygal.swf " />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="crygal.swf " width="513" height="187">
<!--<![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>
...
the gallery id is flubbing it up? or the acrun script?
Verndewd
12-21-2008, 04:44 AM
http://verndewd.free-site-host.com/crysis/cryblog.html
got it ;) thanks again atomic,
atomic
12-21-2008, 05:01 AM
Grrrreat! ;)
But I still don't see the movie on that last link?
Nor can I find the crygal.swf?
Verndewd
12-21-2008, 05:03 AM
Grrrreat! ;)
But I still don't see the movie on that last link?
Nor can I find the crygal.swf?
http://verndewd.free-site-host.com/crysis/cryblog.html
works fine in IE
note the credits that are due ;)
atomic
12-21-2008, 05:14 AM
Yeah! Grrrrreat! ;)
But it doesn't on FF!
Verndewd
12-21-2008, 05:27 AM
Yeah! Grrrrreat! ;)
But it doesn't on FF!
:o hmm crap ,,, looks like I left something out :eek:
Verndewd
12-22-2008, 08:20 AM
http://verndewd.free-site-host.com/crysis/cryblog.html
well after reading required code setting I was able to figure it out. naming sff instances seem to generally be url related, name value and such I dont remember everything I tried but it works if ff. there seems to be a page refesh on off thing happening shich could be due to a missing url on one of the names or? oh well I am happy I learned something and can share the diagnostic process in case others need it.
http://code.google.com/p/swfobject/wiki/documentation swf wiki articls on google.
Required attributes: static
classid (outer object element only, value is always clsid:D27CDB6E-AE6D-11cf-96B8-444553540000) type (inner object element only, value is always application/x-shockwave-flash) data (inner object element only, defines the URL of a SWF) width (both object elements, defines the width of a SWF) height (both object elements, defines the height of a SWF)
Required param element:
movie (outer object element only, defines the URL of a SWF)
dynamic requirements
swfUrl (String, required) specifies the URL of your SWF id (String, required) specifies the id of the HTML element (containing your alternative content) you would like to have replaced by your Flash content width (String, required) specifies the width of your SWF height (String, required) specifies the height of your SWF version (String, required) specifies the Flash player version your
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.