Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.