I would drop the filenames into an array (or externalize it with an XML document - and drop the names into an array on load)
Then, pick a random number, based on the length of the array and load the image at that location in the array.
var files:Array = new Array();
var rand:Number = Math.floor(Math.random()*files.length);
or something similar should do the trick (where myLoader is a Loader component)
do theese images need to be stored within the "randimages" flash file or are they stored in a container folder that Flas looks for, like loading an external swf file.
Typically the best way is to keep them external (in a folder next to the Flash file). That is best for updateability (if you ever want to add/change images, you can do it without changing the SWF).
You can, however, put them in the library as well.
thank you for your help so far, I am having a problem doing this correctly
I have created a new file called randimages.fla and I created a folder with the files (1-10.jpg) located in it (outside of the randimages.fla document) I copied the script that you sent me into the fist blank frame with a stop(); action after it, the images do not load up.
The code I wrote was not meant to be used directly, but instead to give you an idea of the steps.
I assume you changed the names in the array to direct to your files, rather than an example? This includes the folder they are in.
Did you place a Loader component on the stage and give it an instance name "myLoader"?