# MovieClipLoader woes

**URL:** <https://forum.kirupa.com/t/moviecliploader-woes/206147>\
**Category:** flash\
**Created:** [November 5, 2006, 10:38pm UTC](https://forum.kirupa.com/t/moviecliploader-woes/206147 "2006-11-05T22:38:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![freeskier89](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@freeskier89](https://forum.kirupa.com/u/freeskier89)\
**Post date:** [November 5, 2006, 10:38pm UTC](https://forum.kirupa.com/t/moviecliploader-woes/206147/1 "2006-11-05T22:38:44Z")

</div>

Hey there,

I don’t normally have many flash questions, but I am stumped (and extremely aggrevated) with this one. What I am doing is using the movieClipLoader class to load images(jpgs) into movieclips. I am tracing the BytesTotal Parameter in an onLoadProgress event, and I find that in firefox it is constantly increasing as the file is being loaded. In internet explorer it is saying that bytesTotal = 0. I am testing this out online, not using flash’s simulator thing. This renders making a functional preloader impossible.

Here is my code with the extra crap taken out.

[FONT=Courier New][LEFT][COLOR=#000000] **var** [/COLOR] listener:[COLOR=#0000ff]Object[/COLOR] = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000ff]Object[/COLOR]COLOR=#000000[/COLOR];  
listener.[COLOR=#000080]parentclass[/COLOR] = [COLOR=#0000ff]this[/COLOR];  
listener.[COLOR=#0000ff]onLoadProgress[/COLOR] = [COLOR=#000000] **function** [/COLOR][COLOR=#000000]([/COLOR]target\_mc:[COLOR=#0000ff]MovieClip[/COLOR], loadedBytes, totalBytes[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000ff]trace[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000ff]this[/COLOR].[COLOR=#000080]parentclass[/COLOR].[COLOR=#000080]Value[/COLOR] = loadedBytes/totalBytes;  
[COLOR=#000000]}[/COLOR];  
img\_mcl = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000ff]MovieClipLoader[/COLOR]COLOR=#000000[/COLOR];  
img\_mcl.[COLOR=#0000ff]addListener[/COLOR]COLOR=#000000[/COLOR];  
img\_mcl.[COLOR=#0000ff]loadClip[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“myimage.jpg”[/COLOR], target\_mc[COLOR=#000000])[/COLOR];  
[/LEFT]  
[/FONT]

I believe it worked in previous versions of flash player, but FP9 seems to hate it. Ill be extremely happy if anyone can figure this out 🙂
