osx 从命令行编译 AS3 项目

发布于 2024-09-19 16:29:41 字数 246 浏览 4 评论 0原文

当处理小型项目或一些测试类时,我更喜欢从命令行快速编译代码,而不是在 Flash Builder 中创建完整的 Actionscript 项目。

之前在一个类似的问题中,参考这篇文章给出了答案: 但是

​这是针对 Windows 用户的...

我查看了 ProjectSprouts,它看起来很棒,但对于我正在寻找的任务来说太繁重了。

您是否知道任何可用于从 Mac OSX 上的终端快速编译 swf 的替代方法?

When working on small projects or some test classes , I would prefer to quickly compile my code from the command line as opposed to creating a full Actionscript project in Flash Builder for instance.

In a previous similar question , an answer was given referring to this article:
http://www.senocular.com/flash/tutorials/as3withmxmlc/

but this is for Windows user...

I had a look at ProjectSprouts, which seems excellent but too heavy for the sort of task I'm looking for.

Would you know of any alternative approach that could be used to quickly compile a swf from the Terminal on Mac OSX?

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

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

发布评论

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

评论(2

风吹过旳痕迹 2024-09-26 16:29:51

我不确定您的项目有多复杂,但与您链接到的文章使用的方法非常相似的方法可能是一种简单的方法。假设您已从 Flash SDK 中获取了 mxmlc 程序,您只需设置一个 Makefile 即可,如下所示:

MXMLC = ~/Library/flex_sdk_4.1/bin/mxmlc
SRC = src/foo.as src/bar.as
MAIN = src/Main.as
SWF = output.swf

$(SWF) : $(SRC)
    $(MXMLC) -o $(SWF) -- $(MAIN)

I'm not sure how complex your project is, but something fairly similar to the method the article you linked to uses is probably an easy way to go. Assuming you've got the mxmlc program from the Flash SDK somewhere, you could just set up a Makefile like so:

MXMLC = ~/Library/flex_sdk_4.1/bin/mxmlc
SRC = src/foo.as src/bar.as
MAIN = src/Main.as
SWF = output.swf

$(SWF) : $(SRC)
    $(MXMLC) -o $(SWF) -- $(MAIN)
听闻余生 2024-09-26 16:29:49

好的,通过以下教程找到了答案
http://disruption.ca/archives/actionscript-and-mxmlc/

有效,就像这样做一样简单

mxmlc Main.as

Ok, found the answer with the following tutorial
http://disruption.ca/archives/actionscript-and-mxmlc/

Effectively , it's as simple as doing this

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