我正在使用外部库中的组件。但是,无论何时我使用该组件,它都会说:
Error: Error #2014: Feature is not available at this time.
该组件工作正常......并且已报告该错误。但是现在我想尝试隐藏这个错误。为了隐藏它,我尝试了以下操作。
var myComp:MyComp = new myComp();
myComp.width = "100%";
myComp.height = "100%";
try {
_page.myCompHBox.addChild(myComp);
} catch (e:Error) {}
_page是对与as3类关联的.MXML页面的引用。
但它仍然没有发现错误。任何想法/建议都会非常有用。