Change the way the images are accessed

this is working, but I would really like to have the jpegs, as linked items in the library, or just in the same folder / path
as the swf file,

how can I change this to achieve that…I need that to get the prelaoding to work, or work the only way I know how to in the scope of things

footers = 5;
directory = “http://www.pathToImages.com/pic/”;
getMe.loadMovie(directory + Math.ceil(Math.random()*footers) + “.jpg”);