Copy link to clipboard
Copied
Copy link to clipboard
Copied
the variable is not changed during the test, too
Copy link to clipboard
Copied
Copy link to clipboard
Copied
you don't have a textfield name myQuestion when that code executes.
Copy link to clipboard
Copied
I have
Copy link to clipboard
Copied
I put the code on the same frame where the textfield is
Copy link to clipboard
Copied
check your textfield's instance name in frame 2 where your code is located
Copy link to clipboard
Copied
my code located in layer "Actions", text field in QUestions layer (you can see it on pic)
Copy link to clipboard
Copied
Copy link to clipboard
Copied
otherwise I am afraid that I don't understand where and what to search
Copy link to clipboard
Copied
remove your textfield, recreate it and assign its instance name.
Copy link to clipboard
Copied
but instance name is assigned, you can see it under Dynamic Text in the image
Copy link to clipboard
Copied
the same
Copy link to clipboard
Copied
upload your fla to a file server and post a link
Copy link to clipboard
Copied
it worked only when I double click in hero, went to its animation and added text and variable ther and I saw it -
But the next question is how can I manage to go to upper level of the scene after clicking the button, and go to the frame I need?
Copy link to clipboard
Copied
what timeline has your code and what timeline has the textfield?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
how's a button related to your textfield and your code?
Copy link to clipboard
Copied
let's imagine I crreate the game:
1. It should be the first screen - then user clicks Start button
2. User plays by moving hero
3. Then depending of win or lose - user should be moved to the screen
Copy link to clipboard
Copied
I can't put fla file here
Copy link to clipboard
Copied
correct, upload to a file server.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi.
What do you get if you run console.log(this.myQuestion); on frame 0 and 1 from the main timeline?
Regards,
JC
Copy link to clipboard
Copied
Hi, the variables are not seen
Copy link to clipboard
Copied
same problem, same answer.
will fix your fla when i ger to a computer.