# Detecting class inheritance

**URL:** https://forum.kirupa.com/t/detecting-class-inheritance/311602
**Category:** flash
**Created:** [July 12, 2010, 4:41am UTC](https://forum.kirupa.com/t/detecting-class-inheritance/311602 "2010-07-12T04:41:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Scythe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/scythe/32/7239_2.png) [@Scythe](https://forum.kirupa.com/u/Scythe)
#### Post date: [July 12, 2010, 4:41am UTC](https://forum.kirupa.com/t/detecting-class-inheritance/311602/1 "2010-07-12T04:41:57Z")

</div>

I have a class called BgItem that I want many other classes to extend. But I also want to be able to use instances the BgItem class itself. Within the BgItem class file, I want to be able to detect whether the specific instance is of the BgItem class or an extension of it. I know I can detect if a class is in an object’s chain of inheritance using the “is” operator, but how do I detect if a class is at the end of the chain?
