One way to approach this might be to a run function (perhaps initiated by a button click event) that sets a boolean var: bTabEnabled = false; then set a var (statTabIndex) equal to the tabNav.selectedIndex.
The tabNavigator has a change event that will fire when the user interacts with a tab. If the boolean is false, the tabNav.selectedIndex will be set to 'statTabIndex'. <mx:Script> var bTabEnabled = true; var statTabIndex; function doChange(e) { if(!bTabEnabled) { tbNav1.selectedIndex = statTabIndex; } } function setTabNavEnabled() { if(bTabEnabled) { bTabEnabled = false; btn1.label = "enable tab change"; statTabIndex = tbNav1.selectedIndex; } else { bTabEnabled = true; btn1.label = "disable tab change"; } } </mx:Script> <mx:TabNavigator id="tbNav1" change="doChange(event)"> <mx:HBox height="400" width="400" backgroundColor="#003399"/> <mx:HBox height="400" width="400" backgroundColor="#00CC99"/> <mx:HBox height="400" width="400" backgroundColor="#993300"/> <mx:HBox height="400" width="400" backgroundColor="#FF6666"/> <mx:HBox height="400" width="400" backgroundColor="#00CC66"/> </mx:TabNavigator> <mx:Button id="btn1" label="disable tab change" click="setTabNavEnabled()"/> --------------------------------------------------------------------------- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --------------------------------------------------------------------------- -- 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/