vertical scrollbar for dynamic text field without Flash Components

I have a dynamic text field, which has data being added to the bottom all the time.

I want to have a scrollbar on the right side, with a draggable scroll button.

I can't figure out how to have live scrolling text, updated as you drag the button.

I don't want to use the scrollPane Component  (44 Kbytes, fat pig) ...

Help please...

Thanks
DonelsonAsked:
Who is Participating?
 
Aneesh ChopraCommented:
Hi,

here is the source code of Lightweight TextScroller AS2 component,
modify it as you want.
http://s42.yousendit.com/d.aspx?id=3QWCT7PIUQQT50W8EYI4OVOAOY


Rgds
Aneesh
0
 
Aneesh ChopraCommented:
Hi,

here is a Lightweight Scrollbar Component (only 4 kb)
here is details:
http://play.ground.gr/?p=85

Direct download link:
http://play.ground.gr/wp-content/uploads/2006/01/TextScroller.zip


Rgds
Aneesh
0
 
DonelsonAuthor Commented:
Aneesh, thanks.

But...

Sorry, I don't want a component because I want to change things around and add functions, etc.

Is there source code for that?

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
MontoyaProcess Improvement MgrCommented:
You can change things around, skin and add functions to any component.

If you still want to do it from the ground up...

http://www.kirupa.com/developer/flash8/scrollbar4.htm


0
 
DonelsonAuthor Commented:
That one appears to cover the entire window so you cannot click-select the text portion.

0
 
DonelsonAuthor Commented:
I have found that while

  this.startDrag(...)

is running, you CAN see the locations of the dragged object (a thumbwheel in this case)

  amountScroll = (this._y - scrollRect._y) / (scrollRect._y + scrollRect._height);

which I can use to animate the text field.
0
 
DonelsonAuthor Commented:
Thanks, Aneesh.

Hope you are well and enjoying Flash !

William
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.