3 Replies Latest reply on Jan 21, 2018 2:30 AM by iqmactep

    Dynamic Text with Flash HTML5 (Canvas)

    djsegler Level 1

      I'm new to JS and need some help...

       

      I've generated a simple Flash HTML5 Canvas project that has a dynamic text field on the stage. How would I go about changing the value of the text within that element using JS commands elsewhere in the timeline?

       

      I've tried the following and none of them work:

       

      this.myTextBox.value = "blah blah";

      or

      this.myTextBox.value = ("blah blah");

      or

      this.myTextBox.txt = "blah blah"; // Since my dynamic text field linkage name is txt

      or

      this.myTextBox.txt.value = "blah blah";

      or

      this.myTextBox.txt.text = "blah blah";

       

      etc...

       

      What's the right syntax?

       

      Thanks!