How to exclude frame when randomising
Hi, I am creating a 'make your own' style game which contains a randomise button. I have this code attached to the first keyframe of the movie clip at the moment:
MovieClip(parent).random_mc.buttonMode = true;
MovieClip(parent).random_mc.addEventListener(MouseEvent.CLICK, randomMouths);
function randomMouths(event:MouseEvent):void{
visible = true;
var pic_number : Number = 16;
var randomFrame: Number = Math.ceil(Math.random() * pic_number);
gotoAndStop(randomFrame);
}
However, I would like it to exclude the first frame as it's just the empty default frame. Is this possible? Thanks in advance.