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

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

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


FORKED
  1. // forked from beinteractive's 7. Action integration 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.             var box1:Box = new Box();
  16.             var box2:Box = new Box();
  17.             
  18.             box1.y = 100;
  19.             box2.y = 200;
  20.             
  21.             // Add each box before tween, and remove each box after tween.
  22.             _t = BetweenAS3.serial(
  23.                 BetweenAS3.addChild(box1, this),
  24.                 BetweenAS3.tween(box1, {x: 220}, {x: 20}, 1.2, Bounce.easeOut),
  25.                 BetweenAS3.removeFromParent(box1),
  26.                 BetweenAS3.addChild(box2, this),
  27.                 BetweenAS3.tween(box2, {x: 20}, {x: 220}, 1.2, Bounce.easeOut),
  28.                 BetweenAS3.removeFromParent(box2)
  29.             );
  30.             
  31.             // Important point:
  32.             // When this tween is replayed after finished playing,
  33.             // state of each box (added/removed) will be restored.
  34.             
  35.             // Set to be never stop
  36.             _t.stopOnComplete = false;
  37.             
  38.             // Start the tween
  39.             _t.play();
  40.             
  41.             // MouseUp listener
  42.             stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
  43.         }
  44.         
  45.         private var _t:ITween;
  46.         
  47.         private function mouseUpHandler(e:MouseEvent):void
  48.         {
  49.             // Stop the tween if playing
  50.             // Start the tween if stopping
  51.             _t.togglePause();
  52.             
  53.             // Note: You can use gotoAndPlay(time) or gotoAndStop(time) too.
  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
  1. // forked from beinteractive's 7. Action integration 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.             var box1:Box = new Box();
  16.             var box2:Box = new Box();
  17.             
  18.             box1.y = 100;
  19.             box2.y = 200;
  20.             
  21.             // Add each box before tween, and remove each box after tween.
  22.             _t = BetweenAS3.serial(
  23.                 BetweenAS3.addChild(box1, this),
  24.                 BetweenAS3.tween(box1, {x: 220}, {x: 20}, 1.2, Bounce.easeOut),
  25.                 BetweenAS3.removeFromParent(box1),
  26.                 BetweenAS3.addChild(box2, this),
  27.                 BetweenAS3.tween(box2, {x: 20}, {x: 220}, 1.2, Bounce.easeOut),
  28.                 BetweenAS3.removeFromParent(box2)
  29.             );
  30.             
  31.             // Important point:
  32.             // When this tween is replayed after finished playing,
  33.             // state of each box (added/removed) will be restored.
  34.             
  35.             // Set to be never stop
  36.             _t.stopOnComplete = false;
  37.             
  38.             // Start the tween
  39.             _t.play();
  40.             
  41.             // MouseUp listener
  42.             stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
  43.         }
  44.         
  45.         private var _t:ITween;
  46.         
  47.         private function mouseUpHandler(e:MouseEvent):void
  48.         {
  49.             // Stop the tween if playing
  50.             // Start the tween if stopping
  51.             _t.togglePause();
  52.             
  53.             // Note: You can use gotoAndPlay(time) or gotoAndStop(time) too.
  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
  1. // forked from beinteractive's 7. Action integration 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.             var box1:Box = new Box();
  16.             var box2:Box = new Box();
  17.             
  18.             box1.y = 100;
  19.             box2.y = 200;
  20.             
  21.             // Add each box before tween, and remove each box after tween.
  22.             _t = BetweenAS3.serial(
  23.                 BetweenAS3.addChild(box1, this),
  24.                 BetweenAS3.tween(box1, {x: 220}, {x: 20}, 1.2, Bounce.easeOut),
  25.                 BetweenAS3.removeFromParent(box1),
  26.                 BetweenAS3.addChild(box2, this),
  27.                 BetweenAS3.tween(box2, {x: 20}, {x: 220}, 1.2, Bounce.easeOut),
  28.                 BetweenAS3.removeFromParent(box2)
  29.             );
  30.             
  31.             // Important point:
  32.             // When this tween is replayed after finished playing,
  33.             // state of each box (added/removed) will be restored.
  34.             
  35.             // Set to be never stop
  36.             _t.stopOnComplete = false;
  37.             
  38.             // Start the tween
  39.             _t.play();
  40.             
  41.             // MouseUp listener
  42.             stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
  43.         }
  44.         
  45.         private var _t:ITween;
  46.         
  47.         private function mouseUpHandler(e:MouseEvent):void
  48.         {
  49.             // Stop the tween if playing
  50.             // Start the tween if stopping
  51.             _t.togglePause();
  52.             
  53.             // Note: You can use gotoAndPlay(time) or gotoAndStop(time) too.
  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
  1. // forked from beinteractive's 7. Action integration 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.             var box1:Box = new Box();
  16.             var box2:Box = new Box();
  17.             
  18.             box1.y = 100;
  19.             box2.y = 200;
  20.             
  21.             // Add each box before tween, and remove each box after tween.
  22.             _t = BetweenAS3.serial(
  23.                 BetweenAS3.addChild(box1, this),
  24.                 BetweenAS3.tween(box1, {x: 220}, {x: 20}, 1.2, Bounce.easeOut),
  25.                 BetweenAS3.removeFromParent(box1),
  26.                 BetweenAS3.addChild(box2, this),
  27.                 BetweenAS3.tween(box2, {x: 20}, {x: 220}, 1.2, Bounce.easeOut),
  28.                 BetweenAS3.removeFromParent(box2)
  29.             );
  30.             
  31.             // Important point:
  32.             // When this tween is replayed after finished playing,
  33.             // state of each box (added/removed) will be restored.
  34.             
  35.             // Set to be never stop
  36.             _t.stopOnComplete = false;
  37.             
  38.             // Start the tween
  39.             _t.play();
  40.             
  41.             // MouseUp listener
  42.             stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
  43.         }
  44.         
  45.         private var _t:ITween;
  46.         
  47.         private function mouseUpHandler(e:MouseEvent):void
  48.         {
  49.             // Stop the tween if playing
  50.             // Start the tween if stopping
  51.             _t.togglePause();
  52.         
  53.             // Note: You can use gotoAndPlay(time) or gotoAndStop(time) too.
  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