I would recommend adding a class to the text element. Then looping through all of them and checking their parent symbol to see what text you should put in. You can get the parent symbol by using the following javascript: Getting the SymbolInstance for an element inside of a symbol.