/ Published in: ActionScript 3
this is a toggle for as3 using caurina
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function fadeOff(b2:MovieClip):void { Tweener.addTween( b2, { alpha: .1,time: .35, transition: "easeOutQuad", onComplete:clipOff, onCompleteParams:[b2]}); } function clipOff(b3:MovieClip):void { b3.visible=false; } function clipOn(c2:MovieClip):void { Tweener.addTween( c2, { alpha: 1,time: .5, delay:.1, transition: "easeOutQuad"}); } function fadeOn(c3:MovieClip):void { c3.visible=true; clipOn(c3); }