PDA

View Full Version : Hyperlink to dynamic loaded images


kavita18
11-10-2003, 04:15 AM
Sir

I want to put hyperlinks to each image dynamically uploaded in a slide show. SLide show is made according to tutorial "How to Use the Easy Slideshow Component".


Please Help me .

Regards
Kavita18

CyanBlue
11-10-2003, 09:49 AM
Howdy and Welcome... ;)

This is just a friendly comment...

You are not giving us much thing to work with to understand what your problem is... You should really show us your sciprt whether you've followed the tutorial or not... There could be any change between the transitions... Besides, you did not provide any link to that tutorial and I do not think that people are going to google for that tutorial to help you... Don' you think???
So, you are basically limiting your potential helpers to like 10% of who we have in this town which probably won't help you much... Just my 2 cents... Good luck... ;)

subquark
11-10-2003, 10:12 AM
ah, just put an invisible button on each picture and code each one to open the URL with the full pic on it in a _blank window.

any pictures of Kiki and I'll figure out the code for you in AS 2.0 (or is that, while I'm watching Jake 2.0?). :p

CyanBlue
11-10-2003, 10:22 AM
Originally posted by subquark
ah, just put an invisible button on each picture and code each one to open the URL with the full pic on it in a _blank window.

any pictures of Kiki and I'll figure out the code for you in AS 2.0 (or is that, while I'm watching Jake 2.0?). :p Yummy... :D

subquark
11-10-2003, 10:24 AM
he he! have a great day CyanBlue! :)

kavita18
11-11-2003, 07:28 AM
Hello again..

I am sorry I didnt mentioned the script or link to the tutorial.
here is the link:
http://www.actionscripts.org/tutorials/intermediate/Easy_Slideshow/index.shtml

This tutorial is from the actionscript.org itself.

I have to place the hyperlinks to dynamic loaded images with the help of XML. I have made an invisible button and passing the links from the texty file...but I cant place 1 button for each image as they are laoded to a movieclip dynamically. so I can place only 1 invisible button. I have made it work by passing the links in an array & dynamically making it work.

But the problem comes in synchronising it with particular image.. as image swap automatically after some interval but I cant synchronise it with the interval of hyperlinks array.

Hope you understand my querry.

my code is :
*************************************************
var num = 0;
myData = new LoadVars();
myData.load("links.txt");
myData.onLoad = function() {
links= new Array();
links[0] = this.URL1;
links[1] = this.URL2;
links[2] = this.URL3;
links[3] = this.URL4;
links[4] = this.URL5;
links[5] = this.URL6;

// trace (links[0]);
// _root.txtImageURL.text = links[0];
changeLinks();
setInterval( changeLinks, 9*1000 );
stop();
};
function changeLinks()
{
if( num >= links.length )
{
num=0;
}

_root.txtImageURL.text = links[num];
num++;
}

on (release) {
getURL(_root.txtImageURL.text, "_blank");
// txtImageURL is textfield instance name
}*************************************************

Thanks for your timely concern
regards
-kavita18



Please use the proper code syntax to format the code.
Read this page (http://www.actionscript.org/forums/misc.php3?action=bbcode#buttons) to find out more about the tag information