We Recommend

PIC Basic: Programming and Projects PIC Basic: Programming and Projects
The simplest quickest way to get up and running with microcontrollers. makes the PC accessible to students and enthusiasts. The practicalities of programming and the scope of using a PIC are then explored through 22 wide ranging electronics projects.


Posted By

daisuke103 on 02/14/08


Tagged

array new setup Fuse as2


Versions (?)


AS2 Fuse リファレンス Fuseセットアップ


Published in: Other 


  1. import com.mosesSupposes.fuse.*;
  2.  
  3. /*
  4. 上記のimport文だけで、トゥイーン以外のFuse機能を使う事ができるようになります。
  5.  
  6. FuseクラスをZigoEngineの拡張として登録すれば、トゥイーンを連続で発動できるようになります。
  7.  
  8. 以下のサンプルはZigoEngineにFuseを使うためのセットアップを設定しています。
  9. '1 engine options.fla'に書かれた注意書きを思い出し、いろんなオプションが設定できる事をご確認ください。
  10.  
  11. このサンプルでは、作成者は'easeOutElastic'といったショートカットを追加する代わりに、
  12. mx easingクラスを使う事を選んでいます。ファイルサイズを軽減するためです。
  13. そしてフィルター効果をトゥイーンさせたいのでFuseFMPを登録しています。
  14. Shortcutsクラスを省略しているので、doShortcut等は使えなくなっていますが、
  15. もしプロジェクトに必要なければ、わざわざ追加してファイルサイズを大きくする理由はありません。
  16. */
  17.  
  18. import com.mosesSupposes.fuse.*;
  19. import mx.transitions.easing.*;
  20. ZigoEngine.register(Fuse, FuseFMP);
  21.  
  22. var f:Fuse = new Fuse();
  23. f.target = box1_mc;
  24. f.push({Blur_blur:0, seconds:0}); // ブラーフィルターをセット
  25. f.push({scale:205,
  26. Blur_blur:50,
  27. x:'200',
  28. rotation:'180',
  29. ease:Strong.easeIn,
  30. seconds:1,
  31. delay:.5 });
  32. f.push({Blur_blur:0,
  33. x:'200',
  34. rotation:'180',
  35. scale:100,
  36. ease:Strong.easeOut,
  37. seconds:1 });
  38. f.push({scale:0,
  39. ease:Back.easeIn,
  40. seconds:1 });
  41. f.start();
  42.  
  43. /*MEMO by tera(2006.11.19)---------------------------------------- http://www.trick7.com
  44. ◆トゥイーンを連鎖する方法
  45. あるトゥイーン終了後に次のトゥイーンを発動・・・と連続的にトゥイーンさせるためには、サンプルのように
  46. ZigoEngine.register(Fuse)するか、
  47. ZigoEngine.simpleSetup(Fuse)しておく必要があります。
  48. */

Report this snippet 

You need to login to post a comment.