チェンジセット 1015
- コミット日時:
- 2008/08/23 10:15:45 (3 年前)
- ファイル:
-
- as3/Slides/trunk/slides.swf (更新) (変更前)
- as3/Slides/trunk/slides_all-in-one.zip (削除)
- as3/Slides/trunk/src/uranodai/display/Document.as (更新) (3 diffs)
- as3/Slides/trunk/src/uranodai/slides/PluginsView.as (更新) (6 diffs)
- as3/Slides/trunk/src/uranodai/slides/plugin/PaintPlugin.as (更新) (1 diff)
- as3/Slides/trunk/src/uranodai/slides/plugin/ScalePlugin.as (更新) (1 diff)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/Slides/trunk/src/uranodai/display/Document.as
r986 r1015 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/trunk/src/uranodai/slides/PluginsView.as
r986 r1015 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 //現在のページ数を表示するプラグイン … … 37 37 _indexPlugin.y = Config.height - 20; 38 38 _indexPlugin.setTotal(MainScene.instance.main.totalFrames); 39 addChild(_indexPlugin);40 39 41 40 //ペイントキャンバスを表示するプラグイン 42 41 _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); 43 49 addChild(_paintPlugin); 44 45 _scalePlugin = new ScalePlugin(Config.width, Config.height, 0, 0);46 addChild(_scalePlugin);47 50 48 51 _instance = this; … … 53 56 Document.instance.onKeyDown = function(code:Number):void 54 57 { 55 trace(code)58 //trace(code) 56 59 if(code == 84){ //t 57 60 _timePlugin.toggle(); … … 60 63 }else if(code == 80){ //p 61 64 _paintPlugin.toggle(); 62 }else if(code == 83){ 65 }else if(code == 83){ //s 63 66 _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); 64 76 } 65 77 } … … 68 80 { 69 81 _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 82 } 81 83 as3/Slides/trunk/src/uranodai/slides/plugin/PaintPlugin.as
r986 r1015 52 52 53 53 mc.x = 5; 54 mc.y = _stage.stageHeight - mc.height - 5;54 mc.y = _stage.stageHeight - mc.height - 20; 55 55 56 56 canvas.helper.lineStyle(PEN_SIZE, PEN_COLOR, PEN_ALPHA); as3/Slides/trunk/src/uranodai/slides/plugin/ScalePlugin.as
r980 r1015 173 173 174 174 field.x = 5; 175 field.y = _stage.stageHeight - field.height - 20;175 field.y = _stage.stageHeight - field.height - 5; 176 176 177 177 Flagment.register(ID, null);

