Thanks Josh! I haven't tried to implement this yet but so far it makes
sense.
Thanks again,
John
On Mar 12, 2009, at 9:01 PM, Josh McDonald wrote:
In your custom control, change this:
public function set dataProvider(dp:ArrayCollection):void {
_dp = dp;
trace(this fires when
Yeah, I've been directly updating the properties. Here's the weird
part... if I use the ArrayCollection as a dataProvider for a List
control, it updates. If I use it for a custom control that I've
created, it does not.
Example:
This works as expected:
mx:List dataProvider={model.users}/
In your custom control, change this:
public function set dataProvider(dp:ArrayCollection):void {
_dp = dp;
trace(this fires when the AC is created, but not when it's contents
change);
}
to something like this:
public function set dataProvider(value : ArrayCollection) : void
{
if
I don't know if this is your problem but one thing I noticed is youu have an
ambiguous set of your enabled property. You have
enabled = enabled;
which (I assume) is to set the enabled property of your class to the enabled
parameter that is passed in. This won't work. You should have
Nice catch! That didn't seem to be causing the problem but thanks for
pointing it out.
I've simplified the case in that I'm not calling the web service
anymore, just flipping the enabled property but binding still is not
updating. Any other ideas?
Thanks,
John
On Mar 10, 2009, at 10:53
Hi John,
I seem to remember that XMLList, like Array, isn't Bindable and doesn't
dispatch a propertyChange event. You might try changing the public var
to a getter/setter and manually dispatching the event, or change the
XMLList to Object; to see if it makes a difference. This is just a shot
Of Tim Hoff
Sent: Tuesday, March 10, 2009 4:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: binding not updating for ArrayCollection when item
changes?
Hi John,
I seem to remember that XMLList, like Array, isn't Bindable and doesn't
dispatch a propertyChange event. You might try
available
_
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On
Behalf Of Tim Hoff
Sent: Tuesday, March 10, 2009 4:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: binding not updating for ArrayCollection
when item
changes?
Hi John,
I seem
How do you update a given UserVO's userData? Do you directly access the
public properties?
I have never done it this way - I use getters and setters...
package com.jrobinson.model.VO
{
[Bindable]
public class UserVO
{
private var _id:int = -1;
private var
9 matches
Mail list logo