Help With Creating Links And Images!

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!

This is for Flash MX

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

This is already Flash MX :stuck_out_tongue:

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:

thanks :slight_smile:
i feel like a complete newb…wait i am a newb :wink:

Now can you figure this one out is the question ;):

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