从Flash CS 5导入swc时Flex Builder 3中的自动化错误
在尝试使用从Flash CS5导入的“swc”文件时,我遇到了一个非常奇怪的问题,我试图在Flex Builder 3中使用它(通过将符号转换为“Flex Component”)。错误来自与我正在导入的“swc”文件甚至远程无关的文件。
现在,我知道自动化的东西已经成为FB4的一部分,但我真的没有选择迁移到FB4。
我试图改变Flash CS5中的flex sdk设置(下面给出的步骤),但这没有帮助。
编辑 - >首选项 - > Actionscript - >“Actionscript 3.0设置” - >“Flex SDK路径”(指向flex3.5 sdk而不是Flex4.0 sdk)
我觉得这个问题很可能是兼容性问题,而不是Flex 3和Flex 4,但是无法找到相同的解决方法。任何帮助是极大的赞赏。
谢谢,
卡皮尔
这是跟踪:
Severity and Description Path Resource Location Creation Time Id
1044: Interface method createAutomationIDPartWithRequiredProperties in namespace mx.automation:IAutomationObject not implemented by class com.sparsha.view.ui:SchematicWindow.
1044: Interface method createAutomationIDPartWithRequiredProperties in namespace mx.automation:IAutomationObject not implemented by class
1044: Interface method get automationEnabled in namespace mx.automation:IAutomationObject not implemented by class com.sparsha.lib.controls:CloseableTabBar.
1044: Interface method get automationEnabled in namespace mx.automation:IAutomationObject not implemented by class
1044: Interface method get automationEnabled in namespace mx.automation:IAutomationObject not implemented by class com.sparsha.lib.layouts:DockedAppLayout.
没有找到相关结果
已邀请:
2 个回复
纫合峭
由于您无法对Flash进行任何操作而无法生成所需的方法,因此您唯一的方法是对SDK进行monkeypatch。即将mx / automation / IAutomationObject.as从SDK源复制到项目的类路径。删除冲突的方法声明(这可能会也可能不会导致其他错误)。如果它导致进一步的错误,对每个“行为不端”的类重复相同的程序...... 但是,monkeypatching意味着您不再能够使用框架RSL,因为它们将随原始版本一起提供。因此,我会尝试完全避免这个问题,并寻找另一种从Flash IDE导出符号的方法,例如,不要将它们作为Flex组件。或者,如果你真的坚持将它们作为Flex组件,那么例如,引导FlexSprite,并将引导类的Flash符号分配为“父类”。
伞腹