[framwswitcher] focus fix

This commit is contained in:
2015-05-14 18:01:31 +03:00
parent 6ca134c3ee
commit 9abd0ebf88

View File

@@ -24,6 +24,7 @@ class FrameSwitcher extends GroupView implements IFrameSwitcher<Sprite> {
} }
current = frames.get(id); current = frames.get(id);
addView(current); addView(current);
if (content.stage != null) content.stage.focus = current.content;
var onShowMethod:Dynamic = Reflect.field(current, "onShow"); var onShowMethod:Dynamic = Reflect.field(current, "onShow");
if (onShowMethod != null) Reflect.callMethod(current, onShowMethod, []); if (onShowMethod != null) Reflect.callMethod(current, onShowMethod, []);
return current; return current;