# Won't unload or go invisible, totally confused

**URL:** <https://forum.kirupa.com/t/wont-unload-or-go-invisible-totally-confused/191309>\
**Category:** Uncategorized\
**Created:** [June 19, 2006, 3:15pm UTC](https://forum.kirupa.com/t/wont-unload-or-go-invisible-totally-confused/191309 "2006-06-19T15:15:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gh\_](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@gh\_](https://forum.kirupa.com/u/gh_)\
**Post date:** [June 19, 2006, 3:15pm UTC](https://forum.kirupa.com/t/wont-unload-or-go-invisible-totally-confused/191309/1 "2006-06-19T15:15:41Z")

</div>

filename = [“r1r.swf”, “r2r.swf”, “r3r.swf”,“r4r.swf”,“r5r.swf”];  
i = filename.length;  
k = Math.floor(Math.random()\*i);  
loadMovie(filename[k], randomLoader);

the above is on the first frame and randomLoader is a component loader

I can’t find a way to unload this movie, or make it not visible

I have tried

on (press) {  
imageLoader.content.visible = false;  
nailLoader.content.unloadMovie();  
randomLoader.content.visible = false;

}

and

on (press) {  
imageLoader.content.visible = false;  
nailLoader.content.unloadMovie();  
randomLoader.content.UnloadMovie();   
}

the imageLoader and nailLoader are component Loaders as well and in a similar setup , and they unload and go not visible fine, the only difference is the way the randomLoader loads the movie, which is from actionScript on the first frame.

is theere something obvious I am doing wrong here?

thanks  
:h:
