PDA

View Full Version : AS for button


dbenedetto
1-10-06, 07:20 PM
i have a very simple stage, 4 textboxes, 1 input box, and 1 button.

how do i script the button to generate a rnd number (0-999) with rnd decimal length (0-3) and display it in a textbox?

everything i've tried has failed.

:)

david

oatesj77
1-10-06, 09:25 PM
try this; random functions (http://www.actionscripts.org/tutorials/intermediate/Random_Functions/index.shtml)