# Scrollbar in loaded swf stops working

**URL:** <https://forum.kirupa.com/t/scrollbar-in-loaded-swf-stops-working/270598>\
**Category:** Uncategorized\
**Created:** [September 11, 2008, 11:54am UTC](https://forum.kirupa.com/t/scrollbar-in-loaded-swf-stops-working/270598 "2008-09-11T11:54:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![praxiz](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@praxiz](https://forum.kirupa.com/u/praxiz)\
**Post date:** [September 11, 2008, 11:54am UTC](https://forum.kirupa.com/t/scrollbar-in-loaded-swf-stops-working/270598/1 "2008-09-11T11:54:55Z")

</div>

Hi, sorry if this is a very n00b question but i have a class Scrollbar, which works fine unless I load the swf into another movie.

I get an error on this thing:

```php
public function Scrollbar():void {
scroller.addEventListener(MouseEvent.MOUSE_DOWN, dragScroll);
stage.addEventListener(MouseEvent.MOUSE_UP, stopScroll);			
stage.addEventListener(MouseEvent.MOUSE_WHEEL,mouseWheelHandler);
}

```

This is the error:

```php
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at Scrollbar()
	at flash.display::Sprite/constructChildren()
	at flash.display::Sprite()
	at flash.display::MovieClip()
	at sisteprosjekt_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at sisteprosjekt_fla::Symbol1_1/thumbLoaded()

```

Any suggestions would be greatly apreciated!
