3

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?

4

1 回答 1

2

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).

于 2013-05-03T17:06:50.547 回答