# Cant remove child from stage

**URL:** <https://forum.kirupa.com/t/cant-remove-child-from-stage/309041>\
**Category:** flash\
**Created:** [May 5, 2010, 2:01pm UTC](https://forum.kirupa.com/t/cant-remove-child-from-stage/309041 "2010-05-05T14:01:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nimaro](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@Nimaro](https://forum.kirupa.com/u/Nimaro)\
**Post date:** [May 5, 2010, 2:01pm UTC](https://forum.kirupa.com/t/cant-remove-child-from-stage/309041/1 "2010-05-05T14:01:53Z")

</div>

Hy everyone,

Im trying to remove a swf that i import to the stage, but it is not working:

Im doing like this:

```auto

function btn_cima_3call(clickEvent:MouseEvent):void{
    page = 5;
    esconder();
    content.gotoAndStop(page);
    ld.load(new URLRequest("trabalhosV0.swf"));
    ld.x = 0;
    ld.y = 100;
    addChild(ld);
    }

```

So when 1 button is pressed this swf is imported to the stage. but im now trying to remove this when another button is pressed and it isnt working, dont know why. 😕  
simple like this:

```auto

function btn1call(clickEvent:MouseEvent):void{
    removeChild(ld);
    page = 1;
    content.gotoAndStop(page);}

```

Hope u guys can help me on this
