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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:51:00+00:00 2026-05-25T16:51:00+00:00

Can anyone please help me solve this mystery: I’ve got a component called Box.as

  • 0

Can anyone please help me solve this mystery:

I’ve got a component called Box.as that has following two properties, and have their getters & setters defined:

private var _busy:Boolean;
private var _errorMessage:String;

In MXML that uses this component I define it like this:

<components:Box skinClass="skins.components.BoxSkin"
                busy="{presenter.boxBusy}"
        errorMessage="{presenter.boxErrorMessage}"/>

Where presenter variable is defined here in MXML and a Presenter class has boxBusy and boxErrorMessage variables defined as bindable property change events:

[Bindable(event="propertyChange")]
function get boxBusy():Boolean;
function set boxBusy(value:Boolean):void;

[Bindable(event="propertyChange")]
function get boxErrorMessage():String;
function set boxErrorMessage(value:String):void;

PROBLEM is that whenever I change boxErrorMessage for the presenter, I see the affect in MXML but nothing happens at all when I change boxBusy. Is there something extra I need to do with boolean variable?

Thanks a lot in advance.

  • 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-25T16:51:01+00:00Added an answer on May 25, 2026 at 4:51 pm

    You should omit the (event="propertyChange") specification from your [Bindable] metadata tags on both boxBusy and boxErrorMessage. Also, make sure your get/set methods are declared public.

    So, the property, boxBusy, would look something like this:

    [Bindable]
    public function get boxBusy():Boolean {  return _busy; }
    public function set boxBusy(value:Boolean):void {  _busy = value; }
    

    When you qualify [Bindable] with (event="..."), you’re telling Flex, “I will dispatch the named event whenever the binding should be updated”.

    If you omit the event specification, then flex assumes that the event is named propertyChange. But that’s not all it does. It also automatically “wraps” your setter with generated code that transparently dispatches a 'propertyChange' event any time the setter is used to modify the value. This is described in more detail here, at adobe livedocs.

    So… by explicitly specifying (event="propertyChange"), you disable flex’s default behavior. Even though you’re using the default event name, flex will not generate the wrapper code — instead, it will expect you to dispatch the event from your code, at the appropriate time.

    I imagine that your boxErrorMessage property appears to be working, because some other [Bindable] property of your class is changing in the same pass — thus dispatching propertyChange, and causing your boxErrorMessage binding to update as a side-effect.

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

Sidebar

Related Questions

Can anyone please help me to work out how to achieve the following? I
Can anyone help me spot the problem on this PLEASE? I'm eternally grateful for
Can anyone please help me. I have developed macro that keeps track of huge
Can anyone please help me to add video controls (play, pause, forward, seekbar) to
Can we add image together with text in a picker view? Anyone please help!
Can anyone help me out please? I'm confused. I want to set up my
Hi there everyone im a newbie so can anyone of u help me solve
Can anyone please help me creating highly customized UI as shown below. Labels: tab1
can anyone please suggest a good code example of vb.net/c# code to put the
Can anyone please tell me if Certifying Authorities (CAs) are allowed to make modifications

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.