如何让 FlexBuilder 将我的 MXML 文件识别为应用程序而不是组件?

发布于 2024-07-06 20:10:33 字数 276 浏览 6 评论 0原文

我正在尝试将我用 Emacs 开发的 mxml 文件导入到 FlexBuilder 中的新项目中...我已经创建了一个项目并手动将所有 MXML 和 actionscript 文件添加到 FlexBuilder 中。

我现在不知道如何运行该应用程序。 我相信问题在于 FlexBuilder 认为我所有的 mxml 文件都是组件,而事实上,它们是应用程序......有没有办法改变这一点?

当我右键单击该文件时,“设置为默认应用程序”和“运行应用程序”被禁用......

谢谢。

I am attempting to import mxml files that I developed with Emacs into a new project in FlexBuilder...I have created a project and manually added all my MXML and actionscript files into FlexBuilder.

I now can't figure out how to run the application. I believe the problem lies in the fact that FlexBuilder believes that all my mxml files are components, when in fact, they are applications...Is there a way to change this?

When I right click on the file the "set as default application" and "run application" is disabled...

Thanks.

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

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

发布评论

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

评论(6

夜光 2024-07-13 20:10:33

我通常似乎必须进入“项目属性”,单击“Flex 应用程序”并将 MXML 添加到该面板中,然后才能运行内容。

I usually seem to have to go into the Project Properties, click 'Flex Applications' and add the MXMLs into that panel before I can run stuff.

茶色山野 2024-07-13 20:10:33

确保 MXML 文件位于主源文件夹中。 您不能在辅助源目录或主源目录的子目录中拥有可运行的应用程序。

Make sure the MXML files are in the main source folder. You can't have a runnable application in a secondary source directory or subdirectory of the main source dir.

铜锣湾横着走 2024-07-13 20:10:33

此外,您还必须确保 mxml 文件的根节点是应用程序或模块。

Also you have to make sure the root node of the mxml file is Application or Module.

余生共白头 2024-07-13 20:10:33

您将拥有 1 个文件,其中包含 < mx:应用> 标签,因此 FlexBuilder 可能会给您右键单击 -> 运行它的应用程序选项。

或者您还可以做的是,转到“flex 项目 -> 属性 -> Flex 应用程序”
您可以使用“添加”按钮在此处提及您的应用程序

You'll be having 1 file that includes < mx:Application > tag, so FlexBuilder may give you right click -> Run application option for it.

Or what else you can do is, Go to "flex project->properties->Flex Applications"
You can mention ur application here with "add" button

乙白 2024-07-13 20:10:33

关于ActionScript项目
您可以在内部包中拥有可运行的应用程序。
只需进入 .actionScriptProperties
并将应用程序添加到应用程序标签:

<applications> 
<application path="com/example/games/game1/Main.as"/> 
<application path="com/example/games/game2/Main.as"/> 
</applications>

Regarding to the ActionScript project
you can have runnable application at an inner package.
Just go into the the .actionScriptProperties
and add application to the application tag:

<applications> 
<application path="com/example/games/game1/Main.as"/> 
<application path="com/example/games/game2/Main.as"/> 
</applications>
也只是曾经 2024-07-13 20:10:33

在您喜欢的文本编辑器中打开 .actionScriptProperties 文件

查找 applications 部分并添加 REPLACE_WITH_REAL_NAME.mxml

  <applications>
    <application path="EnvioManualExtractos.mxml"/>
    <application path="REPLACE_WITH_REAL_NAME.mxml"/>
  </applications>

关闭项目,重新打开并清理它并再次构建它

Open your .actionScriptProperties file in your favorite text editor

Look for the applications section and add REPLACE_WITH_REAL_NAME.mxml

  <applications>
    <application path="EnvioManualExtractos.mxml"/>
    <application path="REPLACE_WITH_REAL_NAME.mxml"/>
  </applications>

Close the project, reopen it and clean it and build it again

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