チェンジセット 1008
- コミット日時:
- 2008/08/22 16:00:45 (3 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/Slides/branches/1.x/src
- 属性の設定値: svn:ignore (変更前)
Main.as
(変更後)
Main.as
caurina
com
sketchbook
jp
fl
- 属性の設定値: svn:ignore (変更前)
as3/Slides/branches/1.x/src/uranodai/display/Document.as
r986 r1008 26 26 public var onKeyDown:Function; 27 27 public var onKeyUpShift:Function; 28 public var onKeyUp:Function; 28 29 public var onResize:Function; 29 30 … … 109 110 helper.dispatchEvent(onKeyDownShift); 110 111 } 111 else{ 112 helper.dispatchEvent(onKeyDown, e.keyCode); 113 } 112 113 helper.dispatchEvent(onKeyDown, e.keyCode); 114 114 } 115 115 … … 120 120 helper.dispatchEvent(onKeyUpShift); 121 121 } 122 123 helper.dispatchEvent(onKeyUp, e.keyCode); 122 124 } 123 125 as3/Slides/branches/1.x/src/uranodai/slides/PluginsView.as
r986 r1008 2 2 { 3 3 import flash.display.Sprite; 4 import flash.ui.Keyboard; 4 5 5 6 import jp.progression.scenes.SceneObject; … … 30 31 _timePlugin.x = Config.width-5; 31 32 _timePlugin.y = Config.height - 35; 32 addChild(_timePlugin);33 33 34 34 35 //現在のページ数を表示するプラグイン … … 37 38 _indexPlugin.y = Config.height - 20; 38 39 _indexPlugin.setTotal(MainScene.instance.main.totalFrames); 39 addChild(_indexPlugin);40 40 41 41 42 //ペイントキャンバスを表示するプラグイン 42 43 _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); 43 51 addChild(_paintPlugin); 44 45 _scalePlugin = new ScalePlugin(Config.width, Config.height, 0, 0);46 addChild(_scalePlugin);47 52 48 53 _instance = this; … … 53 58 Document.instance.onKeyDown = function(code:Number):void 54 59 { 55 trace(code)60 //trace(code) 56 61 if(code == 84){ //t 57 62 _timePlugin.toggle(); … … 60 65 }else if(code == 80){ //p 61 66 _paintPlugin.toggle(); 62 }else if(code == 83){ 67 }else if(code == 83){ //s 63 68 _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); 64 78 } 65 79 } … … 68 82 { 69 83 _paintPlugin.toggle(); 70 }71 72 73 Document.instance.onKeyDownShift = function():void74 {75 _paintPlugin.parent.addChild(_paintPlugin);76 }77 Document.instance.onKeyUpShift = function():void78 {79 _scalePlugin.parent.addChild(_scalePlugin);80 84 } 81 85

