root/as3/Cohesion/framework/trunk/CHConfig/CHConfig.as

リビジョン 345, 2.0 kB (コミッタ: amoi, コミット時期: 4 年 前)

Cohesion Frameworkを登録します。

  • svn:keywords 属性の設定値: Id Date Author Rev
Line 
1 /*
2  * Copyright(c) 2008 the Spark project.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific language
14  * governing permissions and limitations under the License.
15  */
16
17 package{
18         import flash.display.Sprite;
19         import flash.display.Stage;
20         import flash.display.StageAlign;
21         import flash.display.StageScaleMode;
22         import jp.cohesion.common.IKernel;
23
24         /* == [Project Cohesion] =================================================== */
25        
26         /**
27          * Cohesion サーバ接続情報
28          *
29          * @author              $Author$
30          * @revision    $Rev$
31          * @date                $Date$
32          */
33         public class CHConfig extends Sprite {
34                
35                 /** デバッグモード */
36                 public static const DEBUG_MODE:Boolean = true;
37                
38                 /** 接続先Cohesion Server ホスト名 */
39                 public static const HOST:String = "localhost";
40                
41                 /** 接続先Cohesion Server ポート番号 */
42                 public static const PORT:int = 843;
43                
44                 /** 接続先Cohesion Server Socklet */
45                 public static const SOCKLET:String = "cohesion";
46                
47                 /** シェアドオブジェクト名 */
48                 public static const SHARED_OBJECT_NAME:String = "COHESION_Shared";
49                
50                 /** モジュールムービー保管ディレクトリ(Main.swfからの相対パス) */
51                 public static const MODULES:String = "modules";
52                
53                 /**
54                  * ステージを初期化します。
55                  * Main.swfのプリローダから呼ばれます。
56                  *
57                  * @param       stage
58                  */
59                 public function initialize(stage:Stage):void {
60                         stage.stageFocusRect = false;
61                         stage.scaleMode      = StageScaleMode.NO_SCALE;
62                         stage.align          = StageAlign.TOP_LEFT;
63                 }
64                
65         }
66
67 }
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。