Hello,
I am trying to create a row of four buttons, which input user responses (1-4). I have made each button a symbol with a two-state timeline, as I want them to change to give touch feedback. I have coded one of the buttons, and it responds as i wish, and logs a value, which i have attached to it as a variable called value. All of the buttons will have a class of "buttons", and I realise that the clever way to do this would be to attach one touch event to all symbols with that class, and then use the event.target to return the relevant value. It is the retrieval of the event target that stumps me; I have tried many ways but always get undefined. Not sure if this is to do with Edge adding "Stage_" to the beginning of the symbol name?
It also confuses me, as if i want to delete a symbol in response to a button within that symbol being clicked, i can use "sym.deleteSymbol();", but when I use sym.getVariable("value") it does not work.
A link to what I've done so far is below.
Thanks in advance for all help,
Tim