# Preloader problems

**URL:** <https://forum.kirupa.com/t/preloader-problems/88862>\
**Category:** Uncategorized\
**Created:** [May 3, 2005, 4:28am UTC](https://forum.kirupa.com/t/preloader-problems/88862 "2005-05-03T04:28:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xtonyx](https://avatars.discourse-cdn.com/v4/letter/x/f9ae1b/32.png) [@xtonyx](https://forum.kirupa.com/u/xtonyx)\
**Post date:** [May 3, 2005, 4:28am UTC](https://forum.kirupa.com/t/preloader-problems/88862/1 "2005-05-03T04:28:56Z")

</div>

can some one tell me why this code wont work. if you need files i can send.

its not loadeing the movie or preloader.

x

bar.\_visible = false;  
border.\_visible = false;  
var empty = this.createEmptyMovieClip(“container”, “100”);  
empty.\_x = 0;  
empty.\_y = 0;  
my\_mc = new MovieClipLoader();  
preload = new Object();  
my\_mc.addListener(preload);  
preload.onLoadStart = function(targetMC) {  
trace("started loading "+targetMC);  
container.\_visible = false;  
bar.\_visible = true;  
border.\_visible = true;  
pText.\_visible = true;  
};  
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {  
bar.\_width = (lBytes/tBytes)\*100;  
pText.text = “% “+Math.round((lBytes/tBytes)\*100);  
};  
preload.onLoadComplete = function(targetMC) {  
container.\_visible = true;  
border.\_visible = false;  
bar.\_visible = false;  
pText.\_visible = false;  
trace(targetMC+” finished”);  
};

button1.onPress = function() {  
my\_mc.loadClip(“picture1.jpg”, “container”);  
};  
button2.onPress = function() {  
my\_mc.loadClip(“collectionfry.swf”, “container”);  
};  
button3.onPress = function() {  
my\_mc.loadClip(“picture3.jpg”, “container”);  
};

_ **collectionfry.swf** _ wont load

x
