Posted By

garretjames on 12/08/08


Tagged

actionscript alpha tween movieclip


Versions (?)

Tween Alpha MovieClips


 / Published in: ActionScript
 

  1. MovieClip.prototype.incAlpha = function(time){
  2. var myClip = this;
  3. var myTween:Tween = new Tween(myClip, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, time, false);
  4. myTween.onMotionFinished = function(){myClip._visible=true;}
  5. };
  6.  
  7. MovieClip.prototype.decAlpha = function(time){
  8. var myClip2 = this;
  9. var myTween:Tween = new Tween(myClip2, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, time, false);
  10. myTween.onMotionFinished = function(){myClip2._visible=false;}
  11. };

Report this snippet  

You need to login to post a comment.