Posted By

sidneydekoning on 06/15/12


Tagged

toggle


Versions (?)

Toggle


 / Published in: ActionScript 3
 

This is a toggle for the visibility for a button. Put the same principle can be used for other toggles that switch a boolean.

  1. function onToggle(evt:MouseEvent):void {
  2. object.visible = !object.visible;
  3. }

Report this snippet  

You need to login to post a comment.