17 Replies Latest reply on Apr 27, 2015 11:35 AM by resdesign

    How do you set the ID of a symbol when you dynamically add it to the stage?

    erics45825902

      I'm using this to try to give the symbol an ID:

      s.setVariable("id", data[i].title);

       

      The problem is that I'm trying to hide all the symbols later on a button click. I can't figure out how to hide them. I tried using Firefox to inspect the divs in the browser, but they all show as:

      id="Stage_92"

      id="Stage_93"

      id="Stage_94"

      etc.

       

      Any help would be appreciated.