Simple Text Scoller I

I’m going to build some more versions but this is the first one. THere’s a working exsample on my site of the scroller.


onClipEvent(enterFrame){
	ymouse = _root._ymouse;
	ysimbol = _root.scrollsimsim._y;
	yval = (ysimbol-ymouse);
	hhval = _root.scrollsimsim._height/2;
	hhvaln = _root.scrollsimsim._height/-2;
	dial = yval+hhval;
	scrollvalue = Math.round(dial/hhval);
	if( hhvaln <= dial ){
		if ( hhval >= dial ){	
			this.scrollme.scroll += scrollvalue;
		}
	}
}