3 Replies Latest reply on Jan 9, 2013 8:36 AM by elainecc

    How change a text inside a symbol?

    Paulcardo Level 1

      Hi,

       

      Im beggining with Edge, for a game I created a symbol "Coin" in the library and using it on the Stage,

      "Coin" symbol has a Text and a SquareBox inside. I want to change the text based on user interaction,

      In the Stage the "Coin" has been renamed to "TextSym"

       

      It works as I want  using this code:

       

      var element = sym.$("TextSym");

      var element2 = sym.$("TextSym")[0].children[1];

      element2.innerHTML = "change text";

       

       

      but probably there are a better way to do it?, 

       

      thanks