Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3998860
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:34:50+00:00 2026-05-20T07:34:50+00:00

In Actionscript 2 I find that I cannot have a private function set without

  • 0

In Actionscript 2 I find that I cannot have a “private function set” without returning the error “A member attribute was used incorrectly.” If I change it to “public function set” I’m fine but that defeats the goal of trying to protect the function from setting externally.

Anyone have a simple fix/alternative?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:34:51+00:00Added an answer on May 20, 2026 at 7:34 am

    It’s a known bug:
    https://bugs.adobe.com/jira/browse/ASC-3601

    You can’t mix a public getting with a private setter. Since you’re only accessing it from that class, just make the variable private and set its value without using a setter. The main reason to have a setter anyway would be to expose the ability to change its value from outside of your class, via the public declaration (there’s probably other reasons, but that’s the main one), so if you only want to change it internally, then just change the value (I know, then it’s not consistent and in 1 place – but yeah, ya know…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an actionscript file that defines a class that I would like to
I have an ActionScript 2.0 file that contains a small library. This library parses
In an actionscript function (method) I have access to arguments.caller which returns a Function
I have a book, Essential ActionScript 3 (O'Reilly), to learn about using that language.
In ActionScript, how can you test if an object is defined, that is, not
Couldn`t find any ActionScript native APIs even in the beta documentation, am I right
ActionScript 3 / Flex 3 - Adding custom events to a class Say I
Since Actionscript is a proper superset of javascript, it should I suppose be possible.
I knew ActionScript and ActionScript2 inside out, but I've been away from Flash for
Is it possible in Actionscript 3 to create a weak reference to an object,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.