当针对 Flex 4 sdk 时,Flex builder3 不会生成 html 包装器
在 Flex builder 3 中,当我创建一个针对 Flex 4 sdk 的新 Flex 应用程序时,它不会生成 html 包装文件。
我在网上寻找答案,但没有成功。我已确保在项目属性中选中该框以生成 html 包装器。
唯一的解决方法是针对较旧版本的 sdk(即 3.2),这将导致生成包装器。然后我可以将项目恢复到 sdk 4。这意味着我永远无法清理我的项目,因为这将导致包装器被删除。
还有其他人遇到过这个吗?这只是 Flexbuilder3 的一个错误吗?
In Flex builder 3 when I create a new flex application targeting the flex 4 sdk, it wont generate a html wrapper file.
I have hunted around the web for answers, but no success. I have made sure the box is checked in the project properties to generate html wrapper.
The only workaround is to target an older version of the sdk (i.e. 3.2), which will cause the wrapper to be generated. Then I can revert the project to sdk 4. This then means I can never do a clean of my project because this will result in the wrapper being deleted.
Has anyone else come across this? Is this just a bug with Flexbuilder3?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
从 Flex3 中的 Flex Navigator 面板检查名为“html-template”的项目区域文件夹。该文件夹可能是空的。这里应该有 2 个文件:
这些将帮助您生成包装器。
Check the project area folder called "html-template" from the Flex Navigator Panel within Flex3. This folder may be empty. You should have 2 files in here:
These will help you generate the wrapper.
我对此进行了一番思考,在浏览了整个网络之后,我结合了一些解决方案,最终想出了一个适合我的解决方案。尝试此操作,无需升级到 Flash Builder 4 即可使用:
第 1 步
导航到您的 Flex 3 SDK 并将以下文件夹从您的 3.0 SDK PATH\templates\ 复制到您的 4.0 SDK PATH\Templates\ 。
-- 客户端检测
-- 客户端检测与历史记录
-- 快速安装
-- 快速安装与历史记录
-- 无玩家检测
-- 无玩家检测与历史
记录 注意: Greg Lafrance 在 ADOBE 的说明中推荐添加一个文件夹“Swfobject”,但我自己并不需要该文件夹。
步骤2
转到文件 ->切换工作空间->其他并创建一个全新的工作区(即:我称之为 Flex 4)。
步骤3
创建新项目。右键单击它-> Flex 编译器 ->配置 Flex SDKS ->添加...->导航到您的 Flex 4 SDK 并添加它。单击“确定”。在关闭房产之前执行第 4 步。
步骤 4。
将“需要 Flash Player 版本”更改为 10.0.0 。
步骤 5。
单击“确定”并删除基础代码并复制带有 Spark 元素等的 FLEX 4 代码。
祝你好运,希望这可以帮助那些在互联网上搜索这个问题的人。
I beat my head against this a bit and after look all over the net I combined a few solutions and finally came up with one that works for me. Try this to get it to work with with out up grading to Flash Builder 4:
STEP 1
Navigate to your Flex 3 SDK and copy the following folders from YOUR 3.0 SDK PATH\templates\ to YOUR 4.0 SDK PATH\Templates\ .
-- Client-side-detection
-- Client-side-detection-with-history
-- Express-installation
-- Express-installation-with-history
-- No-player-detection
-- No-playerdetection-with-history
Note: Greg Lafrance recommends an addition folder "Swfobject" in his instructions over at ADOBE, but I didn't need that one myself.
STEP 2
Go to File -> Switch Workspace -> Other and create a COMPLETELY NEW workspace ( i.e: I called my Flex 4).
STEP 3
Create new project. Right Click it -> Flex Compiler -> Configure Flex SDKS's -> Add... -> Navigate to your Flex 4 SDK and add it. Click Ok. DO STEP 4 BEFORE CLOSING THE PROPERTIES.
Step 4.
Change "Require Flash Player Version" to 10.0.0 .
Step 5.
Click OK and erase the based code and copy over FLEX 4 Code with spark elements and what not.
Good Luck, Hope this helps someone out there in internet land who Googles this question.
它对我来说是这样的......我改变了项目 - >属性 - > FlexCompiler选择了sdk flex-3而不是flex4(我当前的版本)然后清理并构建我得到了html和.swf文件之后我切换到 SDK - Flex 4 并且我运行了我的 mxml 文件,没有任何错误
It worked for me like this way.....i changed Project->properties->FlexCompilerchosed sdk flex-3 rather than flex4(my current version) then clean and build i got the html and .swf files after that i switched to SDK - Flex 4 and i ran my mxml file without any error
事实证明,这是在 flex builder 3 中使用 flex 4 sdk 的一个错误。我的解决方案是升级到 Flash Builder 4,它在项目和 flex sdk 之间有更好的集成。
谢谢
Turns out this is a bug with using the flex 4 sdk inside flex builder 3. My solution was to upgrade to Flash Builder 4 which has a much nicer integration between the project and the flex sdk.
Thanks
在eclipse
Problems
视图中,会出现一个问题Cannot create HTMLwrapper。右键单击此处重新创建文件夹 html-template。
。右键单击问题并选择重新创建 HTML 模板
。In eclipse
Problems
view, there will be one problemCannot create HTML wrapper. Right-click here to recreate folder html-template.
. Right click on the problem and chooseRecreate HTML Templates
.