all groups > flash actionscript > september 2007 >
You're in the

flash actionscript

group:

counting the number of files in a folder



counting the number of files in a folder janaraj47 NO[at]SPAM gmail.com
9/4/2007 11:39:49 PM
flash actionscript: hai,
i am jana from coimbatore i just made a project with photo gallery by
loading the images into the swf via xml.In my project in one picture
folder 1000 of files are present , so when tommorow when i add the
another 2000 jpeg files in the picture folder the swf file should show
the 3000 files up dated with the previous files, without editing in
xml file or txt file or by using php script.
when the script which is present inside the script panel in flash
detects how many files in the folder it would be easier for me .
At a condition while pressing the next buton on the 3000 file it shows
me null ,again and again it will show the same thing, because there is
no 3001.jpeg in that folder, so this should be prevented
so if any one know the Action script for this condition please cote
Re: counting the number of files in a folder Honey1
9/5/2007 12:00:00 AM
You can use setInterval() function to check if after 1 seconds( or
so ) nothing loads ..it means there are no more files.
Or you can write number of files in a text file , say total=3000 and
read that text file from flash and store that number in a variable.



AddThis Social Bookmark Button