チェンジセット 1015

差分発生行の前後
無視リスト:
コミット日時:
2008/08/23 10:15:45 (3 年前)
コミッタ:
uranodai
ログメッセージ:

--

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/Slides/trunk/src/uranodai/display/Document.as

    r986 r1015  
    2626                public var onKeyDown:Function; 
    2727                public var onKeyUpShift:Function; 
     28                public var onKeyUp:Function; 
    2829                public var onResize:Function; 
    2930                 
     
    109110                                helper.dispatchEvent(onKeyDownShift); 
    110111                        } 
    111                         else{ 
    112                                 helper.dispatchEvent(onKeyDown, e.keyCode); 
    113                         } 
     112                         
     113                        helper.dispatchEvent(onKeyDown, e.keyCode); 
    114114                } 
    115115                 
     
    120120                                helper.dispatchEvent(onKeyUpShift); 
    121121                        } 
     122                         
     123                        helper.dispatchEvent(onKeyUp, e.keyCode); 
    122124                } 
    123125                 
  • as3/Slides/trunk/src/uranodai/slides/PluginsView.as

    r986 r1015  
    22{ 
    33        import flash.display.Sprite; 
     4        import flash.ui.Keyboard; 
    45         
    56        import jp.progression.scenes.SceneObject; 
     
    3031                        _timePlugin.x = Config.width-5; 
    3132                        _timePlugin.y = Config.height - 35; 
    32                         addChild(_timePlugin); 
    3333                         
    3434                        //現在のページ数を表示するプラグイン 
     
    3737                        _indexPlugin.y = Config.height - 20; 
    3838                        _indexPlugin.setTotal(MainScene.instance.main.totalFrames); 
    39                         addChild(_indexPlugin); 
    4039                 
    4140                        //ペイントキャンバスを表示するプラグイン 
    4241                        _paintPlugin = new PaintPlugin(Config.width, Config.height, 0, 0); 
     42                         
     43                        //ズーム・パン機能のプラグイン 
     44                        _scalePlugin = new ScalePlugin(Config.width, Config.height, 0, 0); 
     45                         
     46                        addChild(_timePlugin); 
     47                        addChild(_indexPlugin); 
     48                        addChild(_scalePlugin); 
    4349                        addChild(_paintPlugin); 
    44                          
    45                         _scalePlugin = new ScalePlugin(Config.width, Config.height, 0, 0); 
    46                         addChild(_scalePlugin); 
    4750                 
    4851                        _instance = this; 
     
    5356                        Document.instance.onKeyDown = function(code:Number):void 
    5457                        { 
    55                                 trace(code) 
     58                                //trace(code) 
    5659                                if(code == 84){ //t 
    5760                                        _timePlugin.toggle(); 
     
    6063                                }else if(code == 80){ //p 
    6164                                        _paintPlugin.toggle(); 
    62                                 }else if(code == 83){ 
     65                                }else if(code == 83){ //s 
    6366                                        _scalePlugin.toggle(); 
     67                                }else if(code == Keyboard.SPACE || code == Keyboard.CONTROL){ 
     68                                        _scalePlugin.parent.addChild(_scalePlugin); 
     69                                } 
     70                        } 
     71                         
     72                        Document.instance.onKeyUp = function(code:Number):void 
     73                        { 
     74                                if(code == Keyboard.SPACE || code == Keyboard.CONTROL){ 
     75                                        _paintPlugin.parent.addChild(_paintPlugin); 
    6476                                } 
    6577                        } 
     
    6880                        { 
    6981                                _paintPlugin.toggle(); 
    70                         } 
    71                          
    72                          
    73                         Document.instance.onKeyDownShift = function():void 
    74                         { 
    75                                 _paintPlugin.parent.addChild(_paintPlugin); 
    76                         } 
    77                         Document.instance.onKeyUpShift = function():void 
    78                         { 
    79                                 _scalePlugin.parent.addChild(_scalePlugin); 
    8082                        } 
    8183                         
  • as3/Slides/trunk/src/uranodai/slides/plugin/PaintPlugin.as

    r986 r1015  
    5252                         
    5353                        mc.x = 5; 
    54                         mc.y = _stage.stageHeight - mc.height - 5
     54                        mc.y = _stage.stageHeight - mc.height - 20
    5555                         
    5656                        canvas.helper.lineStyle(PEN_SIZE, PEN_COLOR, PEN_ALPHA); 
  • as3/Slides/trunk/src/uranodai/slides/plugin/ScalePlugin.as

    r980 r1015  
    173173                         
    174174                        field.x = 5; 
    175                         field.y = _stage.stageHeight - field.height - 20
     175                        field.y = _stage.stageHeight - field.height - 5
    176176                         
    177177                        Flagment.register(ID, null);