What could it be done if I have different components inside the main 
app whew I want to save that data?

<mx:Application>
 ....
 .......
 <mx:Panel>
   <mx:ViewStack id="vsl">
     <comp:myCompFrm>
     <comp:myCompFrm2>
   </mx:ViewStack>
 <mx:Panel>
 ....<mx:Button click="???">// Save the content in the component
                               that is in use


--- In flexcoders@yahoogroups.com, Clint Modien <[EMAIL PROTECTED]> wrote:
> 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]> wrote:
> > 
> > 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="???">// Save the content in myCompFrm
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to