Armen's newsblock... scrollbar problems

Hi,

I recently found a link to download Armen’s 2003 newsblock .fla. You may have already seen it. It puts your news articles in one textbox, linking them up to an XML file. The textbox only shows the date/brief content. You have to click on “more>>” to see the full article.

Pretty cool, except that the newsblock uses the Flash component scrollbar. :frowning: I would like to use a regular actionscript created scrollbar, but I’m having trouble doing so!!

I’ve tried using some of Scotty’s code from a previous .fla he helped me, but right now the scrollbar will only move the textbox up or down. Is this an easy fix? If this is fixed, my other problem was that if you scroll way down on the list and click “more>>”, the user actually has to scroll up to read the top of the text! :frowning:

I appreciate your help!!

Scrollbar code:


//Original code... used Flash scrollbar component
//this.attachMovie("FScrollBarSymbol", "scrollbar", 1);
//this.scrollbar.setScrollTarget(news_txt);
//this.scrollbar._x = ref.boundingBox_mc._width-this.scrollbar._width;
//this.scrollbar._y = 0;
//this.scrollbar.setSize(ref.boundingBox_mc._height);

//Scotty's code
var vis = 1;
//easing function for the scrolling 
MovieClip.prototype.easeTo = function() {
	this.onEnterFrame = function() {
		//if there is need to scroll, "listen" to the dragger
		if (vis) {
			dy = -dragger._y*(scrArea/sliArea);
			this._y += Math.round((dy-this._y)/8);
			//no need to scroll, set the text at startposition
		} else {
			this._y = 0;
		}
	};
};
var endY = slide._y+slide._height-dragger._height;
var sliArea = endY-slide._y;
dragger.onPress = function() {
	scrArea = ref.textBlock_mc._width-this.boundingBox_mc._width;
	this.startDrag(false, slide._x, slide._y, slide._x, endY);
};
dragger.onRelease = function() {
	this.stopDrag();
};
dragger.onReleaseOutside = dragger.onRelease;
ref.textBlock_mc.easeTo();