Hi,
I have _root panel that is displaying display different components & 
sub-components that I would like to save the form inputs.  How to 
trigger the "function saveValues()" inside a component or a sub-
component from the save button in the main panel?

main.mxml:
<mx:Panel>
 <mx:ViewStack>
   <comp:Comp1 id="myComp1"/>
   <comp:Comp2 id="myComp2"/>
   <mx:ControlBar>
     <mx:Button id="sauve" label="save" click="???
selectedChild.sauveValues(???)"/>
   </mx:ControlBar>
 </mx:ViewStack>
</mx:Panel>

Comp1.mxml:
<mx:Script>
   function saveValues();...
</mx:Script>

Comp2.mxml:
<mx:Script>
   function saveValues();...
</mx:Script>
<mx:VBox>
<mx:Script>
   function saveValues();...
</mx:Script>
  <comp:Comp3 id="myComp3"/>
</mx:VBox>

Comp3.mxml:
<mx:Script>
   function saveValues();...
</mx:Script>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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