# gotoAndStop + textfield 2x?

**URL:** <https://forum.kirupa.com/t/gotoandstop-textfield-2x/230682>\
**Category:** flash\
**Created:** [June 28, 2007, 6:22am UTC](https://forum.kirupa.com/t/gotoandstop-textfield-2x/230682 "2007-06-28T06:22:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrickjv](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@patrickjv](https://forum.kirupa.com/u/patrickjv)\
**Post date:** [June 28, 2007, 6:22am UTC](https://forum.kirupa.com/t/gotoandstop-textfield-2x/230682/1 "2007-06-28T06:22:44Z")

</div>

Following situation;  
A library MC with class name `zzz`, containing 2 keyframes,  
1st keyframe a dynamic text field instance name `lettervalue` Arial,  
2nd keyframe a dynamic text field instance name `lettervalue` Times

now placing actionscript in main timeline 1st frame

_var let = new zzz();_  
_addChild(let);_  
_let.gotoAndStop(2);_  
_let.lettervalue.text = "some text_";

Gives error message. If I remove either  
let.gotoAndStop(2);  
or  
let.lettervalue.text = “some text”;  
Then it doesn`t give any error.

Also if let.lettervalue.text = “some text”; is placed in a following frame it does work. But I need to perform one instantly after the other.

Anybody any idea why or how to solve it?

(ps: it`s a simplified situation, actual one has more then 2 frames with dynamic textfield and gotoAndStop depends on input)  
P.
