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

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

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


forked from : hacker_ut9_8s5w's code on 2008-12-17 [diff(13)]

FORKED
  1. // forked from hacker_ut9_8s5w's forked from: code on 2008-12-17
  2. // forked from hacker_ut9_8s5w's code on 2008-12-17
  3. // write as3 code here..
  4. package
  5. {
  6.     import flash.display.*;
  7.     import flash.events.*;
  8.     import caurina.transitions.Tweener;
  9.     public class Foo extends Sprite
  10.     {
  11.         private var sp:Sprite;
  12.     
  13.         public function Foo()
  14.         {
  15.             super();
  16.             addEventListener(Event.ADDED_TO_STAGE, onAddedToStageHandler);
  17.         }
  18.         private function onAddedToStageHandler(e:Event):void
  19.         {
  20.             var w:int = 100;
  21.             var h:int = 60;
  22.             sp = new Sprite();
  23.             sp.graphics.beginFill(0xFF0000, 1);
  24.             sp.graphics.drawRect(00, w, h);
  25.             sp.graphics.endFill();
  26.             addChild(sp);
  27.             Tweener.addTween(sp, {x:stage.stageWidth - w, time:1, onComplete:function():void
  28.             {
  29.                 Tweener.addTween(sp, {y:stage.stageHeight - h, time:1, onComplete:function():void
  30.                 {
  31.                     Tweener.addTween(sp, {x:0, time:1, onComplete:function():void
  32.                     {
  33.                         Tweener.addTween();
  34.                     }});
  35.                 }});
  36.             }});
  37.         }
  38.     }
  39. }
noswf
  1. // forked from hacker_ut9_8s5w's forked from: code on 2008-12-17
  2. // forked from hacker_ut9_8s5w's code on 2008-12-17
  3. // write as3 code here..
  4. package
  5. {
  6.     import flash.display.*;
  7.     import flash.events.*;
  8.     import caurina.transitions.Tweener;
  9.     public class Foo extends Sprite
  10.     {
  11.         private var sp:Sprite;
  12.         private var w:int = 100;
  13.         private var h:int = 60;
  14.         public function Foo()
  15.         {
  16.             super();
  17.             addEventListener(Event.ADDED_TO_STAGE, onAddedToStageHandler);
  18.         }
  19.         private function onAddedToStageHandler(e:Event):void
  20.         {
  21.             sp = new Sprite();
  22.             sp.graphics.beginFill(0xFF0000, 1);
  23.             sp.graphics.drawRect(00, w, h);
  24.             sp.graphics.endFill();
  25.             addChild(sp);
  26.             tweenAnim();
  27.         }
  28.         private function tweenAnim():void
  29.         {
  30.             Tweener.removeTweens(sp, "x""y");
  31.             Tweener.addTween(sp, {x:stage.stageWidth - w, time:1, onComplete:function():void
  32.             {
  33.                 Tweener.addTween(sp, {y:stage.stageHeight - h, time:1, onComplete:function():void
  34.                 {
  35.                     Tweener.addTween(sp, {x:0, time:1, onComplete:function():void
  36.                     {
  37.                         Tweener.addTween(sp, {y:0, time:1, onComplete:tweenAnim});
  38.                     }});
  39.                 }});
  40.             }});
  41.         }
  42.     }
  43. }
noswf
Get Adobe Flash Player