1 Reply Latest reply: Mar 6, 2009 5:53 AM by Ned Murphy RSS

    can AS3 determine the number of files in a folder?

    saariko Community Member
      hey all

      i wrote some code making AS3 load jpeg files at runtime in a loop. as you can see in the attached code, currently the loop runs for 5 times as there are 5 jpegs in the folder (which i placed and named "pic1" through "pic5").
      i would like to change the "5" to a variable which as3 will determine according to the number of files it finds in that folder. is there anyway to accomplish this?

      thanx in advance,
      Saar