チェンジセット 1008

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

--

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/Slides/branches/1.x/src

    • 属性の設定値: svn:ignore (変更前)
      Main.as
      (変更後)
      Main.as
      caurina
      com
      sketchbook
      jp
      fl
  • as3/Slides/branches/1.x/src/uranodai/display/Document.as

    r986 r1008  
    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/branches/1.x/src/uranodai/slides/PluginsView.as

    r986 r1008  
    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); 
     33                         
    3334                         
    3435                        //現在のページ数を表示するプラグイン 
     
    3738                        _indexPlugin.y = Config.height - 20; 
    3839                        _indexPlugin.setTotal(MainScene.instance.main.totalFrames); 
    39                         addChild(_indexPlugin); 
     40                         
    4041                 
    4142                        //ペイントキャンバスを表示するプラグイン 
    4243                        _paintPlugin = new PaintPlugin(Config.width, Config.height, 0, 0); 
     44                         
     45                        //ズーム・パン機能のプラグイン 
     46                        _scalePlugin = new ScalePlugin(Config.width, Config.height, 0, 0); 
     47                         
     48                        addChild(_timePlugin); 
     49                        addChild(_indexPlugin); 
     50                        addChild(_scalePlugin); 
    4351                        addChild(_paintPlugin); 
    44                          
    45                         _scalePlugin = new ScalePlugin(Config.width, Config.height, 0, 0); 
    46                         addChild(_scalePlugin); 
    4752                 
    4853                        _instance = this; 
     
    5358                        Document.instance.onKeyDown = function(code:Number):void 
    5459                        { 
    55                                 trace(code) 
     60                                //trace(code) 
    5661                                if(code == 84){ //t 
    5762                                        _timePlugin.toggle(); 
     
    6065                                }else if(code == 80){ //p 
    6166                                        _paintPlugin.toggle(); 
    62                                 }else if(code == 83){ 
     67                                }else if(code == 83){ //s 
    6368                                        _scalePlugin.toggle(); 
     69                                }else if(code == Keyboard.SPACE || code == Keyboard.CONTROL){ 
     70                                        _scalePlugin.parent.addChild(_scalePlugin); 
     71                                } 
     72                        } 
     73                         
     74                        Document.instance.onKeyUp = function(code:Number):void 
     75                        { 
     76                                if(code == Keyboard.SPACE || code == Keyboard.CONTROL){ 
     77                                        _paintPlugin.parent.addChild(_paintPlugin); 
    6478                                } 
    6579                        } 
     
    6882                        { 
    6983                                _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); 
    8084                        } 
    8185