如果我将 apache flex sdk 4.9.1 添加为我的编译器,我可以在 fb 4.6 中使用设计模式吗? [英] can i use design mode in fb 4.6 if I add apache flex sdk 4.9.1 as my compiler?

查看:25
本文介绍了如果我将 apache flex sdk 4.9.1 添加为我的编译器,我可以在 fb 4.6 中使用设计模式吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行 Flash Builder 4.6,刚刚将 Apache flex sdk 4.9.1(内部版本 1447119)添加到运行 Moutain Lion 的 mac book pro 中,当我尝试快速播放hello world"并向舞台添加一些元素时使用设计模式时出现以下错误:

I am running Flash Builder 4.6 and just added Apache flex sdk 4.9.1 (build 1447119) to my mac book pro running Moutain Lion and when i tried to do a quick 'hello world' and add a few elements to the stage using design mode i got following error:

设计模式被禁用,因为项目使用了不兼容的 flex sdk 版本

The design mode is disabled as the project uses an incompatible version of the flex sdk

我的问题是,如果我超出了 fb 4.6 附带的默认 sdk,我是否因此失去了使用设计模式的能力,而必须在源代码模式下执行所有操作?

My question is if i go beyond the default sdk that shipped with fb 4.6 do I therefore loose the ability to use design mode and have to do everything in source mode?

此外,如果我使用的是 Windows,当我将鼠标悬停在 Design 选项卡上时,错误非常相似

Also, if i am using windows the error is quite similar when i mouseover on Design tab

不支持设计模式 - SDK 版本不兼容 - Apache Flex

Design mode not supported - incompatible SDK version - Apache Flex

谢谢

推荐答案

你可以通过一个技巧来让它工作(我自己已经完成了,到目前为止它工作得很好),它涉及在4.9.1 SDK 诱使 Flash Builder 认为它使用的是 Flex 4.6.您需要编辑 'flex-sdk-description.xml' 版本标记并将其从 4.9.1 更改为 4.6,这应该会解决它.文件位置在4.9.1文件夹中的SDK文件夹中,这里是Windows 7中的路径:

There is a hack you can do to get it working (I've done this myself and it works perfectly so far) that involves editing an XML file in the 4.9.1 SDK to trick Flash Builder into thinking it is using Flex 4.6. You'll need to edit the 'flex-sdk-description.xml' Version tag and change it from 4.9.1 to 4.6 and that should take care of it. Location of the file is in the SDK folder in 4.9.1 folder, here is the path in Windows 7:

C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.9.1

这篇关于如果我将 apache flex sdk 4.9.1 添加为我的编译器,我可以在 fb 4.6 中使用设计模式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆