I've recently upgrade from Flash CS3 to Animate CC and am having an issue with dynamic text.
Back in CS3, I could simply enter the name of a variable into the VAR field in the properties panel of a dynamic text block to display the variables value on the stage.
This no longer seems to be the case and I've no idea how to go about it...
E.g. I have a variable called counter that tracks how many times a button is clicked. I want to display the value of my counter variable on the stage. How do I do it?
Copy link to clipboard
Just name your textfield and set its value with code.
this.myTextField.text = counter;
Sorry I wasnt notified that you replied. Thanks for getting back to me.
The question was about printing the value of a variable to the stage with dynamic text.
How can I use dynamic text to print the value of a variable?
Yes, that was the question. That's why I answered that question.
Apologies, i understand now what you meant.