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

]]>