Hi!

 

In my case I did:

<mx:TabNavigator id="tabNavPropostas" width="100%" height="100%" change="fMudouTab(event);">

 

In actionscript:

function fMudouTab(event):Void {

            if (event.newValue == 1) //second tab

            {

                        Cliente.fPopulaExt();

            }

}

 

regards,

 

--------->--------->---------
Fernando Barros

Internet Officer
--------->--------->---------


De: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Em nome de Doodi, Hari - BLS CTR
Enviada em: sexta-feira, 15 de abril de 2005 14:51
Para: 'flexcoders@yahoogroups.com'
Assunto: [flexcoders] TabNavigator changing event ?

 

Hi all,

Is there any changing event for TabNavigator container? The reason being...
I have THREE tabs in TabNavigator and whenever user enter/change data on
individual tab and try to navigate to another tab without clicking save
button I required to display an confirmation alter and based on the response
my code should perform action accordingly. What is happening is by the time
alert displayed on the screen the tab already changed because, I think, the
event I am tapping is "change". Now comes my question, can I trap any event
before "change" event can occur so that I can display confirmation alert and
act accordingly. If user choose to cancel I should keep the user on the same
tab from where user is trying to navigate to other tab - How can I achieve
this? By assigning selectedIndex = prevTabIndex? I think this again will
cause chain of events fire. I need expertise help/guidance here.

I am attaching my mxml file your ref. Thanks in advance for the help.

                  <<tabNivigation.mxml>>

Thanks!
Hari




Yahoo! Groups Links

Reply via email to