setterをBindableにする

setterに処理を持たせたいと思い自分でsetterを作った場合でも、Bindableにすることができる。

private var _data:String;

[Bindable]
public function set data( value:String ):void
{
_data = value + ” times”;
}

public function get data():String
{
return _data;
}

参考:
http://livedocs.adobe.com/flex/3_jp/html/help.html?content=databinding_8.html

2009年 9月 29日 | Posted in Flash / ActionScript3.0
タグ:
まだコメントはありません。

コメントする

XHTML: 使用可能タグ: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>