ActiveDen

Ultimate AS 3 OOP ScrollBar

  • Has been a member for 4-5 years
  • Won a Competition
  • Contributed a Tutorial to a Tuts+ Site
  • Interviewed on the Envato Notes blog
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • United States
  • Referred between 1 and 9 users
ToyBoatHouse says

Very classy. I like that you have the arrow key listeners hooked up also.

Posted 3 years ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • United States
  • Referred between 10 and 49 users
RJFlash says

Wow! Neat scroller! Smooth and quick! I like it! :D

:( but the only thing I noticed:
the scrollbar’s height sometimes does not auto-resize..

Posted 3 years ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 50 and 99 items
  • Brazil
  • Referred between 1 and 9 users
guinetik says
Author

@diddlejuice, what do you mean? because it has arrow keys listeners…

@RJFlash i got that also, i think it’s an issue on the preview swf, i’m checking that now.

Posted 3 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • Referred between 10 and 49 users
baklach says

nice

Posted 3 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 1 and 9 items
  • France
  • Referred between 1 and 9 users
kenergy says

Great one ^^

Posted 3 years ago
  • Has been a member for 3-4 years
  • Bought between 100 and 499 items
  • United States
kevinrio says
Purchased

hey this works great & is easily customizable. Thanks!

Posted 3 years ago
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
clumpster says
Purchased

I’ve bought this scrollbar, it’s ok so far but it has a nasty bug. While having a fixed drag icon height, when you stop the drag midway of the scrollbar and then an event comes and changes the target, the drag icon resizes to the full height of the scrollbar and sticks that way, making it unusable before you change the target again.

PLZ FIX THE BUGGGGGG !!!!

PS. (“playing” with the reset() and init() positions in the code doesn’t change a thing)

Posted 2 years ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
redcameron says
Purchased

Hi there,

Excellent scrollbar class! Very well done, highly recommend it for people who are using it for intric scenarios where there’s a lot of masking.

VERY QUICK QUESTION : I need to be able to tell the scroll textarea to move to the TOP of the textfield. I can’t seem to find a function in the library to do this automatically and I’m rather tied up to dig through the code logic.

What’s the easiest way to get this done?

Thanks,

Dave

Posted 2 years ago
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
impaler says

yeah looks great, cant understand the bug clumpster talks about.

I’ll buy this if you add mouse wheel scrolling support which is what I see as a standard method for people ‘scrolling around’ these days :)

Posted 2 years ago
Author
guinetik guinetik replied

hi impaler

it has mousewheel support with hit test detection (i.e only scrolls with the wheel when your mouse is over either the target or the scroll) :D

Posted 2 years ago
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
impaler says
Purchased

it does too although I dont see the immediate need for the hittest thats pretty cool :) thanks for this, code looks pretty clean!

Posted 2 years ago
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
impaler says
Purchased

I am trying to get the horizontal scrolling iworking. Like it says I change the Boolean value before the init, after this the height of the Drag sprite is stretched and the content disappears. Are you able to provide a working example for the horizontal scrolling you mention in the description and readme.

Posted 2 years ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
brucemanson says
Purchased

Hi Guinetik,

Is there any way to instantiate the scroller in pure AS3 ? I don’t mind having the associated assets for the arrows etc in the library, but I would like to create the scroller without the need to drop the components directly on the stage?

Cheers

Posted 2 years ago
Author
guinetik guinetik replied

hi, just do it like this:

var scroll:ScrollBar = new ScrollBar(); addChild(scroll);

var arrowUP:ScrollArrow = new ScrollArrow(); var arrowDown:ScrollArrow = new ScrollArrow();

addChild(arrowUP); addChild(arrowDown);

scroll.initArrows(arrowUp, arrowDown);

this is considering that you have a ScrollArrow class in the library or something like that. but i’m sure you get the picture

Posted 2 years ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
brucemanson says
Purchased

Hi Guinetik,

Just a confirmation from yourside. As it stands now your “scrollTarget” does not support the ability to grow at runtime. i.e. add more children to the target container.

I am about to modify the code to support this.

Cheers

Posted 2 years ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
brucemanson says
Purchased

Hey Guinetik,

I’m also guess this control does not support “upward” scrolling. i.e Like say for example creating an IM Chat client, where the messages must scroll upwards. This would require the “drag” clip to start in the bottom position as opposed to it’s default top position as it is now.

PS: I still love this control for it’s simplicity. Two .as files is perfect for my needs and the fact that it only takes up 2k is SUPER AWESOME .

Cheers Bruce

Posted 2 years ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
brucemanson says
Purchased

Hi Guinetik,

With regards to dynamically adding content to the scroll container at runtime, this should help you out.

As you know, setting a scrollRect on a displayObject makes it pretty difficulty to calculate the displayObjects overflow height. (unless it’s text). Doing a check on the _targets actual height, the “overflow” height, can be achieved like this. _target.transform.pixelBounds.height

Adding that line as check to your _target will give you the ability to dynamically have content added to the scroll container at run time.

Cheers Bruce

Posted 2 years ago
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
alexchr says
Purchased

Hi Bruce,

In case you are still visitng the page!

I am trying to add content in the target dynamicaly too. I just want to add a dynamic number of MCs vertically.

Would you please share some code regarding your solution? Unfortunately my Actionscript skills are not good enough to implement this without your help. So i would definitely appreciate some lines of your code!

alexchr [at] yahoo .com

Thank you

Alex

Posted 2 years ago
Author
guinetik guinetik replied

try recalling the init() method after a reset() method. that should work.

remember, please send email recarding item support

Posted 2 years ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
eggbeer says
Purchased

Hey guinetik,

Nice work here and good functionality.

Just a question,

I have made a small scroll area, but the masked movieclip I have passed in has a very large height. The mouse wheel is now very twitchy.

In contrast when the scrollarea is very tall and the content is slightly taller, the scroll speed is very slow.

Any way of making the scroll speed consistant? I can kinda see the logic of this, but wouldnt be able to execute this change in my time frame.

Got any ideas?

Cheers,

Sam

Posted 1 month ago

You must sign in or sign up to purchase this item.

$8Regular Licence

$8

Regular Licence a website (commercial, personal, client), free game, e-card, or presentation - Details

$40Extended Licence

$40

Extended Licence an app, paid game, or other software project, a website template for sale - Details

59 Purchases 17 Comments

Buyer Rating
12345 ( 10 ratings )
guinetik

guinetik

  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 50 and 99 items
  • Brazil
  • Referred between 1 and 9 users
View Portfolio
Created 27 June 09
ActionScript Version AS3
Documentation Well Documented
Opens With Flash CS3 (9+)
Published Size 2kb
Resolution Resizable
by
by
by
by
by