2011-08-10 58 views
1

你好,我迁移我的Flex 3项目的Flex 4:我得到这些错误:迁移从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. 

固定这一点的想法谢谢你的帮助。

+0

您最好列出使用编译器错误突出显示的行。 – Constantiner

+0

@Constantiner通常这样的错误没有行号,并且与库和主项目之间的版本不匹配有关。 (看我的答案)。如果您对缺乏详细信息的B/C进行了低估,我建议您删除您的downvote,因为我诚实地相信原始海报没有更多的细节可供提供。 – JeffryHouser

+0

@ www.Flextras.com不,我没有downvoted,我认为这些错误没有特别的线,但我认为这将是更好的,如果主题启动指出这一事实:) – Constantiner

回答

3

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

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

+0

你好, 实际上在flex 3项目中有一个名为PopUpManagerImpl.as的类。从这个文件得到所有这些错误。 如果可能的话,在这个地方放一些灯。 谢谢 – FlexyBoz

+0

@FlexyBoz我不知道还有什么可以打电话给你,而不是我已经说过的。这个问题通常与特定的类抛出错误无关;它通常涉及到与主项目不同的Flex SDK版本中编译的库。没有[据我所知]代码你可以改变,使其消失。您需要重新编译库以使用相同版本的Flex SDK。 – JeffryHouser

+0

你说得对。 给你伴侣的冰雹。 – FlexyBoz