チェンジセット 4605: air

差分発生行の前後
無視リスト:
コミット日時:
2011/08/15 09:55:35 (9 ヶ月前)
コミッタ:
Mr.Grotesque
ログメッセージ:

--

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • air/clayg/jp/clayg/display/DisplayFps.as

    r4599 r4605  
    1010 
    1111        /** 
    12          * ..
     12         * DisplayFpsクラスは、フレームレートを画面に表示するためのクラスです
    1313         * @author Mr.Grotesque 
    1414         */ 
  • air/clayg/jp/clayg/display/VerticalScrollBox.as

    r4603 r4605  
    55 
    66        /** 
    7          * VerticalScrollBoxクラスは、スクロールを提供し、自動的に縦整列するコンテナクラスです. 
     7         * VerticalScrollBoxクラスは、スクロールするコンテナを提供し、各要素を自動的に縦整列するクラスです. 
    88         * @author Mr.Grotesque 
    99         */ 
  • air/clayg/jp/clayg/framework/smarty/Smarty.as

    r4603 r4605  
    1616        import flash.media.StageWebView; 
    1717        import flash.net.SharedObject; 
     18        import flash.system.Capabilities; 
    1819        import flash.text.TextField; 
    1920        import jp.clayg.framework.smarty.lisp.*; 
     
    2627        import jp.clayg.system.SoundManager; 
    2728        import jp.clayg.utils.DelayFrame; 
    28         import jp.clayg.utils.Finder; 
    2929        import jp.clayg.utils.Strings; 
    3030 
     
    3535        public class Smarty extends MovieClip 
    3636        { 
    37                 private static var _flashWidth:int; 
    38                 private static var _flashHeight:int; 
     37                private static var _flashWidth:uint; 
     38                private static var _flashHeight:uint; 
     39                private static var _stageWidth:uint; 
     40                private static var _stageHeight:uint; 
    3941                private static var _contentRect:Rectangle; 
    4042                private static var _counter:uint; 
     
    5254                private static var ms:MouseState; 
    5355                private static var ss:Strings; 
    54                 private static var fd:Finder; 
    5556                private static var lp:Lisp; 
    5657 
     
    7576                        stage.align = StageAlign.TOP_LEFT; 
    7677                         
    77                         _contentRect = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight); 
     78                        _stageWidth = stage.stageWidth; 
     79                        _stageHeight = stage.stageHeight; 
     80 
     81                        // TODO:Air for IOSだとstage.stageWidthがちゃんと取得できないバグがあるための対策 
     82                        // ↓ バグが治ったら消したい 
     83                        if ( Capabilities.os.slice(0,3) == "iPh" ) 
     84                        { 
     85                                _stageWidth = Capabilities.screenResolutionX; 
     86                                _stageHeight = Capabilities.screenResolutionY; 
     87                        } 
     88                        // ↑バグが治ったら消したい 
     89 
     90                        _contentRect = new Rectangle(0, 0, stageWidth, stageHeight); 
    7891                         
    7992                        // 背景 
     
    8497                        addEventListener(Event.ENTER_FRAME, function(){ _counter++;     }); 
    8598 
    86                         sm = new SceneManager(this); 
     99                        sm = new SceneManager(this); 
    87100                        ql = new QuickLoad(); 
    88101                        df = new DelayFrame(stage); 
     
    90103                        ms = new MouseState(stage); 
    91104                        ss = new Strings(); 
    92                         fd = new Finder(); 
    93105 
    94106                        lp = new Lisp(); 
     
    97109 
    98110                         
    99                         mainScale( new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight ) ); 
     111                        mainScale( new Rectangle( 0, 0, stageWidth, stageHeight ) ); 
    100112                } 
    101113                 
     
    128140                { 
    129141                        adHide(); 
    130  
     142                         
    131143                        swv = new StageWebView(); 
    132144                        swv.stage = stage; 
    133                         swv.viewPort = new Rectangle(0,0,stage.stageWidth,adHeight); 
     145                        swv.viewPort = new Rectangle(0,0,stageWidth,adHeight); 
    134146                        swv.loadURL(adUrl); 
    135147                         
    136                         mainScale( new Rectangle(0, adHeight, stage.stageWidth, stage.stageHeight-adHeight ) ); 
    137                          
     148                        mainScale( new Rectangle(0, adHeight, stageWidth, stageHeight-adHeight ) ); 
    138149                } 
    139150 
     
    147158                        swv.stage = null; 
    148159                        swv = null; 
    149                         mainScale( new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight ) ); 
     160                        mainScale( new Rectangle( 0, 0, stageWidth, stageHeight ) ); 
    150161                } 
    151162                 
     
    190201 
    191202                /** 
     203                 * 端末に表示されているコンテンツ領域の幅を取得します. 
     204                 */ 
     205                public static function get stageWidth():uint 
     206                { 
     207                        return _stageWidth; 
     208                } 
     209                 
     210                /** 
     211                 * 端末に表示されているコンテンツ領域の高さ取得します. 
     212                 */ 
     213                public static function get stageHeight():uint 
     214                { 
     215                        return _stageHeight; 
     216                } 
     217 
     218                /** 
    192219                 * 広告を除いた領域であるコンテンツ領域を取得します. 
    193220                 */ 
     
    501528 
    502529                /** 
    503                  * コンテナからTextFieldを取得します. 
    504                  */ 
    505                 public static function findTextField(container:DisplayObjectContainer, name:String):TextField 
    506                 { 
    507                         return fd.findTextField(container, name); 
     530                 * コンテナからインスタンスを取得します. 
     531                 */ 
     532                public static function findInstance(container:DisplayObjectContainer, cls:Class, name:String):* 
     533                { 
     534                        return jp.clayg.funcs.findInstance(container, cls, name); 
    508535                } 
    509536 
     
    511538                 * コンテナからMovieClipを取得します. 
    512539                 */ 
    513                 public static function findMovieClip(container:DisplayObjectContainer, name:String):MovieClip 
    514                 { 
    515                         return fd.findMovieClip(container, name); 
     540                public static function findInstances(container:DisplayObjectContainer, cls:Class):Array 
     541                { 
     542                        return jp.clayg.funcs.findInstances(container, cls); 
    516543                } 
    517544                 
  • air/clayg/jp/clayg/funcs/capture.as

    r4603 r4605  
    1010 
    1111        /** 
    12          * キャプチャーします. 
     12         * DisplayObjectをキャプチャーします. 
    1313         * @param       disp            キャプチャ対象オブジェクト 
    1414         * @param       container       キャプチャ場所のオブジェクト(nullでparent) 
  • air/clayg/jp/clayg/funcs/sprintf.as

    r4565 r4605  
    11package jp.clayg.funcs  
    22{ 
     3        /** 
     4         * C言語でお馴染みのsprintf関数を実行します. 
     5         * @param       fmt 
     6         * @param       ...rest 
     7         * @return 
     8         */ 
    39        public function sprintf(fmt:String, ...rest): String { 
    410                var idx:int = 0; 
  • air/clayg/jp/clayg/net/QuickLoad.as

    r4599 r4605  
    88        import flash.net.URLRequest; 
    99 
     10        /** 
     11         * QuickLoadクラスは、ファイルを気軽に読み込むクラスです. 
     12         */ 
    1013        public class QuickLoad 
    1114        { 
  • air/clayg/jp/clayg/system/KeyState.as

    r4562 r4605  
    88         
    99        /** 
    10          * キーステートクラスは、キーボードのキー状態を監視します. 
     10         * KeyStateは、キーボードのキーの状態を取得するクラスです. 
    1111         * 主にstateメソッドを使用してキーの状態を取得します。判定できるキー状態の種類は、 
    1212         * 押されていない(KeyState.UP) 押された瞬間(KeyState.PUSH) 押されている間(KeyState.DOWN) 離された瞬間(KeyState.PRESS) と少し特殊な KeyState.SELECTです。 
  • air/clayg/jp/clayg/system/MouseState.as

    r4599 r4605  
    66        import flash.geom.Point; 
    77        import flash.utils.getTimer; 
     8 
    89        /** 
    9          * ..
     10         * MouseStateクラスは、マウスの状態を取得するためのクラスです
    1011         * @author Mr.Grotesque 
    1112         */ 
  • air/clayg/jp/clayg/system/SoundManager.as

    r4599 r4605  
    77 
    88        /** 
    9          * ..
    10          * @author ... 
     9         * SoundManagerクラスは、サウンドを管理するためのクラスです
     10         * @author Mr.Grotesque 
    1111         */ 
    1212        public class SoundManager  
     
    5858                        delete sndCnlHash[name]; 
    5959                } 
    60                  
    61                  
    6260        } 
    63  
    6461}