title: flex: referencing class variables
body: <p>I have a bunch of variables in a class. There are situations when I want to set then to null/ "temp" etc as per a well defined logic. The challenge is to list out the variables at multiple places- tedious and error-prone.</p>
  
  <p>classname.speed=NaN</p>
  
  <p>classname.speedtype="not_set"</p>
  
  <p>classname.distance=NaN</p>
  
  <p>classname.distancetype="not_set"</p>
  
  <p>Ideally, would prefer a way to refer to these variables programatically and set something like
  "for all class variables- if variable ends in type, set as "not_set"; for other variables set as NaN</p>
  
  <p>How can I achieve this? Any pointers will help</p>