Sorry i couldn’t understand what you mean…
Anyone looking for the horizontal version…here is one.
Super cool scroller Claudio! Thanks!
I have a question…maybe two. So using the horizontal version; if I load a movie clip to the stage using attachMovie into a blank MC called “main” how can I get the movie clip to scroll? It seems that I would need to determine the width of the attached movie and declare it somehow. I have tried (and deleted) to get this to work but to no avail. The only way it seemed to work is if “main” had something in it already. This is fine if you only load one MC and you can set the width inside main to the attached movie clip, but what if you want to load (at diferent times) MC’s of varying lengths…furthermore, what if the total width of said MC’s are huge?
What I am trying to avoid also is “overscroll”. That is to say I only ever want to scroll to the end of the loaded MC and no further.
I hope someone can help, it would be appreciated.
Okay…is the solution right in front of me or is it not possible…can someone please help me out…? Claudio?, Scottie?, anybody?
Cheers evryone!
Plonks
Hi,
I was trying to use the horizontal and vertical srolls inside the same movie, but i can’t seem to get it to work! I have given each target movie different names, aswell as each mask etc…
Does anyone have any ideas?? Please help.
Cheers.
Bazz°
hey claudio how can I make it work using a DEVICE FONT option…i mean, with the mask the text has some smoothness and I dont like it, i need it to be like a pixel font…do u know how can i do that???
thnx in advance
Original POST
Hi,
I was trying to use the horizontal and vertical srolls inside the same movie, but i can’t seem to get it to work! I have given each target movie different names, aswell as each mask etc…
Does anyone have any ideas?? Please help.
Cheers.
Bazz°
Could anyone please help me on the above question.
Thankyou very much…
if i hadn’t gotten my scrollpane to actually work 100% of the time this would’ve seriously saved me, but i might just use it in the future to reduce my file sizes. i added this line of code to the bar to initiate the dragging of the dragger if the bar is pressed:
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
this._parent.dragger._y = this._parent._ymouse;
this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
} else {
this._parent.dragger._y = this._parent._ymouse;
}
dragger.scrollEase();
dragger.onPress(); //<-------------- initiates on bar press to start dragging the dragger as well
};
great job on it claudio!
I used a horizontal version a few pages back, and I’m having the same troubles he had: the drag effect works fine along the bar, but the left and right buttons continue to scroll off into infinity. How can I fix it?
bar.useHandCursor = dragger.useHandCursor=false;
space = 500;
friction = 2;
speed = 2;
xD = dragger._x;
top = main._x;
bottom = main._x+mask_mc._width- 6622 -space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._parent.xD+this._parent.bar._width-this._width, this._y, this._parent.xD, this._y);
dragger.scrollEase();
};
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._xmouse>this._x+this._width-this._parent.dragger._width) {
this._parent.dragger._x = this._parent._xmouse;
this._parent.dragger._x = this._x+this._width-this._parent.dragger._width;
} else {
this._parent.dragger._x = this._parent._xmouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._x>=xD+bar._width-dragger._width && d == 1) || (dragger._x<=xD && d == -1)) {
clearInterval(myInterval);
} else {
dragger._x += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onRollOver = function() {
myInterval = setInterval(moveDragger, 0, -.1);
};
down_btn.onRollOver = function() {
myInterval = setInterval(moveDragger, 0, .1);
};
up_btn.onRollOut = down_btn.onRollOut=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._x-xD)/(bar._width-this._width);
dy = Math.round((((top-(top-bottom)*r)-main._x)/speed)*friction);
main._x += dy;
};
};
Thanks!
I have always loved this scroller. It works like a charm and it is easy to alter. However, I was wondering if it is possible to add something to the script that would have the dragger snapping to certain locations on the way down the scroll. The code is beyond me, but I think it would be a nice addition to the .swf
If this is possible, TIA
Since this topic is about scrollers, maybe this can help out some people, dont know… check out. I took kirupa’s tutorial script and made it AS2 OO class
[QUOTE=DeeTex;1675630]I thought I might share this with you dudes.[/QUOTE]
First, thanks DeeTex for sharing this with us dudes, I read this TRUELY long threads and it seems your the only one who was able to fix this problem with height of the dynamically loaded text.
And thanks to Claduio for coming up with this awesome scroller.
sam you didin’t read all of the threads did you ?
I think on page 20 or something they discussed this.
Claudio nice job … How does it work on horizontally slide bar? Thanks