3 Replies Latest reply on Jul 28, 2010 2:17 PM by VRPDeveloper

    TabBar DropDown ....

    Vasiqullah Level 1

      Here's what i'm trying to do in the TabBar

       

      I want to add a rollOver effect on a tab in which if i move my mouse over a specified tab then another list of tab or any kind of navigation bar should open...I'm not getting how to do that...

       

      Any help on this guys ....

        • 1. Re: TabBar DropDown ....
          VRPDeveloper Level 3

          Hi you need to handle mouseover event or rollover event and then in that function write all the code of making dropdown visible

           

          public function handleMouse(event:MouseEvent):void
          {
          //all logic of making visible dropdown
          }

           

          <mx:TabBarwidth=”200″ mouseOver=”handleMouse(event)” mouseOut=”handleMouseOut(event)” />

           

          Hope you got my point!!!

           

          If this post answers your question or helps, please kindly mark it as such.

          • 2. Re: TabBar DropDown ....
            Vasiqullah Level 1

            Thanks for the help but I'm still not able to find out that how would i activate the function - i mean how would the function will know that the mouse is over the specified tab, which property should i check in the condition....

            If you could give me some hint on this i'll be really obliged...

             

            Thanks for the help again...

            • 3. Re: TabBar DropDown ....
              VRPDeveloper Level 3

              In mouseover Handler you can do it in this way

               

              mouseOverIndex = this.tabBar.getChildIndex(this.tabBar.getChildByName(event.target.name));

               

               

              If this post answers your question or helps, please kindly mark it as such.