2 Replies Latest reply on Aug 13, 2010 4:34 AM by Flex Rock

    Textrollover color for label

    Flex Rock Level 1

      Hi,

           Is it possible to set textrollover color for label control.

       

       

      Regards,

      Jayagopal.

        • 1. Re: Textrollover color for label
          ShardulSingh Level 3

          Hi,

           

          You can try like this.

           

           

           

          <mx:Label id="lbl" text="Your Lable Text" rollOver="onRollover()" rollOut="onRollOut()"/>

           

           

                  private function onRollover():void
                  {
                      lbl.setStyle('color',0xFF0000);
                  }
                 
                  private function onRollOut():void
                  {
                      lbl.setStyle('color',0x000000);
                  }

           

           

           

           

           

           

          Hope this will full fill your requirement. Let me know if you have any issue with this.

           

           

           

           

           

           

           

           

           

           

           

           

          with Regards,

           

          Shardul Singh Bartwal

          • 2. Re: Textrollover color for label
            Flex Rock Level 1

            Thanks for your help.

             

             

             

             

             

            Thanks & Regards,

            Jayagopal.