I have created a flash website and on there is 8 buttons, 7 of them go to their assigned scenes but i want the 8th button when you click on it to go to a random scene. I have found the action script so when u click on it, it picks 4 random numbers out of 11 but this doesnt help can anyone tell me what script i need to do so thanks
here is the script i found if it helps:
on (release) {
function randRange(min:Number, max:Number):Number {
var randomNum:Number = Math.floor(Math.random()*(max-min+1))+min;
return randomNum;
}
for (var i = 0; i<100; i++) {
var n:Number = randRange(4, 11);
trace(n);
}
}
Thanks Jimmy