# Getting values of objects by referencing their name

**URL:** https://forum.kirupa.com/t/getting-values-of-objects-by-referencing-their-name/331149
**Category:** flash
**Created:** [May 30, 2013, 11:48pm UTC](https://forum.kirupa.com/t/getting-values-of-objects-by-referencing-their-name/331149 "2013-05-30T23:48:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Testy](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Testy](https://forum.kirupa.com/u/Testy)
#### Post date: [May 30, 2013, 11:48pm UTC](https://forum.kirupa.com/t/getting-values-of-objects-by-referencing-their-name/331149/1 "2013-05-30T23:48:18Z")

</div>

Hi!

I’m reading XML and attaching values to objects in two seperate movieclips. Like this

Map01:  
Marker01.name = hello there  
Marker01.short = hel  
Marker01.value = 12

Map02:  
Marker01.name = hello there  
Marker01.short = hel  
Marker02.value = 99

Now I’m clicking on Marker01 in Map01 and get its name and value. I want to compare its value to that of Marker01 in Map02, using the name, or better yet .short because the names are long and use special characters/spaces. How do I do this? I’ve pretty much tried everything that seemed logical!
