<mx:TextInput id="tip" text="test" />
<mx:Text id="txt" text="{tip.text}" />
위와 같은 소스를 ActionScript에서 적용 하려면 다음과 같이 하면 된다...
BindingUtils.bindProperty( txt, "text", tip, "text" );
속성이 있을 경우에는 위와같이 하면 돼지만...속성이 아닌 스타일이나 기타 등등은 다음과 같이 하면 된다...
var watcherSetter:ChangeWatcher = BindingUtils.bindSetter( 함수명, txt, "color" );
댓글 없음:
댓글 쓰기