horizontal scrolling picture gallery...... need help
Hey,
I hope all is well, i need to create a horzontal scrolling picture gallery, with the option to move right or left through pictures......
Any help on how to do this would be greatly appreciated...
Hello ...I am using your suggestion for scrolling and I was wondering if you can answer what I am sure is a rather simple question? I have attached the .fla for you to hopefully take a look at. What I can't figure out is that when you test the movie....the mc loads at xpos=0.
What if I want the scroll to be located say in the center of my movie and not at the far left at xpos=0? If you look at the attached .fla you see what I am referring to. I would like to know how to lace it somewhere else in the movie if I decide to.
Ah, this is much more elegant than mine.
Altho mine worked with just two buttons.
I'd like to know how the easing works in this though. I've seen easing code before, and it was pretty obvious, but this eases and I don't see anything that controls that.
OK, I see what does it, but how.
w00t, see, people do get smarter by the minute. The position is calculated every 40th or 12th of a second, or by whatever the frame rate is of the movie. Man, that's been bothering me for months.
Set the variable in the first frame of that actions layer to:
xpos = 50;
In effect, your resetting the left side of the stage area to x50 now instead of x0, as far as the movie is concerned. Then your button code on button 1 is:
my thread seems to have died on this subject, so I'm going to use this one which is more alive.
I like the easing effect scroller, but what im looking for is a little bit different. I want to have only two buttons, one for left and one for right. When you roll over the left button, the string of images continuously scrolls until you remove the mouse from the button...whence it stops scrolling. The right button is the same, it just scrolls back to the right. Each image will then be a button to link to a larger one.
I need something more continuous. The problem with that solution is that when you roll over, the images on move the specified amount of pixels once, hence you have to rollover again and again to get the images to move onto the screen.
I tried to attach my fla, but for some STUPID reason, the file is 589Kb...although all it is is a blank bg with three plain fill boxes, and two arrow buttons.
hmmm...I see where you are going with this code. I tried it out, but it doesn't seem to work. And yes, I have changed all the instance names to fit mine....
originally posted by pellepiano
onClipEvent(enterFrame){
this._x+=(_root.xpos-this._x)/7;
}
i sort of understand what it does..but how would I adjust it for my own gallery so the first picture is first. Using your code, it sets like the 6th pic in the "box"