Flex Monkey问题

时间:2011-03-04 17:46:26

标签: flex flex3 flexbuilder

我正在尝试设置Flex Monkey。我使用的是Flex SDK 3.5。我在Flex Builder中为我的项目添加了附加编译器参数-include-libraries "../libs/automation_monkey3.x.swc"。现在,当我查看应用程序并单击用户名文本框时,我收到以下错误。

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.gorillalogic.aqadaptor::AQEnvironment/sortAncestors()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:328]
at Array$/_sort()
at Array/http://adobe.com/AS3/2006/builtin::sort()
at com.gorillalogic.aqadaptor::AQEnvironment/findAllAncestors()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:302]
at com.gorillalogic.aqadaptor::AQEnvironment/findClosestAncestor()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:275]
at com.gorillalogic.aqadaptor::AQEnvironment/getAutomationClassByInstance()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:246]
at mx.automation::AutomationManager/helpCreateIDPart()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:1880]
at mx.automation.delegates.core::ContainerAutomationImpl/createAutomationIDPart()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\delegates\core\ContainerAutomationImpl.as:185]
at mx.core::UIComponent/createAutomationIDPart()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9299]
at mx.automation::AutomationManager/captureID()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:2657]
at mx.automation::AutomationManager/captureIDFromMouseDownEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:2588]

当我删除附加编译器参数时,应用程序正常工作。我无法解决这个问题。非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

在Flex构建器中清理并重新创建 html-template 文件夹后,错误得到了解决。转换,但它确实有效!