解决:
Fix:
Make sure that whatever you return in the 'Getter' is the same 'Type' as what is set in the 'Setter'.
(确定set的类型和get的类型是一样的)
Bad Code:
function get sClickable():String {
return _clickable.toString();
}
function set sClickable(myClickable:Boolean):void {
this._clickable=myClickable;
}
Good Code:
public function get sClickable():Boolean {
return _clickable;
}
public function set sClickable(myClickable:Boolean):void {
this._clickable=myClickable;
}