/ Published in: ActionScript 3
A simple line of code to apply to attributes that need to be toggled on and off.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private function toggleVisibility(me:MouseEvent):void { yourMC.alpha = Math.abs(yourMC.alpha - 1); }