# Getting the name of the clicked object

**URL:** <https://forum.kirupa.com/t/getting-the-name-of-the-clicked-object/208091>\
**Category:** Uncategorized\
**Created:** [November 24, 2006, 8:17pm UTC](https://forum.kirupa.com/t/getting-the-name-of-the-clicked-object/208091 "2006-11-24T20:17:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smasher511](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@smasher511](https://forum.kirupa.com/u/smasher511)\
**Post date:** [November 24, 2006, 8:17pm UTC](https://forum.kirupa.com/t/getting-the-name-of-the-clicked-object/208091/1 "2006-11-24T20:17:01Z")

</div>

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!
