Scrollbar in AS 3.0

Hey guys, I’m trying to create this exact same scrolling unit in As 3.0.

I the main thing I’m trying to achomplish is a scroll bar that will scroll anything inside a MC…

Please Help!:crying:

Here’s an AS3 scrollbar with easing.
This is based on the tutorial at
TweenMax is used for the easing, but Tweener or TweenLite can be substituted.

import gs.TweenMax;
import fl.motion.easing.*;

var xOffset:Number;
var xMin:Number = 0;
var xMax:Number = stage.width - stage.width/2;

sb.thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbDown);
stage.addEventListener(MouseEvent.MOUSE_UP, thumbUp);

function thumbDown(e:MouseEvent):void {
	stage.addEventListener(MouseEvent.MOUSE_MOVE, thumbMove);
	xOffset = mouseX - sb.thumb.x;

function thumbUp(e:MouseEvent):void {
	stage.removeEventListener(MouseEvent.MOUSE_MOVE, thumbMove);

function thumbMove(e:MouseEvent):void {
	sb.thumb.x = mouseX - xOffset;
	if (sb.thumb.x <= xMin) {
		sb.thumb.x = xMin;
	if (sb.thumb.x >= xMax) {
		sb.thumb.x = xMax;
	var sp:Number = sb.thumb.x / xMax;, 1, {x:(-sp*(content.width - masker.width)), ease:Back.easeOut});

A young man was walking through a super market to pick upa few things when he noticed an old lady following him.“Pardon me,” she said. “I’m sorry if my staring at youhas made you feel uncomfortable. …World Of Warcraft gold is WoW gold, It’s just that you lookjust like my son, who died recently.”“I’m very sorry,” replied the young man, “is thereanything I can do for you?”“Yes,” she said, “as I’m leaving, would you say’Goodbye, mother?’ It would make me feel so much better.”“Sure,” answered the young man.As the old woman was leaving, he called out,“Goodbye, Mother!” Then, as he stepped up to the checkout counter, he saw that his total was $127.00. “How can that be?” he asked. "I only purchased a few things!"The clerk replied, “Your mother said you’d pay for her.”