# FMX need help with as and dynamic textfield

**URL:** <https://forum.kirupa.com/t/fmx-need-help-with-as-and-dynamic-textfield/25193>\
**Category:** flash\
**Created:** [July 10, 2003, 1:15pm UTC](https://forum.kirupa.com/t/fmx-need-help-with-as-and-dynamic-textfield/25193 "2003-07-10T13:15:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![octerl](https://avatars.discourse-cdn.com/v4/letter/o/c77e96/32.png) [@octerl](https://forum.kirupa.com/u/octerl)\
**Post date:** [July 10, 2003, 1:15pm UTC](https://forum.kirupa.com/t/fmx-need-help-with-as-and-dynamic-textfield/25193/1 "2003-07-10T13:15:07Z")

</div>

sorry guys, im a quite a newbie zu flash mx

i have a movieclip called “animation” which contains a dynamic textfield “mytext” (instance)

i’m trying to access this textfield from a button on the main stage to change the text of the textfield when the button is released.

thx a lot

ak

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 10, 2003, 1:23pm UTC](https://forum.kirupa.com/t/fmx-need-help-with-as-and-dynamic-textfield/25193/2 "2003-07-10T13:23:48Z")

</div>

Use this action on the button:[AS]on(release){  
\_root.animation.mytext.text=“your new text goes here”;  
}[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 10, 2003, 1:34pm UTC](https://forum.kirupa.com/t/fmx-need-help-with-as-and-dynamic-textfield/25193/3 "2003-07-10T13:34:51Z")

</div>

thx, but it doesn’t work. i almost tried everything

i’ll post the fla, maybe someone finds the clue

thx

ak

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 10, 2003, 1:40pm UTC](https://forum.kirupa.com/t/fmx-need-help-with-as-and-dynamic-textfield/25193/4 "2003-07-10T13:40:03Z")

</div>

Your animation movie clip doesnt have an instance name  
Give it an instance name of “animation” (without quotes)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 10, 2003, 1:41pm UTC](https://forum.kirupa.com/t/fmx-need-help-with-as-and-dynamic-textfield/25193/5 "2003-07-10T13:41:35Z")

</div>

thx a lot

ak

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 10, 2003, 1:42pm UTC](https://forum.kirupa.com/t/fmx-need-help-with-as-and-dynamic-textfield/25193/6 "2003-07-10T13:42:04Z")

</div>

No problema  
🙂
