Fill input text field

Hello i have a flash button and an input text field , wen i click on the button i want to fill the input text field with a specific message. i have no ideea how to do it. pls help .