[flexcoders] how to save a component from the main apps

2005-07-24 Thread Ghislain Simard
I have a main apps which is calling a component. In the main app,I have a button to save the form inside the component. How do I tell the the main app that I want to save the info inside the component? mx:Application ... mx:Panel comp:myCompFrm mx:Panel mx:Button click=???//

Re: [flexcoders] how to save a component from the main apps

2005-07-24 Thread Clint Modien
1. inside your myCompFrm write a save function: public function save(){.. saves the form...} 2. give your comp:myCompFrm an id property comp:myCompFrm id=myForm 3.call the func on the control from the button click mx:Button click={myForm.save()} /On 7/24/05, Ghislain Simard [EMAIL PROTECTED]