但是flash debug提示:
TypeError: Error #1009: 无法访问空对象引用的属性或方法。
at mx.automation.qtp:: QTPAdapter/setTestingEnvironment()[C:\work\flex\dmv_automation\projects\qtp\src\mx\automation\qtp\QTPAdapter.as:461]
at mx.automation.qtp:: QTPAdapter()[C:\work\flex\dmv_automation\projects\qtp\src\mx\automation\qtp\QTPAdapter.as:357]
at mx.automation.qtp:: QTPAgent/applicationCompleteHandler()[C:\work\flex\dmv_automation\projects\qtp\src\mx\automation\qtp\QTPAgent.as:48]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers:: SystemManager/preloader_preloaderDoneHandler()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3025]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders:: Preloader/displayClassCompleteHandler()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:434]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobe.cairngorm.game.view.loading::AppPreloader/dispatchComplete()[E:\fairylly\CompanySystem\liangjiansanguo\codes\game\src\com\adobe\cairngorm\game\view\loading\AppPreloader.as:100]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
You are facing the issue mentioned herehttp://bugs.adobe.com/jira/browse/FLEXENT-791
The issue is that when an application has overlapping containers and is compiled using automation libraries the controls present in the lower container are not clickable.
This issue has been resolved in sdk 3.4 but there is also a workaround wherein you can set mouseEnabled property to false for both the overlapping containers and run the application all your buttons should work.