ASC2.0 and Frame metatag

雨燕双飞 提交于 2019-12-23 20:11:10

问题


Apparently, the new ActionScript Compiler 2.0 no longer supports the old [frame] metatag which allowed you to add preloaders to pure actionscript projects.

I've verified this IntelliJ - switching the "Prefer ActionScript Compiler 2.0 for pure ActionScript build configurations" makes a difference between the preloader being instantiated and executed, and the main class being instantiated and executed.

Googling yield no result, so is there currently any way around this issue - use ASC2.0 but have the benefits of the Frame metatag?


回答1:


This still works when using the mxmlc commandline tool;

mxmlc Loader.as -frame=ContentFrame,Main

(produces a 2-frame SWF; the first has no name and contains Loader, the second is named ContentFrame and contains Main).



来源:https://stackoverflow.com/questions/15722403/asc2-0-and-frame-metatag

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!