;

PDA

Click to See Complete Forum and Search --> : Difficulty with onClipFrame..Help Plz!!!


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!

Josamoto
03-31-2006, 02:48 PM
A'ight!!! Not to worry dudes!!!

I struck a Bingo, here's what I did.

Select the parent movieclip, right click and select properties. In the behaviour tab, select Actions.

Add an Actionscript with the code I mentioned above, and hey presto. The movement is a bit jerky though, does anyone know how to smooth that out?

blanius
03-31-2006, 04:32 PM
onClipEvent(enterFrame) is the proper syntax I believe. I'm surpised it would work the way you have it.


As far as making is smoother, depends on how you are doing things. Source would help.

Josamoto
03-31-2006, 04:39 PM
Sorry man, I mistyped the onClipEvent(onEnterFrame) bit. I think it's because I've had a long day working on my website, my eyes are tired and I'm low on consentration juice.

All I needed to fix my problem was to get my eyes away from the screen for a while.

Thanks guys!

blanius
03-31-2006, 05:20 PM
good news then, let us know when we can see it....