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

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

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


FORKED
  1. // forked from beinteractive's 6. Filter tween with BetweenAS3
  2. package
  3. {
  4.     import flash.accessibility.Accessibility;
  5.     import flash.display.Sprite;
  6.     import flash.text.TextField;
  7.     import flash.events.MouseEvent;
  8.     import org.libspark.betweenas3.BetweenAS3;
  9.     import org.libspark.betweenas3.tweens.ITween;
  10.     import org.libspark.betweenas3.easing.*;
  11.     
  12.     public class Sample extends Sprite
  13.     {
  14.         public function Sample()
  15.         {
  16.             (addChild(new TextField()) as TextField).text = 'Click to start';
  17.             stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
  18.         }
  19.         
  20.         private function mouseUpHandler(e:MouseEvent):void
  21.         {
  22.             while (numChildren > 0) {
  23.                 removeChildAt(0);
  24.             }
  25.             
  26.             var box:Box = addNewBox(180);
  27.             box.x = 180;
  28.             
  29.             // BlurFilter, GlowFilter and DropShadowFilter Tween
  30.             BetweenAS3.tween(box, 
  31.                 // To 変化後
  32.                 {   // x:150,
  33.                     _blurFilter: {blurX: 1, blurY: 1},//オブジェクトのぼかしを表現
  34.                     _glowFilter: { blurX: 24, blurY: 24},//影のぼかしを表現、影自体も含む
  35.                     _dropShadowFilter :{blurX:0,blurY:0,distance:50}//オブジェクトの分身(オフセット)を作る?
  36.                 },
  37.                 // From 変化前
  38.                 {     
  39.                    
  40.                     _blurFilter: {blurX: 32, blurY: 32}, //オブジェクトのぼかしを表現
  41.                     _dropShadowFilter: {blurX:40,blurY:40,distance: 200}, //オブジェクトの分身(オフセット)を作る?
  42.                     _bevelFilter:{blurX:30,blurY:30}//オブジェクトの形状を表現
  43.                 },
  44.                 // Time
  45.                 2.5,
  46.                 // Easing
  47.                 Cubic.easeOut
  48.             ).play();
  49.         }
  50.         
  51.         private function addNewBox(y:Number):Box
  52.         {
  53.             var box:Box = new Box();
  54.             box.x = 20;
  55.             box.y = y;
  56.             addChild(box);
  57.             return box;
  58.         }
  59.     }
  60. }
  61. import flash.display.Sprite;
  62. internal class Box extends Sprite
  63. {
  64.     public function Box()
  65.     {
  66.         graphics.beginFill(0);
  67.         graphics.drawRect(-10, -102020);
  68.         graphics.endFill();
  69.     }
  70. }
noswf
  1. // forked from beinteractive's 6. Filter tween with BetweenAS3
  2. package
  3. {
  4.     import flash.display.Sprite;
  5.     import flash.text.TextField;
  6.     import flash.events.MouseEvent;
  7.     import org.libspark.betweenas3.BetweenAS3;
  8.     import org.libspark.betweenas3.tweens.ITween;
  9.     import org.libspark.betweenas3.easing.*;
  10.     
  11.     public class Sample extends Sprite
  12.     {
  13.         public function Sample()
  14.         {
  15.             (addChild(new TextField()) as TextField).text = 'Click to start';
  16.             stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
  17.         }
  18.         
  19.         private function mouseUpHandler(e:MouseEvent):void
  20.         {
  21.             while (numChildren > 0) {
  22.                 removeChildAt(0);
  23.             }
  24.             
  25.             var box:Box = addNewBox(230);
  26.             box.x = 230;
  27.             
  28.             // BlurFilter, GlowFilter and DropShadowFilter Tween
  29.             BetweenAS3.tween(box, 
  30.                 // To
  31.                 {
  32.                     _blurFilter: {blurX: 0, blurY: 0},
  33.                     _glowFilter: {color: 0x000000, blurX: 32, blurY: 32}
  34.                 },
  35.                 // From
  36.                 {
  37.                     _blurFilter: {blurX: 32, blurY: 32},
  38.                     _glowFilter: {color: 0x000000, blurX: 0, blurY: 0}
  39.                     //_dropShadowFilter: {distance: 32}
  40.                 },
  41.                 // Time
  42.                 2.0,
  43.                 // Easing
  44.                 Cubic.easeOut
  45.             ).play();
  46.         }
  47.         
  48.         private function addNewBox(y:Number):Box
  49.         {
  50.             var box:Box = new Box();
  51.             box.x = 20;
  52.             box.y = y;
  53.             addChild(box);
  54.             return box;
  55.         }
  56.     }
  57. }
  58. import flash.display.Sprite;
  59. internal class Box extends Sprite
  60. {
  61.     public function Box()
  62.     {
  63.         graphics.beginFill(0);
  64.         graphics.drawRect(-10, -102020);
  65.         graphics.endFill();
  66.     }
  67. }
noswf
  1. // forked from beinteractive's 6. Filter tween with BetweenAS3
  2. package
  3. {
  4.     import flash.display.Sprite;
  5.     import flash.text.TextField;
  6.     import flash.events.MouseEvent;
  7.     import org.libspark.betweenas3.BetweenAS3;
  8.     import org.libspark.betweenas3.tweens.ITween;
  9.     import org.libspark.betweenas3.easing.*;
  10.     
  11.     public class Sample extends Sprite
  12.     {
  13.         public function Sample()
  14.         {
  15.             (addChild(new TextField()) as TextField).text = 'Click to start';
  16.             stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
  17.         }
  18.         
  19.         private function mouseUpHandler(e:MouseEvent):void
  20.         {
  21.             while (numChildren > 0) {
  22.                 removeChildAt(0);
  23.             }
  24.             
  25.             var box:Box = addNewBox(230);
  26.             box.x = 230;
  27.             
  28.             // BlurFilter, GlowFilter and DropShadowFilter Tween
  29.             BetweenAS3.tween(box, 
  30.                 // To
  31.                 {
  32.                     _blurFilter: {blurX: 0, blurY: 0},
  33.                     _glowFilter: {blurX: 32, blurY: 32}
  34.                 },
  35.                 // From
  36.                 {
  37.                     _blurFilter: {blurX: 32, blurY: 32},
  38.                     _dropShadowFilter: {distance: 32}
  39.                 },
  40.                 // Time
  41.                 2.0,
  42.                 // Easing
  43.                 Cubic.easeOut
  44.             ).play();
  45.         }
  46.         
  47.         private function addNewBox(y:Number):Box
  48.         {
  49.             var box:Box = new Box();
  50.             box.x = 20;
  51.             box.y = y;
  52.             addChild(box);
  53.             return box;
  54.         }
  55.     }
  56. }
  57. import flash.display.Sprite;
  58. internal class Box extends Sprite
  59. {
  60.     public function Box()
  61.     {
  62.         graphics.beginFill(0);
  63.         graphics.drawRect(-10, -102020);
  64.         graphics.endFill();
  65.     }
  66. }
noswf
Get Adobe Flash Player