[FMX] _visible = false; has no effect

I’m using a function here that is repeated to load a whole array of jpegs until the array is empty. At the top of the function a new movieClip is made to hold each of the images.

after creation I try I hide the images with _visible, although it isn’t quite working.

any ideas?

var objHolder = _root.mc_anim.createEmptyMovieClip("gall_img_"+img_load_index+"", depth++);
objHolder._visible = false;

objHolder traces as:

_level0.mc_anim.gall_img_0
_level0.mc_anim.gall_img_1
_level0.mc_anim.gall_img_2
_level0.mc_anim.gall_img_3

etc etc…

try removing the underscore

objHolder.visible = false;

nope it’s just flash getting itself confused when it creates something dynamically, you have to remind it where it is put the following to make the MC’s go invisible:

this.objHolder._visible = false;

and I dont really know what you are doing with the “” when you are creating the files, you shouldn’t need that part…

var objHolder = root.mc_anim.createEmptyMovieClip("gall_img"+img_load_index, depth++);
this.objHolder._visible = false;

if you do it without the underscore it wont work