From xml to movieclip timeline

[Flash 8] load images from xml in movieclip as sprite

In tutorials that you can find on Kirupa as well google, they explain how to convert mouse movement into a variable useable for something like: gotoAndStop(varhere) for 360 degree product view. The only problem with that system is that you need a movieclip to already contain the serie of images. What I want to try it load the xml file, get from there the links to the images and preload them one by one into a movieclip it’s timeline. So basicly afther the preloading you got a movieclip on stage and in it’s timeline the serie of images.

Now I know how to load xml files, create dynamicly a movieclip using: createEmptyMovieClip(), but not how to load an image into the timeline. For example I created a movieclip called: container, and I loaded the xml with the containing image links. But how do i get “Image0001” in frame 1 of the container and “Image0002” in frame 2?

I already tried this:


this.createEmptyMovieClip("container", 1)
container.gotoAndStop(1)
container.createEmptyMovieClip("frame1", 1)
container.frame1.loadMovie(listImages[0], 1)
container.gotoAndStop(2)
container.createEmptyMovieClip("frame2", 1)
container.frame2.loadMovie(listImages[1], 1)
container.gotoAndPlay(1);

The listImages is an array containing all image links, and the loadMovie() actually works fine, because I can see the image loaded. But as soon I loaded 2 images and play the container, I only see 1 image. It seams that the last createEmptyMovieClip, overwrites the first or something.

Anyways, I hope someone is able to help me out, maybe I’m doing it all totally wrong. Already thanks:)