Basic beginner problem

Hey! Im extremely new to actionscript and have been trying forevever this basic problem.

What i wanna do is have 2 textinputs, one for your name, and the other one for the times you want the name will be shown in a textarea. And this should happen by pushing a button.

So if you type in Jacob in the first textinput, and “3” in the second the textarea should display:
Jacob
Jacob
Jacob.

Would be really appreciated if someone could help me with this!