4 Replies Latest reply on Nov 23, 2010 12:45 PM by Claudiu Ursica

    actionscript custom skin yields 1024: Overriding a function that is not marked for override

    Claudiu Ursica Level 4

      HI I am trying to create a custom skin in actionscript. When I set the HostComponent metadata on top of the class the compoiler yields actionscript 1024: Overriding a function that is not marked for override.

       

      package skins
      {
          import spark.components.supportClasses.Skin;

       

          [HostComponent("spark.components.BorderContainer")]
          [States("normal", "disabled")]
          public class TestSkin extends Skin
          {
              public function TestSkin()
              {
                  super();
              }
          }
      }

       

      usage:

       

      <s:BorderContainer skinClass="skins.TestSkin"/>

       

      What am I missing here can't find anything related to this ...

       

      10x,

      Claudiu