Highlighted

Displaying a Variable with Dynamic Text in Adobe Animate CC

New Here ,
Oct 16, 2019

Copy link to clipboard

Copied

Hi guys,

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?

Adobe Community Professional
Correct answer by ClayUUID | Adobe Community Professional

Just name your textfield and set its value with code.

 

this.myTextField.text = counter;

Views

597

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Displaying a Variable with Dynamic Text in Adobe Animate CC

New Here ,
Oct 16, 2019

Copy link to clipboard

Copied

Hi guys,

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?

Adobe Community Professional
Correct answer by ClayUUID | Adobe Community Professional

Just name your textfield and set its value with code.

 

this.myTextField.text = counter;

Views

598

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 16, 2019 0
Adobe Community Professional ,
Oct 16, 2019

Copy link to clipboard

Copied

Just name your textfield and set its value with code.

 

this.myTextField.text = counter;

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 16, 2019 0
New Here ,
Nov 13, 2019

Copy link to clipboard

Copied

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?

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 13, 2019 0
Adobe Community Professional ,
Nov 13, 2019

Copy link to clipboard

Copied

Yes, that was the question. That's why I answered that question.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 13, 2019 0
bduffy LATEST
New Here ,
Nov 18, 2019

Copy link to clipboard

Copied

Apologies, i understand now what you meant.

 

 Thank you!

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 18, 2019 0