If that's the total set, I'd just write the if statement. If you want extensibility, then I'd subclass each one and add a property that tells you which property to pull and what its type is. You could even do that as an interface so other components can be added later.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of gotgoose09 Sent: Monday, April 09, 2007 5:40 PM To: [email protected] Subject: [flexcoders] Dynamically retrieving the input data of a UIComponent. In one of my components I save a DateField, TextInput, NumericStepper, etc. as a UIComponent which is displayed on the screen. I need a way of retrieving the data that the user inputs into this UIComponent, but my component doesn't know whether it should retrieve the "text" property (TextInput, TextArea), the "value" property (NumericStepper), or the "selectedDate" property (DateField). I could write a long conditional statement to check for the existence of each input and then use the correct property, but I am looking for a more efficient solution. Thanks in advance! :-)

