flash->load jpgs

Out of context: Reply #13

  • Started
  • Last post
  • 18 Responses
  • unfittoprint0

    this may sound somewhat complex if you're a newbie but it's the best solution, imo.

    create an xml file that list all your desired jpgs

    create a preloader with the follooing.

    #1 a loop [onEnterFrame or interval] that checks the xml loading.

    #2 if finished, delete the loop [clearinterval or delete onEnterFrame] and store each jpeg location path in an array

    #3 start new loop,
    . create a var count to indicate wich image you're loading.
    .attachMovie or createEmptyMovieClip to create mc[s] to hold each image. use loadMovie and the respective path stored in your array.
    .target it and when finished loading, increase the count number and start with the next image
    . if count = array.length you're finished.

View thread