Not a native feature built in to Flex I don't think, however one way to accomplish this would be to loop through each of the children of the Form (referenced by id), and then loop through each of the children of the that child, see if they are of type TextInput, TextArea, ComboBox, CheckBox, RadioButton, etc -- and then store the id/value of that child in an ArrayCollection for sending later.
Does that sound like what you're after? Brian On 3/14/07, Kevin <[EMAIL PROTECTED]> wrote: > > > > > > > When handling form submission. Is there a way to grab all the fields > wrapped in a specific Form tag and send them as an object to a function much > like a GET or POST works in HTML. > > a form example: > > <mx:Form id="userForm"> > <mx:FormItem label="Login ID" required="true" > > <mx:TextInput id="username" width="100" restrict="^ "/> > </mx:FormItem> > <mx:FormItem label="User Name" required="true"> > <mx:TextInput id="firstname" width="75"> > <mx:TextInput id="lastname" width="75" /> > </mx:FormItem> > </mx:Form> > > <mx:ControlBar> > <mx:ButtonBar id="adduser" dataProvider="{buttonlist}" > itemClick="clickHandler(event);"/> > </mx:ControlBar> > > can I grab all the values of the submission in as userForm.values (or > something like that) OR do I have to get each one individually as > > username.text > firstname.text > lastname.text > > ...blah, blah... > > > thanks, Kevin > > > > -- Brian Dunphy