Dynamic jpegs

Hi,

does anyone know how to dynamically load jpegs into a flash movie using actionscript?

Any help is appreciated.

Thanks.

  • Make an empty mc with an instance name ([color=blue]target[/color]).
  • Make a button and give it this AS:

[color=blue]on(release) {
loadMovie(“picture.jpg”, _root.target);
}[/color]

[color=black]Or put the script into the frame action to load it when the movie loads:[/color]

[color=#0000ff]loadMovie(“picture.jpg”, _root.target);[/color]

[color=black]Of course picture.jpg could be a different path.[/color]

cheers.