Revamped EZGame to work over the security boundary.

Now, instead of implementing "Game" and having the EZGame object assigned
to you, you create it yourself using your top-level component.

You must register listeners manually, and keyboard focus is currently an
issue that I'm working on.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@137 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2007-01-05 18:59:08 +00:00
parent 86a879a725
commit 3b08974f73
14 changed files with 675 additions and 648 deletions
@@ -0,0 +1,28 @@
package com.threerings.ezgame.client {
import flash.display.InteractiveObject;
import flash.display.Loader;
import mx.managers.IFocusManagerComponent;
import com.threerings.util.MediaContainer;
public class GameContainer extends MediaContainer
implements IFocusManagerComponent
{
public function GameContainer (url :String)
{
super(url);
}
override public function setFocus () :void
{
super.setFocus();
if (systemManager.stage.focus == this) {
// TODO
//systemManager.stage.focus = InteractiveObject(Loader(_media).content);
systemManager.stage.focus = Loader(_media);
}
}
}
}