via PayPal / credit card
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 5 of 5
Hallo,
an example is given with V2.01 in which monoslideshow.swf and monoslideshow.xml are in the same folder than html page.
I'd like to have my slideshow in a subfolder "slideshows\slideshow4" with respect to the html page
How can I change the path in the swfobject ?
I am new in swfobject and I have seen lot of solutions with base,... I have not understood
I have tried :
swfobject.embedSWF("slideshows/slideshow4/monoslideshow.swf", "flashContent", "480", "360", "9", false, flashvars, params, attributes);
slideshow starts but error message appears saying it can't read xml
I didn't changed xml :
<album thumbnail="album/albumThumbnail.jpg" itemPath="album/images" thumbnailPath="album/thumbnails">
because images folder remains in a subfolder of swf
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Monoslideshow 2.0 Example</title>
<script type="text/javascript" src="swfobject.js?v=2.1"></script>
<script type="text/javascript">
var flashvars = {};
var params = {allowScriptAccess: "sameDomain", allowfullscreen: "true", allowNetworking: "all"};
var attributes = {id: "monoslideshow", name: "monoslideshow", bgColor: "000000"};
swfobject.embedSWF("monoslideshow.swf", "flashContent", "480", "360", "9", false, flashvars, params, attributes);
</script>
</head>
<body>
<div id="flashContent">
<p>Please <a href="http://get.adobe.com/flashplayer/">install Flash®</a> and turn on Javascript.</p>
</div>
<p>If you encounter any errors loading Monoslideshow locally, please update your <a href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html">security settings</a> by adding the Monoslideshow folder to the trusted locations.</p>
</body>
</html>
thanks
Marc
Hi Marc,
check out my website for an example of "base" use.
Note: base is (as all paths) relative to the location of the html.
Christoph
Hallo Christophvl,
Your site is really nice.
However, your swf code has nothing to do with the one advised in mss manual and html example.
Is your code better ?
Can't we update mine ?
According to your remark,
swfobject.embedSWF("slideshows/slideshow4/monoslideshow.swf", "flashContent", "480", "360", "9", false, flashvars, params, attributes);
should have worked for the relative path
<div id="main">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="491" height="328" id="viewport">
<param name="movie" value="../js/monoslideshow2.swf" />
<param name="base" value="2009_07/" />
<param name="flashvars" value="showLogo=false" />
<param name="bgcolor" value="#766746" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="../js/monoslideshow2.swf" width="491" height="328">
<param name="base" value="2009_07/" />
<param name="flashvars" value="showLogo=false" />
<param name="bgcolor" value="#766746" />
<!--<![endif]-->
<h1>Kurs Freiarbeit Mai 2009</h1>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div><!--main-->
kind regards
Marc
Hi Marc,
there's a static and a dynamic version to use swfobject.js, and I somehow decided on the first one, and as it works, I'll most likely never change it. But you can add the param "base" to your dynamic code as well, so from the first post of this thread change
var params = {allowScriptAccess: "sameDomain", allowfullscreen: "true", allowNetworking: "all"};
into
var params = {allowScriptAccess: "sameDomain", allowfullscreen: "true", allowNetworking: "all" , base: "path/to/your/xml" };
and you should be done.
Christoph
1. Fantastic, your modification (and keep path for swf unchanged because base seems related to xml only, not to swf) works fine when monoslideshow.swf and monoslideshow.xml are both in slideshows/slideshow4
subfolder with respect to html
Many thanks
2. According to your remarks, I have now tried to leave monoslideshow.xml and album in same slideshows/slideshow4 but locate the unique swf in same folder than html with new code :
<script type="text/javascript" src="swfobject.js?v=2.1"></script>
<script type="text/javascript">
var flashvars = {};
var params = {allowScriptAccess: "sameDomain", allowfullscreen: "true", allowNetworking: "all" , base: "slideshows/slideshow4" };
var attributes = {id: "monoslideshow", name: "monoslideshow", bgColor: "000000"};
swfobject.embedSWF("monoslideshow.swf", "flashContent", "480", "360", "9", false, flashvars, params, attributes);
</script>
and it works fine too with your base modification and change of the swf path ! I suppose it is what you mentioned previously : one swf but several monoslideshow.xml in different folders and just specify base and flashcontentXXX for each slideshow so no need datafile and changing name of xml
Correct ?
3. I have just tried to modify your static swfobject code to fit case 2 (swf with html, xml in slideshows/slideshow4) :
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Monoslideshow 2.0 Example</title>
<script type="text/javascript" src="swfobject.js?v=2.1"></script>
</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="480" height="360" id="viewport">
<param name="movie" value="monoslideshow.swf" />
<param name="base" value="slideshows/slideshow4/" />
<param name="flashvars" value="showLogo=false" />
<param name="bgcolor" value="#766746" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="monoslideshow.swf" width="480" height="360">
<param name="base" value="slideshows/slideshow4/" />
<param name="flashvars" value="showLogo=false" />
<param name="bgcolor" value="#766746" />
<!--<![endif]-->
<h1>My slideshow</h1>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</body>
</html>
and it works fine too now
DO I NEED TO KEEP COMMENTS LIKE
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
?
Many thanks for all tips and tricks
I hope being able now to use several slideshow on my site either for IE and firefox
best regards
Marc
1 to 5 of 5