Medyman
03-21-2007, 04:14 PM
Hello...
I am creating a client website.
I have several thumnails on the wesbite which I'm linking to the larger image through loadMovie();, using code like this:
thumb1.onRelease = function() {
unloadMovie(_root.pic);
_root.pic.loadMovie("images/1.jpg");
_root.black._visible = true;
new Tween(_root.black, "_alpha", Regular.easeInOut, 0, 70, 1, true);
}
Now, I have 60 thumbnails. Is there a way to do this using a for loop so I don't have to copy and paste the same action for all 60.
The images and thumb names are the same...i.e. thumb1 links to 1.jpg and thumb60 links to 60.jpg.
Thanks
I am creating a client website.
I have several thumnails on the wesbite which I'm linking to the larger image through loadMovie();, using code like this:
thumb1.onRelease = function() {
unloadMovie(_root.pic);
_root.pic.loadMovie("images/1.jpg");
_root.black._visible = true;
new Tween(_root.black, "_alpha", Regular.easeInOut, 0, 70, 1, true);
}
Now, I have 60 thumbnails. Is there a way to do this using a for loop so I don't have to copy and paste the same action for all 60.
The images and thumb names are the same...i.e. thumb1 links to 1.jpg and thumb60 links to 60.jpg.
Thanks