Button on custom scrollbar

I have a custom horizontal scroll bar mc. and I wanna put mc buttons in it so it’s like a navigation bar at the bottom of the page that slides R and L. When you click on one if those mc buttons I want the link to load above the scrollbar. But, when I put the button mcs inside the scrollbar mc, the buttons don’t work anymore. What is wrong here?

Unexpected file format for me.

me as well

me three

At a guess it would be that your buttons are no longer working because now that you have put them inside another movie clip you haven’t changed there paths.

ex,

gotoandplay();

_root.gotoandplay();

_root.name.name.gotoandplay();

if you haven’t changed this information on your buttons then this might be your problem.

ok, here is the file one more time,

the button mcs do not have any code that relates to _root or anything to work. the only thing referring to root is the loadMovie thing but other things do not work either so i dont think that is the case

  • they become dead inside of the scrollbar

please help

Instead of the onPress and onRelease handlers use onMouseDown and onMouseUp handlers…
[AS]this.onMouseDown = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.startDrag(false, gutterLeft, this._y, gutterRight, this._y);
dragging = true;
this.onMouseMove = function() {
updateAfterEvent();
};
}
};
this.onMouseUp = function() {
if (dragging) {
this.onMouseMove = undefined;
this.stopDrag();
dragging = false;
xSpeed = (newxpos-oldxpos)*RATIO;
}
};[/AS]

ok, I did it but it works partially. My button mc’s get highlights through as - on rollOver gotoAndStop(2) and I have a different color at fr2 but not, the trace inside the button mc is working but not hte gotoAndStop codes. ?

What are you talking about!?
… It works fine. :stuck_out_tongue: