/    Sign up×
Community /Pin to ProfileBookmark

Adding a link in an XML image gallery

Hi there. I’ve searched everywhere and can’t figure how to dothis.

I have an image gallery in my flash site, epicsgallery.com
The main slide show is ran by a .xml file. I want each image to link to my online shop but I can’t figure out the code to do this. Simple HTML won’t work and I’m a noob to flash

Here’s the XML code used

[CODE]<Slideshow> <images>
<image url=”images/1.jpg”/>
<image url=”images/2.jpg”/>
<image url=”images/3.jpg”/>
<image url=”images/4.jpg”/>
<image url=”images/5.jpg”/></a>
<image url=”images/6.jpg”/>
<image url=”images/7.jpg”/>
<image url=”images/8.jpg”/>
<image url=”images/9.jpg”/>
<image url=”images/10.jpg”/> </images> <settings>

<!– 5000 equals 5 seconds –> <!– Delay between slide animation –> <delay>1000</delay> <!– animation duration and 1 equals 1 second–> <animationDuration>.2</animationDuration> </settings></Slideshow>[/CODE]

Thanks
Peter

to post a comment

3 Comments(s)

Copy linkTweet thisAlerts:
@SabzSep 25.2009 — hey peter, if i understand you correct, i believe the best way to accomplish this is to use ActionScript and leave the xml file for referencing the picture concent and "settings" only.

Or you can make a transparent button, in the flash as big as the flash itself and use that to redirect
[CODE]
on (release) {

getURL("your_url_here");
}[/CODE]


links that

might help:

http://info.template-help.com/after_sale_support/Working_with_Flash/Basic/article23.html

http://www.w3schools.com/flash/flash_button.asp

http://www.techimo.com/forum/graphic-design-digital-photography/48242-linking-flash-image.html
Copy linkTweet thisAlerts:
@peterWAKAauthorSep 25.2009 — Hi there. Thanks for the reply, where would i place the following code? If I'm to do it this way I would need the btton to change along with the image.

Thanks

Peter
Copy linkTweet thisAlerts:
@SabzSep 25.2009 — the code should be inserted using adobe flash in the "action script" section of the .fla file.

there may be other ways to get the same result, if its just one page your trying to link to maybe add a href="http://link here.com" tag to the embedded flash file in your HTML code ---
×

Success!

Help @peterWAKA spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...