# What The Focus 2

**URL:** <https://forum.kirupa.com/t/what-the-focus-2/319925>\
**Category:** flash\
**Created:** [March 9, 2011, 2:07am UTC](https://forum.kirupa.com/t/what-the-focus-2/319925 "2011-03-09T02:07:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rimacy](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Post date:** [March 9, 2011, 2:07am UTC](https://forum.kirupa.com/t/what-the-focus-2/319925/1 "2011-03-09T02:07:44Z")

</div>

here’s the code

```auto
private function makeNewScreen():void
		{
			trace("makeNewScreen");
    		switch(newScreenName)
			{
        		case "playScreen":
 				//playScreen = new PlayScreen();
           		 playScreen = new PlayScreen(rocksX1,rocksY1);
            	 screenLayer.addChild(playScreen);
				[COLOR="Red"]stage.focus = playScreen;[/COLOR]
				//playScreen.addEventListener("playScreenAdded",addCollisionStuff);
       			 break;

```

when i have this line active([COLOR=“Red”]the red one[/COLOR]) it gives me automatic focus, so no clicking to be able to detect key input so i got that going for me which is nice BUT when i have it active(not commented out) i get this big yellow line which goes away when i click it(seeBelow)  
 ![](http://www.kirupa.com/forum/attachment.php?attachmentid=53243&stc=1&d=1299636103)

any thoughts?
