Posted By

daisuke103 on 08/01/08


Tagged

textmate pixel mx fade in transition as2 out dissolve trans dis


Versions (?)

AS2 ピクセルディゾルブのフェードアウト効果


 / Published in: Other
 

  1. // ディゾルブのアニメーション
  2. function openingAnimationPixelDissolve(target){
  3. var myListener:Object = new Object();
  4. myListener.allTransitionsOutDone = function(eventObj:Object){
  5. target._visible = false;
  6. // 次の処理
  7. }
  8.  
  9. var pix_size = 80;
  10. // ワイプする時の最小矩形サイズ
  11. var wipe_dur = 5;
  12. // 秒数
  13. var wipedir = Transition.OUT;
  14. var transitionType:Function = PixelDissolve;
  15. var easingType:Function = None.easeNone;
  16. var transitObj:Object = {type:transitionType, direction:wipedir, duration:wipe_dur, easing:easingType, xSections:pix_size, ySections:pix_size};
  17. var myTransitionManager:TransitionManager = new TransitionManager(target);
  18. myTransitionManager.startTransition(transitObj);
  19. myTransitionManager.addEventListener("allTransitionsOutDone", myListener);
  20. }

Report this snippet  

You need to login to post a comment.