# How can i see if a textfield is on the stage?

**URL:** <https://forum.kirupa.com/t/how-can-i-see-if-a-textfield-is-on-the-stage/298085>\
**Category:** flash\
**Created:** [October 13, 2009, 2:55pm UTC](https://forum.kirupa.com/t/how-can-i-see-if-a-textfield-is-on-the-stage/298085 "2009-10-13T14:55:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [October 13, 2009, 2:55pm UTC](https://forum.kirupa.com/t/how-can-i-see-if-a-textfield-is-on-the-stage/298085/1 "2009-10-13T14:55:58Z")

</div>

I have an addChild(tip);

but i want something like  
if(tip == true){

removeChild(tip);  
}

before the addChild(tip), in order to see if there is a tip, if there is i want to delete it and have the new tip added.

my above code doesnt work
