I'm new to actionscript and I'm trying to keep this as simple as possible as to not get in over my head.

I'm loading images into an empty movie clip, inside of another movie clip. This code is on each day of the year for five years with instance names changed for each. From here im trimming the file name and return the number after the decimal point which sets the transparency of the image.

Code:
loadMovie("images/jan/140108.70.jpg", P140108.empty_mc);

var movieName:String = '140108.70.jpg';

movieName = movieName.substring( 7, movieName.length - 4 );

this.P140108._alpha = (movieName);
This works fine. The issue im having is repeating this process many times with different images on each day and different transprencies. As you can image, changing the directories on every day for 5 years would take a long time...

I was wondering if there was a way to return an image from a folder, based on only the first part of its url? If I could make it search for the date and ignore the .70 for example, I could change the transparency without having to change the code manually.

I appreciate any advice you guys have.