Scrollbar moving the position of an image

I have a horizontal scrollbar. I want this scrollbar to move a movie clip left and right on the screen.

I cannot figure out what I am doing. In one example I’m looking at, it has the script on the button of the slider:

onClipEvent(mouseMove){
_root.vPosition = _root.SliderMC.ButtonSliderMC._y * 5 / 6;
}

I can’t figure out the math for my scrollbar. How do I find the fraction that is in this part of the script? The numbers are not matching up for me. I also can’t get my slider to go left to right. It keeps going down. And my image that is suppose to be scrolling the with slider is not even moving.

Can anyone please help? I’ve spent my whole week working this out. I’d really appreciate it. If you know of any step by step tutorials, that would help too. Thanks.

maria-

I just figured out my slider issues. However, I still can’t figure out the math to have the slider move with the image.

I attached the swf to look at for a visual. The image won’t move left with the slider. I need to do something in the script to have these two clips connect together.

maria-

http://www.actionscript.org/tutorials/advanced/ADVANCED_SLIDER_MENU/index.shtml

So, I figured out the scrollbar issue I was having earlier as far as the math and all that. However, now, I’m is a more confusing situation.

The text scrollbar on the main timeline works great.

So then I click a button (in this case, “1”) which in turn pops up a window to another area of the timeline. Here, I have more text and another scrollbar. This is the same instance scrollbar that I used on the main timeline. However, I named it differently and thought I linked it to its appropriate text box. There is a this. command to gain control of that scrollbar alone, but it’s not working.

So, the problem is that the scrollbar on the main timeline is the only scrollbar that is scrolling every text box I put in the project. The new instance scrollbar is not communicating with its appropriate text…It scrolls, but it’s not scrolling it’s text.

This situation has stumped everyone so far. If anyone has any suggestions on how to get things to communicate with each other correctly, I’d greatly appreciate it.

Thanks.