Copy link to clipboard
Copied
Hi, I am currently working on displaying some Patches in Animate.
Is there a way to controll multiple dynamic text fields with one line of code?
My example: 3 dynamic text fields with the instance name myText
and the according code snipped: this.myText.visible=false;
Unfortunaly only the first myText diapears.
Can someone help me how to let the other two texts disapear?
never use the same reference for different objects. ie, change your textfield names (eg, tf1, tf2 etc)
Specifically, never use the same name for multiple objects within the same object. For example:
NO, OF COURSE THIS WON'T WORK:
myClip.text1
myClip.text1
myClip.text1
WORKS FINE:
myClip1.text1
myClip2.text1
myClip3.text1
Copy link to clipboard
Copied
never use the same reference for different objects. ie, change your textfield names (eg, tf1, tf2 etc)
Copy link to clipboard
Copied
Specifically, never use the same name for multiple objects within the same object. For example:
NO, OF COURSE THIS WON'T WORK:
myClip.text1
myClip.text1
myClip.text1
WORKS FINE:
myClip1.text1
myClip2.text1
myClip3.text1