# How to make a button influence a dynamic textfield?

**URL:** <https://forum.kirupa.com/t/how-to-make-a-button-influence-a-dynamic-textfield/259187>\
**Category:** flash\
**Created:** [May 1, 2008, 8:20pm UTC](https://forum.kirupa.com/t/how-to-make-a-button-influence-a-dynamic-textfield/259187 "2008-05-01T20:20:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danarus](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Danarus](https://forum.kirupa.com/u/Danarus)\
**Post date:** [May 1, 2008, 8:20pm UTC](https://forum.kirupa.com/t/how-to-make-a-button-influence-a-dynamic-textfield/259187/1 "2008-05-01T20:20:06Z")

</div>

So, I have two textfields (txt\_name and txt\_description), as well as a button (btn\_pasteasplaintext). I’m trying to make it so when you hover over the button, both the text fields change. This is what I have so far:

```auto
btn_pasteasplaintext.onRollOver = function() {
    txt_name.Text = "Paste as plain text";
}

```

It doesn’t seem to work…
