Trying to use BindingUtils in Flash AS3.0
问题 I am not able to make this code work in AS3.0 ( Flash ) with Flex SDK 4.0 included. import mx.binding.utils.*; [Bindable] var myValue:int = 0; var cw:ChangeWatcher = BindingUtils.bindSetter(myValueChanged, this, "myValue"); addEventListener( Event.ENTER_FRAME , ef); function ef(e:Event):void { trace("hello",getTimer()); myValue = getTimer(); } function myValueChanged(o:Object):void { trace("myValue: " + myValue.toString()); } The output i get is : myValue: 0 hello 157 hello 168 hello 171