问题
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