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

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

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


FORKED
  1. // forked from soundkitchen's flash on 2009-9-25
  2. package
  3. {
  4.     import flash.display.Sprite;
  5.     import org.libspark.betweenas3.BetweenAS3;
  6.     import org.libspark.betweenas3.easing.*;
  7.     import org.libspark.betweenas3.tweens.ITween;
  8.     import flash.filters.DropShadowFilter;
  9.     [SWF(width=465, height=465, frameRate=30, backgroundColor=0xFFFFFF)]
  10.     public class Sample extends Sprite
  11.     {
  12.         public function Sample()
  13.         {
  14.             //  オブジェクトを作成
  15.             var ball:Sprite = new Sprite();
  16.             //  座標を指定
  17.             ball.x = 100;
  18.             ball.y = 100;
  19.             //  丸を描画
  20.             ball.graphics.beginFill(0x000000);
  21.             ball.graphics.drawCircle(0040);
  22.             ball.graphics.endFill();
  23.             //  ステージに配置
  24.             addChild(ball);
  25.             
  26.             ball.filters = [new DropShadowFilter()];
  27.             BetweenAS3.serial(
  28.                 //  ボール浮く
  29.                 BetweenAS3.to(ball, {
  30.                     _dropShadowFilter: {
  31.                         alpha: .6,
  32.                         angle: 135,
  33.                         distance: 30,
  34.                         blurX: 32,
  35.                         blurY: 32
  36.                     }
  37.                 }, 2, Cubic.easeInOut),
  38.                 //  ボール動く
  39.                 BetweenAS3.to(ball, {
  40.                     x: 300,
  41.                     _dropShadowFilter: {
  42.                         angle: 45
  43.                     }
  44.                 }, 2, Expo.easeInOut),
  45.                 //  ボール着く
  46.                 BetweenAS3.to(ball, {
  47.                     _dropShadowFilter: {
  48.                         distance: 0,
  49.                         blurX: 0,
  50.                         blurY: 0
  51.                     }
  52.                 }, 2, Cubic.easeInOut)
  53.             ).play();
  54.         }
  55.     }
  56. }
noswf
Get Adobe Flash Player