本文主要是介绍Flash CS3 Error #1053,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
解决:
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;
}
这篇关于Flash CS3 Error #1053的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!