# Setting the movieclip property .\_visible to false

**URL:** <https://forum.kirupa.com/t/setting-the-movieclip-property--visible-to-false/93527>\
**Category:** Uncategorized\
**Created:** [November 1, 2003, 5:24am UTC](https://forum.kirupa.com/t/setting-the-movieclip-property--visible-to-false/93527 "2003-11-01T05:24:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharvan11](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@sharvan11](https://forum.kirupa.com/u/sharvan11)\
**Post date:** [November 1, 2003, 5:24am UTC](https://forum.kirupa.com/t/setting-the-movieclip-property--visible-to-false/93527/1 "2003-11-01T05:24:33Z")

</div>

Hi,  
I used the following code to read a file “images.txt” and build a movieclip by loading the images specified in the file.

I wanted to make this dyanmicaly built movieclip invisibe.  
i.e “setProperty (\_root.preloader[‘part’+count], \_visible, false);”  
line in my code below is not working.

Please help  
Thanks,  
sharvan

[AS]  
var count = 0;  
var offset = 0;  
\_root.createEmptyMovieClip(‘preloader’, 10);

function BuildMovie() {

```
    for ( count =0; count &lt;= (images.length -1); count ++)
    {
            _root.preloader.createEmptyMovieClip('part'+count,count);
            _root.preloader['part'+count].loadmovie(images[count]);
            
            setProperty (_root.preloader['part'+count], _x, 20+offset);
            setProperty (_root.preloader['part'+count], _y, 20);
            setProperty (_root.preloader['part'+count], _visible, false);
            
            offset = offset + 200;
    }

```

}

//  
//  
m = new LoadVars();  
m.onLoad = function(ok) {  
if (ok) {  
images = this.Images.split("|");  
Trace(images.length);  
Buildmovie();  
}  
};  
m.load(‘images.txt’, this);

[/AS]
