Flash 组件在 aem 发布中显示替代图像而不是 flash 动画

Flash Component show alt image instead of flash-animation in aem publish

我正在使用 aem 6.0 实例。我只是将 flash 组件放在页面上。在创作时一切正常。发布时出现 js 异常:

Uncaught ReferenceError: CQ is not defined

是否需要包含cq.shared库?

正如@anotherdave所说,

Does the component work on the sample Geometrixx site? If it does, what's different between your site & that one? You need to provide more background info to your question

我查看了 geometrix 站点,它有以下脚本,其中包括库:

com.day.cq.widget.HtmlLibraryManager htmlMgr = 
sling.getService(com.day.cq.widget.HtmlLibraryManager.class); 
if (htmlMgr != null) { 
     htmlMgr.writeIncludes(slingRequest, out, ........);
} 

我只是添加了必要的库,组件工作正常