Eclipse 和 Actionscript 3

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2726449/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:40:40  来源:igfitidea点击:

Eclipse and Actionscript 3

actionscript-3eclipseactionscript

提问by teapot7

Does anyone know of any good solutions (Eclipse plugins presumably) for using Eclipse to develop in ActionScript 3?

有谁知道使用 Eclipse 在 ActionScript 3 中开发的任何好的解决方案(大概是 Eclipse 插件)?

There are a number of solutions for developing with ActionScript 2, leveraging MTASC, Swfmill and other open source tools, but I'm specifically looking for AS3 support.

有许多使用 ActionScript 2 开发、利用 MTASC、Swfmill 和其他开源工具的解决方案,但我特别在寻找 AS3 支持。

It's simple enough to use Eclipse as an editor, and a place from which to invoke Ant scripts to compile with the Adobe command line tools, but I'm looking for syntax colouring, autocompletion, refactoring, debugging - all the modern IDE luxuries.

使用 Eclipse 作为编辑器非常简单,并且可以从中调用 Ant 脚本以使用 Adob​​e 命令行工具进行编译,但我正在寻找语法着色、自动完成、重构、调试 - 所有现代 IDE 奢侈品。

Other tools I've used:

我使用过的其他工具:

  • FlashDevelop: free and good, but Windows only and doesn't have refactoring. Nevertheless a nice piece of work.
  • IntelliJ Idea: very nice ActionScript 3 support, though not quite as slick as their Java support. Unfortunately AS3 is not supported in the free/community edition of Idea and I'm not ready to purchase the full version as yet.
  • FlashDevelop:免费且优秀,但仅适用于 Windows,没有重构功能。总之是一部不错的作品。
  • IntelliJ Idea:非常好的 ActionScript 3 支持,虽然不如他们的 Java 支持那么流畅。不幸的是,Idea 的免费/社区版不支持 AS3,我还没有准备好购买完整版。

采纳答案by HughC

I own Flex Builder and FDT. I use FDT Professional, I admit the original purchase price seemed steep, but if you're going to code AS3 for a living it will pay for itself in pretty short order.

我拥有 Flex Builder 和 FDT。我使用 FDT Professional,我承认最初的购买价格似乎很高,但是如果您打算以编写 AS3 为生,它会在很短的时间内收回成本。

With the most recent (3.5) version able to edit MXML with code hinting, there is little I miss it for. The major exception I've found being the visual layout tools of Flex Builder.

由于最新的 (3.5) 版本能够使用代码提示编辑 MXML,因此我几乎不会想念它。我发现的主要例外是 Flex Builder 的可视化布局工具。

Other thoughts:

其他想法:

  • In my experience of both products, the pure AS3 code editor tools (hintng / autocompletion / templating) of FDT are well ahead of Flex Builder.
  • Some versions of FDT can inspect .swc files and provide code hints for compiled classes within (which I'm pretty sure Flex Builder can't do, I believe FlashDevelop can). This allows for workflows where
    • designers create dummy classes for ui elements (through the 'linkage id' mechansim of the Flash IDE), use named MovieClips to identify ui elements etc
    • design exports swc, which you include in your class path
    • you extend these dummy classes with AS3 class code
    • FDT will give you code hints for all named instances on a MovieClip's timeline.
  • You can compile, test and package AIR applications (pure AS3 or MXML-based) from within the IDE.
  • 根据我对这两款产品的体验,FDT 的纯 AS3 代码编辑器工具(提示/自动完成/模板)远远领先于 Flex Builder。
  • 某些版本的 FDT 可以检查 .swc 文件并为其中的已编译类提供代码提示(我很确定 Flex Builder 不能这样做,我相信 FlashDevelop 可以)。这允许工作流
    • 设计师为 ui 元素创建虚拟类(通过 Flash IDE 的“链接 ID”机制),使用命名的 MovieClips 来识别 ui 元素等
    • design 导出 swc,您将其包含在类路径中
    • 你用 AS3 类代码扩展这些虚拟类
    • FDT 将为您提供 MovieClip 时间线上所有命名实例的代码提示。
  • 您可以在 IDE 中编译、测试和打包 AIR 应用程序(纯 AS3 或基于 MXML 的)。

回答by Samuel Neff

Two good commercial options:

两个不错的商业选择:

  1. Adobe Flash Builder. Available as either standalone or Eclipse plugin (standalone is just Eclipse with the plugin already bundled). http://www.adobe.com/products/flashbuilder/

  2. FDT. Eclipse plugin. I used to use the AS2 version but I've heard really good things about the AS3 support. http://www.fdt.powerflasher.com/

  1. Adobe Flash 生成器。可作为独立或 Eclipse 插件使用(独立只是 Eclipse 与插件已经捆绑)。 http://www.adobe.com/products/flashbuilder/

  2. FDT。Eclipse 插件。我曾经使用 AS2 版本,但我听说过关于 AS3 支持的好消息。 http://www.fdt.powerflasher.com/

回答by davr

If you get Adobe Flash Builder, you can also purchase SourceMateas an addon to give more refactoring / other tools. But it's a lot cheaper than FDT.

如果您获得 Adob​​e Flash Builder,您还可以购买SourceMate作为插件以提供更多重构/其他工具。但它比FDT便宜很多。

回答by Josh Strike

AXDT is very bare-bones, but it does actually work fairly well if you don't want to pay for FDT. The debugging feature is fairly impressive, and in that you get most of what you do with Flex Builder 3 (which is enough). It doesn't do any kind of code hinting or package exploration, and it has some issues, even on basic stuff like bringing in the fl packages to your source directory... e.g. it doesn't recognize Tween as a valid class, and throws a warning even though the compiler will still work. If you don't mind coding your AS3 in basically a plaintext editor, and just need an easy way to compile out of Eclipse, it's serviceable.

AXDT 非常简单,但如果您不想为 FDT 付费,它实际上确实可以很好地工作。调试功能相当令人印象深刻,因为您可以获得使用 Flex Builder 3 所做的大部分工作(这就足够了)。它不做任何类型的代码提示或包探索,它有一些问题,即使是在基本的东西上,比如将 fl 包引入你的源目录......例如,它不能将 Tween 识别为有效的类,并且即使编译器仍然可以工作,也会抛出警告。如果您不介意在基本上纯文本编辑器中编码您的 AS3,并且只需要一种简单的方法来编译出 Eclipse,那么它是有用的。

回答by Ryan Smith

They dropped support for Eclipse / Flex / AS3 I just tested.

他们放弃了对我刚刚测试过的 Eclipse/Flex/AS3 的支持。

回答by yonix

It appears AXDTis an open source AS3 eclipse plugin.

看起来AXDT是一个开源的 AS3 eclipse 插件。

Haven't tried it yet though...

不过还没试过。。。