Give this a try:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.binding.utils.BindingUtils;
[Bindable]
public var foo:String = "hi";
public function init():void
{
BindingUtils.bindSetter( handleChange, this, "foo" );
}
public function handleChange( str:String ):void
{
trace( "handleChange( " + str + " )" );
}
]]>
</mx:Script>
<mx:Button label="go" click="foo='value of foo changed'"/>
</mx:Application>
HTH,
Tom
On 9/17/06, aaron smith <[EMAIL PROTECTED]> wrote:
does anyone have a quick example of how to use the BindUtils.bindSetter method. i'm trying to get it working but not having any luck..
thanks.
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Software development tool Software development Software development services Home design software Software development company
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
- Re: [flexcoders] BindUtils.bindSetter() Tom Bray
- Re: [flexcoders] BindUtils.bindSetter() aaron smith
Reply via email to

