Question about the Random Letter generator

I’ve gotten it to work. Now I wanna know something that wasn’t mentioned in the tutorial. If I were to have more than one button on a page, how do I go about getting each button to change the same set of random letters?

Right now, the code for the random letters starts off with “onClipEvent (load)” I’m thinking that if I change this to something that registers when one of the buttons is clicked on that I can just reuse the code for each button. I just can’t figure out how to get the button to control this.

Help would be appreciated.

? link the tutorial, would make it much easie for someone to help you

You could probably make it a function, then call it from each button.