【问题标题】:Migration from Flex 3 to Flex 4 Errors从 Flex 3 迁移到 Flex 4 错误
【发布时间】:2011-08-10 09:18:49
【问题描述】:

您好,我将 Flex 3 项目迁移到 Flex 4:我收到以下错误:

任何人都有关于在 Flex 4 中解决此问题的想法。

1061: Call to a possibly undefined method activate through a reference with static type mx.managers:ISystemManager.
1061: Call to a possibly undefined method activate through a reference with static type mx.managers:ISystemManager.
1061: Call to a possibly undefined method activate through a reference with static type mx.managers:ISystemManager.
1061: Call to a possibly undefined method activate through a reference with static type mx.managers:ISystemManager.
1061: Call to a possibly undefined method addFocusManager through a reference with static type mx.managers:ISystemManager.
1061: Call to a possibly undefined method addFocusManager through a reference with static type mx.managers:ISystemManager.
1061: Call to a possibly undefined method addFocusManager through a reference with static type mx.managers:ISystemManager.
1061: Call to a possibly undefined method addFocusManager through a reference with static type mx.managers:ISystemManager.
1061: Call to a possibly undefined method removeFocusManager through a reference with static type mx.managers:ISystemManager.
1061: Call to a possibly undefined method removeFocusManager through a reference with static type mx.managers:ISystemManager.
1061: Call to a possibly undefined method removeFocusManager through a reference with static type mx.managers:ISystemManager.
1061: Call to a possibly undefined method removeFocusManager through a reference with static type mx.managers:ISystemManager.
1144: Interface method addPopUp in namespace mx.managers:IPopUpManager is implemented with an incompatible signature in class mx.managers:PopUpManagerImpl. 
1144: Interface method addPopUp in namespace mx.managers:IPopUpManager is implemented with an incompatible signature in class mx.managers:PopUpManagerImpl. 
1144: Interface method addPopUp in namespace mx.managers:IPopUpManager is implemented with an incompatible signature in class mx.managers:PopUpManagerImpl. 
1144: Interface method addPopUp in namespace mx.managers:IPopUpManager is implemented with an incompatible signature in class mx.managers:PopUpManagerImpl. 
1144: Interface method createPopUp in namespace mx.managers:IPopUpManager is implemented with an incompatible signature in class mx.managers:PopUpManagerImpl.  
1144: Interface method createPopUp in namespace mx.managers:IPopUpManager is implemented with an incompatible signature in class mx.managers:PopUpManagerImpl.  
1144: Interface method createPopUp in namespace mx.managers:IPopUpManager is implemented with an incompatible signature in class mx.managers:PopUpManagerImpl.  
1144: Interface method createPopUp in namespace mx.managers:IPopUpManager is implemented with an incompatible signature in class mx.managers:PopUpManagerImpl.  

感谢您的帮助。

【问题讨论】:

  • 你最好列出编译器错误突出显示的行。
  • @Constantiner 通常像这样的错误没有行号,并且与库和主项目之间的版本不匹配有关。 (见我的回答)。如果您因缺乏细节而对 b/c 投了反对票,我建议您删除您的反对票,因为老实说,我相信原始海报没有更多额外的细节可提供。
  • @www.Flextras.com 不,我没有投反对票,我认为这些错误没有特定的行,但我认为如果主题启动者指出这一事实会更好:)
  • @Constantiner 我讨厌人们投票反对而没有说明原因。 ;)

标签: apache-flex flex3 flex4 migration compiler-errors


【解决方案1】:

此类错误通常是由于版本不匹配问题造成的。因此,请确保您的所有外部库都使用与您的主项目相同的 Flex SDK 版本进行编译。

如果您使用的是框架,或者您在网络上找到的其他库,如果源代码可用,您可能必须自己重新编译它们。

【讨论】:

  • 您好,其实在flex 3项目中有一个类叫PopUpManagerImpl.as。正是从这个文件中得到了所有这些错误。如果可能的话,请对此有所了解。谢谢
  • @FlexyBoz 除了我已经说过的话,我不知道还能告诉你什么。这个问题通常与特定的类抛出错误无关;它通常与在与主项目不同的 Flex SDK 版本中编译的库有关。 [据我所知] 没有可以更改的代码来消除这种情况。您需要重新编译您的库以使用相同版本的 Flex SDK。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-10-24
  • 1970-01-01
  • 2011-06-28
  • 1970-01-01
  • 2012-12-12
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多