チェンジセット 1101
- コミット日時:
- 2008/08/27 18:16:43 (5 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint.as
r1100 r1101 25 25 private const ALERT_TITLE:String = 'お絵カキコ'; 26 26 private const DEBUG:Boolean = false; 27 private const MAX_CANVAS_WIDTH:uint = 500; 28 private const MAX_CANVAS_HEIGHT:uint = 500; 29 private const MIN_CANVAS_WIDTH:uint = 16; 30 private const MIN_CANVAS_HEIGHT:uint = 16; 27 31 28 32 public function init():void { 29 // 通信系 33 34 if (DEBUG) { 35 versionLabel.text += 'debug'; 36 } 37 30 38 this.enabled = false; 31 39 comm = new Com(); … … 61 69 canvasWidth = int(parameters['canvasWidth']); 62 70 canvasHeight = int(parameters['canvasHeight']); 63 if (canvasWidth < 16 || canvasHeight < 16) {71 if (canvasWidth < MIN_CANVAS_WIDTH || canvasHeight < MIN_CANVAS_HEIGHT) { 64 72 Alert.show('キャンバスサイズが小さすぎます。', ALERT_TITLE); 65 73 return; 66 74 } 67 if (canvasWidth > 600 || canvasHeight > 600) {75 if (canvasWidth > MAX_CANVAS_WIDTH || canvasHeight > MAX_CANVAS_HEIGHT) { 68 76 Alert.show('キャンバスサイズが大きすぎます。', ALERT_TITLE); 69 77 return; as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint.mxml
r1100 r1101 10 10 </mx:Script> 11 11 <mx:Canvas id="toolCanvas" x="0" y="0" width="630"> 12 <mx:Label id="versionLabel" x="365" y="9" text="ver.2008041701"/> 12 13 <mx:Label x="28" y="7" text="名前"/> 13 14 <mx:TextInput id="fromTextInput" x="55" y="3" maxChars="32" fontSize="14"/> … … 34 35 <mx:CheckBox id="additionalSkewCheckBox" x="553" y="123" label="斜め"/> 35 36 <mx:Button id="postOekakiButton" x="510" y="7" label="お絵カキコする!" fillAlphas="[1.0, 1.0, 1.0, 1.0]" fillColors="[#FFFFFF, #FF9999, #FFFFFF, #FFCCCC]" enabled="false"/> 36 <mx:Label x="396" y="9" text="ver.2008040701"/>37 37 </mx:Canvas> 38 38 <mx:Canvas id="canvas" width="400" height="300" x="10" y="172"></mx:Canvas>

