How do I attach an image from the library

Can someone tell me how I can attach an image that’s in the library to a movie on the stage…?

I’ve tried using the attachMovie command.
It looks straight forward enough, but I can’t seem to get it to work.

What I want to do is:

  • Have a Flash movie that has images 1.jpg, 2.jpg… 10.jpg in the library.
  • I then want to be able to create a new version of the file and replace the images and have them automatically picked up in the resultant SWF.

Currently, I’m having to open up the Flash file, edit each of the movies where the image is and replace the image. This can be time consuming.