# \[flash cs3\]Help with keyboard onscreen, and making it put letters in a text field

**URL:** https://forum.kirupa.com/t/flash-cs3-help-with-keyboard-onscreen-and-making-it-put-letters-in-a-text-field/283065
**Category:** flash
**Created:** [March 2, 2009, 10:08am UTC](https://forum.kirupa.com/t/flash-cs3-help-with-keyboard-onscreen-and-making-it-put-letters-in-a-text-field/283065 "2009-03-02T10:08:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Lill](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@Lill](https://forum.kirupa.com/u/Lill)
#### Post date: [March 2, 2009, 10:08am UTC](https://forum.kirupa.com/t/flash-cs3-help-with-keyboard-onscreen-and-making-it-put-letters-in-a-text-field/283065/1 "2009-03-02T10:08:12Z")

</div>

Hi there. can you help me with making a actionscript that can transfer chosen letter-button into a dynamic or input text field?

for instance clicking on the onscreen keyboard 's letter T, will get a T appear in the text field and so on.

there were a person on another forum saying this: (but im not that good in actionscript so i didnt quite understand what to do.

"  
[COLOR=DimGray]declare array to store buttons;

initialization function  
{  
clear textbox;

```
store buttons in array;

loop
{
    set button modes;
    add click events to buttons;
}

```

}

click handler function  
{  
switch (current event)  
{  
case button:  
add letter/text to textbox;  
break;  
default:  
break;  
}  
}

call initialization function;[/COLOR]

"

Thanks for your time… 😮
