2 Replies Latest reply on Jun 3, 2008 2:47 AM by Milo[HUN]

    TabBar item selection

    Milo[HUN]
      Hi there!

      I have a component with a tabbar on it. To set the tab items enabled property, i needed to extend the tabbar, and now it looks like sg like this in actionscript:
      var tabB:Tabbar;
      var viewSt:ViewStack = new ViewStack;
      tabB.dataProvider = viewSt;
      var vbox:VBox = new VBox;
      vbox.label = "some data from dataprovider";
      vbox.enabled = ...;
      viewSt.addChild(vbox);

      So that's how my tabbar looks like now.
      My problem would be this: If is select a tab item the selection works like pretty, but i'd like to reselect the same item (my goal is to regenerate component that is generated by clickin on the tabB item), beacuse now if i click on a selected item no event is dispatched.
      Now i'm listening to an ItemClick event from tabB component. What should I do?