缺少 [mx.rpc]::IResponder [英] Missing [mx.rpc]::IResponder
问题描述
我正在尝试在 Flash 应用程序中使用 Flex 4 SDK 的 mx.rpc 包.我将 Flex 的 rpc.swc(Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\rpc.swc)添加到我的项目中,方法是将其添加到 Flash 的Publish Settings/Flash/ActionScrip 3.0 Settings/Library"列表中小路".似乎我可以访问这些类,但是当我编译时出现此错误:
I'm trying to use the Flex 4 SDK's mx.rpc package in a Flash application. I imported Flex's rpc.swc (Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\rpc.swc) into my project by adding it to the list in Flash's "Publish Settings/Flash/ActionScrip 3.0 Settings/Library Path". It seems like I have access to the classes, however when I compile I get this error:
1046: Type was not found or was not a compile-time constant: [mx.rpc]::IResponder.
也没有错误的位置或行.知道如何让它发挥作用吗?TIA!
There's no location or line for the error either. Any idea how to get this to work? TIA!
注意事项:我使用的是 Flash Builder 4 和 Flash CS5
Notes: I'm using Flash Builder 4 and Flash CS5
推荐答案
导入 rpc.swc 还不够.我将整个 Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\ 文件夹添加到库路径,并解决了问题.
Importing the rpc.swc wasn't enough. I added the entire Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\ folder to the library path, and that fixed the problem.
这篇关于缺少 [mx.rpc]::IResponder的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!