Thanks. This works and I like the approach. I set up one using variables.
I am trying to create a math scratchpad that the user clicks a button (first click) and the created math symbol attaches to the mouse and is released with the second click. After that the created symbol can be dragged and dropped "normally" by holding down the mouse key if it is later needed to move.
I thought of this approach because some times the student would click the button several times so it would create too many symbols around the button.