Toggle Attributes


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

A simple line of code to apply to attributes that need to be toggled on and off.


Copy this code and paste it in your HTML
  1. private function toggleVisibility(me:MouseEvent):void
  2. {
  3. yourMC.alpha = Math.abs(yourMC.alpha - 1);
  4. }

Report this snippet


Comments


You need to login to view comments.