Posted By

cessnajumpin on 12/07/08


Tagged

toggle attributes flash on as3 off


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

THEPWN3R
Pingpongbal


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.