Skip to content

Instantly share code, notes, and snippets.

@bclinkinbeard
Created October 18, 2010 17:21
Show Gist options
  • Save bclinkinbeard/632620 to your computer and use it in GitHub Desktop.
Save bclinkinbeard/632620 to your computer and use it in GitHub Desktop.
Bindable, read-only property
protected var _foo:String;
[Bindable( "fooChanged" )]
public function get foo():String
{
return _foo;
}
public function setFoo( foo:String ):void
{
_foo = foo;
dispatchEvent( new Event( "fooChanged" ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment