# How to check if a clip is on the scene

**URL:** <https://forum.kirupa.com/t/how-to-check-if-a-clip-is-on-the-scene/252807>\
**Category:** flash\
**Created:** [February 23, 2008, 9:09pm UTC](https://forum.kirupa.com/t/how-to-check-if-a-clip-is-on-the-scene/252807 "2008-02-23T21:09:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitsunegari](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@kitsunegari](https://forum.kirupa.com/u/kitsunegari)\
**Post date:** [February 23, 2008, 9:09pm UTC](https://forum.kirupa.com/t/how-to-check-if-a-clip-is-on-the-scene/252807/1 "2008-02-23T21:09:49Z")

</div>

Hi  
I would like to know if there is a method, a property or a function to know if a movieclip is on the scene of my flash file.

Here is the thing: I would like to use the removeChild function on some movieclips but only when they are actually on the scene so that I don’t get error messages.

Does something like this exist:

```auto
if(my_movie_clip.is_on_the_scene){ 
      removeChild(my_movie_clip); 
} 

```

The only solution I found would be to deal with a addEventListener(Event.ADDED\_TO\_STAGE, my\_function) to check a variable that would equal 1 if the clip was added on the scene and that would equal 0 if the clip was removed from the scene… but I’m searching for something more simple.

thanks for your help
