使用命令行将 Flex CSS 文件编译为 SWF

发布于 2024-08-22 11:35:39 字数 312 浏览 1 评论 0原文

据我了解,在 Flex 构建器中,我们可以右键单击 CSS 文件并选择“编译为 swf”,我们的 CSS SWF 将自动与主应用程序一起编译。

是否可以仅从命令行编译 CSS 文件(不使用主应用程序)?

我想要:

  • 为客户端提供一个 Flex CSS 文件进行手动编辑
  • 允许他们通过 CMS
  • 上传文件 触发服务器进程以从命令行运行编译器,将编译后的 SWF 输出到适当的服务器路径。

如果 Flex 正确支持基于文本的 CSS 文件(无需使用 AS3 手动应用样式),这当然会简单得多。

I understand that in Flex builder we can right click on a CSS file and choose 'compile to swf' and our CSS SWFs will automatically be compiled along with the main app.

Is possible to compile the CSS file only (not with the main app) from the command line?

I want to :

  • Give clients a Flex CSS file to hand edit
  • Allow them to upload the file via a CMS
  • Trigger a server process to run the compiler from the command line, outputting the compiled SWF to the appropriate server path.

This would of course be a whole lot simpler if Flex properly supported text-based CSS files (without requiring manually applying styles using AS3).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

贪了杯 2024-08-29 11:35:39

是的,这是可能的,而且非常简单,只需

mxmlc yourFIle.css

在命令提示符下键入:

Yes, it is possible and really easy just type:

mxmlc yourFIle.css

at the command prompt

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文