Hi ! all
My query is related to loading images from folder. I have a folder outside. I have created a animation in flash, .
Now I want to load all the images one by one, but if there are 5 images then after the 5th images again 1st image should come.
I have done this thing also, but my doubt is what, how can i count that how many images are there in my folder.
Code on first frame
if (whichPic == 5) {
whichPic = 1;
}
whichPic = whichPic+1;
loadMovie(“images/flashimages/image”+whichPic+".jpg", “square”);
Code on the movieclip "square"
onClipEvent (load) {
_alpha = 0;
count=0;
}
onClipEvent (enterFrame) {
if (_alpha<=0)
{
count=0;
}
if (count==0){
_alpha += 3;
}
if (_alpha>=99)
{
count=1;
}
if (count==1)
{
_alpha -= 2;
}
}
I m attaching the source file also.
If possible give me the reply