mxmlc/fcsh 忽略 [SWF(宽度=“550”,高度=“400”,...)]
我正在使用 fcsh 编译 .as 文件,该文件使用 mxmlc。
我使用以下 shell:
mxmlc /Users/johannesjensen/Desktop/Doodler.as -static-link-runtime-shared-libraries=true
但是当我在桌面上获得 .swf 时,它的尺寸为 500x375,帧速率为 24,当我告诉它它需要为 550x400,帧速率需要为 120 使用
[SWF(width="550", height="400", frameRate="120", backgroundColor="#FFFFFF")]
高帧速率,因为它是一个绘图应用程序
任何想法为什么它忽略 [SWF()] 事情?
我在 Mac OS X 10.6.4 Snow Leopard 上使用 Flash Player 10.1
I'm compiling an .as file using fcsh, which uses it mxmlc.
I use the following shell:
mxmlc /Users/johannesjensen/Desktop/Doodler.as -static-link-runtime-shared-libraries=true
But when I get the .swf on my desktop it's dimensions are 500x375 and framerate is 24 when I told it that it needs to be 550x400 and framerate needs to be 120 using
[SWF(width="550", height="400", frameRate="120", backgroundColor="#FFFFFF")]
High framerate because it's a drawing app
Any ideas why it ignores the [SWF()] thing?
I'm using Flash Player 10.1 on a Mac OS X 10.6.4 Snow Leopard
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
快速 Google 搜索显示 SWF 元数据标记需要位于类定义之前,但在导入之后。听起来你把它放在导入之前。
资料来源:
http:// /blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/
请记住,这是一个未记录的元数据标签。我以前从未听说过它。所以我不能保证这些信息是准确的。
A quick Google search reveals that the SWF Metadata tag need to be before the class definition, but after the imports. It sounds like you're putting it before the imports.
Source:
http://blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/
Keep in mind this is an undocumented metadata tag. I had never heard of it before now. So I can't guarantee that this information is accurate.