聽(tīng)Actual聽(tīng)Results:
TypeError:聽(tīng)Error聽(tīng)#1034:聽(tīng)Type聽(tīng)Coercion聽(tīng)failed:聽(tīng)cannot聽(tīng)convert聽(tīng)mx.managers::HistoryManagerImpl@2403de71聽(tīng)to聽(tīng)mx.managers.IHistoryManager.
at聽(tīng)mx.managers::HistoryManager$/get聽(tīng)impl()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\HistoryManager.as:96]
at聽(tīng)mx.managers::HistoryManager$/unregister()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\HistoryManager.as:144]
at聽(tīng)mx.containers::ViewStack/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\ViewStack.as:651]
at聽(tīng)mx.containers::TabNavigator/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\TabNavigator.as:504]
at聽(tīng)mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5670]
at聽(tīng)mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:519]
at聽(tīng)mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:639]
at聽(tīng)Function/http://adobe.com/AS3/2006/builtin::apply()
at聽(tīng)mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
at聽(tīng)mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
聽(tīng)聽(tīng)
Adding聽(tīng)the聽(tīng)following聽(tīng)code聽(tīng)to聽(tīng)your聽(tīng)main聽(tīng)app聽(tīng)may聽(tīng)resolve聽(tīng)the聽(tīng)problem.聽(tīng)I(yíng)t聽(tīng)did聽(tīng)for聽(tīng)me:
import聽(tīng)mx.managers.HistoryManager;
private聽(tīng)var聽(tīng)hist:HistoryManager;
See:
https://bugs.adobe.com/jira/browse/SDK-13121
http://bugs.adobe.com/jira/browse/SDK-12218
I'm聽(tīng)not聽(tīng)sure聽(tīng)that聽(tīng)I(yíng)聽(tīng)agree聽(tīng)that聽(tīng)it's聽(tīng)"Not聽(tīng)a聽(tīng)Bug"聽(tīng)(see聽(tīng)Resolution聽(tīng)of聽(tīng)SDK-12218).聽(tīng)I(yíng)聽(tīng)would聽(tīng)hardly聽(tīng)classify聽(tīng)the聽(tīng)code聽(tīng)given聽(tīng)by聽(tīng)Rodrigo聽(tīng)as聽(tīng)unusual聽(tīng)or聽(tīng)buggy.聽(tīng)I(yíng)f聽(tīng)the聽(tīng)default聽(tīng)behaviour聽(tīng)of聽(tīng)modules聽(tīng)is聽(tīng)to聽(tīng)share聽(tīng)managers聽(tīng)with聽(tīng)the聽(tīng)main聽(tīng)app聽(tīng)(if聽(tīng)I(yíng)聽(tīng)understand聽(tīng)the聽(tīng)problem聽(tīng)correctly),聽(tīng)then聽(tīng)they聽(tīng)should聽(tīng)be聽(tīng)able聽(tīng)to聽(tīng)clean聽(tīng)up聽(tīng)after聽(tīng)themselves聽(tīng)during聽(tīng)the聽(tīng)unload聽(tīng)process聽(tīng)gracefully.

]]>