Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorstag
    • CommentTimeFeb 21st 2007
     
    Hi all,

    Have slideshowpro but having difficulties using the SWFObjects technique. The following is only my test page with 2 pics exactly the same (which you can see changing between one another) http://www.archivesociety.co.uk/ and you can see SSP only shows partially.

    Have uploaded the required pages (well i think i have), which are .xml, .html, .swf and the swfobject.js. My code is as follows-

    <script type="text/javascript" src="swfobject.js"></script> (which is near top of hmtl doc)

    <div id="flashcontent"><p>This part of this site requires Macromedia Flash Player Version 7 or higher. If you can see this text you either do not have the Flash Player installed or have javascript turned off. <a href="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">Click here to download and install Flash Player.</a></p>
    </div><!--Closes #flashcontent-->

    <script type="text/javascript">
    // <![CDATA[

    var so = new SWFObject("slideshow.swf", "slideshow", "478", "264", "7", "#FFFFFF");

    so.addVariable("initialURL", escape(document.location));
    so.write("flashcontent");

    // ]]>
    </script>

    I also have the object tag embed at bottom of html page which might be causing the problem, im not sure.

    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="478" height="264" id="slideshow" align="middle">
    <param name="allowScriptAccess" value="sameDomain" /><param name="base" value="." />
    <param name="movie" value="slideshow/slideshow.swf" /><param name="base" value="." /><param name="quality" value="high" /><param name="base" value="." /><param name="bgcolor" value="#ffffff" /><param name="base" value="." /><embed base="." src="slideshow/slideshow.swf" quality="high" bgcolor="#ffffff" width="478" height="264" name="slideshow" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

    </object>

    Really hope someone can help me as this is boggling me now :(

    Cheers
    Stag
    • CommentAuthorpauld
    • CommentTimeFeb 21st 2007
     
    HI! Remove the object tag embed at bottom of html page, you don't need it since your using swfobject.

    Paul
    • CommentAuthorstag
    • CommentTimeFeb 21st 2007
     
    Hi Paul,

    Yes I did just that and now nothing appears...
    • CommentAuthorjbw
    • CommentTimeFeb 21st 2007
     
    If it vanishes when you remove the object tag then you're most likely not referencing the swfobject.js properly.
    This line tells the browser where the swfobject.js file is that you uploaded: <script type="text/javascript" src="swfobject.js"></script>
    If you put it inside a folder when you uploaded it then you need to change the src path. ie. src="myfolder/swfobject.js"

    The following script makes use of the swfobject.js to display the swf file.
    <script type="text/javascript">
    // <![CDATA[

    var so = new SWFObject("slideshow.swf", "slideshow", "478", "264", "7", "#FFFFFF");

    so.addVariable("initialURL", escape(document.location));
    so.write("flashcontent");

    // ]]>

    According to your object tag code your swf lives in: "slideshow/slideshow.swf"
    which means the above code needs to use the same reference - var so = new SWFObject("slideshow/slideshow.swf", "slideshow", "478", "264", "7", "#FFFFFF");

    hope this helps,
    jbw
    • CommentAuthorstag
    • CommentTimeFeb 21st 2007
     
    jbw, that seems to make sense. Will have to test this when I get home later. Just to clarify, yes my slideshow and JS file resides within a folder. Eg. Folder1. Therefore, the source code will be

    <script type="text/javascript" src="folder1/swfobject.js"></script>

    And this would remain the same (not sure why slideshow/slideshow.swf as only have one file)

    var so = new SWFObject("slideshow/slideshow.swf", "slideshow", "478", "264", "7", "#FFFFFF");

    Cheers jbw, I pray this works...
    • CommentAuthorjbw
    • CommentTimeFeb 21st 2007
     
    You are correct about the first step but I think you're getting confused with the 2nd step. If your slideshow and JS file reside within a folder, eg Folder1 the source code will be:

    var so = new SWFObject("folder1/slideshow.swf", "slideshow", "478", "264", "7", "#FFFFFF");

    it's all relative to the location of the html file.
    • CommentAuthorstag
    • CommentTimeFeb 21st 2007 edited
     
    :(

    Just noticed in design view there is now a flash image backgrd supposedly for the slideshow. It is centred with the image broke picture.

    Completed the required data and images still dont show. My folder where everything is harvested is "soderhavet", therefore my src - <script type="text/javascript" src="Soderhavet/swfobject.js"></script>

    The rest - var so = new SWFObject("Soderhavet/slideshow.swf", "slideshow", "478", "264", "7", "#FFFFFF");

    Also took out the object file. Am completely stumped...
    • CommentAuthorGeoff
    • CommentTimeFeb 21st 2007
     
    looks like the js file isn't on your server, or the path is wrong.

    are you sure you uploaded it? are you sure the path is correct?
    • CommentAuthorjbw
    • CommentTimeFeb 22nd 2007
     
    Geoff's right, your paths aren't correct. Your swfobject is in your root folder, not a folder called Soderhavet.

    http://www.archivesociety.co.uk/Soderhavet/swfobject.js - no such file found.
    http://www.archivesociety.co.uk/swfobject.js - file exists.

    The absolute path from your homepage html file for the swfobject is http://www.archivesociety.co.uk/swfobject.js so your include script would be:
    <script type="text/javascript" src="http://www.archivesociety.co.uk/swfobject.js"></script>
    or the relative path would be:
    <script type="text/javascript" src="swfobject.js"></script>

    I can't see where your slideshow.swf has gone. It doesn't appear to be at http://www.archivesociety.co.uk/Soderhavet/slideshow.swf
    • CommentAuthorstag
    • CommentTimeFeb 22nd 2007
     
    hi again,

    Well, seems like i am at last getting somewhere. I decided to upload the site i want the pics to work in, so basically re-did the process

    http://www.archivesociety.co.uk/about%20us.html

    before I get carried away, while the player shows, my images dont. I checked to see where my images resided with the below and everything fine here. Not sure what is wrong but having said that, when I try and publish the same page in flash to view in html, the images also dont load. Maybe something is wrong in my XML?

    http://www.archivesociety.co.uk/slideshow_jentespranget/gallery/album1/large/Forest%2001.jpg

    Lastly, does anyone know in http://www.archivesociety.co.uk/about%20us.html while the right hand side has broken out? Also my slideshow is alot smaller than my flash image though I suppose i can play around with this...