If there is no show event like in flex 2, you can use the change event
of
the TabNavigator and a small function which checks the
selected
tab.
Cheers,
Ralf.
On 7/11/06, shemeshkale <[EMAIL PROTECTED]com>
wrote:
> hi,
> using flex1.5
> i need an event to fire
everytime a component is displayed on screen.
>
creationComplete/initialize happens only once so they are not good for
me.
>
> for example i have this code:
> <?xml version="1.0"
encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
>
>
> <mx:TabNavigator styleName="MyTabNavigator"
width="300">
> <mx:HBox label="Tab title 1">
> <mx:Label
text="TAB# 1" fontSize="20" color="#FF0000" />
>
</mx:HBox>
> <mx:HBox label="Tab title 2"
horizontalAlign="center"
> verticalAlign="middle">
>
<mx:Label text="TAB# 2" fontSize="20" color="#00FF00" />
>
</mx:HBox>
> <mx:HBox label="Tab title 3"
horizontalAlign="center"
> verticalAlign="middle">
>
<mx:Label text="TAB# 3" fontSize="20" color="#0000FF" />
>
</mx:HBox>
> </mx:TabNavigator>
>
</mx:Application>
>
> and i want that every time the label on
tab 2 is displayed on screen
> an alert message will pop.
> which
event do i need? (using
flex1.5)
>
>
>
>
>
>
> --
>
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
>
>
>
>
>
>
>
>