i have an accordion, in which when the user clicks sth inside the first tab; 
the second tab is loaded.
the problem is that; i have to prevent user from opening the second tab. i need 
to show an error and reselect the 1st tab.
to make this; i have added an event listener for the change event of the 
accordion but; i can give the error, but can not
reselect tab 0.
my code is below, can anyone help me please?
thanks..
---
private function tabChangeControl(e:Event):void{
                if(accordi.selectedIndex == 1 && bilgiler.enabled==false){
                    e.preventDefault();
                    Alert.show('Önce görev seçmelisiniz','Hata'); //error 
message
                    accordi.selectedIndex=0; //THIS DOES NOT WORK!!!
                }
            }




 
____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited

Reply via email to