# \[AS3\] Check to see if MovieClip Exsists

**URL:** https://forum.kirupa.com/t/as3-check-to-see-if-movieclip-exsists/223789
**Category:** flash
**Created:** [April 25, 2007, 7:49pm UTC](https://forum.kirupa.com/t/as3-check-to-see-if-movieclip-exsists/223789 "2007-04-25T19:49:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sarahelizabeth](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sarahelizabeth/32/2493_2.png) [@sarahelizabeth](https://forum.kirupa.com/u/sarahelizabeth)
#### Post date: [April 25, 2007, 7:49pm UTC](https://forum.kirupa.com/t/as3-check-to-see-if-movieclip-exsists/223789/1 "2007-04-25T19:49:41Z")

</div>

I’m being a little dense today, I swear I’ve done this so many times before, but it’s just not working out.

Is there a way to see if a MovieClip exists within another MovieClip that has a class applied to it?

My code:

```auto

package{
    
    import flash.display.MovieClip;
    
    public class Test extends MovieClip{
        
        public function Test(){
            trace('Test!');
            trace(box2);
            if(box3){
                trace('box 3 extsists');
            }else{
                trace('no box 3');
            }
        }
        
        public function create():void{
            this.graphics.beginFill(0x000000);
            this.graphics.drawRect(0, 0 , 10, 10);
            this.graphics.endFill();
        }
        
    }
}

```
