Hi Padma,
You can see the event-handling section of Flex docs to
learn how to handle events in Flex...
I am giving a simple example below so that you can get
started:
#EventHandling.mxml##
<mx:Application
xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:Script>
import mx.controls.Alert;
function sayHelloWorld()
{
Alert.show("Hello
World");
}
</mx:Script>
<mx:TabNavigator
id="tn" change="status.text='current child is' +
event.newValue">
<mx:HBox>
<mx:Button label="Hello World"
click="sayHelloWorld()"/>
</mx:HBox>
<mx:HBox>
<mx:Button label="aButton"
/>
</mx:HBox>
<mx:TabNavigator>
</mx:Application>
See the red lines, first one shows the
inline-actionscript-code to handle event. Second one shows, that you can assign
a event handler function (an actionscript-function) from
event...
Check out following link for more information on event
handling in Flex.
Hope that helps..
-abdul
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of padma vathi
Sent: Monday, December 05, 2005 1:26 PM
To: [email protected]
Subject: [flexcoders] how to handle an event dispatched by a tabnavigator component in main mxml
Hi
i am using tabnavigator in my mail mxml file.i want to know how to
handle an event dispatched from from a componenent of tab navigator
to main mxml.
if any one know tell this it would be helpful
padma
Enjoy this Diwali with Y! India Click here
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

