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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:42:59+00:00 2026-05-27T00:42:59+00:00

AS [Bindable] var object:Object = { property: Property }; MXML <s:Label text={object.property}/> The labels

  • 0

AS

[Bindable]
var object:Object = {
    property: "Property"
};

MXML

<s:Label text="{object.property}"/>

The labels text will be “Property”, but if object.property is changed, the label isn’t updated. Is there any way around this?

  • 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-27T00:42:59+00:00Added an answer on May 27, 2026 at 12:42 am

    Properties of an object or collection will not dispatch a property change event unless implemented.

    Likewise to your example, a change to an Array element will not be bound.

    Collections such as ArrayCollection wrap objects within a proxy to dispatch events for binding.

    Use an ObjectProxy to dispatch changes to your object.

    Instantiate an ObjectProxy and listen for PropertyChangeEvent:

    objectProxy = new ObjectProxy(object);
    objectProxy.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, propertyChangeHandler);
    

    Access your object via the proxy, such as setting a property named ‘property’:

    objectProxy.property = "Hello, world";
    

    This example creates an ObjectProxy with a timer to change the ‘property’ member every second:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   minWidth="955"
                   minHeight="600"
                   creationComplete="creationCompleteHandler(event)">
    
    
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                import mx.events.PropertyChangeEvent;
                import mx.utils.ObjectProxy;
    
    
                private var object:Object = {};
                private var objectProxy:ObjectProxy;
    
                private var timer:Timer;
    
                protected function creationCompleteHandler(event:FlexEvent):void
                {
                    objectProxy = new ObjectProxy(object);
                    objectProxy.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, propertyChangeHandler);
    
                    timer = new Timer(1000);
                    timer.addEventListener(TimerEvent.TIMER, timerHandler);
                    timer.start();
                }
    
                protected function propertyChangeHandler(event:PropertyChangeEvent):void
                {
                    label.text = (event.source).property;
                }
    
                protected function timerHandler(event:TimerEvent):void
                {
                    objectProxy.property = Math.random() * 1000;
                }
            ]]>
        </fx:Script>
    
    
        <s:Label id="label" />
    
    
    </s:Application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I create an object like so: class Foo { [Bindable] public var property:
[Bindable]public var headingData1:Object = new Object(); <mx:HTTPService id=srv url=components.xml resultFormat=object result=getHeadings(event);/> private function getHeadings(evt:ResultEvent):void{
I'm trying to databind an object's property to a ComboBox's (editable=true) text property. This
[Bindable] public var isToggled:Boolean = true; public var menuData:Array = [ {label: Sample, type:
Lets say I have the following: public class MyObject { [Bindable] public var foo:int
this is a part of my code [Embed(source='dmr/images/icones/icnPresenceInline.png')]; [Bindable] private var presentAuBureau:Class; [Embed(source=dmr/images/icones/icnVacancesInline.png)]; [Bindable]
I have an value object in Flex which looks like: [Bindable] public class MyVO
How can i add and remove rows in datagrid using check box` [Bindable]public var
My Combobox is not alway updating when I update the ArrayCollection. [Bindable] public var
I've got a bindable model class (lets call it myModel) with two properties, label

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.