ASC2.0和帧元标记 [英] ASC2.0 and Frame metatag

查看:203
本文介绍了ASC2.0和帧元标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显然,新的ActionScript编译器2.0不再支持旧[帧]元标记它允许你preloaders添加到纯ActionScript项目。

我已经验证了这个的IntelliJ - 切换preFER的ActionScript编译器2.0纯ActionScript构建结构使得之间的preloader的差异被实例化和执行,主类被实例化和执行<。 / P>

谷歌搜索产生任何结果,所以有目前解决此问题的任何方式 - 使用ASC2.0但帧元标记的好处

解决方案

这依然采用 mxmlc的命令行工具,当工作;

  mxmlc的Loader.as -frame = ContentFrame,主
 

。(产生2帧的SWF;第一个没有名字,而且包含装载机,第二个被命名为ContentFrame并包含主)

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?

解决方案

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

这篇关于ASC2.0和帧元标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆