# Class error - must subclass

**URL:** <https://forum.kirupa.com/t/class-error-must-subclass/305370>\
**Category:** Uncategorized\
**Created:** [February 24, 2010, 7:01am UTC](https://forum.kirupa.com/t/class-error-must-subclass/305370 "2010-02-24T07:01:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loudsubs](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@Loudsubs](https://forum.kirupa.com/u/Loudsubs)\
**Post date:** [February 24, 2010, 7:01am UTC](https://forum.kirupa.com/t/class-error-must-subclass/305370/1 "2010-02-24T07:01:15Z")

</div>

Hi,  
I’ve made a movie clip with buttons in it called ‘myContent’. I want each button to reference a different video in the video player on the main stage. This movie clip is linked to a scrollpane, since there is not enough real-estate.  
I right clicked on the myContent movie clip in the library and chose ‘export for actionscript’ under properties.

then used the script:  
scrollPane.source=myContent;  
scrollPane.setSize(205, 500);

to get the scroll bar to work.

When I add the script in the myContent movie clip to reference the different videos I get a few errors:

1152: A conflict exists with inherited definition flash.display:DisplayObject.name in namespace public.

5000: The class ‘fl.controls.ScrollBar’ must subclass ‘flash.display.MovieClip’ since it is linked to a library symbol of that type.

It seems I must tell the scroll bar to look in a subclass?

When I get rid of the script telling it to load the videos, the scroll bar works and I get no errors, but when I put in the script to load the videos, its a major malfunction.

Any ideas would be much appreciated.
