I was wondering how to make a sliding navigation just by clicking on arrows on either side of the menu. I have attached a picture of what I am talking about.
just by mousing over or clicking either of the arrows the images would slide the corisponding way. I would like it if it all moved smoothly if possible - not chunky.
That’s not exactly what I am looking for - but thank you very much for trying to help. I may not have been as clear as I should have. I’m sorry about that.
The code you gave me makes the animation jump and you can only click the button once.
I am looking for something similar to this tutorial
Doesn’t mine move smoothLY? i thought it should since i am constantly adding 20 to the x value until i release the mouse. Or am i missing something?? :-\
When I click on it, it just goes once, and thats it. no matter how long I hold down the button. Plus it only works once. If I click the button again - it will not move any more.
wow man that’s fantastic Thanks for your help. I have yet to try and make the last button, but I dont think there will be much of a problem.
I do have a question for you though - I hope I’m not being a pain here, but I was wondering if you could explain to me what each of the functions do that you made. Kind of break the new code down to me line by line. Thanks very much!:)
That line, just makes it so it keeps on adding 20 onto the _x value…
And this:
if (_root.slider._x >sliders_size) {
_root.slider._x = 0
}
I remmeber i changed this code, but i can’t remmeber what i changed it to. Refer back to the code that works, but this basically makes the slider repeat itself so you can pres the button forever with the thing sliding forever…
Lastly:
delete this.onEnterFrame
This is pretty self explanatory, but it basically deletes/stops the "this.onEnterFrame’ function, so it stops adding 20 to the slider. Get it? good