PDA

View Full Version : Question about the Random Letter generator



jbautista18
March 30th, 2006, 07:24 PM
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.

simplistik
March 31st, 2006, 09:18 AM
? link the tutorial, would make it much easie for someone to help you

JoshuaJonah
March 31st, 2006, 09:31 AM
You could probably make it a function, then call it from each button.