3 Replies Latest reply on Mar 27, 2007 5:40 AM by maguskrool

    Public/private getter/setter methods

    maguskrool Level 1
      Hi.

      When creating a custom class in an .as file, I declared getter/setter methods using the get/set keywords. When I make the methods public, Flash says there are no errors, but if I make any of them private I get the following error message:

      "A member attribute was used incorrectly."

      So far I haven't found an explanation for this, is there a requirement that all getter/setter methods be public? Doesn't make much sense to me, but perhaps there is a reason for this (if it is indeed the case that they must be public).

      Thanks in advance.