# Checking for Stage Presence

**URL:** <https://forum.kirupa.com/t/checking-for-stage-presence/238661>\
**Category:** flash\
**Created:** [September 13, 2007, 6:11pm UTC](https://forum.kirupa.com/t/checking-for-stage-presence/238661 "2007-09-13T18:11:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![varPBR\_Tasty](https://avatars.discourse-cdn.com/v4/letter/v/ccd318/32.png) [@varPBR\_Tasty](https://forum.kirupa.com/u/varPBR_Tasty)\
**Post date:** [September 13, 2007, 6:11pm UTC](https://forum.kirupa.com/t/checking-for-stage-presence/238661/1 "2007-09-13T18:11:03Z")

</div>

Hello,

Is there a quick and dirty test expression I can use to check if an object is present on stage?

example would be:

```auto
addChild(myTextField);
//already defined and added text field

function loadOtherFields(event:MouseEvent):void{
  if (myTextFieldIsOnStage=true){
     removeChild(myTextField);
  }
//rest of function goes here
}

```

thanks in advance for any insight.

varPBR:Tasty
