# Error #1009

**URL:** https://forum.kirupa.com/t/error-1009/298338
**Category:** Uncategorized
**Created:** [October 16, 2009, 5:55pm UTC](https://forum.kirupa.com/t/error-1009/298338 "2009-10-16T17:55:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vsme](https://avatars.discourse-cdn.com/v4/letter/v/f08c70/32.png) [@vsme](https://forum.kirupa.com/u/vsme)
#### Post date: [October 16, 2009, 5:55pm UTC](https://forum.kirupa.com/t/error-1009/298338/1 "2009-10-16T17:55:38Z")

</div>

Hello! I have a LevelSelecMenu clip which shows menu, where you have to choose a level to play, when you click on the Level 1 button, it loads Level 1. I need to delete Level1 from stage(if level is done), but I have an Error #1009. Please help me to figure out the problem.

LevelSelecMenu

```auto
package {
    import flash.display.MovieClip;
    import flash.display.SimpleButton;
    import flash.events.MouseEvent;
    
    public class LevelSelectMenu extends MovieClip {
        public static var level_1:Level_1;
        
        public function LevelSelectMenu() {
            Level_1Button.addEventListener(MouseEvent.CLICK, Level_1ButtonClick);
        }
        
        private function Level_1ButtonClick(e:MouseEvent) {
            level_1=new Level_1();
            stage.addChild(level_1);
        }
    }
}

```

[COLOR=#000000]  
[/COLOR]  
Level\_1  
[LEFT]

```auto
package {
    import flash.display.MovieClip;
    
    public class Level_1 extends MovieClip {
        
        public function Level_1() {
            stage.removeChild(LevelSelectMenu.level_1);
        }
    }
}

```

[/LEFT]
