Josamoto
03-31-2006, 02:17 PM
Hi all!
I'm creating a website for myself with a image gallery. The gallery consists of a row of thumbnails at the top, which I want to be able to scroll smoothly horizontally.
When the user clicks on a thumbnail, it displays the image for the relative thumbnail.
The click and display image works perfectly, but I am having trouble getting the horizontal scrolling to work. I've got the following code:
onClipEvent(onEnterFrame){
mcThumbnails._x += value;
(I've tried _root.mcPortfolio.mcThumbnails._x amongst some other attempts)
}
...but no matter where I put it, it doesn't affect the thumbnail movieclips position at all. I've tried accessing the mc via the _root variable, but to no avail. It appears as if onClipEvent is not executing at all.
The basic hierarchy looks as follows:
_root
..\\mcPortfolio - Movie containing thumbnails and images.
..\\mcPortfolio\\mcThumnails - Movie with thumbnails (which should scroll left/right)
Can someone please help?!?! I've been struggling for 3 hours today to get this right, but I just can't.
Thanks for your interest in my problem!
I'm creating a website for myself with a image gallery. The gallery consists of a row of thumbnails at the top, which I want to be able to scroll smoothly horizontally.
When the user clicks on a thumbnail, it displays the image for the relative thumbnail.
The click and display image works perfectly, but I am having trouble getting the horizontal scrolling to work. I've got the following code:
onClipEvent(onEnterFrame){
mcThumbnails._x += value;
(I've tried _root.mcPortfolio.mcThumbnails._x amongst some other attempts)
}
...but no matter where I put it, it doesn't affect the thumbnail movieclips position at all. I've tried accessing the mc via the _root variable, but to no avail. It appears as if onClipEvent is not executing at all.
The basic hierarchy looks as follows:
_root
..\\mcPortfolio - Movie containing thumbnails and images.
..\\mcPortfolio\\mcThumnails - Movie with thumbnails (which should scroll left/right)
Can someone please help?!?! I've been struggling for 3 hours today to get this right, but I just can't.
Thanks for your interest in my problem!