AS3 Fade Toggle


/ Published in: ActionScript 3
Save to your folder(s)

this is a toggle for as3 using caurina


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.