# Lost "stage." ability using multiple AS files

**URL:** <https://forum.kirupa.com/t/lost-stage-ability-using-multiple-as-files/295883>\
**Category:** flash\
**Created:** [September 6, 2009, 7:37pm UTC](https://forum.kirupa.com/t/lost-stage-ability-using-multiple-as-files/295883 "2009-09-06T19:37:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KillinSprE](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@KillinSprE](https://forum.kirupa.com/u/KillinSprE)\
**Post date:** [September 6, 2009, 7:37pm UTC](https://forum.kirupa.com/t/lost-stage-ability-using-multiple-as-files/295883/1 "2009-09-06T19:37:32Z")

</div>

When I was using timeline AS3 code these two lines worked:

```auto

            stage.focus = username_Txt1;
            stage.addEventListener(KeyboardEvent.KEY_UP,checkEmpty2);

```

Now I’m using multiple AS files with packages. Like this:

index.swf --\>Main.as --\> pg1.as --\> pg2.as

the above code is in pg2.as. How do i get it to affect the stage?

Also while I’m at it, how do I removeChild a child created in Main.as from either pg1.as or pg2.as? EG: in Main.as I addChild(this\_kid) and in pg1.as I need to removeChild(this\_kid)
