Field text setText in a clip

Describe the bug
I have a field text in a clip. it has different positions in different frames.
I cannot setText correctly from outside the clip (eg: code on buttons).

To Reproduce
check attached .wick
text_issue.wick (3.9 KB)

Expected behavior
I should assign and change the text content of the field in different clip frames.
it works from inside the clip (default script on frame)
it act very strangely from outside the clip (code on external buttons)
it seems a targeting issue but it sometimes works and sometimes not as expected

*Computer Information
linux mint - laptop - firefox - wick 1.18 browser edition

to check if it could be a targeting issue I changed name to my text field (myTextField2) in the second animation.
now when i target it (press button animation 2 )i receive a :
anim.myTextField2.setText(“animation two”); is undefined error
but the field is there and named correctly !
here is the file producing the error
textIssue2.wick (3.9 KB)

That’s because myTextField and myTextField2 are in different frames, therefore I think the project tries to run both lines in button two at the same time, then doesn’t find myTextField2 since that text object wasn’t introduced yet.

I recommend using the same text object for both buttons, and change it’s x value in order to accomplish the same task without errors, or have both text objects in a long frame.

My Project12-29-2020_7-49-41AM.wick (3.8 KB)

However, I feel like your code should’ve worked. Maybe there should be a built-in code to have lines run separately?

thankyou hamzah
in the first project the behaviour is really strange
it definetly looks like a pretty serious bug to me