# Trying to add a string to name of instance

**URL:** <https://forum.kirupa.com/t/trying-to-add-a-string-to-name-of-instance/304095>\
**Category:** flash\
**Created:** [February 1, 2010, 5:43pm UTC](https://forum.kirupa.com/t/trying-to-add-a-string-to-name-of-instance/304095 "2010-02-01T17:43:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [February 1, 2010, 5:43pm UTC](https://forum.kirupa.com/t/trying-to-add-a-string-to-name-of-instance/304095/1 "2010-02-01T17:43:28Z")

</div>

I am trying to capture the name of a target and add the letters “hl” on to the end and then set the visibility of another object with this modified name to true. Here is the code. The trace shows exactly what I want. Now how do I take that and set the visibity to true?

```auto
 
  var highLight:String = evt.currentTarget.name + "hl";
  trace(highLight);
  highLight.visible = true;

```
