Playing Random Movie Clips on Main Timeline

Hi guys,

What I would like to do is play ramdom movie clips on my main time line. I’ve tried using the below code, but it does not work:

var frameList:Array = [1, 2];

var i:int = Math.random() * frameList.length;

"mc" + frameList*.gotoAndPlay(1);

My movie clips are named “mc1, mc2” etc.
I’ve got them on a layer named “BG” and each movie clip is in a key frame.
The ActionScript is on a seperate layer named “AS”.

Can someone help me please, or is there a better way to do this?

Many thanks