Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Use variable for symbol name

$
0
0

I am trying to reference a symbol element that looks like this:

 

elementName = variableName + "Menu";

var menuChoice = sym.getSymbol('printMenu').$(elementName);

 

when I console.log ("menuChoice" + menuChoice) I get

object Object

 

How do I accomplish using a variable as a symbol name?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>