# \[FMX\] \_visible = false; has no effect

**URL:** <https://forum.kirupa.com/t/fmx--visible-false-has-no-effect/62776>\
**Category:** Uncategorized\
**Created:** [August 31, 2004, 6:40am UTC](https://forum.kirupa.com/t/fmx--visible-false-has-no-effect/62776 "2004-08-31T06:40:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quik](https://avatars.discourse-cdn.com/v4/letter/q/e19b73/32.png) [@quik](https://forum.kirupa.com/u/quik)\
**Post date:** [August 31, 2004, 6:40am UTC](https://forum.kirupa.com/t/fmx--visible-false-has-no-effect/62776/1 "2004-08-31T06:40:23Z")

</div>

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?

```auto
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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2004, 9:52am UTC](https://forum.kirupa.com/t/fmx--visible-false-has-no-effect/62776/2 "2004-08-31T09:52:02Z")

</div>

try removing the underscore

objHolder.visible = false;

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2004, 5:47pm UTC](https://forum.kirupa.com/t/fmx--visible-false-has-no-effect/62776/3 "2004-08-31T17:47:50Z")

</div>

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
