# Problem with custom class, 5000 error

**URL:** https://forum.kirupa.com/t/problem-with-custom-class-5000-error/295148
**Category:** flash
**Created:** [August 25, 2009, 11:50pm UTC](https://forum.kirupa.com/t/problem-with-custom-class-5000-error/295148 "2009-08-25T23:50:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gotler](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@gotler](https://forum.kirupa.com/u/gotler)
#### Post date: [August 25, 2009, 11:50pm UTC](https://forum.kirupa.com/t/problem-with-custom-class-5000-error/295148/1 "2009-08-25T23:50:09Z")

</div>

I’m trying to get into proper OOP in AS, and the first thing I’ve tried to do is to make an improved textfield class that has a easy to use constructor and a method for clearing default text on focus. I’ve had quite a few problems, but this one I’m not able to solve on my own. I’m getting this error:

inputBox.as, line 1 5000: The class ‘inputBox’ must subclass ‘flash.display.MovieClip’ since it is linked to a library symbol of that type.

Now the weird thing is that I have nothing in the library of anything, and I am infact importing the mentioned subclass. I’ve tried commenting code out to no avail, and this is what I’m currently left with:

```auto
package {
        import flash.display.MovieClip;
        import flash.events.*;
        import flash.text.*;

        public class inputBox {
    }
}

```

I might be missing something obvious, but I’m just out of ideas.  
Cheers
