Skip to content

Instantly share code, notes, and snippets.

@nodename
Created November 29, 2011 04:22
Show Gist options
  • Save nodename/1403398 to your computer and use it in GitHub Desktop.
Save nodename/1403398 to your computer and use it in GitHub Desktop.
AS3 setter question: model.selectedMetric = x; where x already is the selectedMetric. The setter is NOT invoked. Why?
private var _selectedMetric:Metric;
[Bindable]
public function get selectedMetric():Metric
{
return _selectedMetric;
}
public function set selectedMetric(value:Metric):void
{
_selectedMetric = value; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment