Ok, so i have a button, and when i click on it, I want it to got to a random site out of a few that i have supplied. This is my code now, but it doesn't work.

Code:
on (release) {
	var myArray = new Array(); 
    	myArray[0] = "http://site1.swf"; 
    	myArray[1] = "http://site2.swf"; 
    	myArray[2] = "http://site3.swf"; 
	getURL(myArray[Math.random(3)]);
}