在 Flex Builder 中将 AS 项目转换为 Flex 项目
有没有一种简单的方法可以在 Flex Builder 中将 Actionscript 3 项目转换为 Flex 项目? 当我右键单击该项目并将鼠标悬停在“Flex Project Nature”时,所有选项均呈灰色
Is there an easy way of converting a Actionscript 3 project to a Flex project in Flex Builder? When i right click on the project and hover "Flex Project Nature", all options are greyed out
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在不丢失项目设置的情况下实现该目标的几个常规步骤:
标签。
节点。如果你缺少模板/东西(我自己不是一个大粉丝,但当你刚开始一个项目时,它是一个很好的拐杖),请在“Actionscript Compiler”下的“HTML包装器”下搞乱其中一个表单字段您的项目属性并应用更改,IDE 将重新创建 templates/ 文件夹。
A few general steps to get there without losing your project settings:
<natures>
tag in there.<natures>
node.If you're missing the templates/ stuff (not a big fan myself, but it's a nice crutch when you're just starting a project), go mess with one of the form fields under "HTML wrapper" under "Actionscript Compiler" in your project properties and apply the change, and the IDE will recreate the templates/ folder.
我在FB3中还没有见过类似的东西。
AS3 项目将缺少相当多的Flex 项目设置(例如模板html)。 最好的方法是创建一个空的 Flex 项目并向其中添加 AS3 源代码 - 将文件夹拖放到 Flex 项目的
src
文件夹中。 或者,如果它是 SWC,您可以使用项目设置添加它。I haven't seen anything like that in FB3.
An AS3 project will lack quite a few of Flex project settings (e.g. template html). You are best served by creating an empty Flex project and adding the AS3 source to it -- drag and drop the folder(s) in the
src
folder of the Flex project. Alternatively, if it is a SWC you can add it using project settings.虽然有点脏,但是很管用。
旧文件将保持不变,但新项目将具有 Flex 项目性质。 如果已存在与项目向导要创建的文件同名的文件,则不会删除现有文件。
如果您有自定义命令行参数、源或库目录或任何其他特定于项目的设置,则可能必须重置它们。
以防万一出现问题,请务必先备份您的项目目录。 不过,当我重新创建 Flex Builder 项目时,我从未丢失过文件。
It's a little dirty, but it works.
The old files will be unchanged, but the new project will have the Flex Project nature. If a file already exists that has the same name as a file that the project wizard wants to create, the existing file will be not be deleted.
If you have custom command line arguments, source or library directories, or any other project-specific settings, you may have to reset them.
Just in case something goes wrong, be sure to back up your project directory first. I've never lost files when I've recreated a Flex Builder project, though.