如何让 FlexBuilder 将我的 MXML 文件识别为应用程序而不是组件?
我正在尝试将我用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我通常似乎必须进入“项目属性”,单击“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.
确保 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.
此外,您还必须确保 mxml 文件的根节点是应用程序或模块。
Also you have to make sure the root node of the mxml file is Application or Module.
您将拥有 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
关于ActionScript项目
您可以在内部包中拥有可运行的应用程序。
只需进入 .actionScriptProperties
并将应用程序添加到应用程序标签:
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:
在您喜欢的文本编辑器中打开 .actionScriptProperties 文件
查找 applications 部分并添加 REPLACE_WITH_REAL_NAME.mxml
关闭项目,重新打开并清理它并再次构建它
Open your .actionScriptProperties file in your favorite text editor
Look for the applications section and add REPLACE_WITH_REAL_NAME.mxml
Close the project, reopen it and clean it and build it again