flsh: preloader 4 jpg?

  • Started
  • Last post
  • 1 Response
  • smartK

    working on a photography site ... is it possible to make a preloader for the loaded jpgs - so I don't have to put each pic in a swf and make the preloader there?

  • ozhanlion0

    well you can ;
    myFilesArr = ["file1.swf","file2.swf"]
    this.createEmptyMovieClip("holde...
    holderMC.loadMovie(myfilesArr[0...
    /* here you are loading the first value of the array, you need some kind of loop to iterate through all the values.*/
    preloadI=setInterval(preloadF,10...
    function preloadF()

    if(holderMC.getBytesLoaded()>0...
    l())
    //loading has complete
    clearInterval(preloadI)