Displaying images in a folder
Howdy. I'd like to cycle through all images in a folder and display each one based on a timer. I'd like to add/remove files to/from the folder so I'd rather not have the file list built into the flash app. I'm still green with Flash... can someone please point me to tutorials/info that can help me figure out how to do this?
Well, I'm getting a little closer. See the CS3 Actionscript3 code below for what I have hacked together so far from various examples/tutorials. The timer code is working just fine, but the image loading isn't working. I verified that the image path string is getting created properly, but I don't see an image loaded on the stage. I know that I'm probably missing some things: how to set the location of the image, hooking it into the stage, etc. I'm not sure of the right questions to ask at this point...
Got it basically working:
I've got another thread going in the Dreamweaver section, containing the planned site layout:
Dreamweaver site layout
Code is below. The loadImage function in the previous version was a little goofed up. With that fixed, my problem was that the script wasn't hooked to a movie clip. So, I created a movie clip with mask and named it loadPic.
For some reason it is cutting off the images. The movie clip & images are all sized the same, so I'm not sure yet what is going on. I'd also like to have the images fade into each other and not have the movie go blank then the next image tween in. The transparent overlay needs some work as well to make it show up better under more background color conditions.
I'd also like to get rid of the hard-coded loaderNumFiles and find a way to count the images dynamically so I can just add new files to the image directory w/o having to update the script.