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
public static var Temp_F:labeled_btn = new labeled_btn()
function setting the values
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
trace(this + " = " + +this.btn_label+ " = " +this.btn_selected );
// **returns [object labeled_btn] = NaN = true**
I don’t get it…