- コミット日時:
- 2008/03/27 19:23:15 (4 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as2/Emzah/src/com/emzah/display/Shape.as
r10 r306 40 40 * x2 終止点X値 41 41 * y2 終止点Y値 42 * l fat線幅43 * l color線色「0xFFFFFF」42 * line[1] 線幅 43 * line[0] 線色「0xFFFFFF」 44 44 */ 45 45 public static function line(mc :MovieClip, … … 48 48 x2 :Number, 49 49 y2 :Number, 50 lfat :Number, 51 lcolor :Number) : Void { 52 if(lfat == undefined){lfat = 1;} 53 if(lcolor == undefined){lcolor = 0x000000;} 54 if (lfat == 0) { 50 line:Array) : Void { 51 if(line[1] == undefined){line[1] = 1;} 52 if(line[0] == undefined){line[0] = 0x000000;} 53 if (line[1] == 0) { 55 54 mc.lineStyle(); 56 55 }else{ 57 mc.lineStyle(l fat,lcolor);56 mc.lineStyle(line[1],line[0]); 58 57 } 59 58 mc.beginFill(); … … 72 71 * width 横幅 73 72 * hight 高さ 74 * lfat 線幅 75 * lcolor 線色「0xFFFFFF」 76 * fcolor 塗りつぶす色 73 * line 線色「0xFFFFFF」,線幅「1] :Array 74 * base 塗りつぶす色,アルファ :Array 77 75 * 単色 (color,alpha) 78 76 * グラデ色 (color,alpha) … … 83 81 width :Number, 84 82 hight :Number, 85 lfat :Number, 86 lcolor :Number, 87 fcolor :Array) : Void { 88 if(lfat == undefined){lfat = 1;} 89 if(lcolor == undefined){lcolor = 0x000000;} 90 if (lfat == 0) { 83 line :Array, 84 base :Array) : Void { 85 86 if(line[1] == undefined){line[1] = 1 } 87 if(line[0] == undefined){line[0] = 0x000000;} 88 89 if (line[0] == 0) { 91 90 mc.lineStyle(); 92 91 }else{ 93 mc.lineStyle(l fat,lcolor);92 mc.lineStyle(line[1],line[0]); 94 93 } 95 94 //beginFill(色, アルファ); 96 95 //beginGradientFill(タイプ,色配列,アルファ配列,カラー分布配列、変換マトリックス); 97 if( fcolor == undefined || fcolor== null){96 if(base[0] == undefined || base[0] == null){ 98 97 mc.beginFill(); 99 98 }else{ 100 101 if(fcolor.length > 2){ 102 mc.beginGradientFill(fcolor[0],fcolor[1],fcolor[2],fcolor[3],fcolor[4]); 99 if(base.length > 2){ 100 mc.beginGradientFill(base[0],base[1],base[2],base[3],base[4]); 103 101 }else{ 104 mc.beginFill(Number(fcolor[0]),Number(fcolor[1])); 102 103 mc.beginFill(Number(base[0]),Number(base[1])); 105 104 } 106 105 107 106 } 107 108 108 mc.moveTo(x1, y1); 109 109 mc.lineTo(x1 + width, y1); … … 125 125 * nStD 開始角度(度数) 126 126 * nInD 扇角度(度数) 127 * l fat線幅128 * l color線色「0xFFFFFF」129 * fcolor塗りつぶす色127 * line[1] 線幅 128 * line[0] 線色「0xFFFFFF」 129 * base 塗りつぶす色 130 130 * 単色 (color,alpha) 131 131 * グラデ色 (color,alpha) … … 137 137 nStD :Number, 138 138 nInD :Number, 139 lfat :Number, 140 lcolor :Number, 141 fcolor :Array) : Void { 142 if(lfat == undefined){lfat = 1;} 143 if(lcolor == undefined){lcolor = 0x000000;} 144 if (lfat == 0) { 139 line :Array, 140 base :Array) : Void { 141 if(line[1] == undefined){line[1] = 1;} 142 if(line[0] == undefined){line[0] = 0x000000;} 143 if (line[1] == 0) { 145 144 mc.lineStyle(); 146 145 }else{ 147 mc.lineStyle(l fat,lcolor);146 mc.lineStyle(line[1],line[0]); 148 147 } 149 148 //beginFill(色, アルファ); 150 149 //beginGradientFill(タイプ,色配列,アルファ配列,カラー分布配列、変換マトリックス); 151 150 152 if( fcolor == undefined || fcolor== null){151 if(base == undefined || base == null){ 153 152 mc.beginFill(); 154 153 }else{ 155 154 156 if( fcolor.length > 2){157 mc.beginGradientFill( fcolor[0],fcolor[1],fcolor[2],fcolor[3],fcolor[4]);155 if(base.length > 2){ 156 mc.beginGradientFill(base[0],base[1],base[2],base[3],base[4]); 158 157 }else{ 159 mc.beginFill(Number( fcolor[0]),Number(fcolor[1]));158 mc.beginFill(Number(base[0]),Number(base[1])); 160 159 } 161 160 … … 254 253 nY:Number, 255 254 nR:Number, 256 lfat:Number, 257 lcolor:Number, 258 fcolor:Number):Void { 255 line:Array, 256 base:Array):Void { 259 257 } 260 258 … … 271 269 * hight 高さ 272 270 * round 角 273 * l fat線幅274 * l color線色「0xFFFFFF」275 * fcolor塗りつぶす色271 * line[1] 線幅 272 * line[0] 線色「0xFFFFFF」 273 * base 塗りつぶす色 276 274 * 単色 (color,alpha) 277 275 * グラデ色 (color,alpha) … … 283 281 hight:Number, 284 282 round:Number, 285 lfat:Number, 286 lcolor:Number, 287 fcolor:Array) : Void { 283 line:Array, 284 base:Array) : Void { 288 285 289 if(l fat == undefined){lfat= 1;}290 if(l color == undefined){lcolor= 0x000000;}291 if (l fat== 0) {286 if(line[1] == undefined){line[1] = 1;} 287 if(line[0] == undefined){line[0] = 0x000000;} 288 if (line[1] == 0) { 292 289 mc.lineStyle(); 293 290 }else{ 294 mc.lineStyle(l fat,lcolor);291 mc.lineStyle(line[1],line[0]); 295 292 } 296 293 … … 298 295 //beginGradientFill(タイプ,色配列,アルファ配列,カラー分布配列、変換マトリックス); 299 296 300 if( fcolor == undefined || fcolor== null){297 if(base == undefined || base == null){ 301 298 mc.beginFill(); 302 299 }else{ 303 300 304 if( fcolor.length > 2){305 mc.beginGradientFill( fcolor[0],fcolor[1],fcolor[2],fcolor[3],fcolor[4]);301 if(base.length > 2){ 302 mc.beginGradientFill(base[0],base[1],base[2],base[3],base[4]); 306 303 }else{ 307 mc.beginFill(Number( fcolor[0]),Number(fcolor[1]));304 mc.beginFill(Number(base[0]),Number(base[1])); 308 305 } 309 306 … … 356 353 * hight 高さ 357 354 * round 角 右回り[1,2,3,4] 358 * l fat線幅359 * l color線色「0xFFFFFF」360 * fcolor塗りつぶす色355 * line[1] 線幅 356 * line[0] 線色「0xFFFFFF」 357 * base 塗りつぶす色 361 358 * 単色 (color,alpha) 362 359 * グラデ色 (color,alpha) … … 368 365 hight:Number, 369 366 round:Array, 370 lfat:Number, 371 lcolor:Number, 372 fcolor:Array) : Void { 367 line:Array, 368 base:Array) : Void { 373 369 374 375 if(lfat == undefined){lfat = 1;} 376 if(lcolor == undefined){lcolor = 0x000000;} 377 if (lfat == 0) { 370 if(line[1] == undefined){line[1] = 1;} 371 if(line[0] == undefined){line[0] = 0x000000;} 372 if (line[1] == 0) { 378 373 mc.lineStyle(); 379 374 }else{ 380 mc.lineStyle(l fat,lcolor);375 mc.lineStyle(line[1],line[0]); 381 376 } 382 377 383 378 //beginFill(色, アルファ); 384 379 //beginGradientFill(タイプ,色配列,アルファ配列,カラー分布配列、変換マトリックス); 385 if( fcolor == undefined || fcolor== null){380 if(base == undefined || base == null){ 386 381 mc.beginFill(); 387 382 }else{ 388 if( fcolor.length > 2){389 mc.beginGradientFill( fcolor[0],fcolor[1],fcolor[2],fcolor[3],fcolor[4]);383 if(base.length > 2){ 384 mc.beginGradientFill(base[0],base[1],base[2],base[3],base[4]); 390 385 }else{ 391 mc.beginFill(Number( fcolor[0]),Number(fcolor[1]));386 mc.beginFill(Number(base[0]),Number(base[1])); 392 387 } 393 388 }

