Ok I have another dilemma with a drag slider bar.
[COLOR=red]LINK TO MENU[/COLOR]
I need to make all the clips slide independently so I set it up this way I had it all in one clip and the slider worked but because of the project I need to have it set up like this. I have all the spacing but when I use the slider it accelerates the menu to the right I need it to move with the slider not run off the screen. Any help appreciated. Thanks.
I have taken out the startDrag functions so as not to have a bunch of code up here but they work.
Ok for the code
///=============================================
MovieClip.prototype.moveMenu = function(pAmount) {
this.pAmount = pAmount;
for (i=0; i<this.pAmount; i++) {
panels = _root.attachMovie(“panel”, “p”+i, i);
panels._x = i129;
panels._y = 39;
this.totalWidth = (panels._width+1)this.pAmount;
this.spacing = i129;
panels.onEnterFrame = function() {
this.scrollAmount = (this.totalWidth-(_root.track._width))/(_root.track._width-_root.track.dragger._width);
this.tx = -_root.track.dragger._xthis.scrollAmount;
this._x -= ((this._x*this.spacing)-this.tx)/4;
};
}
};
moveMenu(7);
//=============================================
sorry for not puttivng the code into
bla format
because for some strange reason it kept cutting off my code anyway back to the question abovered