when my movieclip (can_mc) exceeds x position 270 it returns to x position 0 and plays a random frame from my movieclip random_mc.
But what i want to know is how to get it to go to a random frame but not including frame 1, so it randomly chooses between frames 2,3,4,5,6,7,8,9.
that was my fault, you wanted it to go from 2 to 9, not 1 to 9, loolz
Your code is correct, and it's just that I'm not familiar with random (as there's another random function in Flash), but to explain why random(8)+2 works:
random(8) will give you 0 through 7 (but not 8), and by adding 2 to that, you get 2 through 9
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
that was my fault, you wanted it to go from 2 to 9, not 1 to 9, loolz
Your code is correct, and it's just that I'm not familiar with random (as there's another random function in Flash), but to explain why random(8)+2 works:
random(8) will give you 0 through 7 (but not 8), and by adding 2 to that, you get 2 through 9
would you mind to tell me another random function in flash nig ?
i want to make a random frame but the frame didn't return twice in the same frame
i working on a quiz game, so it'll ridiculous if one question display twice