# Checking for Object Presence

**URL:** <https://forum.kirupa.com/t/checking-for-object-presence/282175>\
**Category:** flash\
**Created:** [February 18, 2009, 4:38pm UTC](https://forum.kirupa.com/t/checking-for-object-presence/282175 "2009-02-18T16:38:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reprovisional](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@reprovisional](https://forum.kirupa.com/u/reprovisional)\
**Post date:** [February 18, 2009, 4:38pm UTC](https://forum.kirupa.com/t/checking-for-object-presence/282175/1 "2009-02-18T16:38:59Z")

</div>

How can I check for the presence of something on the stage? I want to disable mouse clicks on the currentTarget while an image is loading, and I’d like to use the presence of a progress bar as the determinant to proceed.

My idea is:

```auto
 
If (progressBar is somewhere on the stage)
{ 
currentTarget.mouseChildren = false;
currentTarget.mouseEnabled = false;
}

```

Does that make sense?
