I am using MX 2004 and having trouble with a banner. I want to randomly load .jpg's from a file - pausing for 5 sec on each pic. I can get one .jpg to load, but it stops after one. Here's is the codes:

var numArray = ["randomPics/01.jpg",

this.createEmptyMovieClip("clip_mc", 2);

function changePic(){
numPic = random(numArray.length);
_root.loadMovie(numArray[numPic], "clip_mc");

this.onEnterFrame = function(){
setInterval(changePic, 5000);