Posted By

earl on 01/24/12


Tagged

as3


Versions (?)

AS3 Fade Toggle


 / Published in: ActionScript 3
 

this is a toggle for as3 using caurina

  1. function fadeOff(b2:MovieClip):void {
  2. Tweener.addTween( b2, { alpha: .1,time: .35, transition: "easeOutQuad", onComplete:clipOff, onCompleteParams:[b2]});
  3. }
  4. function clipOff(b3:MovieClip):void {
  5. b3.visible=false;
  6. }
  7. function clipOn(c2:MovieClip):void {
  8. Tweener.addTween( c2, { alpha: 1,time: .5, delay:.1, transition: "easeOutQuad"});
  9. }
  10. function fadeOn(c3:MovieClip):void {
  11. c3.visible=true;
  12. clipOn(c3);
  13. }

Report this snippet  

You need to login to post a comment.