here’s the code
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)
any thoughts?