This content has been marked as final. Show 2 replies
> What I want to do is create actionscript that reads a folder containing the
> images and counts the number of files. Then I could store that number in a
> variable and use some actionscripting to load the images into the target_mc.
No such thing, flash has no system accessibility and it can't read folder content.
You need to do it with some middle ware like php or asp.
> Any ideas? The problem I have is when a new image is added to a slideshow
> movie clip I have to insert a frame or when a pictures is removed I have to
> remove a frame from the timeline for that clip.
The problem is with your design. We normally don't hard code and hard built
movies like that. Driven dynamically by XML is your best choice. It gets the
info, makes the slide in real time based on input. All you need to do than
is modify the xml file, not flash.
Anyhow, here is an example of flash reading folder content using php.
(inside the zip file you will find asp sample as well)
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
Urami. I just ran across this post from a while back. Do you have a zip file wtih some source code? I need a way to count images in a folder for a gallery. Any help is dearly appreciated. thanks!