See your other thread.
Tracy
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Ghislain Simard
Sent: Thursday, September 22, 2005 7:56 AM
To: [email protected]
Subject: [flexcoders] Saving form inputs in sub-components from the root
component
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>
--
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
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/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/