var p:Number; this.createEmptyMovieClip("clip_mc",0); this.onLoad = function() { p = random(4)+1; clip_mc.loadMovie("movie"+p+".swf"); };