# How do you input text from buttons?

**URL:** <https://forum.kirupa.com/t/how-do-you-input-text-from-buttons/180845>\
**Category:** flash\
**Created:** [March 3, 2006, 8:25pm UTC](https://forum.kirupa.com/t/how-do-you-input-text-from-buttons/180845 "2006-03-03T20:25:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chobba](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@chobba](https://forum.kirupa.com/u/chobba)\
**Post date:** [March 3, 2006, 8:25pm UTC](https://forum.kirupa.com/t/how-do-you-input-text-from-buttons/180845/1 "2006-03-03T20:25:10Z")

</div>

This might be a tricky one. I have a virtual keypad “if you will” and each number is a button. I have an Input text box with “inputN” variable and id like the buttons to create a string in the box when they are clicked. I have an mc tracked as a button with this script on button 1

on (release) { inputN = “1” ;}

when i do this with number 2 obviously it just wipes the other one out.  
Im creating an cash machine basically and am trying to get the PIN input to work correctly.

Hope someone can help 😟
