# Test for instance then do something

**URL:** <https://forum.kirupa.com/t/test-for-instance-then-do-something/247165>\
**Category:** flash\
**Created:** [December 19, 2007, 2:07am UTC](https://forum.kirupa.com/t/test-for-instance-then-do-something/247165 "2007-12-19T02:07:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrutter](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jrutter/32/2004_2.png) [@jrutter](https://forum.kirupa.com/u/jrutter)\
**Post date:** [December 19, 2007, 2:07am UTC](https://forum.kirupa.com/t/test-for-instance-then-do-something/247165/1 "2007-12-19T02:07:15Z")

</div>

Hi there,

Wondering if anyone knows if there is a way to test to see if an instance is on the stage, if it is, then do something - else if do something else.

I have added an instance called popInfo to the stage and I want to test for it in my onHover State of a button - so if popInfo is on the stage it disables the onHover otherwise enable it.

Is that something that is do-able?
