Thanks so much Cosma and Maurice, that should work. 

----- Original Message -----

From: "Cosma Colanicchia" <[email protected]> 
To: "Apache Flex Users ML" <[email protected]> 
Sent: Tuesday, November 12, 2013 6:56:32 AM 
Subject: Re: how to intercept Spark TabBar change and allow/prevent it based on 
app variables? 

Manage selectionChanging event and call event.preventDefault(). See [1] for 
details. 

[1] 
http://help.adobe.com/it_IT/FlashPlatform/reference/actionscript/3/spark/components/supportClasses/ListBase.html#event:changing
 


2013/11/12 <[email protected]> 

> When a user selects a new tab in a spark tabbar, I want to inspect some 
> variables in the app and, based on that, decide whether to allow the tab to 
> change. 
> 
> Anyone know how to intercept the user's click on the tabbar, then prevent 
> the tab from changing? 
> 

Reply via email to