# Air for andriod remove webview from stage when i use the back funciton

**URL:** <https://forum.kirupa.com/t/air-for-andriod-remove-webview-from-stage-when-i-use-the-back-funciton/330789>\
**Category:** Uncategorized\
**Created:** [March 16, 2013, 1:46pm UTC](https://forum.kirupa.com/t/air-for-andriod-remove-webview-from-stage-when-i-use-the-back-funciton/330789 "2013-03-16T13:46:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradholz](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@bradholz](https://forum.kirupa.com/u/bradholz)\
**Post date:** [March 16, 2013, 1:46pm UTC](https://forum.kirupa.com/t/air-for-andriod-remove-webview-from-stage-when-i-use-the-back-funciton/330789/1 "2013-03-16T13:46:24Z")

</div>

I’ve got some code that removes my movie-clip when i use the back button on my android device,but in my movie clips i use the stageWebView function Is there any way of removing the stage web view from the stage when my back button is activated?

“mc” loads a array of moveclips from my library

i have tried using the back function in my movie clips but it just throw back errors this was the only way i got it working

```php

function loadClass(e:MouseEvent):void
{
    var ClassRef:Class = getDefinitionByName( e.target.text ) as Class;
    var mc:MovieClip = new ClassRef();
    mc.width = mc.width;
    mc.x = mc.x+15;
    mc.y = mc.y+380;
    addChild(mc);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey2);

function backsearch():void
{
removeChild(mc);
mc = null;

}

function onKey2(e:KeyboardEvent):void
{
if(e.keyCode == Keyboard.BACK)
{
e.preventDefault();

if(mc) backsearch();
}
}
    
}

```
