From 03317dbfcdfe7be7857fad411ba6704842351fb1 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 5 Mar 2007 02:57:06 +0000 Subject: [PATCH] I see that it was not a desire for verbosity but rather a limitation of Flash that inspired the previous structure. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@225 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../com/threerings/ezgame/client/EZGameController.as | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/as/com/threerings/ezgame/client/EZGameController.as b/src/as/com/threerings/ezgame/client/EZGameController.as index 6fd524f1..99b3ceee 100644 --- a/src/as/com/threerings/ezgame/client/EZGameController.as +++ b/src/as/com/threerings/ezgame/client/EZGameController.as @@ -126,7 +126,16 @@ public class EZGameController extends GameController // from PlaceController override protected function createPlaceView (ctx :CrowdContext) :PlaceView { - return _panel = new EZGamePanel(ctx, this); + return new EZGamePanel(ctx, this); + } + + // from PlaceController + override protected function didInit () :void + { + super.didInit(); + + // we can't just assign _panel in createPlaceView() for some exciting reason + _panel = (_view as EZGamePanel); } protected var _ezObj :EZGameObject;