Playing mc only when jpg loaded

I’m loading jpgs into a mclip called holder.
I need to execute another movieclip called “flash” when the picture is
loaded.
The flash movieclip is a sort of bright so can’t be called to make play when
the
button is pressed since the jpg will start to load… (they must appear
together).

How can I do that?

the “flash” must appear everytime a picture finished it’s loading…

Can someone give me an answer, tutorial or something please?
I’m stuck…

Thank you!

Nope, that will not work…

the jpg is being loaded to an empty mc called “holder”… if the picture loaded (using enterFrame) the condition will be true and again and again will play…

_root.holder.loadMovie(“photos/pic.jpg”);

other mclip (component) checks if picture is loaded and shows a percentual bar

added that to the component script but didn’t work either (plays the first time but not anymore later)

if (this.bar._xscale == 99) {
_root.flash.play();
}

Any ideas?

*Originally posted by z3r0 *
Nope, that will not work…
Yes i think it will work.

Well, actually is not working because on enterframe checks if the picture is loaded… if it is the clip plays but the condition makes the clip play again and again… over and over…

Put a stop action in the end of the movieclip?