# Test For Class

**URL:** <https://forum.kirupa.com/t/test-for-class/286334>\
**Category:** flash\
**Created:** [April 14, 2009, 1:41am UTC](https://forum.kirupa.com/t/test-for-class/286334 "2009-04-14T01:41:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanDaMan](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Post date:** [April 14, 2009, 1:41am UTC](https://forum.kirupa.com/t/test-for-class/286334/1 "2009-04-14T01:41:14Z")

</div>

How can I test to see if the Class of an instance is the correct one? Say I have two Custom Classes, Circle and Square. How would I make it so that if the class of instance one is Circle, a specific function is carried out? Thank you in advance.
