5 Replies Latest reply on May 21, 2010 9:52 AM by Flex harUI

    Cannot access a protected property, but variable window can.

    giant frog Level 1



      I am using a component that extends ComboBase and has a ListBase variable. In the Flex 4 API the anchorIndex is an inherited protected property

      so should be visible, but I get a compile time error message ...

      1178: Attempted access of inaccessible property anchorIndex through a reference with static type mx.controls.listClasses:ListBase.   


      If I debug the application, I can use the variable window to examine the ListBase variable and I can see the anchorIndex property fine, but the

      compiler wont allow it to be built.