Dynamic text fields

I have two dynamic text fields where their value was set by on press action:

[AS]on (release) {
nr4=“1”;
Nextframe();
{[/AS]

where nr4 is my text field var.

in the last frame all the values set for the individual texts fields should appear setting a two digit number.