Posted By

daisuke103 on 11/04/08


Tagged

width textmate height tween Fuse as2 do dotween


Versions (?)

AS2 Tween Fuse _widthなどを個別にtweenさせる


 / Published in: Other
 

  1. /*_root にムービークリップ(インスタンス名: frog) を配置。
  2. frog には、ムービークリップ(インスタンス名: base, shade) を配置。*/
  3. /*brightOffsetTo(), slideTo() を同時に実行するスクリプトを
  4. tween(), ZigoEngine.doTween() を用いて、書き換えてみた。*/
  5.  
  6. // brightOffsetTo
  7. frog.base._brightOffset = -100;
  8. frog.base.brightOffsetTo(0, 1, "linear", 0.5);
  9. // slideTo
  10. frog.slideTo("-200", "-20", 1, "easeOutQuad", 0.5);
  11.  
  12. // tween (1)
  13. frog.base._brightOffset = -100;
  14. frog.base.tween("_brightOffset", 0, 1, "linear", 0.5);
  15. frog.tween("_x", "-200", 1, "easeOutQuad", 0.5);
  16. frog.tween("_y", "-20", 1, "easeOutQuad", 0.5);
  17.  
  18. // tween (2)
  19. frog.base._brightOffset = -100;
  20. frog.base.tween("_brightOffset", 0, 1, "linear", 0.5);
  21. frog.tween("_x, _y", ["-200", "-20"], 1, "easeOutQuad", 0.5);
  22.  
  23. // doTween (1)
  24. frog.base._brightOffset = -100;
  25. ZigoEngine.doTween(frog.base, "_brightOffset", 0, 1, "linear", 0.5);
  26. ZigoEngine.doTween(frog, "_x,", "-200", 1, "easeOutQuad", 0.5);
  27. ZigoEngine.doTween(frog, "_y", "-20", 1, "easeOutQuad", 0.5);
  28.  
  29. // doTween (2)
  30. frog.base._brightOffset = -100;
  31. ZigoEngine.doTween(frog.base, "_brightOffset", 0, 1, "linear", 0.5);
  32. ZigoEngine.doTween(frog, "_x, _y", ["-200", "-20"], 1, "easeOutQuad", 0.5);
  33.  
  34. // ----------------------------------------------------------
  35. /*Blur_blurTo(), scaleTo(),bezierTo() を同時に実行するスクリプトを
  36. tween(), ZigoEngine.doTween() を用いて、書き換えてみた。*/
  37.  
  38. // Blur_blurTo
  39. frog.Blur_quality = 3;
  40. frog.Blur_blurTo(4, 1, "easeInOutQuad", 0.5);
  41. // scale/bezierTo
  42. frog.scaleTo(90, 1, "easeInOutQuad", 0.5);
  43. frog.bezierTo("-200", "-20", "-150", "20", 1, "easeInOutQuad", 0.5);
  44.  
  45. // tween (1)
  46. frog.Blur_quality = 3;
  47. frog.tween("Blur_blur", 4, 1, "easeInOutQuad", 0.5);
  48. frog.tween("_scale", 90, 1, "easeInOutQuad", 0.5);
  49. frog.tween("_bezier_", {x: "-200", y: "-20", controlX: "-150", controlY: "20"}, 1, "easeInOutQuad", 0.5);
  50.  
  51. // tween (2)
  52. frog.Blur_quality = 3;
  53. frog.tween("Blur_blur, _scale, _bezier_", [4, 90, {x: "-200", y: "-20", controlX: "-150", controlY: "20"}], 1, "easeInOutQuad", 0.5);
  54.  
  55. // doTween (1)
  56. frog.Blur_quality = 3;
  57. ZigoEngine.doTween(frog, "Blur_blur", 4, 1, "easeInOutQuad", 0.5);
  58. ZigoEngine.doTween(frog, "_scale", 90, 1, "easeInOutQuad", 0.5);
  59. ZigoEngine.doTween(frog, "_bezier_", {x: "-200", y: "-20", controlX: "-150", controlY: "20"}, 1, "easeInOutQuad", 0.5);
  60.  
  61. // doTween (2)
  62. frog.Blur_quality = 3;
  63. ZigoEngine.doTween(frog, "Blur_blur, _scale, _bezier_", [4, 90, {x: "-200", y: "-20", controlX: "-150", controlY: "20"}], 1, "easeInOutQuad", 0.5);
  64.  
  65. // ----------------------------------------------------------
  66. /*Blur_blurTo(), scaleTo(),bezierTo() を同時に実行するスクリプトを
  67. tween(), ZigoEngine.doTween() を用いて、書き換えてみた。*/
  68.  
  69. // Blur_blurTo
  70. frog1.Blur_quality = 3;
  71. frog1.Blur_blurTo(4, 1, "easeInOutQuad", 0.5);
  72. frog2.Blur_quality = 3;
  73. frog2.Blur_blurTo(4, 1, "easeInOutQuad", 0.5);
  74. // scale/bezierTo
  75. frog1.scaleTo(90, 1, "easeInOutQuad", 0.5);
  76. frog1.bezierTo("-150", "-20", "-100", "20", 1, "easeInOutQuad", 0.5);
  77. frog2.scaleTo(90, 1, "easeInOutQuad", 0.5);
  78. frog2.bezierTo("-150", "-20", "-100", "20", 1, "easeInOutQuad", 0.5);
  79.  
  80. // tween (1)
  81. frog1.Blur_quality = 3;
  82. frog1.tween("Blur_blur", 4, 1, "easeInOutQuad", 0.5);
  83. frog1.tween("_scale", 90, 1, "easeInOutQuad", 0.5);
  84. frog1.tween("_bezier_", {x: "-150", y: "-20", controlX: "-100", controlY: "20"}, 1, "easeInOutQuad", 0.5);
  85. frog2.Blur_quality = 3;
  86. frog2.tween("Blur_blur", 4, 1, "easeInOutQuad", 0.5);
  87. frog2.tween("_scale", 90, 1, "easeInOutQuad", 0.5);
  88. frog2.tween("_bezier_", {x: "-150", y: "-20", controlX: "-100", controlY: "20"}, 1, "easeInOutQuad", 0.5);
  89.  
  90. // tween (2)
  91. frog1.Blur_quality = 3;
  92. frog1.tween("Blur_blur, _scale, _bezier_", [4, 90, {x: "-150", y: "-20", controlX: "-100", controlY: "20"}], 1, "easeInOutQuad", 0.5);
  93. frog2.Blur_quality = 3;
  94. frog2.tween("Blur_blur, _scale, _bezier_", [4, 90, {x: "-150", y: "-20", controlX: "-100", controlY: "20"}], 1, "easeInOutQuad", 0.5);
  95.  
  96. // doTween (1)
  97. frog1.Blur_quality = 3;
  98. ZigoEngine.doTween(frog1, "Blur_blur, _scale, _bezier_", [4, 90, {x: "-150", y: "-20", controlX: "-100", controlY: "20"}], 1, "easeInOutQuad", 0.5);
  99. frog2.Blur_quality = 3;
  100. ZigoEngine.doTween(frog2, "Blur_blur, _scale, _bezier_", [4, 90, {x: "-150", y: "-20", controlX: "-100", controlY: "20"}], 1, "easeInOutQuad", 0.5);
  101.  
  102. // doTween (2)
  103. frog1.Blur_quality = 3;
  104. frog2.Blur_quality = 3;
  105. ZigoEngine.doTween([frog1, frog2], "Blur_blur, _scale, _bezier_", [4, 90, {x: "-150", y: "-20", controlX: "-100", controlY: "20"}], 1, "easeInOutQuad", 0.5);

Report this snippet  

You need to login to post a comment.