Flash cannot look into server folders.
You need a server side script that will determine the number of files and
send that count back to Flash.
--
Lon Hosford
www.lonhosford.com May many happy bits flow your way!
[quoted text, click to view] "LuckysCharms2000" <webforumsuser@macromedia.com> wrote in message
news:dnpqlb$j5a$1@forums.macromedia.com...
I have a slideshow that I am working on and the way the slideshow works is
that
it assigns any number of images i define to an array.
problem is, i dont know how to check how many images are in a particular
folder on the hard drive. the number of images being displayed could be
anywhere from 1-200. "numofImages" is the variable that I am going to use
to
cap off the looping statement... how do I tell flash to: "look in this
folder
on the hard drive", "read how many elements are in the folder", "record that
number in 'numofImages' "?
I have some of my relavent code here:
//NUMBER VARIABLE FOR ARRAY
var N:Number;
//NUMBER VARIABLE FOR THE NEXT IMAGE LOADED FROM THE ARRAY
var nxtImage:Number = 0;
/*FOR STATEMENT... IF N IS LESS THAN numofImages ADD TO IT
AND THEN REPEAT THE STATEMENT IMG_ARY[N]
RESET THE IMG_VAR VARIABLE AND PRINT IT*/
for (N=0;N<numofImages;N++) {
img_var = "image"+N+".jpg";
img_ary[N] = img_var;
}