You might find answers here [1]

[1] Using Bindable Metadata Events | Tournas Dimitrios 
(wordpress.com)<https://tournasdimitrios1.wordpress.com/2010/08/01/using-bindable-metadata-events/>

From: Maria Jose Esteve<mailto:mjest...@iest.com>
Sent: Tuesday, April 12, 2022 1:14 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Binding - dispatch event change

Hello, I want to ask you a general question about the binding of as3 properties.
In the SDK we can observe different implementations:

[Bindable]
…
public function set foo(value:Boolean):void{
                _foo = value;
}
//-----------------------------
[Bindable(”fooChange”)]
…
public function set foo(value:Boolean):void{
                _foo = value;
}
//-----------------------------
[Bindable]
…
public function set foo(value:Boolean):void{
                _foo = value;
                dispatchEvent(new Event(“fooChange”));
}
//-----------------------------
[Bindable(”fooChange”)]
…
public function set foo(value:Boolean):void{
                _foo = value;
                dispatchEvent(new Event(“fooChange”));
}
//-----------------------------
public function set foo(value:Boolean):void{
                _foo = value;
                dispatchEvent(new Event(“fooChange”));
}

What is the difference between these options? In what cases would you implement 
one or the other?

Thx.
Hiedra


Reply via email to