# Get the content of dynamic text

**URL:** <https://forum.kirupa.com/t/get-the-content-of-dynamic-text/326356>\
**Category:** flash\
**Created:** [December 8, 2011, 12:33pm UTC](https://forum.kirupa.com/t/get-the-content-of-dynamic-text/326356 "2011-12-08T12:33:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igor\_Rolim](https://avatars.discourse-cdn.com/v4/letter/i/f4b2a3/32.png) [@Igor\_Rolim](https://forum.kirupa.com/u/Igor_Rolim)\
**Post date:** [December 8, 2011, 12:33pm UTC](https://forum.kirupa.com/t/get-the-content-of-dynamic-text/326356/1 "2011-12-08T12:33:45Z")

</div>

[LEFT][COLOR=#333333][FONT=arial]I have a dynamic text “Home\_btn” with content “Home”, “Preview\_btn” content “Preview” and so on…

I have another dynamic text "title\_txt"and i need to get the txt content of the buttons to change the “Title\_txt” when the button was clicked.

my code…

> 

function clickBtn(evtObj:MouseEvent) {  
title\_txt.text=evtObj.target.name;  
}

I try too, title\_txt.text=Object.target.name; but doesn’t works…

but this, get the target name of event.

Someone can help me?  
[/FONT][/COLOR][/LEFT]
