It should using that logic. Are you seeing any errors in your console?
Also, are you creating a function on mouse click (for example) attached to the button inside "mySymbolA".
If you share your document then we can see better what's happening.
FYI. You can share it by dragging a zipped copy into the reply box as long as it's under 3MB
I know the others (@h_classen and @Daniel) have suggested going down the "custom behaviours" route which is fine but I'm sure you'd want to know why it's not working by just using the API