# MovieClipLoader question

**URL:** https://forum.kirupa.com/t/moviecliploader-question/139929
**Category:** Uncategorized
**Created:** [March 7, 2005, 2:46am UTC](https://forum.kirupa.com/t/moviecliploader-question/139929 "2005-03-07T02:46:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![macneilslt](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@macneilslt](https://forum.kirupa.com/u/macneilslt)
#### Post date: [March 7, 2005, 2:46am UTC](https://forum.kirupa.com/t/moviecliploader-question/139929/1 "2005-03-07T02:46:30Z")

</div>

Okay, this is my first time trying to make a preloader with the MovieClipLoader class in mx 04, this is what I have now, it loads the picture, but you never see loading bar…can anyone help me fix this?

```auto

bar._visible = false;
border._visible = false;
preload = new MovieClipLoader();
preload.onLoadStart = function(targetMC) {
	container.visible = false;
	bar.visible = true;
	border.visible = true;
	var prog = preload.getProgress(targetMC);
	tBytes = prog.bytesTotal;
	lBytes = prog.bytesLoaded;
};
preload.onLoadProgress = function(targetMC) {
	bar._width = (lBytes/tBytes)*100;
};
preload.onLoadComplete = function(targetMC) {
	var prog = preload.getProgress(targetMC);
	container.visible = true;
	border.visible = false;
	bar.visible = false;
	trace(targetMC+" finished");
};
preload.loadClip("rager.jpg", "container");

```
