※現在、「wonderfl build flash online」求人コンテンツ制作に関してのアンケートを実施中です!みなさまのお力添えを頂いて、続々とアンケート結果が集まっていますが、まだまだ募集しております。ご協力のほど、どうぞよろしくお願いいたします!

wonderfl運営事務局
→アンケートページ(※ログインしてからお答えいただけるようになっています。)

 notice: Flash editor updated! Join the development! Thanks to MiniBuilder


FORKED
  1. // forked from nitoyon's Pure AS3 RSS Icon
  2. // Pure AS3 RSS Icon
  3. // See: http://d.hatena.ne.jp/nitoyon/20070830/rss_icon_as3
  4. // Special Thanks: http://www.drweb.de/photoshop/rss-icon.shtml
  5. package
  6. {
  7.     import flash.display.*;
  8.     import flash.filters.*;
  9.     import flash.geom.*;
  10.     [SWF(width="128", height="128")]
  11.     public class RssIcon extends Sprite
  12.     {
  13.         private const SIZE:int = 128;
  14.         private const ROUND:int = 48;
  15.         
  16.         public function RssIcon():void
  17.         {
  18.             stage.scaleMode = "noScale";
  19.             var matrix:Matrix = new Matrix();
  20.             matrix.createGradientBox(SIZE, SIZE, Math.PI * 1 / 4);
  21.             var glowFilter:GlowFilter = new GlowFilter(0xffffbe, 0.75);
  22.             glowFilter.inner = true;
  23.             // 外側の角円四角
  24.             var base:Shape = new Shape();
  25.             base.graphics.beginFill(0xcc6611);
  26.             base.graphics.drawRoundRect(00, SIZE, SIZE, ROUND, ROUND);
  27.             base.graphics.endFill();
  28.             addChild(base);
  29.             // 内側の角円四角
  30.             var base2:Shape = new Shape();
  31.             base2.graphics.beginFill(0xee7722);
  32.             base2.graphics.drawRoundRect(11, SIZE - 2, SIZE - 2, ROUND - 1, ROUND - 1);
  33.             base2.graphics.endFill();
  34.             base2.filters = [glowFilter];
  35.             addChild(base2);
  36.             // グラデーション
  37.             var gross:Shape = new Shape();
  38.             gross.graphics.beginGradientFill("linear", [0xffffff, 0x000000], [0.20.2], [0255], matrix);
  39.             gross.graphics.drawRoundRect(00, SIZE, SIZE, ROUND, ROUND);
  40.             gross.graphics.endFill();
  41.             gross.graphics.beginGradientFill("linear", [0xffffff, 0xffffff, 0xffffff], [00.20], [0112255], matrix);
  42.             gross.graphics.drawRoundRect(00, SIZE, SIZE, ROUND, ROUND);
  43.             gross.graphics.endFill();
  44.             gross.blendMode = BlendMode.OVERLAY;
  45.             addChild(gross);
  46.             // ●
  47.             var white:Shape = new Shape();
  48.             white.graphics.beginFill(0xffffff);
  49.             white.graphics.drawCircle(369612);
  50.             white.graphics.endFill();
  51.             // ))
  52.             drawPattern3(white.graphics);
  53.             addChild(white);
  54.         }
  55.         private function drawPattern3(g:Graphics):void
  56.         {
  57.             g.beginFill(0xffffff);
  58.             drawPie(g, 2410656, -Math.PI / 20);
  59.             drawPie(g, 2410640, -Math.PI / 20);
  60.             g.endFill();
  61.             g.beginFill(0xffffff);
  62.             drawPie(g, 2410686, -Math.PI / 20);
  63.             drawPie(g, 2410670, -Math.PI / 20);
  64.             g.endFill();
  65.         }
  66.         // 弧を描くメソッド
  67.         // (参考) http://www.fumiononaka.com/TechNotes/Flash/FN0506002.html
  68.         private function arcTo(g:Graphics, x:Number, y:Number, radius:Number, startAngle:Number, endAngle:Number):void
  69.         {
  70.             var clockwise:Boolean = startAngle < endAngle;
  71.             g.lineTo(x + radius * Math.cos(startAngle), y + radius * Math.sin(startAngle));
  72.             
  73.             while(clockwise && startAngle < endAngle || !clockwise && startAngle > endAngle)
  74.             {
  75.                 var nextAngle:Number = clockwise ? Math.min(endAngle, startAngle + Math.PI / 4)
  76.                                                  : Math.max(endAngle, startAngle - Math.PI / 4);
  77.                 var nextPos:Point = new Point(
  78.                     Math.cos(nextAngle) * radius, 
  79.                     Math.sin(nextAngle) * radius);
  80.                 var controlPos:Point = new Point(
  81.                     radius * Math.tan((nextAngle - startAngle) / 2) * Math.cos(nextAngle - Math.PI / 2),
  82.                     radius * Math.tan((nextAngle - startAngle) / 2) * Math.sin(nextAngle - Math.PI / 2)
  83.                     );
  84.                 g.curveTo(x + nextPos.x + controlPos.x, y + nextPos.y + controlPos.y, x + nextPos.x, y + nextPos.y);
  85.                 startAngle = nextAngle;
  86.             }
  87.         }
  88.         // 扇形を描くメソッド
  89.         private function drawPie(g:Graphics, x:Number, y:Number, radius:Number, startAngle:Number, endAngle:Number):void
  90.         {
  91.             g.moveTo(x, y);
  92.             arcTo(g, x, y, radius, startAngle, endAngle);
  93.         }
  94.     }
  95. }
noswf
  1. // forked from nitoyon's Pure AS3 RSS Icon
  2. // Pure AS3 RSS Icon
  3. // See: http://d.hatena.ne.jp/nitoyon/20070830/rss_icon_as3
  4. // Special Thanks: http://www.drweb.de/photoshop/rss-icon.shtml
  5. package
  6. {
  7.     import flash.display.*;
  8.     import flash.filters.*;
  9.     import flash.geom.*;
  10.     [SWF(width="128", height="128")]
  11.     public class RssIcon extends Sprite
  12.     {
  13.         private const SIZE:int = 110;
  14.         private const ROUND:int = 48;
  15.         
  16.         public function RssIcon():void
  17.         {
  18.             stage.scaleMode = "noScale";
  19.             var matrix:Matrix = new Matrix();
  20.             matrix.createGradientBox(SIZE, SIZE, Math.PI * 1 / 4);
  21.             var glowFilter:GlowFilter = new GlowFilter(0xffffbe, 0.75);
  22.             glowFilter.inner = true;
  23.             // 外側の角円四角
  24.             var base:Shape = new Shape();
  25.             base.graphics.beginFill(0xcc6611);
  26.             base.graphics.drawRoundRect(00, SIZE, SIZE, ROUND, ROUND);
  27.             base.graphics.endFill();
  28.             addChild(base);
  29.             // 内側の角円四角
  30.             var base2:Shape = new Shape();
  31.             base2.graphics.beginFill(0xee7722);
  32.             base2.graphics.drawRoundRect(11, SIZE - 2, SIZE - 2, ROUND - 1, ROUND - 1);
  33.             base2.graphics.endFill();
  34.             base2.filters = [glowFilter];
  35.             addChild(base2);
  36.             // グラデーション
  37.             var gross:Shape = new Shape();
  38.             gross.graphics.beginGradientFill("linear", [0xffffff, 0x000000], [0.20.2], [0255], matrix);
  39.             gross.graphics.drawRoundRect(00, SIZE, SIZE, ROUND, ROUND);
  40.             gross.graphics.endFill();
  41.             gross.graphics.beginGradientFill("linear", [0xffffff, 0xffffff, 0xffffff], [00.20], [0112255], matrix);
  42.             gross.graphics.drawRoundRect(00, SIZE, SIZE, ROUND, ROUND);
  43.             gross.graphics.endFill();
  44.             gross.blendMode = BlendMode.OVERLAY;
  45.             addChild(gross);
  46.             // ●
  47.             var white:Shape = new Shape();
  48.             white.graphics.beginFill(0xffffff);
  49.             white.graphics.drawCircle(369612);
  50.             white.graphics.endFill();
  51.             // ))
  52.             drawPattern3(white.graphics);
  53.             addChild(white);
  54.         }
  55.         private function drawPattern3(g:Graphics):void
  56.         {
  57.             g.beginFill(0xffffff);
  58.             drawPie(g, 2410656, -Math.PI / 20);
  59.             drawPie(g, 2410640, -Math.PI / 20);
  60.             g.endFill();
  61.             g.beginFill(0xffffff);
  62.             drawPie(g, 2410686, -Math.PI / 20);
  63.             drawPie(g, 2410670, -Math.PI / 20);
  64.             g.endFill();
  65.         }
  66.         // 弧を描くメソッド
  67.         // (参考) http://www.fumiononaka.com/TechNotes/Flash/FN0506002.html
  68.         private function arcTo(g:Graphics, x:Number, y:Number, radius:Number, startAngle:Number, endAngle:Number):void
  69.         {
  70.             var clockwise:Boolean = startAngle < endAngle;
  71.             g.lineTo(x + radius * Math.cos(startAngle), y + radius * Math.sin(startAngle));
  72.             
  73.             while(clockwise && startAngle < endAngle || !clockwise && startAngle > endAngle)
  74.             {
  75.                 var nextAngle:Number = clockwise ? Math.min(endAngle, startAngle + Math.PI / 4)
  76.                                                  : Math.max(endAngle, startAngle - Math.PI / 4);
  77.                 var nextPos:Point = new Point(
  78.                     Math.cos(nextAngle) * radius, 
  79.                     Math.sin(nextAngle) * radius);
  80.                 var controlPos:Point = new Point(
  81.                     radius * Math.tan((nextAngle - startAngle) / 2) * Math.cos(nextAngle - Math.PI / 2),
  82.                     radius * Math.tan((nextAngle - startAngle) / 2) * Math.sin(nextAngle - Math.PI / 2)
  83.                     );
  84.                 g.curveTo(x + nextPos.x + controlPos.x, y + nextPos.y + controlPos.y, x + nextPos.x, y + nextPos.y);
  85.                 startAngle = nextAngle;
  86.             }
  87.         }
  88.         // 扇形を描くメソッド
  89.         private function drawPie(g:Graphics, x:Number, y:Number, radius:Number, startAngle:Number, endAngle:Number):void
  90.         {
  91.             g.moveTo(x, y);
  92.             arcTo(g, x, y, radius, startAngle, endAngle);
  93.         }
  94.     }
  95. }
noswf
  1. // forked from nitoyon's Pure AS3 RSS Icon
  2. // Pure AS3 RSS Icon
  3. // See: http://d.hatena.ne.jp/nitoyon/20070830/rss_icon_as3
  4. // Special Thanks: http://www.drweb.de/photoshop/rss-icon.shtml
  5. package
  6. {
  7.     import flash.display.*;
  8.     import flash.filters.*;
  9.     import flash.geom.*;
  10.     [SWF(width="128", height="128")]
  11.     public class RssIcon extends Sprite
  12.     {
  13.         private const SIZE:int = 128;
  14.         private const ROUND:int = 48;
  15.         
  16.         public function RssIcon():void
  17.         {
  18.             stage.scaleMode = "noScale";
  19.             var matrix:Matrix = new Matrix();
  20.             matrix.createGradientBox(SIZE, SIZE, Math.PI * 1 / 4);
  21.             var glowFilter:GlowFilter = new GlowFilter(0xffffbe, 0.75);
  22.             glowFilter.inner = true;
  23.             // 外側の角円四角
  24.             var base:Shape = new Shape();
  25.             base.graphics.beginFill(0xcc6611);
  26.             base.graphics.drawRoundRect(00, SIZE, SIZE, ROUND, ROUND);
  27.             base.graphics.endFill();
  28.             addChild(base);
  29.             // 内側の角円四角
  30.             var base2:Shape = new Shape();
  31.             base2.graphics.beginFill(0xee7722);
  32.             base2.graphics.drawRoundRect(11, SIZE - 2, SIZE - 2, ROUND - 1, ROUND - 1);
  33.             base2.graphics.endFill();
  34.             base2.filters = [glowFilter];
  35.             addChild(base2);
  36.             // グラデーション
  37.             var gross:Shape = new Shape();
  38.             gross.graphics.beginGradientFill("linear", [0xffffff, 0x000000], [0.20.2], [0255], matrix);
  39.             gross.graphics.drawRoundRect(00, SIZE, SIZE, ROUND, ROUND);
  40.             gross.graphics.endFill();
  41.             gross.graphics.beginGradientFill("linear", [0xffffff, 0xffffff, 0xffffff], [00.20], [0112255], matrix);
  42.             gross.graphics.drawRoundRect(00, SIZE, SIZE, ROUND, ROUND);
  43.             gross.graphics.endFill();
  44.             gross.blendMode = BlendMode.OVERLAY;
  45.             addChild(gross);
  46.             // ●
  47.             var white:Shape = new Shape();
  48.             white.graphics.beginFill(0xffffff);
  49.             white.graphics.drawCircle(369612);
  50.             white.graphics.endFill();
  51.             // ))
  52.             drawPattern3(white.graphics);
  53.             addChild(white);
  54.         }
  55.         private function drawPattern3(g:Graphics):void
  56.         {
  57.             g.beginFill(0xffffff);
  58.             drawPie(g, 2410656, -Math.PI / 20);
  59.             drawPie(g, 2410640, -Math.PI / 20);
  60.             g.endFill();
  61.             g.beginFill(0xffffff);
  62.             drawPie(g, 2410686, -Math.PI / 20);
  63.             drawPie(g, 2410670, -Math.PI / 20);
  64.             g.endFill();
  65.         }
  66.         // 弧を描くメソッド
  67.         // (参考) http://www.fumiononaka.com/TechNotes/Flash/FN0506002.html
  68.         private function arcTo(g:Graphics, x:Number, y:Number, radius:Number, startAngle:Number, endAngle:Number):void
  69.         {
  70.             var clockwise:Boolean = startAngle < endAngle;
  71.             g.lineTo(x + radius * Math.cos(startAngle), y + radius * Math.sin(startAngle));
  72.             
  73.             while(clockwise && startAngle < endAngle || !clockwise && startAngle > endAngle)
  74.             {
  75.                 var nextAngle:Number = clockwise ? Math.min(endAngle, startAngle + Math.PI / 4)
  76.                                                  : Math.max(endAngle, startAngle - Math.PI / 4);
  77.                 var nextPos:Point = new Point(
  78.                     Math.cos(nextAngle) * radius, 
  79.                     Math.sin(nextAngle) * radius);
  80.                 var controlPos:Point = new Point(
  81.                     radius * Math.tan((nextAngle - startAngle) / 2) * Math.cos(nextAngle - Math.PI / 2),
  82.                     radius * Math.tan((nextAngle - startAngle) / 2) * Math.sin(nextAngle - Math.PI / 2)
  83.                     );
  84.                 g.curveTo(x + nextPos.x + controlPos.x, y + nextPos.y + controlPos.y, x + nextPos.x, y + nextPos.y);
  85.                 startAngle = nextAngle;
  86.             }
  87.         }
  88.         // 扇形を描くメソッド
  89.         private function drawPie(g:Graphics, x:Number, y:Number, radius:Number, startAngle:Number, endAngle:Number):void
  90.         {
  91.             g.moveTo(x, y);
  92.             arcTo(g, x, y, radius, startAngle, endAngle);
  93.         }
  94.     }
  95. }
noswf
Get Adobe Flash Player