# Custom MC property seen as number instead of string

**URL:** <https://forum.kirupa.com/t/custom-mc-property-seen-as-number-instead-of-string/317712>\
**Category:** flash\
**Created:** [December 30, 2010, 9:08pm UTC](https://forum.kirupa.com/t/custom-mc-property-seen-as-number-instead-of-string/317712 "2010-12-30T21:08:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hakko](https://avatars.discourse-cdn.com/v4/letter/h/47e85d/32.png) [@Hakko](https://forum.kirupa.com/u/Hakko)\
**Post date:** [December 30, 2010, 9:08pm UTC](https://forum.kirupa.com/t/custom-mc-property-seen-as-number-instead-of-string/317712/1 "2010-12-30T21:08:27Z")

</div>

Hi,

I’m trying to create some custom properties, but for some reason I can’t make them Strings.  
If I give them a string value: “Something” it is returned as NaN by the MC.  
But if I give it true; as a value, it is returned as 1.

this is in the class

```auto
 
public static var Temp_F:labeled_btn = new labeled_btn()

```

function setting the values

```auto
 
   Temp_C.btn_label = "C";
   trace ( Temp_C.btn_label ) **//<-returns "C"**
   Temp_C.btn_selected = true;
   Temp_C.btn_groupName = "temp";
   Temp_C.x = 70;
   Temp_C.y = 365;
   settingsBox.addChild(Temp_C);

```

Function in the MC

```auto
 
trace(this + " = " + +this.btn_label+ " = " +this.btn_selected );
// **returns [object labeled_btn] = NaN = true**

```

I don’t get it…
