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 <= (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]