1 Reply Latest reply on May 18, 2007 6:49 AM by Greg Dove

    Preloading all images from xml

    lucianb
      Well, i've been at this for quite a while now.
      I made a small photoalbum and i want all the images to be preloaded before the movie begins. I've been struggling with this for almost 2days.
      The images load from an xml. How can I preload all the images and then start the movie?

      Thanks a lot.

      This is the code for the xml:
        • 1. Re: Preloading all images from xml
          Greg Dove Level 4
          Well, I'm kinda guessing at what's in your xml.

          Let's say its similar to this;

          <document>
          <images>
          <image>myimage.jpg</image>
          <image>myimage2.jpg</image>
          </images>
          </document>

          Then I think the following would work. I haven't tested it, but it should work in principle based on things I've done in the past. If you have a fixed number of holder clips (ie. the xml will always contain 5 images for example) then you can approach things this way. Otherwise you'd need the code to create empty holderclips for loading into as well, once the number of images has been counted.