/ Published in: ActionScript 3
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". quite similar to actionscript, except that we dinnae use underscores with the property names any more. so "_alpha" becomes "alpha" and "_visible" becomes "visible"
Expand |
Embed | Plain Text
// show/hide a movieclip - use either method, but dinnae mix the two // ie. if you hide a clip using its "_visible" property then show it // again with its "_visible" not its "_alpha" property [and vice versa] // show using visible this.stupidmovieclip.visible = true; // show using alpha this.stupidmovieclip.alpha = 100; // hide using visible this.stupidmovieclip.visible = false; // hide using alpha this.stupidmovieclip.alpha = 0;
You need to login to post a comment.
