1 Reply Latest reply on Aug 13, 2010 5:36 AM by ShardulSingh

    How to access the rollover or rollout event?

    Flex Rock Level 1

      Hi,

           How to access these events(rollover and rollout) in a class which extends Label.If so please give me a sample.

       

      Regards,

      Jayagopal

        • 1. Re: How to access the rollover or rollout event?
          ShardulSingh Level 3

          Hi,

           

          Create a class like this.Which is extending Label.Now you can simply use all the events which are of Label class.

           

          package
          {
              import mx.controls.Label;
             
              public class CustomLabel extends Label
              {
                  public function CustomLabel()
                  {
                      super();
                  }

           

              }
          }

           

           

           

          Use this class like this:-

           

          <local:CustomLabel id="yourCustomLabel" rollOver="onRollOver()" rollOut="onRollOut()"/>

           

           

           

           

           

           

           

           

           

          with Regards,

           

          Shardul Singh Bartwal

           

           

           

           

           

           

           

           

           

           

           

           

          <local:CustomLabel rollOver="onRollOver()" rollOut="onRollOut()"/>