MovieClipLoader woes

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 :slight_smile: