+3  A: 

I think your problem is that stage=null. The reason can by only one: you trying to get to stage, when the MC is not added to it (then the reference is null).

Konrad
Where am I going wrong here?:scroll1 = new ScrollBar(roller1, track1, tab1); container.addChild(sc1); container.addChild(scroll1); container.addChild(bg); container.addChild(nv); addChild(container);
Leon
Try add event listeners not in constructor but on Event.INIT
Konrad
I got it! :D thx guys, was scratching my head with where code lines should be placed at...
Leon
+2  A: 

I agree with Konrad, also.. it is better practice to initiate the MOUSE_UP event when the MOUSE_DOWN event is captured.

so move the

stage.addEventListener(MouseEvent.MOUSE_UP, rollerUp);

inside of the rollerDown function.

Preston
w00t! Yeah that fixed it right up ;)
Leon
+4  A: 

Your stage is null because the newly created object is not yet on the stage. To get around this, use an ADDED_TO_STAGE listener in the constructor which then adds your stage events.

Sean
A: 

thanks,

this fixes the Problem for me.

So add Listener for Mouse_up inside the Mouse_down function and it works.

thanks a lot

AndreasK