Getting the name of the clicked object

Hello, I have searched the forum for the topic, but no luck, so sorry if this is double post.
Anyway, I have a problem. I don’t know how can I use the property (name/variable/text) of a text object when clicked on it?

Lets say I have a text object which holds the “myvar” in variable, and when I click on that text, I want that myvar to be written in text of other text object…

on (release) {
text2.text = text1.variable

}

but I need that text1 to be automatically the name of the text I click on. I tried me, this, etc, but no luck…

Please help.
Thank you!