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

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

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


forked from : ll_koba_ll's TweensyTest LOOP [diff(8)]

FORKED
  1. // forked from paq's forked from: TweensyTest LOOP
  2. // forked from ll_koba_ll's TweensyTest LOOP
  3. /*
  4.  * repeats = 4 ってしても4回ループしてない?
  5.  * どうやらrepeatsは追加で動く回数みたい
  6.  */
  7.  
  8. //[SWF(width="500", height="500"~じゃなくて、
  9. //[SWF(width="465", height="465"~の方が正しい気がする。
  10. package 
  11. {
  12.     import flash.display.*;
  13.     import flash.events.*;
  14.     import com.flashdynamix.motion.*;
  15.     [SWF(width="465", height="465", backgroundColor="#000000", frameRate="100")]
  16.     public class TweensyTest extends Sprite
  17.     {
  18.         private var _sp:Sprite;
  19.         public function TweensyTest()
  20.         {
  21.             addEventListener(Event.ADDED_TO_STAGE, init);
  22.         }
  23.         private function init(e:Event):void
  24.         {
  25.             stage.scaleMode = StageScaleMode.NO_SCALE;
  26.             stage.align = StageAlign.TOP_LEFT;
  27.             _sp = new Sprite();
  28.             with(_sp.graphics)
  29.             {
  30.                 beginFill(0xFF0001);
  31.                 drawRect(005050);
  32.                 endFill();
  33.             }
  34.             addChild(_sp);
  35.             _sp.y = 465/2-25;
  36.            var t:TweensyTimeline = Tweensy.to(_sp, {x:415,y:0,height:465,alpha:0}, 0.5) ; 
  37.             t.repeatType = TweensyTimeline.LOOP;
  38.             t.repeats = 8 ;
  39.         }
  40.     }
  41. }
noswf
Get Adobe Flash Player