Posted By

cessnajumpin on 12/07/08


toggle attributes flash on as3 off

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Toggle Attributes

 / Published in: ActionScript 3

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

  1. private function toggleVisibility(me:MouseEvent):void
  2. {
  3. yourMC.alpha = Math.abs(yourMC.alpha - 1);
  4. }

Report this snippet  

You need to login to post a comment.