Hi All,
        I have an mxml component extending TabNavigator called
MyTabNavigator.mxml. Also I have application mxml in which I am using
MyTabNavigator called tabNavigation.mxml. 
        Now I want to know how to access functions implemented in
tabNavigation.mxml from MyTabNavigation.mxml. I tried a methodology
mentioned in the Flex help system as below but did not work. Please help .

<!--- MyTabNavigator.mxml -->
var app:tabNivigation: 
.
.
.
private function alertHandler(...)
{
.
.
. app.application.saveData(); // saveData is implemented in
tabNavigation.mxml application
.
........
}

<!-tabNavigation.mxml -->
...
<mx:Script>
<![CDATA[
function saveData()
{
        Alert.show("SaveData will be called",'Save Data');
        
}
]]>
</mx:Script>
...
<local:MyTabNavigator id="dataTabNav" width="672" height="407" marginTop="1"
borderColor="#9900FF" borderStyle="solid"
change="tabChanging(event.target.selectedIndex)" app="{this}">

When I run the application( tabNavigation.mxml) I did not get the alert from
saveData() function. That means application method is not activated from
mxml component.

Thanks in advance.

Thanks!
Hari



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