Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

dynamic text object not in library

New Here ,
May 06, 2020 May 06, 2020

I have created a button and a dynamic text object associated with the buton. The button appears in my library but the dynamic text object does not. Is this normal?

 

jjfjr

 

 

219
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 06, 2020 May 06, 2020

it's expected you'd have problems referencing the textfield (using notation that would work for a child textfield of a movieclip), but it's not clear to me what problem you're describing because it's not clear what you mean by associating a text object with a button.

 

but if you create a textfield, it's not going to be in the library.  and if you convert it to a symbol, the symbol will be in the library and the textfield will be a child of the symbol, but the textfield still won't be in the library.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 07, 2020 May 07, 2020
LATEST

Thanks for the response. Being new to Animate CC, I am trying to get the following code to work:

var root = this;
this.Conserve_Mass_Button.addEventListener("click",Conserve_Mass_ButtonFunction);
function Conserve_Mass_ButtonFunction()
{root.Dyn_Txt_obj_Conserve_Mass_Button.text = "Clicked"; }

When I click the Conserve_Mass_Button, I want to see "clicked" in the associated dynamic text object; Dyn_Txt_obj_Conserve_Mass_Button. It doesn't seem to work and I thought that the object not being in the library could be the problem.

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