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 443307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:09:26+00:00 2026-05-12T21:09:26+00:00

Again pulling my hair out due to some Flex/AS3 weirdness. The following code does

  • 0

Again pulling my hair out due to some Flex/AS3 weirdness. The following code does not compile due to error 1120 – Access of undefined property AbstractWizardModel

<mx:HBox id="cntr_buttons" width="100%" horizontalAlign="right">
   <mx:Button label="{model.getButtonLabel(AbstractWizardModel.GO_BACK)}" />
</mx:HBox>

The constant is defined (in AbstractWizardModel) as:

[Bindable]
public class AbstractWizardModel extends EventDispatcher
{
   public static const GO_BACK : String = "goBack";
   ...
}

Replacing ‘AbstractWizardModel.GO_BACK’ with ‘”goBack”‘ does the trick, but what was the problem?

Thanks!

PS: Of course I am importing the AbstractWizardModel in the MXML code

  • 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-12T21:09:27+00:00Added an answer on May 12, 2026 at 9:09 pm

    Oh man this is so weird..

    I found kind of a solution, thanks to all comments, which helped me to get on the right track, but still think this is a bug in Flex.

    First of all I have to add that (in my code) the MXML and AbstractWizardModel class are in the same package.

    The ‘getButtonLabel()’ function that I am calling is declared as

    [Bindable(event="getButtonLabelChanged")]
    public function getButtonLabel (buttonId:String) : String
    {
        ..
    }
    

    If I remove that [Bindable..] annotation, the code compiles.

    If I leave it there, I have to add an import for class AbstractWizardModel, although it is in the same package. Anyway, that fixes the problem, too.

    However 🙂 FB4 removes that import everytime it organizes imports, so that user comment was helpful too.

    Happy to hear your thoughts!

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

Sidebar

Related Questions

I'm pulling my hair out (once again), trying to find a way to read
I'm really pulling my hair out on this one, it seems that I'm having
I'm pulling my hair out on this problem. I would like to show a
I am pulling my hair out on this one. Pretty new at PHP but
I am pulling my hair out. I had this working earlier. My confirm.php checks
I've been pulling my hair for the last few hours trying to figure out
Again I'm moving from Xcode 3 to 4 and finding that some things are
Once again I find myself failing at some really simple task in C++. Sometimes
I am pulling data from an XML feed via C# code. When I get
Again I have a question regarding this plugin: http://t.wits.sg/2008/06/20/jquery-progress-bar-11/ What I want to achieve

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.