home *** CD-ROM | disk | FTP | other *** search
- package
- {
- import com.bowlerhatgames.display.GameRoot;
- import com.bowlerhatgames.gridshock.GameBoard;
- import com.bowlerhatgames.gridshock.GlobalSettings;
- import flash.display.MovieClip;
- import flash.events.ContextMenuEvent;
- import flash.events.Event;
- import flash.net.URLRequest;
- import flash.net.navigateToURL;
- import mochi.as3.MochiServices;
-
- [Embed(source="/_assets/assets.swf", symbol="symbol77")]
- public class Gridshock extends GameRoot
- {
- public static const GAME_ID:String = "Gridshock";
-
- public var gameBoard:GameBoard;
-
- private var _mochiContainer:MovieClip;
-
- public function Gridshock()
- {
- super();
- this.addEventListener(Event.ADDED_TO_STAGE,addedToStageHandler);
- }
-
- override protected function playMoreItemSelectHandler(param1:ContextMenuEvent) : void
- {
- navigateToURL(new URLRequest(GlobalSettings.MORE_GAMES_URL),"_blank");
- }
-
- private function addedToStageHandler(param1:Event) : void
- {
- param1.currentTarget.removeEventListener(param1.type,arguments.callee);
- this._mochiContainer = new MovieClip();
- this.addChild(this._mochiContainer);
- MochiServices.connect("38ef553de9d1dbe6",this._mochiContainer);
- if(this.loaderInfo.url.indexOf("file://") < 0)
- {
- MochiBot.track(this,"e3579a37");
- }
- }
- }
- }
-
-