Posted By

stiobhart on 06/11/09


Tagged

show actionscript flash hide alpha movieclip visible college invisible


Versions (?)

actionscript - show and hide a movieclip


 / Published in: ActionScript
 

how to show or hide a movieclip, using either the "_visible" or "_alpha" properties. the movieclip needs to have an instance name. in these examples it is called "stupidmovieclip"

  1. // show/hide a movieclip - use either method, but dinnae mix the two
  2. // ie. if you hide a clip using its "_visible" property then show it
  3. // again with its "_visible" not its "_alpha" property [and vice versa]
  4.  
  5. // show using visible
  6. this.stupidmovieclip._visible = true;
  7.  
  8. // show using alpha
  9. this.stupidmovieclip._alpha = 100;
  10.  
  11.  
  12. // hide using visible
  13. this.stupidmovieclip._visible = false;
  14.  
  15. // hide using alpha
  16. this.stupidmovieclip._alpha = 0;

Report this snippet  

You need to login to post a comment.