Topic: embed external gallery

hi,

i followed your instructions from the support page, but i'm afraid i'm still doing something wrong. i can see that there is something embedded, but it says 'gallery xml not found'

i have copied the instructed script from your support page and have filled in the path to my files. maybe i'm getting something wrong in the path..?
please can you give me a quick hint whether i'm missing something.


flashvars.baseURL="http//www.dfordesire.com/TEST/";
flashvars.galleryURL = "http://www.dfordesire.com/TEST/gallery.xml";

swfobject.embedSWF("http://www.dfordesire.com/TEST/simpleviewer.swf"

thank you!

Re: embed external gallery

If you are going to use baseURL change flashvars.galleryURL = "http://www.dfordesire.com/TEST/gallery.xml"; to flashvars.galleryURL = "gallery.xml";

Mike Richards
SimpleViewer Support Team.

Re: embed external gallery

hi,
thanks for the quick reply.
i'm afraid it still doesn't work. same error message 'gallery xml not found'. what else could i be doing wrong??

Re: embed external gallery

Did you clear your browser cache after making the change?

Mike Richards
SimpleViewer Support Team.

Re: embed external gallery

yes i did. still not found ;(

Re: embed external gallery

http://www.dfordesire.com/TEST/ is working for me in firefox, but I'm seeing several additional issues. Your baseURL is missing a : in the address, flashvars.baseURL="http//www.dfordesire.com/TEST/";  should be flashvars.baseURL="http://www.dfordesire.com/TEST/";  Also your code has too many SWFObject embed methods, try using the code at the bottom of the post.

Your 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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="Another photo album built using Flash Album Exporter.">
<meta name="keywords" content="Flash, Photo, Flash Album Exporter, FlashAlbumExporter, SimpleViewer">
<title>Stamm special collection 2010</title>
<!-- Download AutoViewer at http://www.airtightinteractive.com/projects/simpleviewer -->
<!-- Download Flash Album Exporter at http://apertureplugin.home.comcast.net -->
<script type="text/javascript" src="../Stamm/swfobject.js"></script>
<style type="text/css">    
    /* hide from ie on mac \*/
    html {
        height: 100%;
        overflow: hidden;
            }
    
    #flashcontent {
        height: 100%;
    }
    /* end hide */

    body {
        height: 100%;
        margin: 0;
        padding: 0;
        background-color: #353535;
        color:#ffffff;
            
    }
</style>
<!-- SIMPLEVIEWER HEAD. Paste this into the head of the HTML page-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>

<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "gallery.xml";
var params = {};
params.bgcolor = "353535";
params.allowfullscreen = true;
params.allowscriptaccess = "always";
swfobject.embedSWF("simpleviewer.swf", "flashContent", "100%", "100%", "9.0.124", false, flashvars, params);
</script>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL="http//www.dfordesire.com/TEST/"; 
flashvars.galleryURL="gallery.xml";
var params = {};
params.bgcolor = "222222";
params.allowfullscreen = true;
params.allowscriptaccess = "always";
swfobject.embedSWF("http://www.dfordesire.com/TEST/simpleviewer.swf", "flashContent", "800", "600", "9.0.124", false, flashvars, params);
</script> 

</head>
<body>
    <div align="center"></div>
    <div id="flashcontent">SimpleViewer requires Macromedia Flash. <a href="http://www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="../Stamm/index.html?detectflash=false">click to view gallery</a>.</div>    
    <script type="text/javascript">
        var fo = new SWFObject("simpleviewer.swf", "viewer", "100%", "100%", "7", "#353535");    
        fo.addVariable("preloaderColor", "0xffffff");
        fo.addVariable("xmlDataPath", "gallery.xml");    
        fo.write("flashcontent");    
        fo.addParam("allowFullScreen","true");
        fo.addParam("allowScriptAccess","always") 
    </script>    
    
    <!-- SIMPLEVIEWER BODY. Paste this into the body of the HTML page where you want to the gallery to appear -->

<div id="flashContent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.adobe.com/go/getflashplayer/">Get Flash.</a></div>
</body>
</html>

Try the following instead.

<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="Another photo album built using Flash Album Exporter.">
<meta name="keywords" content="Flash, Photo, Flash Album Exporter, FlashAlbumExporter, SimpleViewer">
<title>Stamm special collection 2010</title>
<style type="text/css">    
    /* hide from ie on mac \*/
    html {
        height: 100%;
        overflow: hidden;
            }
    
    #flashcontent {
        height: 100%;
    }
    /* end hide */

    body {
        height: 100%;
        margin: 0;
        padding: 0;
        background-color: #353535;
        color:#ffffff;
            
    }
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL="http://www.dfordesire.com/TEST/"; 
flashvars.galleryURL="gallery.xml";
var params = {};
params.bgcolor = "222222";
params.allowfullscreen = true;
params.allowscriptaccess = "always";
swfobject.embedSWF("http://www.dfordesire.com/TEST/simpleviewer.swf", "flashContent", "800", "600", "9.0.124", false, flashvars, params);
</script> 

</head>
<body>
    <div align="center"></div>

<div id="flashContent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.adobe.com/go/getflashplayer/">Get Flash.</a></div>
</body>
</html>
Mike Richards
SimpleViewer Support Team.

Re: embed external gallery

i got it to work now. thank you!