_visible question
_visible question
- Started
- Last post
- 4 Responses
- skelly
Is there a function to make all movieclips on the stage invisible - or do i have to turn each one off individually?
thanks.
- s_t_e_w0
if the movieclips are named like
name_01
name_02
name_03
etc etc
it is possible with a for loop.or put all your movieclips in a new parent movieclip with the visibility set to zero.
- Epictive0
You can do a for in and check the typeof == 'movieclip' and if so, turn _visible to false. Not ideal, because it goes threw every var in the target, but will work.
- __j0
_root._visible = false
- enjine0
var mc = this;//put the mc you want to hide all children mcs here
for(var prop in mc){
if(typeof(mc[prop]) == "movieclip"){
mc[prop]._visible = 0;
}
}