Yours doesn't work :p
**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 1: Go0gley can't code. He's just a big big nub.
var myFrames:Array = ['frame1','frame2','frame3','frame4'];
**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 2: ')' or ',' expected
gotoAndStop(random(myFrames.length)]);
Total ActionScript Errors: 2 Reported Errors: 2
The second error is true though :P. u suxxors. I fixed it:
var myFrames:Array = ['frame1','frame2','frame3','frame4'];
gotoAndStop(myFrames[random(myFrames.lengt
h)]);