user.properties.put("var",0);
Posted: 04 Oct 2005, 15:47
The following code caused me a lot of headeache
putIt = 0;
players["plxxx"].properties.put("myVar",putIt);
getIt = players["plxxx"].properties.get("myVar");
trace(">>> Should trace 0 but getIt-> "+getIt);
Altough it traces 0.0 and I could check the value in a conditional statement, I used that property to retrieve the property in an array and it doesn't acted as indended. Meaning arr[0] is not the same as arr[0.0] alotough getIt == putIt
.
putIt = 0;
players["plxxx"].properties.put("myVar",putIt);
getIt = players["plxxx"].properties.get("myVar");
trace(">>> Should trace 0 but getIt-> "+getIt);
Altough it traces 0.0 and I could check the value in a conditional statement, I used that property to retrieve the property in an array and it doesn't acted as indended. Meaning arr[0] is not the same as arr[0.0] alotough getIt == putIt