I'm creating a AIR app and need to arrive at the dot notation path of: air.File.userDirectory.resolvePath
in my function I'm passing in a where param
var where = 'userDirectory';
var f = eval('air.File.'+where+'.resolvePath')(file);
eval would normally work, but in AIR eval is not allowed.
Any other suggestions?