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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user