The xpos variable determines the position where the movieclip will go. For a initial position set the xpos to the proper value in the first frame of the movie.
Hi, I was trying the easing thing and I got to move properly and everything, but I don't undersatdn how you masked the boxes. Can yuo explain to how you did the masking, i ahve a box like yours and have it set to mask, with the picture boxes in layer below set to masked, but it doesn't mask. i ahven't used masking before.
Secondly, for the scrolling bar one, I get the pics to sroll with the two buttons, but is there a way to get it to stop? So someone doesn't kepp the thing moving it and take anhour to get back. I want the pics in the movieclip to scroll but to stop after the last pics and then the person has to go back the other way to the beginning.
To stop the scrolling you have to set some boundaries. The best way is to ask, if the movievie clip has reached a certain position tell it to stop. For instance
thanks, that worked, I just needed to adjust the numbers.
I'm trying one more thing. I made the ease scroller, and I changed it to vertical, and changed all the x's to y's. Is there anything else for that. I also, just have two arrows with that to scroll the pictures as they ease in up and down and it doesn't work. Can you take a look at the .fla and tell me what I'm doing wrong
The variable for y destination is ypos
But the easing scroll is made for having one button for every image, each setting a new value to ypos. Its not ment to continuosly scroll.
I don't want it to continuosly scroll I want it so if I click down it goes down one box, I click down agian and it goes down one more box and if I click up go up one box, if I click up agian go up another box and so on. Is this possible?
thanks so much for the help, but I need to dig this up one more time. On that script how can I have it not be able to go down any furnther or up any furthere, because someone can keep clicking and it will take for every to come back up. i tried the same code for the continous scrolling bar, but that doesnt work.
secondly, I tried usong the same code minus the easing part to make a regular clicking scroll, where I click and it moves down slightly like normal scroll bars but that didn't work, how would you do that?
Its been too long so I dont remember what code you are using ( this thread has to many variations).
Show the code you are using on movieclip and buttons and tell how you want it to work. Or post the fla.
on(release){
width_of_box=250;
ypos+=width_of_box;
}
and down scroll
on(release){
width_of_box=250;
ypos-=width_of_box;
}
there are two things I'm tryinng to figure out
I'm trying to make it so you cant go down any further or up.
Also, I wanna make a scroller with no easing jsut like a regular scroller without a bar and just two buttons, where if i click down it goes slightly down and up it goes slightly up.
// left scroll
on(rollOver){
left=1;
}
on(rollOut){
left=0;
}
// right scroll
on(rollOver){
right=1;
}
on(rollOut){
right=0;
}
To set boundaries of your current script. This should make the scroll stop after showing 3 images ( three clicks ). And you can only scroll down IF you have scrolled up ( I think). You have to play with it.
that stop code is really weird, I was trying to get it work and i was changing the numbers and soemtimes I could go down but only fi i pressed up twice and if i pressed down i coulcn't go up but I could go how erv far iw anted down and if I clicked up once i couldnt og down. really weird
Originally posted by pellepiano If you want your buttons to scroll a say 5 pixels and no more each time you clik a button you can just use a button like this.
// Down button
on(release){
myScrollingClip._x+=5;
}
for this i was trying to figure out a stop code. sorry for all the questions, I'm trying to figure these out myself but nothing works. here's the code I've been trying, it's coudl yu gave earlier for the continous scroller, it doesnt work though.
Im doing this on top of my head so there may be an occasional error.
Maybe you are trying to many things at once, it can be quite confusing.
The stop code you have will permit scrolling of a 63 pixels area. Note that the position is counted from the MIDDLE ( the cross ) of the movieclip. Not its top left.
I usually position my graphics inside the movieclip so the top left is in the exact middle of the movieclip ( which is x 0 and y 0 of the movieclips canvas ).
When i test mt .fla it does a crazy scroll and ends up at a random starting point - all i want it to do is not to move until i click a button to change it x position.