PDA

View Full Version : Help With Creating Links And Images!!!



jp182
June 10th, 2003, 11:34 PM
Hey I put together a "photo gallery" using the tutorial I found at kirupa:

http://www.kirupa.com/developer/mx/photogallery.htm

and i was just wondering what kind of function would I need to make each one of the images clickable AND go to separate url's. I figured out that I would NEED a function and a separate array that would link up the URL's to the Images but I don't know how to really make the images clickable in the first place.

ANY help would be unimaginably helpful.

Thanks!

jp182
June 11th, 2003, 08:38 AM
This is for Flash MX

Should I just start over and use another method to create the same photo gallery effect??

pom
June 11th, 2003, 12:36 PM
This is already Flash MX :P

You would have to modify a bit the loadMeter prototype:
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l) {
// We're done loading the pic
this.onEnterFrame = fadeIn;
this.onPress = function (){
// do something
}
} else {
trace(l/t);
}
};You can figure out the rest (the separate array is a good idea :))

pom :phil:

jp182
June 11th, 2003, 11:42 PM
thanks :)
i feel like a complete newb............wait i am a newb ;)

jp182
June 12th, 2003, 08:20 AM
Now can you figure this one out is the question ;):

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=25726