首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

Flex 中很幽魂的一个bug(2)

2012-11-23 
Flex 中很幽灵的一个bug(2)在用flex开发的过程中,遇到如下的一个问题:?Error: Skin for ExportPopup4144 c

Flex 中很幽灵的一个bug(2)

在用flex开发的过程中,遇到如下的一个问题:

?

Error: Skin for ExportPopup4144 cannot be found.
?at spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:698]
?at spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:443]
?at spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:406]
?at spark.components::SkinnableContainer/createChildren()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:879]
?at mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
?at ui.accelerators.fxmarker::ExportPopup/initialize()
?at mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:189]
?at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2139]
?at mx.managers::SystemManager/addChildAt()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:1759]
?at mx.managers::SystemManager/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:1742]
?at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:340]
?at mx.managers::PopUpManagerImpl/createPopUp()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:229]
?at mx.managers::PopUpManager$/createPopUp()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\PopUpManager.as:139]
?at ui.accelerators::CheckActivationStatusAccelerator/openExportPopup()[C:\sap\rds\RDSMobile_BETA_0.11\src\ui\accelerators\CheckActivationStatusAccelerator.mxml:140]
?at flash.events::EventDispatcher/dispatchEventFunction()
?at flash.events::EventDispatcher/dispatchEvent()
?at accelerators.controller::CheckActivationDeviceController/uploadListener()[C:\sap\rds\RDSMobile_BETA_0.11\src\accelerators\controller\CheckActivationDeviceController.as:179]
?at flash.events::EventDispatcher/dispatchEventFunction()
?at flash.events::EventDispatcher/dispatchEvent()
?at accelerators.ctcinstructions::Instruction/instructionZippedListener2()[C:\sap\rds\RDSMobile_BETA_0.11\src\accelerators\ctcinstructions\Instruction.as:535]
?at flash.events::EventDispatcher/dispatchEventFunction()
?at flash.events::EventDispatcher/dispatchEvent()
?at accelerators.ctcinstructions::Instruction/zipInstructionCompleted()[C:\sap\rds\RDSMobile_BETA_0.11\src\accelerators\ctcinstructions\Instruction.as:297]
?at flash.events::EventDispatcher/dispatchEventFunction()
?at flash.events::EventDispatcher/dispatchEvent()
?at com.sap.rdssbs.util::FileHandler/writeZippedFile()[C:\sap\rds\RDSMobile_BETA_0.11\src\com\sap\rdssbs\util\FileHandler.as:178]
?at com.sap.rdssbs.util::FileHandler/putZipEntry()[C:\sap\rds\RDSMobile_BETA_0.11\src\com\sap\rdssbs\util\FileHandler.as:150]
?at Function/http://adobe.com/AS3/2006/builtin::apply()
?at SetIntervalTimer/onTimer()
?at flash.utils::Timer/_timerDispatch()
?at flash.utils::Timer/tick()

?

?

ExportPopup是一个TitleWindow的弹出框。。。

在Main window中,有加载module,这个弹出框是在module中的一个export按钮触发的,当点击该export按钮时,这个弹出框就显示,但是上面碰到的这个问题并不是经常出现,而是很偶然的才出现一次。。。

所以出错的频率并不高、、、

但是总归得要弄清楚原因吧、、、、?

而且更奇怪的是这个弹出框我并没有给它定制皮肤、、、我想应该是加载的是TitleWindow的默认样式。。。

?

最后google,找到adobe sdk的buglist 里面的SDK-24835:

RTE when PopUpManager.createPopUp is called

Runtime Error。。。

?

其中有一个回复如下:

The fix in revision 13201 adds a moduleFactory parameter to PopUpManager.createPopUp() to allow a module or application to specify the style manager to be used. Modules and sub-applications should always pass a moduleFactory to PopUpManager.createPopUp() or PopUpManager.addPopUp() to ensure the correct style manager is used when looking up styles. Otherwise the parent of the pop up is used to determine the style manager.

In order to fix the RTE the module code in this example must be changed to pass a module factory to PopUpManager.createPopUp(). This code should look like this:

????????????????popUp = PopUpManager.createPopUp(DisplayObject(systemManager), MyWindow, false, null, moduleFactory);

?

按照他提示的增加了两个参数,如红色加粗部分、、、

至于有没有从根本上解决这个问题,还不是很清楚,need more testing....

http://forums.adobe.com/thread/544098?tstart=1

http://bugs.adobe.com/jira/browse/SDK-24835

?

另外,还有其它的类似问题的几个解决办法,链接如下:

?

http://python.mmitd.com/bugs.adobe.com/jira/browse/SDK-30544

http://python.mmitd.com/forums.adobe.com/message/3708576#3708576

http://www.unitedmindset.com/jonbcampos/2010/05/12/creating-custom-spa rk-components/

http://www.betadesigns.co.uk/Blog/2010/05/14/default-skin-for-custom-f lashbuilder-components/

http://flexdevtips.blogspot.com/2009/06/default-stylesheet-in-swc-flex -library.html

?

?下面两个链接是bug跟踪管理的站点:

http://youtrack.jetbrains.net/issue/IDEA-72072?query=can

http://youtrack.jetbrains.net/issue/IDEA-72826#newissue=yes

热点排行