flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: bindSetter Question
Date Mon, 14 Sep 2015 17:34:52 GMT
When is model.summary populated?  Maybe it is null or some other instance
at the time you call bindSetter?

On 9/14/15, 3:55 AM, "mark goldin" <markzolotoy@gmail.com> wrote:

>Here is some code:
>Model.
>[Bindable]
>[Event(name="availableUsersRefreshed", type="flash.events.Event")]
>public class modelLocator extends EventDispatcher implements IModelLocator
>{
>              public var summary:Summary;
>.............
>Summary.
>[Bindable]
>[Event(name="summaryLoaded", type="flash.events.Event")]
>public class Summary extends EventDispatcher
>{
>            public function get eventSummaryType():String{
>return _eventSummaryType;
>}
>           public function set eventSummaryType(value:String):void{
>_eventSummaryViewType = value;
>           .........
>
>Like I said, works only once when application loads.
>
>On Sun, Sep 13, 2015 at 10:45 PM Alex Harui <aharui@adobe.com> wrote:
>
>> Well, is model dispatching that event?
>>
>> On 9/13/15, 12:11 PM, "mark goldin" <markzolotoy@gmail.com> wrote:
>>
>> >Here is my code:
>> >BindingUtils.bindSetter(handler, model.summary, "eventSummaryType");
>> >
>> >My expectation is that when eventSummaryType property on model.summary
>> >changes my handler is called. It only works for one time when the app
>> >starts. Any consecutive change to the property does not fire the
>>handler.
>> >Any ideas why?
>> >
>> >Thanks
>>
>>

Mime
View raw message