We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

daisuke103 on 02/14/08


Tagged

textmate engine shortcut target tween Fuse as2 zigo do


Versions (?)


AS2 Fuse ZigoEngine.doShortcuts リファレンス 複数のターゲットにtween doTweenの簡略版


Published in: Other 


  1. stop();
  2. import com.mosesSupposes.fuse.*;
  3. ZigoEngine.register(Shortcuts, PennerEasing);
  4.  
  5. // 3つのプロパティをトゥイーンします。yが相対移動指定(string)になっている事にもご注意ください。
  6. ZigoEngine.doShortcut(box1_mc, 'slideTo', 100, "150", 1, "easeInOutQuint");
  7.  
  8. // 相対位置を使って、ベジェ曲線に沿って移動
  9. ZigoEngine.doShortcut(box2_mc, 'bezierTo', '400','-100','300','150', 1, "easeOutBounce", .5);
  10.  
  11.  
  12. /*
  13. このサンプルについて
  14.  
  15. ZigoEngineのstatic(クラス)メソッドであるdoTweenを使えば、
  16. 複数のターゲットの複数のプロパティをトゥイーンさせることができます。
  17.  
  18. doShortcutはdoTweenの代替として使用でき、使いやすいショートカット用の記述ができます。
  19.  
  20. * このメソッドを使うには(3行目のように)Shotcutsクラスを登録しておいてください *
  21.  
  22. 1つ目のパラメーターで、1つ或は複数個のターゲットを指定できます:
  23. my_mc
  24. my_txt
  25. my_btn
  26. my_obj
  27. [my_mc1, my_mc2, my_mc3]
  28.  
  29. 2つ目のパラメーターでは"alphaTo"といったショートカット名を指定します
  30.  
  31. 以降のパラメーターはショートカット名によって、とる値が変わってきます
  32.  
  33. 各トゥイーンがとる標準パラメーターの詳細はdoTweenに関するファイルをご覧下さい。
  34. */
  35.  
  36. /*MEMO by tera(2006.11.19)---------------------------------------- http://www.trick7.com
  37. コールバックでいろいろな指定ができます。リスナーのように、他のオブジェクトに知らせる必要がない、クリップ内で完結するようなコールバックは、
  38. このサンプルのようにパラメーターとして渡してやる方が手軽に使えます。
  39. */

Report this snippet 

You need to login to post a comment.