# MovieClipLoader with multiple movies

**URL:** https://forum.kirupa.com/t/moviecliploader-with-multiple-movies/102881
**Category:** Uncategorized
**Created:** [February 27, 2004, 11:10pm UTC](https://forum.kirupa.com/t/moviecliploader-with-multiple-movies/102881 "2004-02-27T23:10:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![larcho](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@larcho](https://forum.kirupa.com/u/larcho)
#### Post date: [February 27, 2004, 11:10pm UTC](https://forum.kirupa.com/t/moviecliploader-with-multiple-movies/102881/1 "2004-02-27T23:10:06Z")

</div>

I’m using the MovieClipLoader () class to load 1 swf and 1 jpg, what I want is that once BOTH are loaded a certain command get executed.

Right now the command get executed twice, since it does it once the swf is loaded, and once the jpg is loaded:

[AS]  
var pagecontent = new MovieClipLoader();  
pagecontent.loadClip(page + “.jpg”, \_root.mc\_foto.mc\_fposition);  
pagecontent.loadClip(page + “.swf”,\_root.mc\_cposition);

//CONTENT PRELOADER  
pagecontent.onLoadProgress = function (targetMC, loadedBytes, totalBytes) {  
\_root.mc\_ploader.\_visible = true;   
}  
pagecontent.onLoadInit = function (targetMC) {  
\_root.mc\_articles.easeXf (701);  
\_root.mc\_ploader.\_visible = false;  
\_root.mc\_cposition.\_visible = false;  
}  
[/AS]
