Scrolling text with dynamic loaded text

Hello to all coding experts,

I am having a few coding issues with this scrolling text box. I am a fairly newly to Actionscript 3.0 so any help would be brilliant.

  • Line 36 > I also wish to move the scroll slider down when I click on the buttons

  • Line 60 > The max height of variable yMax seems wrong as slider finished before the track bar ends

  • Line 114 >

I am attempting to get the scrolling to link to the text box “blogBox_txt” then move as a percentage of it. I cant seem to get the textHeight to work

I looked at your file and fixed one mistake.
The file loads now, but still doesn’t scroll properly.

// NOT WORKING. Need to get the scroll slider to move as percentage of overall text height. Not sure how to link to the text box or how the textHeight function works. Does this need to be a variable??
	
	scrollBarShell_mc.slider_btn.y = (scrollPercentage*blogBox_txt.height);

Here’s an example of a fairly complete custom “easing” scroller.
Includes link to external text file, a conditional that resets the thumb to the top of the track if the content is reloaded, and auto-hides the scrollbar if the content does not require scrolling.
The basic scrollbar code came from the gotoandlearn.com tutorial.

[COLOR=“Blue”][U]http://www.byrographics.com/AS3/textScroller/scrollingText.html[/U][/COLOR]