Development/Tool
[Error] HTML wrapper template must contain ${swf} macro that is substituted at compile time
nabina
2015. 6. 1. 12:49
728x90
Error :
HTML wrapper template must contain ${swf} macro that is substituted at compile time
Solution :
Flash Builder나 기타 다른 IDE를 쓰다가 IntelliJ IDEA로 옮기면서 날 수 있는 에러다. IntelliJ IDEA에서는 index.template.html 파일에 ${swf}가 없으면 에러를 낸다. 따라서 HTML 파일에 application.swf가 있는 부분 대신 ${swf}.swf를 써주면 에러가 없어진다.
swfobject.embedSWF( "${swf}.swf", "flashContent", "${width}", "${height}", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes);
자세한 건 https://www.jetbrains.com/idea/help/create-html-wrapper-for-flex-application-dialog.html 여기서 확인.
반응형