PDA

View Full Version : link swf


blimp
07-23-2009, 07:37 AM
On my index.html page I have embedded swf slideshow that was vreated using SlideShowProof. What I would like to do is when you click on it, I want it to link to another page on that site.

http://img213.imageshack.us/img213/9081/picture3w.jpg

And this is the code on my index.html page

<div id="slideshowContainer">
<div id="flashcontent">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="FlashID" title="images">
<param name="movie" value="slideshow/loader.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="9.0.45.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you donít want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<param name="base" value="." />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="slideshow/loader.swf" width="100%" height="100%">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="9.0.45.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<param name="base" value="." />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><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" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</div>

any suggestions in how I can do this?

domedia
07-23-2009, 04:22 PM
It has to be done before generating the swf file in SlideShowProof. Nothing to do with HTML/CSS.

blimp
07-23-2009, 04:41 PM
Domedia, would there be any way of adding the link code to the swf after it's been published?

domedia
07-23-2009, 05:03 PM
Not that I know of, but someone else might have an idea.

Corrosive
07-23-2009, 06:41 PM
Not that I know of either

blimp
07-24-2009, 12:48 AM
The only reason I ask if this is possible is that if you click on the slideshow (http://blimpmedia.com.au/caterina) now, it take you to an error page. Try it and you will see what I mean. I've checked all the options in SlideShowPro and can't seem to see anything there that allows me to link to a html.

Any ideas?

edbr
07-24-2009, 02:12 AM
you will need to change the link in the fla file. as far as i know it is not possible to add a layer over an embeded flash movie so only other poss might be using an animated gif (?) but not sure thats appropriate for you

blimp
07-24-2009, 02:24 AM
thanks edbr, I think I found a solution and am trying it right now. I'll let you know if it works.

Also its my first attempt at designing and developing a css style website, any comments on the code and approached I've taken would be greatly appreciated.

blimp
07-24-2009, 03:56 AM
edbr, what I've found out is that I need to make some adjustments to the xml file.

In my images.xml file the code looks something like this:

<?xml version="1.0" encoding="UTF-8"?>
<!--Published with SlideShowPro for Lightroom 1.4.3-->
<gallery galleryTitle="Gallery title" galleryDescription="Gallery description">
<album id="Album title" lgpath="album1/images/" tnpath="album1/thumb/" popuppath="album1/popup/" fspath="album1/fs/" title="Album title" description="Album description" tn="album1/thumb/image1.jpg" audio="" audiocaption="">
<img src="image1.jpg" title="" caption="" link="javascript:if (window.NewWindow) { NewWindow.close(); }; NewWindow=window.open('http://thinkbathrooms.com.au/home.html','myWindow','width=724,height=520,toolba r=0,scrollbars=1,location=0,statusbar=1,menubar=0, resizable=1,titlebar=no');NewWindow.focus();void(0 );" pause=""></img>
<img src="image2.jpg" title="" caption="" link="javascript:if (window.NewWindow) { NewWindow.close(); }; NewWindow=window.open('http://thinkbathrooms.com.au/home.html','myWindow','width=724,height=520,toolba r=0,scrollbars=1,location=0,statusbar=1,menubar=0, resizable=1,titlebar=no');NewWindow.focus();void(0 );" pause=""></img>
<img src="image3.jpg" title="" caption="" link="javascript:if (window.NewWindow) { NewWindow.close(); }; NewWindow=window.open('http://thinkbathrooms.com.au/home.html','myWindow','width=724,height=520,toolba r=0,scrollbars=1,location=0,statusbar=1,menubar=0, resizable=1,titlebar=no');NewWindow.focus();void(0 );" pause=""></img>
<img src="image4.jpg" title="" caption="" link="javascript:if (window.NewWindow) { NewWindow.close(); }; NewWindow=window.open('http://thinkbathrooms.com.au/home.html','myWindow','width=724,height=520,toolba r=0,scrollbars=1,location=0,statusbar=1,menubar=0, resizable=1,titlebar=no');NewWindow.focus();void(0 );" pause=""></img>
<img src="image5.jpg" title="" caption="" link="javascript:if (window.NewWindow) { NewWindow.close(); }; NewWindow=window.open('http://thinkbathrooms.com.au/home.html','myWindow','width=724,height=520,toolba r=0,scrollbars=1,location=0,statusbar=1,menubar=0, resizable=1,titlebar=no');NewWindow.focus();void(0 );" pause=""></img>
<img src="image6.jpg" title="" caption="" link="javascript:if (window.NewWindow) { NewWindow.close(); }; NewWindow=window.open('http://thinkbathrooms.com.au/home.html','myWindow','width=724,height=520,toolba r=0,scrollbars=1,location=0,statusbar=1,menubar=0, resizable=1,titlebar=no');NewWindow.focus();void(0 );" pause=""></img>
<img src="image7.jpg" title="" caption="" link="javascript:if (window.NewWindow) { NewWindow.close(); }; NewWindow=window.open('http://thinkbathrooms.com.au/home.html','myWindow','width=724,height=520,toolba r=0,scrollbars=1,location=0,statusbar=1,menubar=0, resizable=1,titlebar=no');NewWindow.focus();void(0 );" pause=""></img>
<img src="image8.jpg" title="" caption="" link="javascript:if (window.NewWindow) { NewWindow.close(); }; NewWindow=window.open('http://thinkbathrooms.com.au/home.html','myWindow','width=724,height=520,toolba r=0,scrollbars=1,location=0,statusbar=1,menubar=0, resizable=1,titlebar=no');NewWindow.focus();void(0 );" pause=""></img>
</album>
</gallery>


The advice is to replace the url in " link=" to the site you would like to link too.

This is their example:

?xml version="1.0" encoding="UTF-8"?>
<!--Published with SlideShowPro for Lightroom 1.4.6-->
<gallery title="Gallery title" description="Gallery description">
<album id="Album title" lgpath="album1/images/" tnpath="album1/thumb/" popuppath="album1/popup/" fspath="album1/fs/" title="Album title" description="Album description" tn="album1/thumb/_MG_4287.jpg" audio="" audiocaption="">
<img src="_MG_4287.jpg" title="1 / 2" caption="" pause="" link="http://www.google.com"/>
<img src="_MG_4284.jpg" title="2 / 2" caption="" pause="" />
</album>
</gallery>

So I replaced it to the following:

" link="javascript:if (window.NewWindow) { NewWindow.close(); }; NewWindow=window.open('http://thinkbathrooms.com.au/home.html',

When I click on the slideshow, it opens thinkbathrooms/home, but in a new page.

Would you know what adjustment I would need to do to that code to make it just link directly to home instead of opening a new page?

http://thinkbathrooms.com.au/

edbr
07-24-2009, 05:35 AM
<img src="_MG_4287.jpg" title="1 / 2" caption="" pause="" link="http://www.google.com (http://www.google.com/)"/>
looks like a simple link to me but bit in the dark , i can order a cup of coffee in javascript speak but not sure i could get a capacino though :)